diff --git a/src/main/resources/static/assets/401.d29fe3f1.js b/src/main/resources/static/assets/401.066c62ac.js similarity index 92% rename from src/main/resources/static/assets/401.d29fe3f1.js rename to src/main/resources/static/assets/401.066c62ac.js index dfe9dcc..424c0f6 100644 --- a/src/main/resources/static/assets/401.d29fe3f1.js +++ b/src/main/resources/static/assets/401.066c62ac.js @@ -1 +1 @@ -import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.552205f5.js";import{_ as p}from"./401.3f3777af.js";import{i as l}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"401",-1),h=t("img",{src:p,class:"cover",alt:"page not found"},null,-1),m=n({__name:"401",setup(w){const o=r(null);c(()=>{l(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u6CA1\u6743\u9650\u8BBF\u95EE\u6B64\u9875\u9762!"]})});const s=i(),a=()=>s.push("/");return(g,v)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},"\u60A8",512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; +import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.43b3cbf5.js";import{_ as p}from"./401.58f0cb83.js";import{i as l}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"401",-1),h=t("img",{src:p,class:"cover",alt:"page not found"},null,-1),m=n({__name:"401",setup(w){const o=r(null);c(()=>{l(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u6CA1\u6743\u9650\u8BBF\u95EE\u6B64\u9875\u9762!"]})});const s=i(),a=()=>s.push("/");return(g,v)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},"\u60A8",512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; diff --git a/src/main/resources/static/assets/401.3f3777af.js b/src/main/resources/static/assets/401.58f0cb83.js similarity index 100% rename from src/main/resources/static/assets/401.3f3777af.js rename to src/main/resources/static/assets/401.58f0cb83.js diff --git a/src/main/resources/static/assets/403.5a6e26c4.js b/src/main/resources/static/assets/403.aab6b96f.js similarity index 92% rename from src/main/resources/static/assets/403.5a6e26c4.js rename to src/main/resources/static/assets/403.aab6b96f.js index 10a2304..05bfbf6 100644 --- a/src/main/resources/static/assets/403.5a6e26c4.js +++ b/src/main/resources/static/assets/403.aab6b96f.js @@ -1 +1 @@ -import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.552205f5.js";import{_ as l}from"./401.3f3777af.js";import{i as p}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"403",-1),h=t("img",{src:l,class:"cover",alt:"page not found"},null,-1),m=n({__name:"403",setup(w){const o=r(null);c(()=>{p(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u7981\u6B62\u8BBF\u95EE\u6B64\u9875\u9762!"]})});const s=i(),a=()=>s.push("/");return(g,v)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},null,512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; +import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.43b3cbf5.js";import{_ as l}from"./401.58f0cb83.js";import{i as p}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"403",-1),h=t("img",{src:l,class:"cover",alt:"page not found"},null,-1),m=n({__name:"403",setup(w){const o=r(null);c(()=>{p(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u7981\u6B62\u8BBF\u95EE\u6B64\u9875\u9762!"]})});const s=i(),a=()=>s.push("/");return(g,v)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},null,512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; diff --git a/src/main/resources/static/assets/404.e2363b53.js b/src/main/resources/static/assets/404.811dd5f6.js similarity index 92% rename from src/main/resources/static/assets/404.e2363b53.js rename to src/main/resources/static/assets/404.811dd5f6.js index 1022c2b..c59a2b8 100644 --- a/src/main/resources/static/assets/404.e2363b53.js +++ b/src/main/resources/static/assets/404.811dd5f6.js @@ -1 +1 @@ -import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.552205f5.js";import{i as p}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";var l="/assets/notFound.345f1754.svg";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"404",-1),h=t("img",{src:l,class:"cover",alt:"page not found"},null,-1),m=n({__name:"404",setup(g){const o=r(null);c(()=>{p(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u6CA1\u6709\u6570\u636E\u7684\u8352\u91CE!"]})});const s=i(),a=()=>s.push("/");return(v,w)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},"\u6765\u5230\u4E86",512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; +import{d as n,r,o as c,P as i,a as u,f as d,p as t}from"./index.43b3cbf5.js";import{i as p}from"./index.2f5dd8a9.js";import{b as e}from"./route-block.9b0645f8.js";var l="/assets/notFound.345f1754.svg";const x={class:"flex flex-wrap h-screen text-center justify-around items-center"},_={class:"font-blod desc"},f=t("div",{class:"text-7xl code"},"404",-1),h=t("img",{src:l,class:"cover",alt:"page not found"},null,-1),m=n({__name:"404",setup(g){const o=r(null);c(()=>{p(o.value,{showCursor:!1,disableBackTyping:!0,strings:["\u6CA1\u6709\u6570\u636E\u7684\u8352\u91CE!"]})});const s=i(),a=()=>s.push("/");return(v,w)=>(u(),d("div",x,[t("div",_,[f,t("div",{ref_key:"content",ref:o,class:"text-3xl content"},"\u6765\u5230\u4E86",512),t("button",{active:"scale-90 transform",class:"rounded-lg transition btn",onClick:a}," \u{1F449} \u8FD4\u56DE\u9996\u9875 ")]),h]))}});typeof e=="function"&&e(m);export{m as default}; diff --git a/src/main/resources/static/assets/BadgeCheckIcon.09c2c42b.js b/src/main/resources/static/assets/BadgeCheckIcon.8153a115.js similarity index 92% rename from src/main/resources/static/assets/BadgeCheckIcon.09c2c42b.js rename to src/main/resources/static/assets/BadgeCheckIcon.8153a115.js index 9b941ab..61e1b71 100644 --- a/src/main/resources/static/assets/BadgeCheckIcon.09c2c42b.js +++ b/src/main/resources/static/assets/BadgeCheckIcon.8153a115.js @@ -1 +1 @@ -import{a as e,b as r,h as a}from"./index.552205f5.js";function c(o,l){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}export{c as r}; +import{a as e,b as r,h as a}from"./index.43b3cbf5.js";function c(o,l){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}export{c as r}; diff --git a/src/main/resources/static/assets/FileGallery.092ebc7a.js b/src/main/resources/static/assets/FileGallery.092ebc7a.js deleted file mode 100644 index 04019ab..0000000 --- a/src/main/resources/static/assets/FileGallery.092ebc7a.js +++ /dev/null @@ -1 +0,0 @@ -import{u as Ae,_ as Be,w as Ue,r as je}from"./base.d698891e.js";/* empty css */import{d as Me,a as x,f as w,p as s,c as Z,g as me,h as ve,n as K,u as m,i as Re,t as ne,k as ce,$ as Je,W as Qe,F as ye,y as we,e as Se,J as Ze,bJ as Ke,r as Xe,Q as Le,R as Ne}from"./index.552205f5.js";import{c as Ye}from"./common.0f75f163.js";import{u as et,h as tt}from"./useFileUpload.b18c246f.js";import{_ as at}from"./plugin-vue_export-helper.21dcd24c.js";import{u as it}from"./index.1e624cbf.js";import"./request.3708b2c4.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./event.776e7e11.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./directive.e250a256.js";let rt=0;const lt=Me({name:"ImgEmpty",setup(){return{ns:Ae("empty"),id:++rt}}}),ot={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},st=["id"],nt=["stop-color"],ct=["stop-color"],ft=["id"],dt=["stop-color"],ut=["stop-color"],gt=["id"],pt={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},mt={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},yt={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},vt=["fill"],ht=["fill"],zt={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_t=["fill"],Ct=["fill"],bt=["fill"],kt=["fill"],Et=["fill"],$t={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},xt=["fill","xlink:href"],wt=["fill","mask"],St=["fill"];function Lt(c,u,_,n,B,S){return x(),w("svg",ot,[s("defs",null,[s("linearGradient",{id:`linearGradient-1-${c.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[s("stop",{"stop-color":`var(${c.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,nt),s("stop",{"stop-color":`var(${c.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,ct)],8,st),s("linearGradient",{id:`linearGradient-2-${c.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[s("stop",{"stop-color":`var(${c.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,dt),s("stop",{"stop-color":`var(${c.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,ut)],8,ft),s("rect",{id:`path-3-${c.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,gt)]),s("g",pt,[s("g",mt,[s("g",yt,[s("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${c.ns.cssVarBlockName("fill-color-3")})`},null,8,vt),s("polygon",{id:"Rectangle-Copy-14",fill:`var(${c.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,ht),s("g",zt,[s("polygon",{id:"Rectangle-Copy-10",fill:`var(${c.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_t),s("polygon",{id:"Rectangle-Copy-11",fill:`var(${c.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Ct),s("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${c.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,bt),s("polygon",{id:"Rectangle-Copy-13",fill:`var(${c.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,kt)]),s("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${c.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,Et),s("g",$t,[s("use",{id:"Mask",fill:`var(${c.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${c.id}`},null,8,xt),s("polygon",{id:"Rectangle-Copy",fill:`var(${c.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${c.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,wt)]),s("polygon",{id:"Rectangle-Copy-18",fill:`var(${c.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,St)])])])])}var Nt=Be(lt,[["render",Lt],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const At={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},Bt=["src"],Mt={key:1},Rt={name:"ElEmpty"},Ft=Me({...Rt,props:At,setup(c){const u=c,{t:_}=it(),n=Ae("empty"),B=Z(()=>u.description||_("el.table.emptyText")),S=Z(()=>({width:u.imageSize?`${u.imageSize}px`:""}));return(t,V)=>(x(),w("div",{class:K(m(n).b())},[s("div",{class:K(m(n).e("image")),style:Re(m(S))},[t.image?(x(),w("img",{key:0,src:t.image,ondragstart:"return false"},null,8,Bt)):me(t.$slots,"image",{key:1},()=>[ve(Nt)])],6),s("div",{class:K(m(n).e("description"))},[t.$slots.description?me(t.$slots,"description",{key:0}):(x(),w("p",Mt,ne(m(B)),1))],2),t.$slots.default?(x(),w("div",{key:0,class:K(m(n).e("bottom"))},[me(t.$slots,"default")],2)):ce("v-if",!0)],2))}});var Vt=Be(Ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Tt=Ue(Vt);var Wt={exports:{}};(function(c){(function(u,_){var n=_(u,u.document,Date);u.lazySizes=n,c.exports&&(c.exports=n)})(typeof window!="undefined"?window:{},function(_,n,B){var S,t;if(function(){var i,a={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};t=_.lazySizesConfig||_.lazysizesConfig||{};for(i in a)i in t||(t[i]=a[i])}(),!n||!n.getElementsByClassName)return{init:function(){},cfg:t,noSupport:!0};var V=n.documentElement,fe=_.HTMLPictureElement,M="addEventListener",k="getAttribute",v=_[M].bind(_),h=_.setTimeout,j=_.requestAnimationFrame||h,T=_.requestIdleCallback,H=/^picture$/i,I=["load","error","lazyincluded","_lazyloaded"],z={},re=Array.prototype.forEach,O=function(i,a){return z[a]||(z[a]=new RegExp("(\\s|^)"+a+"(\\s|$)")),z[a].test(i[k]("class")||"")&&z[a]},X=function(i,a){O(i,a)||i.setAttribute("class",(i[k]("class")||"").trim()+" "+a)},de=function(i,a){var l;(l=O(i,a))&&i.setAttribute("class",(i[k]("class")||"").replace(l," "))},ue=function(i,a,l){var y=l?M:"removeEventListener";l&&ue(i,a),I.forEach(function(p){i[y](p,a)})},Y=function(i,a,l,y,p){var o=n.createEvent("Event");return l||(l={}),l.instance=S,o.initEvent(a,!y,!p),o.detail=l,i.dispatchEvent(o),o},ge=function(i,a){var l;!fe&&(l=_.picturefill||t.pf)?(a&&a.src&&!i[k]("srcset")&&i.setAttribute("srcset",a.src),l({reevaluate:!0,elements:[i]})):a&&a.src&&(i.src=a.src)},ee=function(i,a){return(getComputedStyle(i,null)||{})[a]},he=function(i,a,l){for(l=l||i.offsetWidth;l49?function(){T(o,{timeout:p}),p!==t.ricTimeout&&(p=t.ricTimeout)}:le(function(){h(o)},!0);return function(f){var g;(f=f===!0)&&(p=33),!a&&(a=!0,g=y-(B.now()-l),g<0&&(g=0),f||g<9?C():h(C,g))}},ze=function(i){var a,l,y=99,p=function(){a=null,i()},o=function(){var C=B.now()-l;C0,E&&ee(b,"overflow")!="visible"&&(d=b.getBoundingClientRect(),E=L>d.left&&gd.top-1&&f500&&V.clientWidth>500?500:370:t.expand,S._defEx=P,U=P*t.expFactor,Q=t.hFac,q=null,ae2&&y>2&&!n.hidden?(ae=U,J=0):y>1&&J>1&&R<6?ae=P:ae=Ge),D!==$&&(o=innerWidth+$*Q,C=innerHeight+$,W=$*-1,D=$),d=A[r].getBoundingClientRect(),(F=d.bottom)>=W&&(f=d.top)<=C&&(L=d.right)>=W*Q&&(g=d.left)<=o&&(F||L||g||f)&&(t.loadHidden||be(A[r]))&&(a&&R<3&&!G&&(y<3||J<4)||Pe(A[r],$))){if(ie(A[r]),E=!0,R>9)break}else!E&&a&&!b&&R<4&&J<4&&y>2&&(i[0]||t.preloadAfterLoad)&&(i[0]||!G&&(F||L||g||f||A[r][k](t.sizesAttr)!="auto"))&&(b=i[0]||A[r])}b&&!E&&ie(b)}},N=Fe(ke),Ee=function(e){var r=e.target;if(r._lazyCache){delete r._lazyCache;return}Ce(e),X(r,t.loadedClass),de(r,t.loadingClass),ue(r,$e),Y(r,"lazyloaded")},Ie=le(Ee),$e=function(e){Ie({target:e.target})},De=function(e,r){var d=e.getAttribute("data-load-mode")||t.iframeLoadMode;d==0?e.contentWindow.location.replace(r):d==1&&(e.src=r)},He=function(e){var r,d=e[k](t.srcsetAttr);(r=t.customMedia[e[k]("data-media")||e[k]("media")])&&e.setAttribute("media",r),d&&e.setAttribute("srcset",d)},Oe=le(function(e,r,d,b,E){var $,W,G,D,P,U;(P=Y(e,"lazybeforeunveil",r)).defaultPrevented||(b&&(d?X(e,t.autosizesClass):e.setAttribute("sizes",b)),W=e[k](t.srcsetAttr),$=e[k](t.srcAttr),E&&(G=e.parentNode,D=G&&H.test(G.nodeName||"")),U=r.firesLoad||"src"in e&&(W||$||D),P={target:e},X(e,t.loadingClass),U&&(clearTimeout(l),l=h(Ce,2500),ue(e,$e,!0)),D&&re.call(G.getElementsByTagName("source"),He),W?e.setAttribute("srcset",W):$&&!D&&(Te.test(e.nodeName)?De(e,$):e.src=$),E&&(W||D)&&ge(e,{src:$})),e._lazyRace&&delete e._lazyRace,de(e,t.lazyClass),te(function(){var Q=e.complete&&e.naturalWidth>1;(!U||Q)&&(Q&&X(e,t.fastLoadedClass),Ee(P),e._lazyCache=!0,h(function(){"_lazyCache"in e&&delete e._lazyCache},9)),e.loading=="lazy"&&R--},!0)}),ie=function(e){if(!e._lazyRace){var r,d=Ve.test(e.nodeName),b=d&&(e[k](t.sizesAttr)||e[k]("sizes")),E=b=="auto";(E||!a)&&d&&(e[k]("src")||e.srcset)&&!e.complete&&!O(e,t.errorClass)&&O(e,t.lazyClass)||(r=Y(e,"lazyunveilread").detail,E&&pe.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,R++,Oe(e,r,E,b,d))}},qe=ze(function(){t.loadMode=3,N()}),xe=function(){t.loadMode==3&&(t.loadMode=2),qe()},se=function(){if(!a){if(B.now()-p<999){h(se,999);return}a=!0,t.loadMode=3,N(),v("scroll",xe,!0)}};return{_:function(){p=B.now(),S.elements=n.getElementsByClassName(t.lazyClass),i=n.getElementsByClassName(t.lazyClass+" "+t.preloadClass),v("scroll",N,!0),v("resize",N,!0),v("pageshow",function(e){if(e.persisted){var r=n.querySelectorAll("."+t.loadingClass);r.length&&r.forEach&&j(function(){r.forEach(function(d){d.complete&&ie(d)})})}}),_.MutationObserver?new MutationObserver(N).observe(V,{childList:!0,subtree:!0,attributes:!0}):(V[M]("DOMNodeInserted",N,!0),V[M]("DOMAttrModified",N,!0),setInterval(N,999)),v("hashchange",N,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){n[M](e,N,!0)}),/d$|^c/.test(n.readyState)?se():(v("load",se),n[M]("DOMContentLoaded",N),h(se,2e4)),S.elements.length?(ke(),te._lsFlush()):N()},checkElems:N,unveil:ie,_aLSL:xe}}(),pe=function(){var i,a=le(function(o,C,f,g){var L,F,q;if(o._lazysizesWidth=g,g+="px",o.setAttribute("sizes",g),H.test(C.nodeName||""))for(L=C.getElementsByTagName("source"),F=0,q=L.length;F({bca1dc28:m(t),"75aa7da3":m(S),"0d416a5e":m(B)}));let u=Je(),_=et();const n=Z(()=>{let v=_.filterFileByType("image");if(v.length===0)return[];let h=Xe([]),j=u.zfileConfig.gallery.column,T=0;v.forEach((I,z)=>{z%j===0&&(z!==0&&T++,h.value[T]=[]),h.value[T].push(I)});function H(I){return I[0].map((z,re)=>I.map(O=>O[re]))}return H(h.value)});let B=Z(()=>u.zfileConfig.gallery.rowSpacing+"px"),S=Z(()=>{let v=u.zfileConfig.gallery.column,h=u.zfileConfig.gallery.columnSpacing;return`calc(${100}% - ${(v-1)*h/v}px)`}),t=Z(()=>`${100/u.zfileConfig.gallery.column}%`);const{openImage:V}=tt(),fe=v=>{!u.zfileConfig.imagePreview.gallery||M.includes(v.name)&&V(v)};let M=Qe([]);const k=v=>{M.push(v.currentTarget.alt)};return(v,h)=>{const j=je,T=Tt;return x(),w("div",Gt,[m(n).length>0?(x(),w("div",Pt,[(x(!0),w(ye,null,we(m(n),(H,I)=>(x(),w("div",{class:"zfile-img-row",key:I},[(x(!0),w(ye,null,we(H,z=>(x(),w("div",{class:"zfile-img-col",onClick:re=>fe(z),style:Re({display:m(u).zfileConfig.gallery.showInfoMode==="hover"?"flex":"block"})},[z!=null&&z.url?(x(),w(ye,{key:0},[s("img",{class:K(["zfile-gallery-img lazyload",m(u).zfileConfig.gallery.roundedBorder?"zfile-gallery-img-rounded":""]),"data-sizes":"auto",onLoad:k,"data-src":z.url,loading:"lazy",alt:z.name},null,42,Dt),m(u).zfileConfig.gallery.showInfo&&m(u).zfileConfig.gallery.showInfoMode==="hover"?Le((x(),w("div",{key:0,class:K([m(u).zfileConfig.gallery.roundedBorder?"zfile-gallery-img-rounded":"","zfile-gallery-img-hover-info"])},[s("span",Ht,ne(z.name),1),s("span",Ot,ne(m(Ye).fileSizeFormat(z.size)),1)],2)),[[Ne,m(M).includes(z.name)]]):ce("",!0),m(u).zfileConfig.gallery.showInfo&&m(u).zfileConfig.gallery.showInfoMode==="bottom"?Le((x(),w("div",qt,[s("span",Ut,ne(z.name),1)],512)),[[Ne,m(M).includes(z.name)]]):ce("",!0)],64)):ce("",!0)],12,It))),256))]))),128))])):(x(),w("div",jt,[ve(T,{class:"h-full",description:"\u5F53\u524D\u6587\u4EF6\u5939\u65E0\u56FE\u7247"},{default:Se(()=>[ve(j,{type:"primary",onClick:h[0]||(h[0]=H=>m(_).imgMode=!1)},{default:Se(()=>[Jt]),_:1})]),_:1})]))])}}};var ga=at(Qt,[["__scopeId","data-v-2cc8acd8"]]);export{ga as default}; diff --git a/src/main/resources/static/assets/FileGallery.3101d9da.css b/src/main/resources/static/assets/FileGallery.3101d9da.css new file mode 100644 index 0000000..96fa62d --- /dev/null +++ b/src/main/resources/static/assets/FileGallery.3101d9da.css @@ -0,0 +1 @@ +.el-empty{--el-empty-padding: 40px 0;--el-empty-image-width: 160px;--el-empty-description-margin-top: 20px;--el-empty-bottom-margin-top: 20px;--el-empty-fill-color-0: var(--el-color-white);--el-empty-fill-color-1: #fcfcfd;--el-empty-fill-color-2: #f8f9fb;--el-empty-fill-color-3: #f7f8fc;--el-empty-fill-color-4: #eeeff3;--el-empty-fill-color-5: #edeef2;--el-empty-fill-color-6: #e9ebef;--el-empty-fill-color-7: #e5e7e9;--el-empty-fill-color-8: #e0e3e9;--el-empty-fill-color-9: #d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.zfile-gallery-body[data-v-859f8fa4]{height:100%;margin-top:10px}.zfile-gallery-body .zfile-img-body[data-v-859f8fa4]{display:flex;height:100%;flex-wrap:wrap}.zfile-gallery-body .zfile-img-row[data-v-859f8fa4]{width:var(--b4176886);margin:var(--e15eb188)}.zfile-gallery-body .zfile-img-row[data-v-859f8fa4]:first-child{margin-left:0}.zfile-gallery-body .zfile-img-row[data-v-859f8fa4]:last-child{margin-right:0}.zfile-gallery-body .zfile-img-col[data-v-859f8fa4]{position:relative;display:flex;overflow:hidden;text-align:center;margin-bottom:var(--fc3d97bc)}.zfile-gallery-body .zfile-img-col .zfile-gallery-img[data-v-859f8fa4]{border-width:1px}.zfile-gallery-body .zfile-img-col .zfile-gallery-img[data-v-859f8fa4]:not(.loaded){width:100%}.zfile-gallery-body .zfile-img-col .zfile-gallery-img[data-v-859f8fa4]:not(.lazyloaded){min-height:150px}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-rounded[data-v-859f8fa4]{border-radius:.5rem}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-text[data-v-859f8fa4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;opacity:.7}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-859f8fa4]{position:absolute;top:0px;left:0px;right:0px;display:flex;height:50%;justify-content:space-between}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-859f8fa4]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-859f8fa4]{padding:.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;background:linear-gradient(180deg,rgba(0,0,0,.6),transparent 120px)}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info .zfile-gallery-img-text[data-v-859f8fa4]:last-child{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;text-align:right}.zfile-gallery-body .zfile-img-col:hover .zfile-gallery-img-hover-info[data-v-859f8fa4]{opacity:1} diff --git a/src/main/resources/static/assets/FileGallery.6c944394.css b/src/main/resources/static/assets/FileGallery.6c944394.css deleted file mode 100644 index 3bfcb3c..0000000 --- a/src/main/resources/static/assets/FileGallery.6c944394.css +++ /dev/null @@ -1 +0,0 @@ -.el-empty{--el-empty-padding: 40px 0;--el-empty-image-width: 160px;--el-empty-description-margin-top: 20px;--el-empty-bottom-margin-top: 20px;--el-empty-fill-color-0: var(--el-color-white);--el-empty-fill-color-1: #fcfcfd;--el-empty-fill-color-2: #f8f9fb;--el-empty-fill-color-3: #f7f8fc;--el-empty-fill-color-4: #eeeff3;--el-empty-fill-color-5: #edeef2;--el-empty-fill-color-6: #e9ebef;--el-empty-fill-color-7: #e5e7e9;--el-empty-fill-color-8: #e0e3e9;--el-empty-fill-color-9: #d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.zfile-gallery-body[data-v-2cc8acd8]{height:100%;margin-top:10px}.zfile-gallery-body .zfile-img-body[data-v-2cc8acd8]{display:flex;height:100%;flex-wrap:wrap}.zfile-gallery-body .zfile-img-row[data-v-2cc8acd8]{width:var(--bca1dc28)}.zfile-gallery-body .zfile-img-col[data-v-2cc8acd8]{position:relative;display:flex;overflow:hidden;text-align:center;width:var(--75aa7da3);margin-bottom:var(--0d416a5e)}.zfile-gallery-body .zfile-img-col .zfile-gallery-img[data-v-2cc8acd8]{min-height:150px;border-width:1px}.zfile-gallery-body .zfile-img-col .zfile-gallery-img[data-v-2cc8acd8]:not(.loaded){width:100%}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-rounded[data-v-2cc8acd8]{border-radius:.5rem}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-text[data-v-2cc8acd8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;opacity:.7}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-2cc8acd8]{position:absolute;top:0px;left:0px;right:0px;display:flex;height:50%;justify-content:space-between}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-2cc8acd8]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info[data-v-2cc8acd8]{padding:.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;background:linear-gradient(180deg,rgba(0,0,0,.6),transparent 120px)}.zfile-gallery-body .zfile-img-col .zfile-gallery-img-hover-info .zfile-gallery-img-text[data-v-2cc8acd8]:last-child{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;text-align:right}.zfile-gallery-body .zfile-img-col:hover .zfile-gallery-img-hover-info[data-v-2cc8acd8]{opacity:1} diff --git a/src/main/resources/static/assets/FileGallery.a3ea12e6.js b/src/main/resources/static/assets/FileGallery.a3ea12e6.js new file mode 100644 index 0000000..e6d3a61 --- /dev/null +++ b/src/main/resources/static/assets/FileGallery.a3ea12e6.js @@ -0,0 +1 @@ +import{u as Ae,_ as Be,w as Ue,r as je}from"./base.4ef7f45b.js";/* empty css */import{d as Me,a as $,f as w,p as n,c as Q,g as me,h as ve,n as Z,u as m,i as Re,t as se,k as fe,$ as Je,W as Ke,F as ye,y as we,e as Se,J as Qe,bK as Ze,r as Xe,Q as Le,R as Ne}from"./index.43b3cbf5.js";import{c as Ye}from"./common.72335e7c.js";import{u as et,h as tt}from"./useFileUpload.72c71760.js";import{_ as at}from"./plugin-vue_export-helper.21dcd24c.js";import{u as it}from"./index.566ad052.js";import"./request.e2daed10.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./event.776e7e11.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./event.3ec63147.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";let lt=0;const rt=Me({name:"ImgEmpty",setup(){return{ns:Ae("empty"),id:++lt}}}),ot={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},nt=["id"],st=["stop-color"],ft=["stop-color"],ct=["id"],dt=["stop-color"],ut=["stop-color"],gt=["id"],pt={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},mt={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},yt={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},vt=["fill"],ht=["fill"],zt={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_t=["fill"],Ct=["fill"],bt=["fill"],kt=["fill"],Et=["fill"],xt={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},$t=["fill","xlink:href"],wt=["fill","mask"],St=["fill"];function Lt(f,u,_,s,B,S){return $(),w("svg",ot,[n("defs",null,[n("linearGradient",{id:`linearGradient-1-${f.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[n("stop",{"stop-color":`var(${f.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,st),n("stop",{"stop-color":`var(${f.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,ft)],8,nt),n("linearGradient",{id:`linearGradient-2-${f.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[n("stop",{"stop-color":`var(${f.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,dt),n("stop",{"stop-color":`var(${f.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,ut)],8,ct),n("rect",{id:`path-3-${f.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,gt)]),n("g",pt,[n("g",mt,[n("g",yt,[n("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${f.ns.cssVarBlockName("fill-color-3")})`},null,8,vt),n("polygon",{id:"Rectangle-Copy-14",fill:`var(${f.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,ht),n("g",zt,[n("polygon",{id:"Rectangle-Copy-10",fill:`var(${f.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_t),n("polygon",{id:"Rectangle-Copy-11",fill:`var(${f.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Ct),n("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${f.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,bt),n("polygon",{id:"Rectangle-Copy-13",fill:`var(${f.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,kt)]),n("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${f.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,Et),n("g",xt,[n("use",{id:"Mask",fill:`var(${f.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f.id}`},null,8,$t),n("polygon",{id:"Rectangle-Copy",fill:`var(${f.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,wt)]),n("polygon",{id:"Rectangle-Copy-18",fill:`var(${f.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,St)])])])])}var Nt=Be(rt,[["render",Lt],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const At={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},Bt=["src"],Mt={key:1},Rt={name:"ElEmpty"},Ft=Me({...Rt,props:At,setup(f){const u=f,{t:_}=it(),s=Ae("empty"),B=Q(()=>u.description||_("el.table.emptyText")),S=Q(()=>({width:u.imageSize?`${u.imageSize}px`:""}));return(t,V)=>($(),w("div",{class:Z(m(s).b())},[n("div",{class:Z(m(s).e("image")),style:Re(m(S))},[t.image?($(),w("img",{key:0,src:t.image,ondragstart:"return false"},null,8,Bt)):me(t.$slots,"image",{key:1},()=>[ve(Nt)])],6),n("div",{class:Z(m(s).e("description"))},[t.$slots.description?me(t.$slots,"description",{key:0}):($(),w("p",Mt,se(m(B)),1))],2),t.$slots.default?($(),w("div",{key:0,class:Z(m(s).e("bottom"))},[me(t.$slots,"default")],2)):fe("v-if",!0)],2))}});var Vt=Be(Ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Tt=Ue(Vt);var Wt={exports:{}};(function(f){(function(u,_){var s=_(u,u.document,Date);u.lazySizes=s,f.exports&&(f.exports=s)})(typeof window!="undefined"?window:{},function(_,s,B){var S,t;if(function(){var i,a={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};t=_.lazySizesConfig||_.lazysizesConfig||{};for(i in a)i in t||(t[i]=a[i])}(),!s||!s.getElementsByClassName)return{init:function(){},cfg:t,noSupport:!0};var V=s.documentElement,ce=_.HTMLPictureElement,M="addEventListener",k="getAttribute",v=_[M].bind(_),h=_.setTimeout,j=_.requestAnimationFrame||h,T=_.requestIdleCallback,H=/^picture$/i,I=["load","error","lazyincluded","_lazyloaded"],z={},le=Array.prototype.forEach,O=function(i,a){return z[a]||(z[a]=new RegExp("(\\s|^)"+a+"(\\s|$)")),z[a].test(i[k]("class")||"")&&z[a]},X=function(i,a){O(i,a)||i.setAttribute("class",(i[k]("class")||"").trim()+" "+a)},de=function(i,a){var r;(r=O(i,a))&&i.setAttribute("class",(i[k]("class")||"").replace(r," "))},ue=function(i,a,r){var y=r?M:"removeEventListener";r&&ue(i,a),I.forEach(function(p){i[y](p,a)})},Y=function(i,a,r,y,p){var o=s.createEvent("Event");return r||(r={}),r.instance=S,o.initEvent(a,!y,!p),o.detail=r,i.dispatchEvent(o),o},ge=function(i,a){var r;!ce&&(r=_.picturefill||t.pf)?(a&&a.src&&!i[k]("srcset")&&i.setAttribute("srcset",a.src),r({reevaluate:!0,elements:[i]})):a&&a.src&&(i.src=a.src)},ee=function(i,a){return(getComputedStyle(i,null)||{})[a]},he=function(i,a,r){for(r=r||i.offsetWidth;r49?function(){T(o,{timeout:p}),p!==t.ricTimeout&&(p=t.ricTimeout)}:re(function(){h(o)},!0);return function(c){var g;(c=c===!0)&&(p=33),!a&&(a=!0,g=y-(B.now()-r),g<0&&(g=0),c||g<9?C():h(C,g))}},ze=function(i){var a,r,y=99,p=function(){a=null,i()},o=function(){var C=B.now()-r;C0,E&&ee(b,"overflow")!="visible"&&(d=b.getBoundingClientRect(),E=L>d.left&&gd.top-1&&c500&&V.clientWidth>500?500:370:t.expand,S._defEx=G,U=G*t.expFactor,K=t.hFac,q=null,ae2&&y>2&&!s.hidden?(ae=U,J=0):y>1&&J>1&&R<6?ae=G:ae=Pe),D!==x&&(o=innerWidth+x*K,C=innerHeight+x,W=x*-1,D=x),d=A[l].getBoundingClientRect(),(F=d.bottom)>=W&&(c=d.top)<=C&&(L=d.right)>=W*K&&(g=d.left)<=o&&(F||L||g||c)&&(t.loadHidden||be(A[l]))&&(a&&R<3&&!P&&(y<3||J<4)||Ge(A[l],x))){if(ie(A[l]),E=!0,R>9)break}else!E&&a&&!b&&R<4&&J<4&&y>2&&(i[0]||t.preloadAfterLoad)&&(i[0]||!P&&(F||L||g||c||A[l][k](t.sizesAttr)!="auto"))&&(b=i[0]||A[l])}b&&!E&&ie(b)}},N=Fe(ke),Ee=function(e){var l=e.target;if(l._lazyCache){delete l._lazyCache;return}Ce(e),X(l,t.loadedClass),de(l,t.loadingClass),ue(l,xe),Y(l,"lazyloaded")},Ie=re(Ee),xe=function(e){Ie({target:e.target})},De=function(e,l){var d=e.getAttribute("data-load-mode")||t.iframeLoadMode;d==0?e.contentWindow.location.replace(l):d==1&&(e.src=l)},He=function(e){var l,d=e[k](t.srcsetAttr);(l=t.customMedia[e[k]("data-media")||e[k]("media")])&&e.setAttribute("media",l),d&&e.setAttribute("srcset",d)},Oe=re(function(e,l,d,b,E){var x,W,P,D,G,U;(G=Y(e,"lazybeforeunveil",l)).defaultPrevented||(b&&(d?X(e,t.autosizesClass):e.setAttribute("sizes",b)),W=e[k](t.srcsetAttr),x=e[k](t.srcAttr),E&&(P=e.parentNode,D=P&&H.test(P.nodeName||"")),U=l.firesLoad||"src"in e&&(W||x||D),G={target:e},X(e,t.loadingClass),U&&(clearTimeout(r),r=h(Ce,2500),ue(e,xe,!0)),D&&le.call(P.getElementsByTagName("source"),He),W?e.setAttribute("srcset",W):x&&!D&&(Te.test(e.nodeName)?De(e,x):e.src=x),E&&(W||D)&&ge(e,{src:x})),e._lazyRace&&delete e._lazyRace,de(e,t.lazyClass),te(function(){var K=e.complete&&e.naturalWidth>1;(!U||K)&&(K&&X(e,t.fastLoadedClass),Ee(G),e._lazyCache=!0,h(function(){"_lazyCache"in e&&delete e._lazyCache},9)),e.loading=="lazy"&&R--},!0)}),ie=function(e){if(!e._lazyRace){var l,d=Ve.test(e.nodeName),b=d&&(e[k](t.sizesAttr)||e[k]("sizes")),E=b=="auto";(E||!a)&&d&&(e[k]("src")||e.srcset)&&!e.complete&&!O(e,t.errorClass)&&O(e,t.lazyClass)||(l=Y(e,"lazyunveilread").detail,E&&pe.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,R++,Oe(e,l,E,b,d))}},qe=ze(function(){t.loadMode=3,N()}),$e=function(){t.loadMode==3&&(t.loadMode=2),qe()},ne=function(){if(!a){if(B.now()-p<999){h(ne,999);return}a=!0,t.loadMode=3,N(),v("scroll",$e,!0)}};return{_:function(){p=B.now(),S.elements=s.getElementsByClassName(t.lazyClass),i=s.getElementsByClassName(t.lazyClass+" "+t.preloadClass),v("scroll",N,!0),v("resize",N,!0),v("pageshow",function(e){if(e.persisted){var l=s.querySelectorAll("."+t.loadingClass);l.length&&l.forEach&&j(function(){l.forEach(function(d){d.complete&&ie(d)})})}}),_.MutationObserver?new MutationObserver(N).observe(V,{childList:!0,subtree:!0,attributes:!0}):(V[M]("DOMNodeInserted",N,!0),V[M]("DOMAttrModified",N,!0),setInterval(N,999)),v("hashchange",N,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){s[M](e,N,!0)}),/d$|^c/.test(s.readyState)?ne():(v("load",ne),s[M]("DOMContentLoaded",N),h(ne,2e4)),S.elements.length?(ke(),te._lsFlush()):N()},checkElems:N,unveil:ie,_aLSL:$e}}(),pe=function(){var i,a=re(function(o,C,c,g){var L,F,q;if(o._lazysizesWidth=g,g+="px",o.setAttribute("sizes",g),H.test(C.nodeName||""))for(L=C.getElementsByTagName("source"),F=0,q=L.length;F({b4176886:m(t),e15eb188:m(S),fc3d97bc:m(B)}));let u=Je(),_=et();const s=Q(()=>{let v=_.filterFileByType("image");if(v.length===0)return[];let h=Xe([]),j=u.zfileConfig.gallery.column,T=0;v.forEach((I,z)=>{z%j===0&&(z!==0&&T++,h.value[T]=[]),h.value[T].push(I)});function H(I){return I[0].map((z,le)=>I.map(O=>O[le]))}return H(h.value)});let B=Q(()=>u.zfileConfig.gallery.rowSpacing+"px"),S=Q(()=>`0 ${u.zfileConfig.gallery.columnSpacing/2}px`),t=Q(()=>{let v=u.zfileConfig.gallery.column,h=u.zfileConfig.gallery.columnSpacing;return`calc(calc(100% / ${u.zfileConfig.gallery.column}) - calc(${(v-1)*h}px / ${v}))`});const{openImage:V}=tt(),ce=v=>{!u.zfileConfig.imagePreview.gallery||M.includes(v.name)&&V(v)};let M=Ke([]);const k=v=>{M.push(v.currentTarget.alt)};return(v,h)=>{const j=je,T=Tt;return $(),w("div",Pt,[m(s).length>0?($(),w("div",Gt,[($(!0),w(ye,null,we(m(s),(H,I)=>($(),w("div",{class:"zfile-img-row",key:I},[($(!0),w(ye,null,we(H,z=>($(),w("div",{class:"zfile-img-col",onClick:le=>ce(z),style:Re({display:m(u).zfileConfig.gallery.showInfoMode==="hover"?"flex":"block"})},[z!=null&&z.url?($(),w(ye,{key:0},[n("img",{class:Z(["zfile-gallery-img lazyload",m(u).zfileConfig.gallery.roundedBorder?"zfile-gallery-img-rounded":""]),"data-sizes":"auto",onLoad:k,"data-src":z.url,loading:"lazy",alt:z.name},null,42,Dt),m(u).zfileConfig.gallery.showInfo&&m(u).zfileConfig.gallery.showInfoMode==="hover"?Le(($(),w("div",{key:0,class:Z([m(u).zfileConfig.gallery.roundedBorder?"zfile-gallery-img-rounded":"","zfile-gallery-img-hover-info"])},[n("span",Ht,se(z.name),1),n("span",Ot,se(m(Ye).fileSizeFormat(z.size)),1)],2)),[[Ne,m(M).includes(z.name)]]):fe("",!0),m(u).zfileConfig.gallery.showInfo&&m(u).zfileConfig.gallery.showInfoMode==="bottom"?Le(($(),w("div",qt,[n("span",Ut,se(z.name),1)],512)),[[Ne,m(M).includes(z.name)]]):fe("",!0)],64)):fe("",!0)],12,It))),256))]))),128))])):($(),w("div",jt,[ve(T,{class:"h-full",description:"\u5F53\u524D\u6587\u4EF6\u5939\u65E0\u56FE\u7247"},{default:Se(()=>[ve(j,{type:"primary",onClick:h[0]||(h[0]=H=>m(_).imgMode=!1)},{default:Se(()=>[Jt]),_:1})]),_:1})]))])}}};var pa=at(Kt,[["__scopeId","data-v-859f8fa4"]]);export{pa as default}; diff --git a/src/main/resources/static/assets/MarkdownViewer.d39dfde9.js b/src/main/resources/static/assets/MarkdownViewer.ddb249d6.js similarity index 99% rename from src/main/resources/static/assets/MarkdownViewer.d39dfde9.js rename to src/main/resources/static/assets/MarkdownViewer.ddb249d6.js index 1f824b2..d527cc3 100644 --- a/src/main/resources/static/assets/MarkdownViewer.d39dfde9.js +++ b/src/main/resources/static/assets/MarkdownViewer.ddb249d6.js @@ -1,4 +1,4 @@ -import{g as J,a as K}from"./common.c93e08d7.js";import{_ as Y}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ee,o as te,c as ne,a as oe,f as re,p as ie,u as ae}from"./index.552205f5.js";import"./request.3708b2c4.js";import"./base.d698891e.js";function P(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let A=P();function le(a){A=a}const se=/[&<>"']/,de=/[&<>"']/g,ce=/[<>"']|&(?!#?\w+;)/,pe=/[<>"']|&(?!#?\w+;)/g,he={"&":"&","<":"<",">":">",'"':""","'":"'"},j=a=>he[a];function b(a,e){if(e){if(se.test(a))return a.replace(de,j)}else if(ce.test(a))return a.replace(pe,j);return a}const ge=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function V(a){return a.replace(ge,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const me=/(^|[^\[])\^/g;function u(a,e){a=typeof a=="string"?a:a.source,e=e||"";const n={replace:(t,o)=>(o=o.source||o,o=o.replace(me,"$1"),a=a.replace(t,o),n),getRegex:()=>new RegExp(a,e)};return n}const ue=/[^\w:]/g,fe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(a,e,n){if(a){let t;try{t=decodeURIComponent(V(n)).replace(ue,"").toLowerCase()}catch{return null}if(t.indexOf("javascript:")===0||t.indexOf("vbscript:")===0||t.indexOf("data:")===0)return null}e&&!fe.test(n)&&(n=we(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},ke=/^[^:]+:\/*[^/]*$/,be=/^([^:]+:)[\s\S]*$/,ye=/^([^:]+:\/*[^/]*)[\s\S]*$/;function we(a,e){L[" "+a]||(ke.test(a)?L[" "+a]=a+"/":L[" "+a]=B(a,"/",!0)),a=L[" "+a];const n=a.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:a.replace(be,"$1")+e:e.charAt(0)==="/"?n?e:a.replace(ye,"$1")+e:a+e}const q={exec:function(){}};function v(a){let e=1,n,t;for(;e{let d=!1,g=i;for(;--g>=0&&l[g]==="\\";)d=!d;return d?"|":" |"}),t=n.split(/ \|/);let o=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),t.length>e)t.splice(e);else for(;t.length1;)e&1&&(n+=a),e>>=1,a+=a;return n+a}function N(a,e,n,t){const o=e.href,r=e.title?b(e.title):null,i=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){t.state.inLink=!0;const l={type:"link",raw:n,href:o,title:r,text:i,tokens:t.inlineTokens(i,[])};return t.state.inLink=!1,l}return{type:"image",raw:n,href:o,title:r,text:b(i)}}function ve(a,e){const n=a.match(/^(\s+)(?:```)/);if(n===null)return e;const t=n[1];return e.split(` +import{g as J,a as K}from"./common.e7f4d4d2.js";import{_ as Y}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ee,o as te,c as ne,a as oe,f as re,p as ie,u as ae}from"./index.43b3cbf5.js";import"./request.e2daed10.js";import"./base.4ef7f45b.js";function P(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let A=P();function le(a){A=a}const se=/[&<>"']/,de=/[&<>"']/g,ce=/[<>"']|&(?!#?\w+;)/,pe=/[<>"']|&(?!#?\w+;)/g,he={"&":"&","<":"<",">":">",'"':""","'":"'"},j=a=>he[a];function b(a,e){if(e){if(se.test(a))return a.replace(de,j)}else if(ce.test(a))return a.replace(pe,j);return a}const ge=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function V(a){return a.replace(ge,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const me=/(^|[^\[])\^/g;function u(a,e){a=typeof a=="string"?a:a.source,e=e||"";const n={replace:(t,o)=>(o=o.source||o,o=o.replace(me,"$1"),a=a.replace(t,o),n),getRegex:()=>new RegExp(a,e)};return n}const ue=/[^\w:]/g,fe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(a,e,n){if(a){let t;try{t=decodeURIComponent(V(n)).replace(ue,"").toLowerCase()}catch{return null}if(t.indexOf("javascript:")===0||t.indexOf("vbscript:")===0||t.indexOf("data:")===0)return null}e&&!fe.test(n)&&(n=we(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},ke=/^[^:]+:\/*[^/]*$/,be=/^([^:]+:)[\s\S]*$/,ye=/^([^:]+:\/*[^/]*)[\s\S]*$/;function we(a,e){L[" "+a]||(ke.test(a)?L[" "+a]=a+"/":L[" "+a]=B(a,"/",!0)),a=L[" "+a];const n=a.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:a.replace(be,"$1")+e:e.charAt(0)==="/"?n?e:a.replace(ye,"$1")+e:a+e}const q={exec:function(){}};function v(a){let e=1,n,t;for(;e{let d=!1,g=i;for(;--g>=0&&l[g]==="\\";)d=!d;return d?"|":" |"}),t=n.split(/ \|/);let o=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),t.length>e)t.splice(e);else for(;t.length1;)e&1&&(n+=a),e>>=1,a+=a;return n+a}function N(a,e,n,t){const o=e.href,r=e.title?b(e.title):null,i=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){t.state.inLink=!0;const l={type:"link",raw:n,href:o,title:r,text:i,tokens:t.inlineTokens(i,[])};return t.state.inLink=!1,l}return{type:"image",raw:n,href:o,title:r,text:b(i)}}function ve(a,e){const n=a.match(/^(\s+)(?:```)/);if(n===null)return e;const t=n[1];return e.split(` `).map(o=>{const r=o.match(/^\s+/);if(r===null)return o;const[i]=r;return i.length>=t.length?o.slice(t.length):o}).join(` `)}class U{constructor(e){this.options=e||A}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:B(t,` `)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const t=n[0],o=ve(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim():n[2],text:o}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let t=n[2].trim();if(/#$/.test(t)){const r=B(t,"#");(this.options.pedantic||!r||/ $/.test(r))&&(t=r.trim())}const o={type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const t=n[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:n[0],tokens:this.lexer.blockTokens(t,[]),text:t}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t,o,r,i,l,d,g,m,w,f,p,I,x=n[1].trim();const R=x.length>1,k={type:"list",raw:"",ordered:R,start:R?+x.slice(0,-1):"",loose:!1,items:[]};x=R?`\\d{1,9}\\${x.slice(-1)}`:`\\${x}`,this.options.pedantic&&(x=R?x:"[*+-]");const y=new RegExp(`^( {0,3}${x})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(I=!1,!(!(n=y.exec(e))||this.rules.block.hr.test(e)));){if(t=n[0],e=e.substring(t.length),m=n[2].split(` diff --git a/src/main/resources/static/assets/PdfViewer.7e03e0a4.js b/src/main/resources/static/assets/PdfViewer.dc22e5ba.js similarity index 99% rename from src/main/resources/static/assets/PdfViewer.7e03e0a4.js rename to src/main/resources/static/assets/PdfViewer.dc22e5ba.js index 27d761c..48359ee 100644 --- a/src/main/resources/static/assets/PdfViewer.7e03e0a4.js +++ b/src/main/resources/static/assets/PdfViewer.dc22e5ba.js @@ -1,4 +1,4 @@ -import{K as getDefaultExportFromCjs,r as ref,c as computed,w as watch,a as openBlock,f as createElementBlock,p as createBaseVNode,u as unref,t as toDisplayString,S as isRef,J as createTextVNode,n as normalizeClass,Q as withDirectives,ai as vModelCheckbox,h as createVNode,U as pushScopeId,V as popScopeId,bJ as useCssVars}from"./index.552205f5.js";import{r as require$$0}from"./vue.runtime.esm-bundler.39244c60.js";import{n as useMagicKeys}from"./request.3708b2c4.js";import{_ as _export_sfc}from"./plugin-vue_export-helper.21dcd24c.js";import"./base.d698891e.js";var vue3PdfEmbed={exports:{}};(function(module,exports){(function(L,_){module.exports=_(require$$0)})(self,function(__WEBPACK_EXTERNAL_MODULE__103__){return(()=>{var __webpack_modules__={194:(L,_,h)=>{h.r(_),h.d(_,{default:()=>T});var f=h(645),E=h.n(f)()(function(P){return P[1]});E.push([L.id,".textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}.textLayer span,.textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.textLayer .highlight{position:relative;margin:-1px;padding:1px;background-color:rgba(180, 0, 170, 1);border-radius:4px}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:rgba(0, 100, 0, 1)}.textLayer ::-moz-selection{background:rgba(0, 0, 255, 1)}.textLayer ::selection{background:rgba(0, 0, 255, 1)}.textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}.annotationLayer section{position:absolute;text-align:initial}.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:rgba(255, 255, 0, 1);box-shadow:0 2px 10px rgba(255, 255, 0, 1)}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:rgba(255, 255, 153, 1);box-shadow:0 2px 5px rgba(136, 136, 136, 1);border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}.annotationLayer .popup>*{font-size:9px}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popup span{display:inline-block;margin-left:5px}.annotationLayer .popup p{border-top:1px solid rgba(51, 51, 51, 1);margin-top:2px;padding-top:2px}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.vue-pdf-embed>div{position:relative}.vue-pdf-embed canvas{display:block}",""]);const T=E},645:L=>{L.exports=function(_){var h=[];return h.toString=function(){return this.map(function(f){var E=_(f);return f[2]?"@media ".concat(f[2]," {").concat(E,"}"):E}).join("")},h.i=function(f,E,T){typeof f=="string"&&(f=[[null,f,""]]);var P={};if(T)for(var N=0;N{var __webpack_modules__=[,(L,_,h)=>{function f(i){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},f(i)}Object.defineProperty(_,"__esModule",{value:!0}),_.addLinkAttributes=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.url,A=o.target,I=o.rel,O=o.enabled,j=O===void 0||O;(0,P.assert)(c&&typeof c=="string",'addLinkAttributes: A valid "url" parameter must provided.');var $=(0,P.removeNullCharacters)(c);j?i.href=i.title=$:(i.href="",i.title="Disabled: ".concat($),i.onclick=function(){return!1});var Y="";switch(A){case t.NONE:break;case t.SELF:Y="_self";break;case t.BLANK:Y="_blank";break;case t.PARENT:Y="_parent";break;case t.TOP:Y="_top"}i.target=Y,i.rel=typeof I=="string"?I:p},_.deprecated=function(i){console.log("Deprecated API usage: "+i)},_.getFilenameFromUrl=function(i){var o=i.indexOf("#"),c=i.indexOf("?"),A=Math.min(o>0?o:i.length,c>0?c:i.length);return i.substring(i.lastIndexOf("/",A)+1,A)},_.getPdfFilenameFromUrl=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof i!="string")return o;if(s(i))return(0,P.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),o;var c=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,A=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,I=c.exec(i),O=A.exec(I[1])||A.exec(I[2])||A.exec(I[3]);if(O&&(O=O[0]).includes("%"))try{O=A.exec(decodeURIComponent(O))[0]}catch{}return O||o},_.isDataScheme=s,_.isFetchSupported=S,_.isPdfFile=function(i){return typeof i=="string"&&/\.pdf$/i.test(i)},_.isValidFetchUrl=k,_.loadScript=function(i){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return new Promise(function(c,A){var I=document.createElement("script");I.src=i,I.onload=function(O){o&&I.remove(),c(O)},I.onerror=function(){A(new Error("Cannot load script at: ".concat(I.src)))},(document.head||document.documentElement).appendChild(I)})},_.StatTimer=_.RenderingCancelledException=_.PDFDateString=_.PageViewport=_.LinkTarget=_.DOMSVGFactory=_.DOMCMapReaderFactory=_.DOMCanvasFactory=_.DEFAULT_LINK_REL=_.BaseCMapReaderFactory=_.BaseCanvasFactory=void 0;var E,T=(E=h(2))&&E.__esModule?E:{default:E},P=h(4);function N(i,o){var c=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!c){if(Array.isArray(i)||(c=function(Y,W){if(Y){if(typeof Y=="string")return R(Y,W);var X=Object.prototype.toString.call(Y).slice(8,-1);return X==="Object"&&Y.constructor&&(X=Y.constructor.name),X==="Map"||X==="Set"?Array.from(Y):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?R(Y,W):void 0}}(i))||o&&i&&typeof i.length=="number"){c&&(i=c);var A=0,I=function(){};return{s:I,n:function(){return A>=i.length?{done:!0}:{done:!1,value:i[A++]}},e:function(Y){throw Y},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{K as getDefaultExportFromCjs,r as ref,c as computed,w as watch,a as openBlock,f as createElementBlock,p as createBaseVNode,u as unref,t as toDisplayString,S as isRef,J as createTextVNode,n as normalizeClass,Q as withDirectives,ai as vModelCheckbox,h as createVNode,U as pushScopeId,V as popScopeId,bK as useCssVars}from"./index.43b3cbf5.js";import{r as require$$0}from"./vue.runtime.esm-bundler.196f46c4.js";import{n as useMagicKeys}from"./request.e2daed10.js";import{_ as _export_sfc}from"./plugin-vue_export-helper.21dcd24c.js";import"./base.4ef7f45b.js";var vue3PdfEmbed={exports:{}};(function(module,exports){(function(L,_){module.exports=_(require$$0)})(self,function(__WEBPACK_EXTERNAL_MODULE__103__){return(()=>{var __webpack_modules__={194:(L,_,h)=>{h.r(_),h.d(_,{default:()=>T});var f=h(645),E=h.n(f)()(function(P){return P[1]});E.push([L.id,".textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}.textLayer span,.textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.textLayer .highlight{position:relative;margin:-1px;padding:1px;background-color:rgba(180, 0, 170, 1);border-radius:4px}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:rgba(0, 100, 0, 1)}.textLayer ::-moz-selection{background:rgba(0, 0, 255, 1)}.textLayer ::selection{background:rgba(0, 0, 255, 1)}.textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}.annotationLayer section{position:absolute;text-align:initial}.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:rgba(255, 255, 0, 1);box-shadow:0 2px 10px rgba(255, 255, 0, 1)}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:rgba(255, 255, 153, 1);box-shadow:0 2px 5px rgba(136, 136, 136, 1);border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}.annotationLayer .popup>*{font-size:9px}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popup span{display:inline-block;margin-left:5px}.annotationLayer .popup p{border-top:1px solid rgba(51, 51, 51, 1);margin-top:2px;padding-top:2px}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.vue-pdf-embed>div{position:relative}.vue-pdf-embed canvas{display:block}",""]);const T=E},645:L=>{L.exports=function(_){var h=[];return h.toString=function(){return this.map(function(f){var E=_(f);return f[2]?"@media ".concat(f[2]," {").concat(E,"}"):E}).join("")},h.i=function(f,E,T){typeof f=="string"&&(f=[[null,f,""]]);var P={};if(T)for(var N=0;N{var __webpack_modules__=[,(L,_,h)=>{function f(i){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},f(i)}Object.defineProperty(_,"__esModule",{value:!0}),_.addLinkAttributes=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.url,A=o.target,I=o.rel,O=o.enabled,j=O===void 0||O;(0,P.assert)(c&&typeof c=="string",'addLinkAttributes: A valid "url" parameter must provided.');var $=(0,P.removeNullCharacters)(c);j?i.href=i.title=$:(i.href="",i.title="Disabled: ".concat($),i.onclick=function(){return!1});var Y="";switch(A){case t.NONE:break;case t.SELF:Y="_self";break;case t.BLANK:Y="_blank";break;case t.PARENT:Y="_parent";break;case t.TOP:Y="_top"}i.target=Y,i.rel=typeof I=="string"?I:p},_.deprecated=function(i){console.log("Deprecated API usage: "+i)},_.getFilenameFromUrl=function(i){var o=i.indexOf("#"),c=i.indexOf("?"),A=Math.min(o>0?o:i.length,c>0?c:i.length);return i.substring(i.lastIndexOf("/",A)+1,A)},_.getPdfFilenameFromUrl=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof i!="string")return o;if(s(i))return(0,P.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),o;var c=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,A=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,I=c.exec(i),O=A.exec(I[1])||A.exec(I[2])||A.exec(I[3]);if(O&&(O=O[0]).includes("%"))try{O=A.exec(decodeURIComponent(O))[0]}catch{}return O||o},_.isDataScheme=s,_.isFetchSupported=S,_.isPdfFile=function(i){return typeof i=="string"&&/\.pdf$/i.test(i)},_.isValidFetchUrl=k,_.loadScript=function(i){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return new Promise(function(c,A){var I=document.createElement("script");I.src=i,I.onload=function(O){o&&I.remove(),c(O)},I.onerror=function(){A(new Error("Cannot load script at: ".concat(I.src)))},(document.head||document.documentElement).appendChild(I)})},_.StatTimer=_.RenderingCancelledException=_.PDFDateString=_.PageViewport=_.LinkTarget=_.DOMSVGFactory=_.DOMCMapReaderFactory=_.DOMCanvasFactory=_.DEFAULT_LINK_REL=_.BaseCMapReaderFactory=_.BaseCanvasFactory=void 0;var E,T=(E=h(2))&&E.__esModule?E:{default:E},P=h(4);function N(i,o){var c=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!c){if(Array.isArray(i)||(c=function(Y,W){if(Y){if(typeof Y=="string")return R(Y,W);var X=Object.prototype.toString.call(Y).slice(8,-1);return X==="Object"&&Y.constructor&&(X=Y.constructor.name),X==="Map"||X==="Set"?Array.from(Y):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?R(Y,W):void 0}}(i))||o&&i&&typeof i.length=="number"){c&&(i=c);var A=0,I=function(){};return{s:I,n:function(){return A>=i.length?{done:!0}:{done:!1,value:i[A++]}},e:function(Y){throw Y},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O,j=!0,$=!1;return{s:function(){c=c.call(i)},n:function(){var Y=c.next();return j=Y.done,Y},e:function(Y){$=!0,O=Y},f:function(){try{j||c.return==null||c.return()}finally{if($)throw O}}}}function R(i,o){(o==null||o>i.length)&&(o=i.length);for(var c=0,A=new Array(o);c0&&arguments[0]!==void 0?arguments[0]:{},O=I.ownerDocument,j=O===void 0?globalThis.document:O;return G(this,c),(A=o.call(this))._document=j,A}return F(c,[{key:"create",value:function(A,I){if(A<=0||I<=0)throw new Error("Invalid canvas size");var O=this._document.createElement("canvas"),j=O.getContext("2d");return O.width=A,O.height=I,{canvas:O,context:j}}}]),c}(d);_.DOMCanvasFactory=y;var m=function(){function i(c){var A=c.baseUrl,I=A===void 0?null:A,O=c.isCompressed,j=O!==void 0&&O;G(this,i),this.constructor===i&&(0,P.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=I,this.isCompressed=j}var o;return F(i,[{key:"fetch",value:(o=M(T.default.mark(function c(A){var I,O,j,$=this;return T.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(I=A.name,this.baseUrl){Y.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(I){Y.next=5;break}throw new Error("CMap name must be specified.");case 5:return O=this.baseUrl+I+(this.isCompressed?".bcmap":""),j=this.isCompressed?P.CMapCompressionType.BINARY:P.CMapCompressionType.NONE,Y.abrupt("return",this._fetchData(O,j).catch(function(W){throw new Error("Unable to load ".concat($.isCompressed?"binary ":"","CMap at: ").concat(O))}));case 8:case"end":return Y.stop()}},c,this)})),function(c){return o.apply(this,arguments)})},{key:"_fetchData",value:function(c,A){(0,P.unreachable)("Abstract method `_fetchData` called.")}}]),i}();_.BaseCMapReaderFactory=m;var u=function(i){D(c,i);var o=U(c);function c(){return G(this,c),o.apply(this,arguments)}return F(c,[{key:"_fetchData",value:function(A,I){var O=this;return S()&&k(A,document.baseURI)?fetch(A).then(function(){var j=M(T.default.mark(function $(Y){var W;return T.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(Y.ok){X.next=2;break}throw new Error(Y.statusText);case 2:if(!O.isCompressed){X.next=10;break}return X.t0=Uint8Array,X.next=6,Y.arrayBuffer();case 6:X.t1=X.sent,W=new X.t0(X.t1),X.next=15;break;case 10:return X.t2=P.stringToBytes,X.next=13,Y.text();case 13:X.t3=X.sent,W=(0,X.t2)(X.t3);case 15:return X.abrupt("return",{cMapData:W,compressionType:I});case 16:case"end":return X.stop()}},$)}));return function($){return j.apply(this,arguments)}}()):new Promise(function(j,$){var Y=new XMLHttpRequest;Y.open("GET",A,!0),O.isCompressed&&(Y.responseType="arraybuffer"),Y.onreadystatechange=function(){if(Y.readyState===XMLHttpRequest.DONE){var W;if((Y.status===200||Y.status===0)&&(O.isCompressed&&Y.response?W=new Uint8Array(Y.response):!O.isCompressed&&Y.responseText&&(W=(0,P.stringToBytes)(Y.responseText)),W))return void j({cMapData:W,compressionType:I});$(new Error(Y.statusText))}},Y.send(null)})}}]),c}(m);_.DOMCMapReaderFactory=u;var l=function(){function i(){G(this,i)}return F(i,[{key:"create",value:function(o,c){(0,P.assert)(o>0&&c>0,"Invalid SVG dimensions");var A=document.createElementNS(v,"svg:svg");return A.setAttribute("version","1.1"),A.setAttribute("width",o+"px"),A.setAttribute("height",c+"px"),A.setAttribute("preserveAspectRatio","none"),A.setAttribute("viewBox","0 0 "+o+" "+c),A}},{key:"createElement",value:function(o){return(0,P.assert)(typeof o=="string","Invalid SVG element type"),document.createElementNS(v,o)}}]),i}();_.DOMSVGFactory=l;var a=function(){function i(o){var c=o.viewBox,A=o.scale,I=o.rotation,O=o.offsetX,j=O===void 0?0:O,$=o.offsetY,Y=$===void 0?0:$,W=o.dontFlip,X=W!==void 0&&W;G(this,i),this.viewBox=c,this.scale=A,this.rotation=I,this.offsetX=j,this.offsetY=Y;var ee,re,ae,Z,J,V,H,Q,te=(c[2]+c[0])/2,ne=(c[3]+c[1])/2;switch((I%=360)<0&&(I+=360),I){case 180:ee=-1,re=0,ae=0,Z=1;break;case 90:ee=0,re=1,ae=1,Z=0;break;case 270:ee=0,re=-1,ae=-1,Z=0;break;case 0:ee=1,re=0,ae=0,Z=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}X&&(ae=-ae,Z=-Z),ee===0?(J=Math.abs(ne-c[1])*A+j,V=Math.abs(te-c[0])*A+Y,H=Math.abs(c[3]-c[1])*A,Q=Math.abs(c[2]-c[0])*A):(J=Math.abs(te-c[0])*A+j,V=Math.abs(ne-c[1])*A+Y,H=Math.abs(c[2]-c[0])*A,Q=Math.abs(c[3]-c[1])*A),this.transform=[ee*A,re*A,ae*A,Z*A,J-ee*A*te-ae*A*ne,V-re*A*te-Z*A*ne],this.width=H,this.height=Q}return F(i,[{key:"clone",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.scale,A=c===void 0?this.scale:c,I=o.rotation,O=I===void 0?this.rotation:I,j=o.offsetX,$=j===void 0?this.offsetX:j,Y=o.offsetY,W=Y===void 0?this.offsetY:Y,X=o.dontFlip,ee=X!==void 0&&X;return new i({viewBox:this.viewBox.slice(),scale:A,rotation:O,offsetX:$,offsetY:W,dontFlip:ee})}},{key:"convertToViewportPoint",value:function(o,c){return P.Util.applyTransform([o,c],this.transform)}},{key:"convertToViewportRectangle",value:function(o){var c=P.Util.applyTransform([o[0],o[1]],this.transform),A=P.Util.applyTransform([o[2],o[3]],this.transform);return[c[0],c[1],A[0],A[1]]}},{key:"convertToPdfPoint",value:function(o,c){return P.Util.applyInverseTransform([o,c],this.transform)}}]),i}();_.PageViewport=a;var e=function(i){D(c,i);var o=U(c);function c(A,I){var O;return G(this,c),(O=o.call(this,A)).type=I,O}return c}(P.BaseException);_.RenderingCancelledException=e;var t={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function s(i){for(var o=i.length,c=0;cA&&(A=O.length)}}catch(X){I.e(X)}finally{I.f()}var j,$=N(this.times);try{for($.s();!(j=$.n()).done;){var Y=j.value,W=Y.end-Y.start;c.push("".concat(Y.name.padEnd(A)," ").concat(W,`ms `))}}catch(X){$.e(X)}finally{$.f()}return c.join("")}}]),i}();function S(){return typeof fetch!="undefined"&&typeof Response!="undefined"&&"body"in Response.prototype&&typeof ReadableStream!="undefined"}function k(i,o){try{var c=(o?new URL(i,o):new URL(i)).protocol;return c==="http:"||c==="https:"}catch{return!1}}_.StatTimer=g;var b=function(){function i(){G(this,i)}return F(i,null,[{key:"toDateObject",value:function(o){if(!o||!(0,P.isString)(o))return null;r||(r=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var c=r.exec(o);if(!c)return null;var A=parseInt(c[1],10),I=parseInt(c[2],10);I=I>=1&&I<=12?I-1:0;var O=parseInt(c[3],10);O=O>=1&&O<=31?O:1;var j=parseInt(c[4],10);j=j>=0&&j<=23?j:0;var $=parseInt(c[5],10);$=$>=0&&$<=59?$:0;var Y=parseInt(c[6],10);Y=Y>=0&&Y<=59?Y:0;var W=c[7]||"Z",X=parseInt(c[8],10);X=X>=0&&X<=23?X:0;var ee=parseInt(c[9],10)||0;return ee=ee>=0&&ee<=59?ee:0,W==="-"?(j+=X,$+=ee):W==="+"&&(j-=X,$-=ee),new Date(Date.UTC(A,I,O,j,$,Y))}}]),i}();_.PDFDateString=b},(L,_,h)=>{L.exports=h(3)},(L,_,h)=>{function f(T){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},f(T)}var E=function(T){var P,N=Object.prototype,R=N.hasOwnProperty,x=typeof Symbol=="function"?Symbol:{},M=x.iterator||"@@iterator",D=x.asyncIterator||"@@asyncIterator",C=x.toStringTag||"@@toStringTag";function U(o,c,A){return Object.defineProperty(o,c,{value:A,enumerable:!0,configurable:!0,writable:!0}),o[c]}try{U({},"")}catch{U=function(c,A,I){return c[A]=I}}function K(o,c,A,I){var O=c&&c.prototype instanceof d?c:d,j=Object.create(O.prototype),$=new k(I||[]);return j._invoke=function(Y,W,X){var ee=G;return function(re,ae){if(ee===F)throw new Error("Generator is already running");if(ee===p){if(re==="throw")throw ae;return i()}for(X.method=re,X.arg=ae;;){var Z=X.delegate;if(Z){var J=r(Z,X);if(J){if(J===v)continue;return J}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(ee===G)throw ee=p,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);ee=F;var V=q(Y,W,X);if(V.type==="normal"){if(ee=X.done?p:B,V.arg===v)continue;return{value:V.arg,done:X.done}}V.type==="throw"&&(ee=p,X.method="throw",X.arg=V.arg)}}}(o,A,$),j}function q(o,c,A){try{return{type:"normal",arg:o.call(c,A)}}catch(I){return{type:"throw",arg:I}}}T.wrap=K;var G="suspendedStart",B="suspendedYield",F="executing",p="completed",v={};function d(){}function y(){}function m(){}var u={};u[M]=function(){return this};var l=Object.getPrototypeOf,a=l&&l(l(b([])));a&&a!==N&&R.call(a,M)&&(u=a);var e=m.prototype=d.prototype=Object.create(u);function t(o){["next","throw","return"].forEach(function(c){U(o,c,function(A){return this._invoke(c,A)})})}function s(o,c){function A(O,j,$,Y){var W=q(o[O],o,j);if(W.type!=="throw"){var X=W.arg,ee=X.value;return ee&&f(ee)==="object"&&R.call(ee,"__await")?c.resolve(ee.__await).then(function(re){A("next",re,$,Y)},function(re){A("throw",re,$,Y)}):c.resolve(ee).then(function(re){X.value=re,$(X)},function(re){return A("throw",re,$,Y)})}Y(W.arg)}var I;this._invoke=function(O,j){function $(){return new c(function(Y,W){A(O,j,Y,W)})}return I=I?I.then($,$):$()}}function r(o,c){var A=o.iterator[c.method];if(A===P){if(c.delegate=null,c.method==="throw"){if(o.iterator.return&&(c.method="return",c.arg=P,r(o,c),c.method==="throw"))return v;c.method="throw",c.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var I=q(A,o.iterator,c.arg);if(I.type==="throw")return c.method="throw",c.arg=I.arg,c.delegate=null,v;var O=I.arg;return O?O.done?(c[o.resultName]=O.value,c.next=o.nextLoc,c.method!=="return"&&(c.method="next",c.arg=P),c.delegate=null,v):O:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,v)}function g(o){var c={tryLoc:o[0]};1 in o&&(c.catchLoc=o[1]),2 in o&&(c.finallyLoc=o[2],c.afterLoc=o[3]),this.tryEntries.push(c)}function S(o){var c=o.completion||{};c.type="normal",delete c.arg,o.completion=c}function k(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(g,this),this.reset(!0)}function b(o){if(o){var c=o[M];if(c)return c.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var A=-1,I=function O(){for(;++A=0;--I){var O=this.tryEntries[I],j=O.completion;if(O.tryLoc==="root")return A("end");if(O.tryLoc<=this.prev){var $=R.call(O,"catchLoc"),Y=R.call(O,"finallyLoc");if($&&Y){if(this.prev=0;--A){var I=this.tryEntries[A];if(I.tryLoc<=this.prev&&R.call(I,"finallyLoc")&&this.prev=0;--c){var A=this.tryEntries[c];if(A.finallyLoc===o)return this.complete(A.completion,A.afterLoc),S(A),v}},catch:function(o){for(var c=this.tryEntries.length-1;c>=0;--c){var A=this.tryEntries[c];if(A.tryLoc===o){var I=A.completion;if(I.type==="throw"){var O=I.arg;S(A)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(o,c,A){return this.delegate={iterator:b(o),resultName:c,nextLoc:A},this.method==="next"&&(this.arg=P),v}},T}(f(L=h.nmd(L))==="object"?L.exports:{});try{regeneratorRuntime=E}catch{Function("r","regeneratorRuntime = r")(E)}},(L,_,h)=>{function f(o,c){for(var A=0;Ao.length)&&(c=o.length);for(var A=0,I=new Array(c);A1&&arguments[1]!==void 0?arguments[1]:"",A=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(URL.createObjectURL&&!A)return URL.createObjectURL(new Blob([o],{type:c}));for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",O="data:".concat(c,";base64,"),j=0,$=o.length;j<$;j+=3){var Y=255&o[j],W=255&o[j+1],X=255&o[j+2],ee=Y>>2,re=(3&Y)<<4|W>>4,ae=j+1<$?(15&W)<<2|X>>6:64,Z=j+2<$?63&X:64;O+=I[ee]+I[re]+I[ae]+I[Z]}return O},_.createPromiseCapability=function(){var o=Object.create(null),c=!1;return Object.defineProperty(o,"settled",{get:function(){return c}}),o.promise=new Promise(function(A,I){o.resolve=function(O){c=!0,A(O)},o.reject=function(O){c=!0,I(O)}}),o},_.createValidAbsoluteUrl=function(o,c){if(!o)return null;try{var A=c?new URL(o,c):new URL(o);if(function(I){if(!I)return!1;switch(I.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(A))return A}catch{}return null},_.escapeString=function(o){return o.replace(/([()\\\n\r])/g,function(c){return c===` `?"\\n":c==="\r"?"\\r":"\\".concat(c)})},_.getModificationDate=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date,c=[o.getUTCFullYear().toString(),(o.getUTCMonth()+1).toString().padStart(2,"0"),o.getUTCDate().toString().padStart(2,"0"),o.getUTCHours().toString().padStart(2,"0"),o.getUTCMinutes().toString().padStart(2,"0"),o.getUTCSeconds().toString().padStart(2,"0")];return c.join("")},_.getVerbosityLevel=function(){return K},_.info=function(o){K>=U.INFOS&&console.log("Info: ".concat(o))},_.isArrayBuffer=function(o){return P(o)==="object"&&o!==null&&o.byteLength!==void 0},_.isArrayEqual=function(o,c){if(o.length!==c.length)return!1;for(var A=0,I=o.length;A=X.length?{done:!0}:{done:!1,value:X[ae++]}},e:function(Q){throw Q},f:Z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. diff --git a/src/main/resources/static/assets/SvgIcon.c7a5ac24.js b/src/main/resources/static/assets/SvgIcon.eefd5347.js similarity index 88% rename from src/main/resources/static/assets/SvgIcon.c7a5ac24.js rename to src/main/resources/static/assets/SvgIcon.eefd5347.js index e4538ca..04ea6b0 100644 --- a/src/main/resources/static/assets/SvgIcon.c7a5ac24.js +++ b/src/main/resources/static/assets/SvgIcon.eefd5347.js @@ -1 +1 @@ -import{_ as r}from"./plugin-vue_export-helper.21dcd24c.js";import{d as n,c as t,a as s,f as a,p as c}from"./index.552205f5.js";const i=n({name:"SvgIcon",props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},color:{type:String,default:"#333"}},setup(e){return{symbolId:t(()=>`#${e.prefix}-${e.name}`)}}}),l=["color"],p=["xlink:href","fill"];function d(e,o,f,m,u,_){return s(),a("svg",{class:"icon","aria-hidden":"true",color:e.color},[c("use",{"xlink:href":e.symbolId,fill:e.color},null,8,p)],8,l)}var y=r(i,[["render",d]]);export{y as S}; +import{_ as r}from"./plugin-vue_export-helper.21dcd24c.js";import{d as n,c as t,a as s,f as a,p as c}from"./index.43b3cbf5.js";const i=n({name:"SvgIcon",props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},color:{type:String,default:"#333"}},setup(e){return{symbolId:t(()=>`#${e.prefix}-${e.name}`)}}}),l=["color"],p=["xlink:href","fill"];function d(e,o,f,m,u,_){return s(),a("svg",{class:"icon","aria-hidden":"true",color:e.color},[c("use",{"xlink:href":e.symbolId,fill:e.color},null,8,p)],8,l)}var y=r(i,[["render",d]]);export{y as S}; diff --git a/src/main/resources/static/assets/TextViewer.3239c454.js b/src/main/resources/static/assets/TextViewer.0c511786.js similarity index 86% rename from src/main/resources/static/assets/TextViewer.3239c454.js rename to src/main/resources/static/assets/TextViewer.0c511786.js index 0e2deb9..25b4a70 100644 --- a/src/main/resources/static/assets/TextViewer.3239c454.js +++ b/src/main/resources/static/assets/TextViewer.0c511786.js @@ -1,24 +1,24 @@ -var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var $r=(s,e,t)=>(Ox(s,typeof e!="symbol"?e+"":e,t),t);import{a2 as bt,r as Px,o as Fx,a9 as Bx,a as Vx,f as Wx}from"./index.552205f5.js";import{g as Hx,a as zx}from"./common.c93e08d7.js";import{a as Ux}from"./useFileUpload.b18c246f.js";import{_ as $x}from"./plugin-vue_export-helper.21dcd24c.js";function jx(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]!="undefined"?e[o]:i}),t}function p(s,e,...t){return jx(e,t)}var wg;const Dd="en";let tu=!1,iu=!1,Nd=!1,ZS=!1,H1=!1,z1=!1,Bh,vg=Dd,Kx,js;const Ge=typeof self=="object"?self:typeof global=="object"?global:{};let jt;typeof Ge.vscode!="undefined"&&typeof Ge.vscode.process!="undefined"?jt=Ge.vscode.process:typeof process!="undefined"&&(jt=process);const qx=typeof((wg=jt==null?void 0:jt.versions)===null||wg===void 0?void 0:wg.electron)=="string",Gx=qx&&(jt==null?void 0:jt.type)==="renderer";if(typeof navigator=="object"&&!Gx)js=navigator.userAgent,tu=js.indexOf("Windows")>=0,iu=js.indexOf("Macintosh")>=0,z1=(js.indexOf("Macintosh")>=0||js.indexOf("iPad")>=0||js.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Nd=js.indexOf("Linux")>=0,H1=!0,Bh=navigator.language,vg=Bh;else if(typeof jt=="object"){tu=jt.platform==="win32",iu=jt.platform==="darwin",Nd=jt.platform==="linux",Nd&&!!jt.env.SNAP&&jt.env.SNAP_REVISION,jt.env.CI||jt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Bh=Dd,vg=Dd;const s=jt.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Bh=e.locale,vg=t||Dd,Kx=e._translationsConfigFile}catch{}ZS=!0}else console.error("Unable to resolve platform.");const li=tu,me=iu,qt=Nd,va=ZS,fl=H1,Zx=H1&&typeof Ge.importScripts=="function",pr=z1,Xn=js,YS=(()=>{if(typeof Ge.postMessage=="function"&&!Ge.importScripts){let s=[];Ge.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),Ge.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),qi=iu||z1?2:tu?1:3;let Ub=!0,$b=!1;function XS(){if(!$b){$b=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,Ub=new Uint16Array(s.buffer)[0]===(2<<8)+1}return Ub}const QS=!!(Xn&&Xn.indexOf("Chrome")>=0),Yx=!!(Xn&&Xn.indexOf("Firefox")>=0),Xx=!!(!QS&&Xn&&Xn.indexOf("Safari")>=0),Qx=!!(Xn&&Xn.indexOf("Edg/")>=0);Xn&&Xn.indexOf("Android")>=0;const JS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Jx(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of JS)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const U1=Jx();function ey(s){let e=U1;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const eI={maxLen:1e3,windowSize:15,timeBudget:150};function Ic(s,e,t,i,n=eI){if(t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Ic(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const h=r-n.windowSize*c;e.lastIndex=Math.max(0,h);const d=tI(e,t,r,a);if(!d&&l||(l=d,h<=0))break;a=h}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function tI(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}function ki(s,e=0){return s[s.length-(1+e)]}function iI(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Kn(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i0)n=o-1;else return o}return-(i+1)}function sI(s,e){let t=0,i=s.length;if(i===0)return 0;for(;t!!e)}function oI(s){return!Array.isArray(s)||s.length===0}function $1(s){return Array.isArray(s)&&s.length>0}function wo(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function rI(s,e){const t=aI(s,e);if(t!==-1)return s[t]}function aI(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(e(i))return t}return-1}function iy(s,e){return s.length>0?s[0]:e}function lI(s){return[].concat(...s)}function $t(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function pf(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function Sg(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function Vh(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function cI(s,e,t){const i=ny(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;re(s(t),s(i))}function hI(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i0&&(t=n)}return t}function dI(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i=0&&(t=n)}return t}function uI(s,e){return hI(s,(t,i)=>-e(t,i))}class za{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function Ln(s){return typeof s=="string"}function Ti(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function mh(s){return typeof s=="number"&&!isNaN(s)}function Kb(s){return!!s&&typeof s[Symbol.iterator]=="function"}function sy(s){return s===!0||s===!1}function vn(s){return typeof s=="undefined"}function fI(s){return!Gi(s)}function Gi(s){return vn(s)||s===null}function Sn(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function nu(s){return typeof s=="function"}function gI(s,e){const t=Math.min(s.length,e.length);for(let i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)};let i={};for(const n of s)i[n]=t(n);return i}function Qo(s){return s===null?void 0:s}function K1(s,e="Unreachable"){throw new Error(e)}function Ys(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.keys(s).forEach(t=>{s[t]&&typeof s[t]=="object"?e[t]=Ys(s[t]):e[t]=s[t]}),e}function bI(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(CI.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&e.push(n)}}return s}const CI=Object.prototype.hasOwnProperty;function Nr(s,e,t=!0){return Ti(s)?(Ti(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Ti(s[i])&&Ti(e[i])?Nr(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function Ri(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;ti?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(jn.float(e,this.defaultValue))}}class ri extends Tr{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ri.string(e,this.defaultValue)}}function Jt(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class st extends Tr{constructor(e,t,i,n,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Jt(e,this.defaultValue,this._allowedValues)}}class Nl extends lt{constructor(e,t,i,n,o,r,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function wI(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class vI extends lt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class SI extends lt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:$(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:$(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function yI(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var _t;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(_t||(_t={}));function LI(s){switch(s){case"line":return _t.Line;case"block":return _t.Block;case"underline":return _t.Underline;case"line-thin":return _t.LineThin;case"block-outline":return _t.BlockOutline;case"underline-thin":return _t.UnderlineThin}}class kI extends gl{constructor(){super(128)}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(66)==="default"?n.push("mouse-default"):t.get(66)==="copy"&&n.push("mouse-copy"),t.get(100)&&n.push("showUnused"),t.get(126)&&n.push("showDeprecated"),n.join(" ")}}class xI extends le{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class II extends lt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:$(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Jt(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Jt(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:$(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:$(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:$(t.loop,this.defaultValue.loop)}}}class Ii extends lt{constructor(){super(45,"fontLigatures",Ii.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Ii.OFF:e==="true"?Ii.ON:e:Boolean(e)?Ii.ON:Ii.OFF}}Ii.OFF='"liga" off, "calt" off';Ii.ON='"liga" on, "calt" on';class EI extends gl{constructor(){super(44)}compute(e,t,i){return e.fontInfo}}class DI extends Tr{constructor(){super(46,"fontSize",bi.fontSize,{type:"number",minimum:6,maximum:100,default:bi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=jn.float(e,this.defaultValue);return t===0?bi.fontSize:jn.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class zn extends lt{constructor(){super(47,"fontWeight",bi.fontWeight,{anyOf:[{type:"number",minimum:zn.MINIMUM_VALUE,maximum:zn.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:zn.SUGGESTION_VALUES}],default:bi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ee.clampedInt(e,bi.fontWeight,zn.MINIMUM_VALUE,zn.MAXIMUM_VALUE))}}zn.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];zn.MINIMUM_VALUE=1;zn.MAXIMUM_VALUE=1e3;class NI extends lt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(51,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Jt(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Jt(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Jt(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Jt(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Jt(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Jt(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ri.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ri.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ri.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ri.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ri.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class TI extends lt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(53,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),delay:Ee.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:$(t.sticky,this.defaultValue.sticky),above:$(t.above,this.defaultValue.above)}}}class Sa extends gl{constructor(){super(131)}compute(e,t,i){return Sa.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,m=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,w=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,S=d?2:3;let k=Math.floor(o*n);const x=k/o;let L=!1,y=!1,I=S*u,R=u/o,T=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:ee,extraLinesBeyondLastLine:ae,desiredRatio:nt,minimapLineCount:Xe}=Sa.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(w/Xe>1)L=!0,y=!0,u=1,I=1,R=u/o;else{let Hi=!1,zt=u+1;if(m==="fit"){const cs=Math.ceil((w+ae)*I);v&&a&&C<=t.stableFitRemainingWidth?(Hi=!0,zt=t.stableFitMaxMinimapScale):Hi=cs>k}if(m==="fill"||Hi){L=!0;const cs=u;I=Math.min(l*o,Math.max(1,Math.floor(1/nt))),v&&a&&C<=t.stableFitRemainingWidth&&(zt=t.stableFitMaxMinimapScale),u=Math.min(zt,Math.max(1,Math.floor(I/S))),u>cs&&(T=Math.min(2,u/cs)),R=u/o/T,k=Math.ceil(Math.max(ee,w+ae)*I),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(f*R),F=Math.min(P,Math.max(0,Math.floor((C-b-2)*R/(c+R)))+Ks);let j=Math.floor(o*F);const z=j/o;j=Math.floor(j*T);const Q=d?1:2,ie=_==="left"?0:i-F-b;return{renderMinimap:Q,minimapLeft:ie,minimapWidth:F,minimapHeightIsEditorHeight:L,minimapIsSampling:y,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:j,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,h=t.viewLineCount,d=e.get(123),u=d==="inherit"?e.get(122):d,f=u==="inherit"?e.get(118):u,m=e.get(121),_=e.get(2),b=t.isDominatedByLongLines,w=e.get(50),C=e.get(60).renderType!==0,v=e.get(61),S=e.get(94),k=e.get(65),x=e.get(92),L=x.verticalScrollbarSize,y=x.verticalHasArrows,I=x.arrowSize,R=x.horizontalScrollbarSize,T=e.get(58),P=e.get(37);let F;if(typeof T=="string"&&/^\d+(\.\d+)?ch$/.test(T)){const Cg=parseFloat(T.substr(0,T.length-2));F=Ee.clampedInt(Cg*a,0,0,1e3)}else F=Ee.clampedInt(T,0,0,1e3);P&&(F+=16);let j=0;if(C){const Cg=Math.max(r,v);j=Math.round(Cg*l)}let z=0;w&&(z=o);let Q=0,ie=Q+z,ee=ie+j,ae=ee+F;const nt=i-z-j-F;let Xe=!1,ln=!1,Hi=-1;_!==2&&(u==="inherit"&&b?(Xe=!0,ln=!0):f==="on"||f==="bounded"?ln=!0:f==="wordWrapColumn"&&(Hi=m));const zt=Sa._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:nt,isViewportWrapping:ln},t.memory||new ry);zt.renderMinimap!==0&&zt.minimapLeft===0&&(Q+=zt.minimapWidth,ie+=zt.minimapWidth,ee+=zt.minimapWidth,ae+=zt.minimapWidth);const cs=nt-zt.minimapWidth,Fh=Math.max(1,Math.floor((cs-L-2)/a)),zb=y?I:0;return ln&&(Hi=Math.max(1,Fh),f==="bounded"&&(Hi=Math.min(Hi,m))),{width:i,height:n,glyphMarginLeft:Q,glyphMarginWidth:z,lineNumbersLeft:ie,lineNumbersWidth:j,decorationsLeft:ee,decorationsWidth:F,contentLeft:ae,contentWidth:cs,minimap:zt,viewportColumn:Fh,isWordWrapMinified:Xe,isViewportWrapping:ln,wrappingColumn:Hi,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:zb,width:L,height:n-2*zb,right:0}}}}class MI extends lt{constructor(){const e={enabled:!0};super(57,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:$(e.enabled,this.defaultValue.enabled)}}}class RI extends lt{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(127,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),fontSize:Ee.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ri.string(t.fontFamily,this.defaultValue.fontFamily)}}}class AI extends jn{constructor(){super(59,"lineHeight",bi.lineHeight,e=>jn.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var $r=(s,e,t)=>(Ox(s,typeof e!="symbol"?e+"":e,t),t);import{a2 as bt,r as Px,o as Fx,a9 as Bx,a as Vx,f as Wx}from"./index.43b3cbf5.js";import{g as Hx,a as zx}from"./common.e7f4d4d2.js";import{a as Ux}from"./useFileUpload.72c71760.js";import{_ as $x}from"./plugin-vue_export-helper.21dcd24c.js";function jx(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]!="undefined"?e[o]:i}),t}function p(s,e,...t){return jx(e,t)}var wg;const Dd="en";let tu=!1,iu=!1,Nd=!1,ZS=!1,H1=!1,z1=!1,Bh,vg=Dd,Kx,js;const Ge=typeof self=="object"?self:typeof global=="object"?global:{};let jt;typeof Ge.vscode!="undefined"&&typeof Ge.vscode.process!="undefined"?jt=Ge.vscode.process:typeof process!="undefined"&&(jt=process);const qx=typeof((wg=jt==null?void 0:jt.versions)===null||wg===void 0?void 0:wg.electron)=="string",Gx=qx&&(jt==null?void 0:jt.type)==="renderer";if(typeof navigator=="object"&&!Gx)js=navigator.userAgent,tu=js.indexOf("Windows")>=0,iu=js.indexOf("Macintosh")>=0,z1=(js.indexOf("Macintosh")>=0||js.indexOf("iPad")>=0||js.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Nd=js.indexOf("Linux")>=0,H1=!0,Bh=navigator.language,vg=Bh;else if(typeof jt=="object"){tu=jt.platform==="win32",iu=jt.platform==="darwin",Nd=jt.platform==="linux",Nd&&!!jt.env.SNAP&&jt.env.SNAP_REVISION,jt.env.CI||jt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Bh=Dd,vg=Dd;const s=jt.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Bh=e.locale,vg=t||Dd,Kx=e._translationsConfigFile}catch{}ZS=!0}else console.error("Unable to resolve platform.");const li=tu,me=iu,qt=Nd,va=ZS,fl=H1,Zx=H1&&typeof Ge.importScripts=="function",pr=z1,Xn=js,YS=(()=>{if(typeof Ge.postMessage=="function"&&!Ge.importScripts){let s=[];Ge.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),Ge.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),qi=iu||z1?2:tu?1:3;let Ub=!0,$b=!1;function XS(){if(!$b){$b=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,Ub=new Uint16Array(s.buffer)[0]===(2<<8)+1}return Ub}const QS=!!(Xn&&Xn.indexOf("Chrome")>=0),Yx=!!(Xn&&Xn.indexOf("Firefox")>=0),Xx=!!(!QS&&Xn&&Xn.indexOf("Safari")>=0),Qx=!!(Xn&&Xn.indexOf("Edg/")>=0);Xn&&Xn.indexOf("Android")>=0;const JS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Jx(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of JS)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const U1=Jx();function ey(s){let e=U1;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const eI={maxLen:1e3,windowSize:15,timeBudget:150};function Ic(s,e,t,i,n=eI){if(t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Ic(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const h=r-n.windowSize*c;e.lastIndex=Math.max(0,h);const d=tI(e,t,r,a);if(!d&&l||(l=d,h<=0))break;a=h}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function tI(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}function ki(s,e=0){return s[s.length-(1+e)]}function iI(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Kn(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i0)n=o-1;else return o}return-(i+1)}function sI(s,e){let t=0,i=s.length;if(i===0)return 0;for(;t!!e)}function oI(s){return!Array.isArray(s)||s.length===0}function $1(s){return Array.isArray(s)&&s.length>0}function wo(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function rI(s,e){const t=aI(s,e);if(t!==-1)return s[t]}function aI(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(e(i))return t}return-1}function iy(s,e){return s.length>0?s[0]:e}function lI(s){return[].concat(...s)}function $t(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function pf(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function Sg(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function Vh(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function cI(s,e,t){const i=ny(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;re(s(t),s(i))}function hI(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i0&&(t=n)}return t}function dI(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i=0&&(t=n)}return t}function uI(s,e){return hI(s,(t,i)=>-e(t,i))}class za{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function Ln(s){return typeof s=="string"}function Ti(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function mh(s){return typeof s=="number"&&!isNaN(s)}function Kb(s){return!!s&&typeof s[Symbol.iterator]=="function"}function sy(s){return s===!0||s===!1}function vn(s){return typeof s=="undefined"}function fI(s){return!Gi(s)}function Gi(s){return vn(s)||s===null}function Sn(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function nu(s){return typeof s=="function"}function gI(s,e){const t=Math.min(s.length,e.length);for(let i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)};let i={};for(const n of s)i[n]=t(n);return i}function Qo(s){return s===null?void 0:s}function K1(s,e="Unreachable"){throw new Error(e)}function Ys(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.keys(s).forEach(t=>{s[t]&&typeof s[t]=="object"?e[t]=Ys(s[t]):e[t]=s[t]}),e}function bI(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(CI.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&e.push(n)}}return s}const CI=Object.prototype.hasOwnProperty;function Nr(s,e,t=!0){return Ti(s)?(Ti(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Ti(s[i])&&Ti(e[i])?Nr(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function Ri(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;ti?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(jn.float(e,this.defaultValue))}}class ri extends Tr{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ri.string(e,this.defaultValue)}}function Jt(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class st extends Tr{constructor(e,t,i,n,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Jt(e,this.defaultValue,this._allowedValues)}}class Nl extends lt{constructor(e,t,i,n,o,r,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function wI(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class vI extends lt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class SI extends lt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:$(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:$(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function yI(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var _t;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(_t||(_t={}));function LI(s){switch(s){case"line":return _t.Line;case"block":return _t.Block;case"underline":return _t.Underline;case"line-thin":return _t.LineThin;case"block-outline":return _t.BlockOutline;case"underline-thin":return _t.UnderlineThin}}class kI extends gl{constructor(){super(128)}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(66)==="default"?n.push("mouse-default"):t.get(66)==="copy"&&n.push("mouse-copy"),t.get(100)&&n.push("showUnused"),t.get(126)&&n.push("showDeprecated"),n.join(" ")}}class xI extends le{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class II extends lt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:$(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Jt(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Jt(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:$(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:$(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:$(t.loop,this.defaultValue.loop)}}}class Ii extends lt{constructor(){super(45,"fontLigatures",Ii.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Ii.OFF:e==="true"?Ii.ON:e:Boolean(e)?Ii.ON:Ii.OFF}}Ii.OFF='"liga" off, "calt" off';Ii.ON='"liga" on, "calt" on';class EI extends gl{constructor(){super(44)}compute(e,t,i){return e.fontInfo}}class DI extends Tr{constructor(){super(46,"fontSize",bi.fontSize,{type:"number",minimum:6,maximum:100,default:bi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=jn.float(e,this.defaultValue);return t===0?bi.fontSize:jn.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class zn extends lt{constructor(){super(47,"fontWeight",bi.fontWeight,{anyOf:[{type:"number",minimum:zn.MINIMUM_VALUE,maximum:zn.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:zn.SUGGESTION_VALUES}],default:bi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ee.clampedInt(e,bi.fontWeight,zn.MINIMUM_VALUE,zn.MAXIMUM_VALUE))}}zn.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];zn.MINIMUM_VALUE=1;zn.MAXIMUM_VALUE=1e3;class NI extends lt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(51,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Jt(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Jt(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Jt(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Jt(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Jt(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Jt(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ri.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ri.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ri.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ri.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ri.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class TI extends lt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(53,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),delay:Ee.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:$(t.sticky,this.defaultValue.sticky),above:$(t.above,this.defaultValue.above)}}}class Sa extends gl{constructor(){super(131)}compute(e,t,i){return Sa.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,m=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,w=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,S=d?2:3;let k=Math.floor(o*n);const x=k/o;let L=!1,y=!1,I=S*u,R=u/o,T=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:ee,extraLinesBeyondLastLine:ae,desiredRatio:nt,minimapLineCount:Xe}=Sa.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(w/Xe>1)L=!0,y=!0,u=1,I=1,R=u/o;else{let Hi=!1,zt=u+1;if(m==="fit"){const cs=Math.ceil((w+ae)*I);v&&a&&C<=t.stableFitRemainingWidth?(Hi=!0,zt=t.stableFitMaxMinimapScale):Hi=cs>k}if(m==="fill"||Hi){L=!0;const cs=u;I=Math.min(l*o,Math.max(1,Math.floor(1/nt))),v&&a&&C<=t.stableFitRemainingWidth&&(zt=t.stableFitMaxMinimapScale),u=Math.min(zt,Math.max(1,Math.floor(I/S))),u>cs&&(T=Math.min(2,u/cs)),R=u/o/T,k=Math.ceil(Math.max(ee,w+ae)*I),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(f*R),F=Math.min(P,Math.max(0,Math.floor((C-b-2)*R/(c+R)))+Ks);let j=Math.floor(o*F);const z=j/o;j=Math.floor(j*T);const Q=d?1:2,ie=_==="left"?0:i-F-b;return{renderMinimap:Q,minimapLeft:ie,minimapWidth:F,minimapHeightIsEditorHeight:L,minimapIsSampling:y,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:j,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,h=t.viewLineCount,d=e.get(123),u=d==="inherit"?e.get(122):d,f=u==="inherit"?e.get(118):u,m=e.get(121),_=e.get(2),b=t.isDominatedByLongLines,w=e.get(50),C=e.get(60).renderType!==0,v=e.get(61),S=e.get(94),k=e.get(65),x=e.get(92),L=x.verticalScrollbarSize,y=x.verticalHasArrows,I=x.arrowSize,R=x.horizontalScrollbarSize,T=e.get(58),P=e.get(37);let F;if(typeof T=="string"&&/^\d+(\.\d+)?ch$/.test(T)){const Cg=parseFloat(T.substr(0,T.length-2));F=Ee.clampedInt(Cg*a,0,0,1e3)}else F=Ee.clampedInt(T,0,0,1e3);P&&(F+=16);let j=0;if(C){const Cg=Math.max(r,v);j=Math.round(Cg*l)}let z=0;w&&(z=o);let Q=0,ie=Q+z,ee=ie+j,ae=ee+F;const nt=i-z-j-F;let Xe=!1,ln=!1,Hi=-1;_!==2&&(u==="inherit"&&b?(Xe=!0,ln=!0):f==="on"||f==="bounded"?ln=!0:f==="wordWrapColumn"&&(Hi=m));const zt=Sa._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:nt,isViewportWrapping:ln},t.memory||new ry);zt.renderMinimap!==0&&zt.minimapLeft===0&&(Q+=zt.minimapWidth,ie+=zt.minimapWidth,ee+=zt.minimapWidth,ae+=zt.minimapWidth);const cs=nt-zt.minimapWidth,Fh=Math.max(1,Math.floor((cs-L-2)/a)),zb=y?I:0;return ln&&(Hi=Math.max(1,Fh),f==="bounded"&&(Hi=Math.min(Hi,m))),{width:i,height:n,glyphMarginLeft:Q,glyphMarginWidth:z,lineNumbersLeft:ie,lineNumbersWidth:j,decorationsLeft:ee,decorationsWidth:F,contentLeft:ae,contentWidth:cs,minimap:zt,viewportColumn:Fh,isWordWrapMinified:Xe,isViewportWrapping:ln,wrappingColumn:Hi,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:zb,width:L,height:n-2*zb,right:0}}}}class MI extends lt{constructor(){const e={enabled:!0};super(57,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:$(e.enabled,this.defaultValue.enabled)}}}class RI extends lt{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(127,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),fontSize:Ee.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ri.string(t.fontFamily,this.defaultValue.fontFamily)}}}class AI extends jn{constructor(){super(59,"lineHeight",bi.lineHeight,e=>jn.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class OI extends lt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(65,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),size:Jt(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Jt(t.side,this.defaultValue.side,["right","left"]),showSlider:Jt(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:$(t.renderCharacters,this.defaultValue.renderCharacters),scale:Ee.clampedInt(t.scale,1,1,3),maxColumn:Ee.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function PI(s){return s==="ctrlCmd"?me?"metaKey":"ctrlKey":"altKey"}class FI extends lt{constructor(){super(75,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Ee.clampedInt(t.top,0,0,1e3),bottom:Ee.clampedInt(t.bottom,0,0,1e3)}}}class BI extends lt{constructor(){const e={enabled:!0,cycle:!1};super(76,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),cycle:$(t.cycle,this.defaultValue.cycle)}}}class VI extends gl{constructor(){super(129)}compute(e,t,i){return e.pixelRatio}}class WI extends lt{constructor(){const e={other:!0,comments:!1,strings:!1};super(79,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:p("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:$(t.other,this.defaultValue.other),comments:$(t.comments,this.defaultValue.comments),strings:$(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class HI extends lt{constructor(){super(60,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e!="undefined"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function su(s){const e=s.get(87);return e==="editable"?s.get(81):e!=="on"}class zI extends lt{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(91,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(let i of e)if(typeof i=="number")t.push({column:Ee.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Ee.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function qb(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}class UI extends lt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(92,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Ee.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Ee.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Ee.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:qb(t.vertical,this.defaultValue.vertical),horizontal:qb(t.horizontal,this.defaultValue.horizontal),useShadows:$(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:$(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:$(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:$(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:$(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Ee.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Ee.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:$(t.scrollByPage,this.defaultValue.scrollByPage)}}}const cn="inUntrustedWorkspace",Ro={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class $I extends lt{constructor(){const e={nonBasicASCII:cn,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:cn,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(113,"unicodeHighlight",e,{[Ro.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cn],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Ro.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Ro.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Ro.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cn],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[Ro.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cn],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[Ro.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Ro.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&(Ri(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&(Ri(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new Jl(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:ec(t.nonBasicASCII,cn,[!0,!1,cn]),invisibleCharacters:$(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:$(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:ec(t.includeComments,cn,[!0,!1,cn]),includeStrings:ec(t.includeStrings,cn,[!0,!1,cn]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class jI extends lt{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(55,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:$(t.enabled,this.defaultValue.enabled),mode:Jt(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class KI extends lt{constructor(){const e={enabled:Bt.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:$(e.enabled,this.defaultValue.enabled)}}}class qI extends lt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:ec(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:ec(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:$(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:$(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:$(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function ec(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class GI extends lt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(106,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Jt(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:$(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:$(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:$(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:$(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:$(t.showIcons,this.defaultValue.showIcons),showStatusBar:$(t.showStatusBar,this.defaultValue.showStatusBar),preview:$(t.preview,this.defaultValue.preview),previewMode:Jt(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:$(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:$(t.showMethods,this.defaultValue.showMethods),showFunctions:$(t.showFunctions,this.defaultValue.showFunctions),showConstructors:$(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:$(t.showDeprecated,this.defaultValue.showDeprecated),showFields:$(t.showFields,this.defaultValue.showFields),showVariables:$(t.showVariables,this.defaultValue.showVariables),showClasses:$(t.showClasses,this.defaultValue.showClasses),showStructs:$(t.showStructs,this.defaultValue.showStructs),showInterfaces:$(t.showInterfaces,this.defaultValue.showInterfaces),showModules:$(t.showModules,this.defaultValue.showModules),showProperties:$(t.showProperties,this.defaultValue.showProperties),showEvents:$(t.showEvents,this.defaultValue.showEvents),showOperators:$(t.showOperators,this.defaultValue.showOperators),showUnits:$(t.showUnits,this.defaultValue.showUnits),showValues:$(t.showValues,this.defaultValue.showValues),showConstants:$(t.showConstants,this.defaultValue.showConstants),showEnums:$(t.showEnums,this.defaultValue.showEnums),showEnumMembers:$(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:$(t.showKeywords,this.defaultValue.showKeywords),showWords:$(t.showWords,this.defaultValue.showWords),showColors:$(t.showColors,this.defaultValue.showColors),showFiles:$(t.showFiles,this.defaultValue.showFiles),showReferences:$(t.showReferences,this.defaultValue.showReferences),showFolders:$(t.showFolders,this.defaultValue.showFolders),showTypeParameters:$(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:$(t.showSnippets,this.defaultValue.showSnippets),showUsers:$(t.showUsers,this.defaultValue.showUsers),showIssues:$(t.showIssues,this.defaultValue.showIssues)}}}class ZI extends lt{constructor(){super(102,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:$(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class YI extends gl{constructor(){super(130)}compute(e,t,i){return t.get(81)?!0:e.tabFocusMode}}function XI(s){switch(s){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class QI extends gl{constructor(){super(132)}compute(e,t,i){const n=t.get(131);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}const JI="Consolas, 'Courier New', monospace",eE="Menlo, Monaco, 'Courier New', monospace",tE="'Droid Sans Mono', 'monospace', monospace",bi={fontFamily:me?eE:qt?tE:JI,fontWeight:"normal",fontSize:me?12:14,lineHeight:0,letterSpacing:0},oa=[];function B(s){return oa[s.id]=s,s}const Mr={acceptSuggestionOnCommitCharacter:B(new le(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:B(new st(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new vI),accessibilityPageSize:B(new Ee(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:B(new ri(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:B(new st(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:B(new st(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new st(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new st(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new Nl(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],wI,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new le(10,"automaticLayout",!1)),autoSurround:B(new st(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new KI),bracketPairGuides:B(new qI),stickyTabStops:B(new le(104,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new le(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new ri(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new Ee(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new le(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:B(new le(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new SI),contextmenu:B(new le(20,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new le(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new Nl(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],yI,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new le(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new Nl(24,"cursorStyle",_t.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],LI,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new Ee(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:B(new st(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:B(new Ee(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new le(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new le(29,"disableMonospaceOptimizations",!1)),domReadOnly:B(new le(30,"domReadOnly",!1)),dragAndDrop:B(new le(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new xI),extraEditorClassName:B(new ri(33,"extraEditorClassName","")),fastScrollSensitivity:B(new jn(34,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new II),fixedOverflowWidgets:B(new le(36,"fixedOverflowWidgets",!1)),folding:B(new le(37,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new st(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new le(39,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new le(40,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new Ee(41,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:B(new le(42,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new ri(43,"fontFamily",bi.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:B(new EI),fontLigatures2:B(new Ii),fontSize:B(new DI),fontWeight:B(new zn),formatOnPaste:B(new le(48,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:B(new le(49,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new le(50,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new NI),hideCursorInOverviewRuler:B(new le(52,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new TI),inDiffEditor:B(new le(54,"inDiffEditor",!1)),letterSpacing:B(new jn(56,"letterSpacing",bi.letterSpacing,s=>jn.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new MI),lineDecorationsWidth:B(new Tr(58,"lineDecorationsWidth",10)),lineHeight:B(new AI),lineNumbers:B(new HI),lineNumbersMinChars:B(new Ee(61,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new le(62,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:B(new le(63,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new st(64,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:B(new OI),mouseStyle:B(new st(66,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new jn(67,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new le(68,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new le(69,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new Nl(70,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],PI,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:B(new st(71,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:B(new le(72,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:B(new le(73,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new Ee(74,"overviewRulerLanes",3,0,3)),padding:B(new FI),parameterHints:B(new BI),peekWidgetDefaultFocus:B(new st(77,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:B(new le(78,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new WI),quickSuggestionsDelay:B(new Ee(80,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new le(81,"readOnly",!1)),renameOnType:B(new le(82,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new le(83,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new le(84,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new st(85,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new le(86,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new st(87,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new st(88,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new Ee(89,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:B(new le(90,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new zI),scrollbar:B(new UI),scrollBeyondLastColumn:B(new Ee(93,"scrollBeyondLastColumn",5,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new le(94,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new le(95,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:B(new le(96,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:qt})),selectionHighlight:B(new le(97,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new le(98,"selectOnLineNumbers",!0)),showFoldingControls:B(new st(99,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new le(100,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new le(126,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new RI),snippetSuggestions:B(new st(101,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new ZI),smoothScrolling:B(new le(103,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new Ee(105,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new GI),inlineSuggest:B(new jI),suggestFontSize:B(new Ee(107,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:B(new Ee(108,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:B(new le(109,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new st(110,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new st(111,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:B(new Ee(112,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new $I),unusualLineTerminators:B(new st(114,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new le(115,"useShadowDOM",!0)),useTabStops:B(new le(116,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:B(new ri(117,"wordSeparators",JS,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new st(118,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new ri(119,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:B(new ri(120,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:B(new Ee(121,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new st(122,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new st(123,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:B(new Nl(124,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],XI,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:B(new st(125,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:B(new kI),pixelRatio:B(new VI),tabFocusMode:B(new YI),layoutInfo:B(new Sa),wrappingInfo:B(new QI)};class iE{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const ay=new iE;function Ze(s){ph(s)||ay.onUnexpectedError(s)}function bf(s){ph(s)||ay.onUnexpectedExternalError(s)}function Gb(s){if(s instanceof Error){let{name:e,message:t}=s;const i=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:i}}return s}const ou="Canceled";function ph(s){return s instanceof _h?!0:s instanceof Error&&s.name===ou&&s.message===ou}class _h extends Error{constructor(){super(ou),this.name=this.message}}function nE(){const s=new Error(ou);return s.name=s.message,s}function q1(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function sE(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class oE extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}function _r(s){const e=this;let t=!1,i;return function(){return t||(t=!0,i=s.apply(e,arguments)),i}}var he;(function(s){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(C){yield C}s.single=n;function o(C){return C||t}s.from=o;function r(C){return!C||C[Symbol.iterator]().next().done===!0}s.isEmpty=r;function a(C){return C[Symbol.iterator]().next().value}s.first=a;function l(C,v){for(const S of C)if(v(S))return!0;return!1}s.some=l;function c(C,v){for(const S of C)if(v(S))return S}s.find=c;function*h(C,v){for(const S of C)v(S)&&(yield S)}s.filter=h;function*d(C,v){let S=0;for(const k of C)yield v(k,S++)}s.map=d;function*u(...C){for(const v of C)for(const S of v)yield S}s.concat=u;function*f(C){for(const v of C)for(const S of v)yield S}s.concatNested=f;function m(C,v,S){let k=S;for(const x of C)k=v(k,x);return k}s.reduce=m;function*_(C,v,S=C.length){for(v<0&&(v+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);vk===x){const k=C[Symbol.iterator](),x=v[Symbol.iterator]();for(;;){const L=k.next(),y=x.next();if(L.done!==y.done)return!1;if(L.done)return!0;if(!S(L.value,y.value))return!1}}s.equals=w})(he||(he={}));class rE extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function aE(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Me(s){if(he.is(s)){let e=[];for(const t of s)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new rE(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function or(...s){return Pe(()=>Me(s))}function Pe(s){return{dispose:_r(()=>{s()})}}class se{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Me(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?se.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}se.DISABLE_DISPOSED_WARNING=!1;class W{constructor(){this._store=new se,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}W.None=Object.freeze({dispose(){}});class ly{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class lE{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0)},this}}class cE{constructor(e){this.object=e}dispose(){}}class Be{constructor(e){this.element=e,this.next=Be.Undefined,this.prev=Be.Undefined}}Be.Undefined=new Be(void 0);class Xi{constructor(){this._first=Be.Undefined,this._last=Be.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Be.Undefined}clear(){let e=this._first;for(;e!==Be.Undefined;){const t=e.next;e.prev=Be.Undefined,e.next=Be.Undefined,e=t}this._first=Be.Undefined,this._last=Be.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Be(e);if(this._first===Be.Undefined)this._first=i,this._last=i;else if(t){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Be.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Be.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Be.Undefined&&e.next!==Be.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Be.Undefined&&e.next===Be.Undefined?(this._first=Be.Undefined,this._last=Be.Undefined):e.next===Be.Undefined?(this._last=this._last.prev,this._last.next=Be.Undefined):e.prev===Be.Undefined&&(this._first=this._first.next,this._first.prev=Be.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Be.Undefined;)yield e.element,e=e.next}}const hE=Ge.performance&&typeof Ge.performance.now=="function";class Rr{constructor(e){this._highResolution=hE&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Rr(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Ge.performance.now():Date.now()}}var K;(function(s){s.None=()=>W.None;function e(S){return(k,x=null,L)=>{let y=!1,I;return I=S(R=>{if(!y)return I?I.dispose():y=!0,k.call(x,R)},null,L),y&&I.dispose(),I}}s.once=e;function t(S,k,x){return l((L,y=null,I)=>S(R=>L.call(y,k(R)),null,I),x)}s.map=t;function i(S,k,x){return l((L,y=null,I)=>S(R=>{k(R),L.call(y,R)},null,I),x)}s.forEach=i;function n(S,k,x){return l((L,y=null,I)=>S(R=>k(R)&&L.call(y,R),null,I),x)}s.filter=n;function o(S){return S}s.signal=o;function r(...S){return(k,x=null,L)=>or(...S.map(y=>y(I=>k.call(x,I),null,L)))}s.any=r;function a(S,k,x,L){let y=x;return t(S,I=>(y=k(y,I),y),L)}s.reduce=a;function l(S,k){let x;const L={onFirstListenerAdd(){x=S(y.fire,y)},onLastListenerRemove(){x.dispose()}},y=new M(L);return k&&k.add(y),y.event}function c(S,k,x=100,L=!1,y,I){let R,T,P,F=0;const j={leakWarningThreshold:y,onFirstListenerAdd(){R=S(Q=>{F++,T=k(T,Q),L&&!P&&(z.fire(T),T=void 0),clearTimeout(P),P=setTimeout(()=>{const ie=T;T=void 0,P=void 0,(!L||F>1)&&z.fire(ie),F=0},x)})},onLastListenerRemove(){R.dispose()}},z=new M(j);return I&&I.add(z),z.event}s.debounce=c;function h(S,k=(L,y)=>L===y,x){let L=!0,y;return n(S,I=>{const R=L||!k(I,y);return L=!1,y=I,R},x)}s.latch=h;function d(S,k,x){return[s.filter(S,k,x),s.filter(S,L=>!k(L),x)]}s.split=d;function u(S,k=!1,x=[]){let L=x.slice(),y=S(T=>{L?L.push(T):R.fire(T)});const I=()=>{L&&L.forEach(T=>R.fire(T)),L=null},R=new M({onFirstListenerAdd(){y||(y=S(T=>R.fire(T)))},onFirstListenerDidAdd(){L&&(k?setTimeout(I):I())},onLastListenerRemove(){y&&y.dispose(),y=null}});return R.event}s.buffer=u;class f{constructor(k){this.event=k}map(k){return new f(t(this.event,k))}forEach(k){return new f(i(this.event,k))}filter(k){return new f(n(this.event,k))}reduce(k,x){return new f(a(this.event,k,x))}latch(){return new f(h(this.event))}debounce(k,x=100,L=!1,y){return new f(c(this.event,k,x,L,y))}on(k,x,L){return this.event(k,x,L)}once(k,x,L){return e(this.event)(k,x,L)}}function m(S){return new f(S)}s.chain=m;function _(S,k,x=L=>L){const L=(...T)=>R.fire(x(...T)),y=()=>S.on(k,L),I=()=>S.removeListener(k,L),R=new M({onFirstListenerAdd:y,onLastListenerRemove:I});return R.event}s.fromNodeEventEmitter=_;function b(S,k,x=L=>L){const L=(...T)=>R.fire(x(...T)),y=()=>S.addEventListener(k,L),I=()=>S.removeEventListener(k,L),R=new M({onFirstListenerAdd:y,onLastListenerRemove:I});return R.event}s.fromDOMEventEmitter=b;function w(S){return new Promise(k=>e(S)(k))}s.toPromise=w;function C(S,k){return k(void 0),S(x=>k(x))}s.runAndSubscribe=C;function v(S,k){let x=null;function L(I){x==null||x.dispose(),x=new se,k(I,x)}L(void 0);const y=S(I=>L(I));return Pe(()=>{y.dispose(),x==null||x.dispose()})}s.runAndSubscribeWithStore=v})(K||(K={}));class Cf{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Cf._idPool++}`}start(e){this._stopWatch=new Rr(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Cf._idPool=0;class G1{constructor(e){this.value=e}static create(){var e;return new G1((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class dE{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new lE}invoke(e){this.callback.call(this.callbackThis,e)}}class M{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Cf(this._options._profName):void 0}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(),(i=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||i===void 0||i.call(t),(n=this._leakageMon)===null||n===void 0||n.dispose())}get event(){return this._event||(this._event=(e,t,i)=>{var n,o,r;this._listeners||(this._listeners=new Xi);const a=this._listeners.isEmpty();a&&((n=this._options)===null||n===void 0?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let l,c;this._leakageMon&&this._listeners.size>=30&&(c=G1.create(),l=this._leakageMon.check(c,this._listeners.size+1));const h=new dE(e,t,c),d=this._listeners.push(h);a&&((o=this._options)===null||o===void 0?void 0:o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((r=this._options)===null||r===void 0)&&r.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const u=h.subscription.set(()=>{l&&l(),this._disposed||(d(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return i instanceof se?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}fire(e){var t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Xi);for(let n of this._listeners)this._deliveryQueue.push([n,e]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[n,o]=this._deliveryQueue.shift();try{n.invoke(o)}catch(r){Ze(r)}}(i=this._perfMon)===null||i===void 0||i.stop()}}}class ru extends M{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Xi,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class uE extends ru{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Z1{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(n=>n()),i}}class Zb{constructor(){this.listening=!1,this.inputEvent=K.None,this.inputEventListener=W.None,this.emitter=new M({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const cy=Object.freeze(function(s,e){const t=setTimeout(s.bind(e),0);return{dispose(){clearTimeout(t)}}});var ci;(function(s){function e(t){return t===s.None||t===s.Cancelled||t instanceof Td?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}s.isCancellationToken=e,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:K.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cy})})(ci||(ci={}));class Td{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?cy:(this._emitter||(this._emitter=new M),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ml{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Td),this._token}cancel(){this._token?this._token instanceof Td&&this._token.cancel():this._token=ci.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Td&&this._token.dispose():this._token=ci.None}}class Y1{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Md=new Y1,Ym=new Y1,Xm=new Y1,hy=new Array(230),fE={},gE=[],mE=Object.create(null),pE=Object.create(null),X1=[],Qm=[];for(let s=0;s<=193;s++)X1[s]=-1;for(let s=0;s<=127;s++)Qm[s]=-1;(function(){const s="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",s,s],[0,1,1,"Hyper",0,s,0,s,s,s],[0,1,2,"Super",0,s,0,s,s,s],[0,1,3,"Fn",0,s,0,s,s,s],[0,1,4,"FnLock",0,s,0,s,s,s],[0,1,5,"Suspend",0,s,0,s,s,s],[0,1,6,"Resume",0,s,0,s,s,s],[0,1,7,"Turbo",0,s,0,s,s,s],[0,1,8,"Sleep",0,s,0,"VK_SLEEP",s,s],[0,1,9,"WakeUp",0,s,0,s,s,s],[31,0,10,"KeyA",31,"A",65,"VK_A",s,s],[32,0,11,"KeyB",32,"B",66,"VK_B",s,s],[33,0,12,"KeyC",33,"C",67,"VK_C",s,s],[34,0,13,"KeyD",34,"D",68,"VK_D",s,s],[35,0,14,"KeyE",35,"E",69,"VK_E",s,s],[36,0,15,"KeyF",36,"F",70,"VK_F",s,s],[37,0,16,"KeyG",37,"G",71,"VK_G",s,s],[38,0,17,"KeyH",38,"H",72,"VK_H",s,s],[39,0,18,"KeyI",39,"I",73,"VK_I",s,s],[40,0,19,"KeyJ",40,"J",74,"VK_J",s,s],[41,0,20,"KeyK",41,"K",75,"VK_K",s,s],[42,0,21,"KeyL",42,"L",76,"VK_L",s,s],[43,0,22,"KeyM",43,"M",77,"VK_M",s,s],[44,0,23,"KeyN",44,"N",78,"VK_N",s,s],[45,0,24,"KeyO",45,"O",79,"VK_O",s,s],[46,0,25,"KeyP",46,"P",80,"VK_P",s,s],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",s,s],[48,0,27,"KeyR",48,"R",82,"VK_R",s,s],[49,0,28,"KeyS",49,"S",83,"VK_S",s,s],[50,0,29,"KeyT",50,"T",84,"VK_T",s,s],[51,0,30,"KeyU",51,"U",85,"VK_U",s,s],[52,0,31,"KeyV",52,"V",86,"VK_V",s,s],[53,0,32,"KeyW",53,"W",87,"VK_W",s,s],[54,0,33,"KeyX",54,"X",88,"VK_X",s,s],[55,0,34,"KeyY",55,"Y",89,"VK_Y",s,s],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",s,s],[22,0,36,"Digit1",22,"1",49,"VK_1",s,s],[23,0,37,"Digit2",23,"2",50,"VK_2",s,s],[24,0,38,"Digit3",24,"3",51,"VK_3",s,s],[25,0,39,"Digit4",25,"4",52,"VK_4",s,s],[26,0,40,"Digit5",26,"5",53,"VK_5",s,s],[27,0,41,"Digit6",27,"6",54,"VK_6",s,s],[28,0,42,"Digit7",28,"7",55,"VK_7",s,s],[29,0,43,"Digit8",29,"8",56,"VK_8",s,s],[30,0,44,"Digit9",30,"9",57,"VK_9",s,s],[21,0,45,"Digit0",21,"0",48,"VK_0",s,s],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",s,s],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",s,s],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",s,s],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",s,s],[10,1,50,"Space",10,"Space",32,"VK_SPACE",s,s],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,s,0,s,s,s],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",s,s],[59,1,64,"F1",59,"F1",112,"VK_F1",s,s],[60,1,65,"F2",60,"F2",113,"VK_F2",s,s],[61,1,66,"F3",61,"F3",114,"VK_F3",s,s],[62,1,67,"F4",62,"F4",115,"VK_F4",s,s],[63,1,68,"F5",63,"F5",116,"VK_F5",s,s],[64,1,69,"F6",64,"F6",117,"VK_F6",s,s],[65,1,70,"F7",65,"F7",118,"VK_F7",s,s],[66,1,71,"F8",66,"F8",119,"VK_F8",s,s],[67,1,72,"F9",67,"F9",120,"VK_F9",s,s],[68,1,73,"F10",68,"F10",121,"VK_F10",s,s],[69,1,74,"F11",69,"F11",122,"VK_F11",s,s],[70,1,75,"F12",70,"F12",123,"VK_F12",s,s],[0,1,76,"PrintScreen",0,s,0,s,s,s],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",s,s],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",s,s],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",s,s],[14,1,80,"Home",14,"Home",36,"VK_HOME",s,s],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",s,s],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",s,s],[13,1,83,"End",13,"End",35,"VK_END",s,s],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",s,s],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",s],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",s],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",s],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",s],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",s,s],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",s,s],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",s,s],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",s,s],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",s,s],[3,1,94,"NumpadEnter",3,s,0,s,s,s],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",s,s],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",s,s],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",s,s],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",s,s],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",s,s],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",s,s],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",s,s],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",s,s],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",s,s],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",s,s],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",s,s],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",s,s],[58,1,107,"ContextMenu",58,"ContextMenu",93,s,s,s],[0,1,108,"Power",0,s,0,s,s,s],[0,1,109,"NumpadEqual",0,s,0,s,s,s],[71,1,110,"F13",71,"F13",124,"VK_F13",s,s],[72,1,111,"F14",72,"F14",125,"VK_F14",s,s],[73,1,112,"F15",73,"F15",126,"VK_F15",s,s],[74,1,113,"F16",74,"F16",127,"VK_F16",s,s],[75,1,114,"F17",75,"F17",128,"VK_F17",s,s],[76,1,115,"F18",76,"F18",129,"VK_F18",s,s],[77,1,116,"F19",77,"F19",130,"VK_F19",s,s],[0,1,117,"F20",0,s,0,"VK_F20",s,s],[0,1,118,"F21",0,s,0,"VK_F21",s,s],[0,1,119,"F22",0,s,0,"VK_F22",s,s],[0,1,120,"F23",0,s,0,"VK_F23",s,s],[0,1,121,"F24",0,s,0,"VK_F24",s,s],[0,1,122,"Open",0,s,0,s,s,s],[0,1,123,"Help",0,s,0,s,s,s],[0,1,124,"Select",0,s,0,s,s,s],[0,1,125,"Again",0,s,0,s,s,s],[0,1,126,"Undo",0,s,0,s,s,s],[0,1,127,"Cut",0,s,0,s,s,s],[0,1,128,"Copy",0,s,0,s,s,s],[0,1,129,"Paste",0,s,0,s,s,s],[0,1,130,"Find",0,s,0,s,s,s],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",s,s],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",s,s],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",s,s],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",s,s],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",s,s],[0,1,136,"KanaMode",0,s,0,s,s,s],[0,0,137,"IntlYen",0,s,0,s,s,s],[0,1,138,"Convert",0,s,0,s,s,s],[0,1,139,"NonConvert",0,s,0,s,s,s],[0,1,140,"Lang1",0,s,0,s,s,s],[0,1,141,"Lang2",0,s,0,s,s,s],[0,1,142,"Lang3",0,s,0,s,s,s],[0,1,143,"Lang4",0,s,0,s,s,s],[0,1,144,"Lang5",0,s,0,s,s,s],[0,1,145,"Abort",0,s,0,s,s,s],[0,1,146,"Props",0,s,0,s,s,s],[0,1,147,"NumpadParenLeft",0,s,0,s,s,s],[0,1,148,"NumpadParenRight",0,s,0,s,s,s],[0,1,149,"NumpadBackspace",0,s,0,s,s,s],[0,1,150,"NumpadMemoryStore",0,s,0,s,s,s],[0,1,151,"NumpadMemoryRecall",0,s,0,s,s,s],[0,1,152,"NumpadMemoryClear",0,s,0,s,s,s],[0,1,153,"NumpadMemoryAdd",0,s,0,s,s,s],[0,1,154,"NumpadMemorySubtract",0,s,0,s,s,s],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",s,s],[0,1,156,"NumpadClearEntry",0,s,0,s,s,s],[5,1,0,s,5,"Ctrl",17,"VK_CONTROL",s,s],[4,1,0,s,4,"Shift",16,"VK_SHIFT",s,s],[6,1,0,s,6,"Alt",18,"VK_MENU",s,s],[57,1,0,s,57,"Meta",0,"VK_COMMAND",s,s],[5,1,157,"ControlLeft",5,s,0,"VK_LCONTROL",s,s],[4,1,158,"ShiftLeft",4,s,0,"VK_LSHIFT",s,s],[6,1,159,"AltLeft",6,s,0,"VK_LMENU",s,s],[57,1,160,"MetaLeft",57,s,0,"VK_LWIN",s,s],[5,1,161,"ControlRight",5,s,0,"VK_RCONTROL",s,s],[4,1,162,"ShiftRight",4,s,0,"VK_RSHIFT",s,s],[6,1,163,"AltRight",6,s,0,"VK_RMENU",s,s],[57,1,164,"MetaRight",57,s,0,"VK_RWIN",s,s],[0,1,165,"BrightnessUp",0,s,0,s,s,s],[0,1,166,"BrightnessDown",0,s,0,s,s,s],[0,1,167,"MediaPlay",0,s,0,s,s,s],[0,1,168,"MediaRecord",0,s,0,s,s,s],[0,1,169,"MediaFastForward",0,s,0,s,s,s],[0,1,170,"MediaRewind",0,s,0,s,s,s],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",s,s],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",s,s],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",s,s],[0,1,174,"Eject",0,s,0,s,s,s],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",s,s],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",s,s],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",s,s],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",s,s],[0,1,179,"LaunchApp1",0,s,0,"VK_MEDIA_LAUNCH_APP1",s,s],[0,1,180,"SelectTask",0,s,0,s,s,s],[0,1,181,"LaunchScreenSaver",0,s,0,s,s,s],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",s,s],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",s,s],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",s,s],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",s,s],[0,1,186,"BrowserStop",0,s,0,"VK_BROWSER_STOP",s,s],[0,1,187,"BrowserRefresh",0,s,0,"VK_BROWSER_REFRESH",s,s],[0,1,188,"BrowserFavorites",0,s,0,"VK_BROWSER_FAVORITES",s,s],[0,1,189,"ZoomToggle",0,s,0,s,s,s],[0,1,190,"MailReply",0,s,0,s,s,s],[0,1,191,"MailForward",0,s,0,s,s,s],[0,1,192,"MailSend",0,s,0,s,s,s],[109,1,0,s,109,"KeyInComposition",229,s,s,s],[111,1,0,s,111,"ABNT_C2",194,"VK_ABNT_C2",s,s],[91,1,0,s,91,"OEM_8",223,"VK_OEM_8",s,s],[0,1,0,s,0,s,0,"VK_KANA",s,s],[0,1,0,s,0,s,0,"VK_HANGUL",s,s],[0,1,0,s,0,s,0,"VK_JUNJA",s,s],[0,1,0,s,0,s,0,"VK_FINAL",s,s],[0,1,0,s,0,s,0,"VK_HANJA",s,s],[0,1,0,s,0,s,0,"VK_KANJI",s,s],[0,1,0,s,0,s,0,"VK_CONVERT",s,s],[0,1,0,s,0,s,0,"VK_NONCONVERT",s,s],[0,1,0,s,0,s,0,"VK_ACCEPT",s,s],[0,1,0,s,0,s,0,"VK_MODECHANGE",s,s],[0,1,0,s,0,s,0,"VK_SELECT",s,s],[0,1,0,s,0,s,0,"VK_PRINT",s,s],[0,1,0,s,0,s,0,"VK_EXECUTE",s,s],[0,1,0,s,0,s,0,"VK_SNAPSHOT",s,s],[0,1,0,s,0,s,0,"VK_HELP",s,s],[0,1,0,s,0,s,0,"VK_APPS",s,s],[0,1,0,s,0,s,0,"VK_PROCESSKEY",s,s],[0,1,0,s,0,s,0,"VK_PACKET",s,s],[0,1,0,s,0,s,0,"VK_DBE_SBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_DBE_DBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_ATTN",s,s],[0,1,0,s,0,s,0,"VK_CRSEL",s,s],[0,1,0,s,0,s,0,"VK_EXSEL",s,s],[0,1,0,s,0,s,0,"VK_EREOF",s,s],[0,1,0,s,0,s,0,"VK_PLAY",s,s],[0,1,0,s,0,s,0,"VK_ZOOM",s,s],[0,1,0,s,0,s,0,"VK_NONAME",s,s],[0,1,0,s,0,s,0,"VK_PA1",s,s],[0,1,0,s,0,s,0,"VK_OEM_CLEAR",s,s]];let t=[],i=[];for(const n of e){const[o,r,a,l,c,h,d,u,f,m]=n;if(i[a]||(i[a]=!0,gE[a]=l,mE[l]=a,pE[l.toLowerCase()]=a,r&&(X1[a]=c,c!==0&&c!==3&&c!==5&&c!==4&&c!==6&&c!==57&&(Qm[c]=a))),!t[c]){if(t[c]=!0,!h)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Md.define(c,h),Ym.define(c,f||h),Xm.define(c,m||f||h)}d&&(hy[d]=c),u&&(fE[u]=c)}Qm[3]=46})();var Jo;(function(s){function e(a){return Md.keyCodeToStr(a)}s.toString=e;function t(a){return Md.strToKeyCode(a)}s.fromString=t;function i(a){return Ym.keyCodeToStr(a)}s.toUserSettingsUS=i;function n(a){return Xm.keyCodeToStr(a)}s.toUserSettingsGeneral=n;function o(a){return Ym.strToKeyCode(a)||Xm.strToKeyCode(a)}s.fromUserSettings=o;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Md.keyCodeToStr(a)}s.toElectronAccelerator=r})(Jo||(Jo={}));function _E(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}let ya;if(typeof Ge.vscode!="undefined"&&typeof Ge.vscode.process!="undefined"){const s=Ge.vscode.process;ya={get platform(){return s.platform},get arch(){return s.arch},get env(){return s.env},cwd(){return s.cwd()}}}else typeof process!="undefined"?ya={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ya={get platform(){return li?"win32":me?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Jm=ya.cwd,bE=ya.env,Ar=ya.platform,CE=65,wE=97,vE=90,SE=122,co=46,Pt=47,ui=92,Vs=58,yE=63;class dy extends Error{constructor(e,t,i){let n;typeof t=="string"&&t.indexOf("not ")===0?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${n} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function ut(s,e){if(typeof s!="string")throw new dy(e,"string",s)}function ge(s){return s===Pt||s===ui}function ep(s){return s===Pt}function Ws(s){return s>=CE&&s<=vE||s>=wE&&s<=SE}function au(s,e,t,i){let n="",o=0,r=-1,a=0,l=0;for(let c=0;c<=s.length;++c){if(c2){const h=n.lastIndexOf(t);h===-1?(n="",o=0):(n=n.slice(0,h),o=n.length-1-n.lastIndexOf(t)),r=c,a=0;continue}else if(n.length!==0){n="",o=0,r=c,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",o=2)}else n.length>0?n+=`${t}${s.slice(r+1,c)}`:n=s.slice(r+1,c),o=c-r-1;r=c,a=0}else l===co&&a!==-1?++a:a=-1}return n}function uy(s,e){if(e===null||typeof e!="object")throw new dy("pathObject","Object",e);const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${s}${i}`:i}const ai={resolve(...s){let e="",t="",i=!1;for(let n=s.length-1;n>=-1;n--){let o;if(n>=0){if(o=s[n],ut(o,"path"),o.length===0)continue}else e.length===0?o=Jm():(o=bE[`=${e}`]||Jm(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===ui)&&(o=`${e}\\`));const r=o.length;let a=0,l="",c=!1;const h=o.charCodeAt(0);if(r===1)ge(h)&&(a=1,c=!0);else if(ge(h))if(c=!0,ge(o.charCodeAt(1))){let d=2,u=d;for(;d2&&ge(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=c,c&&e.length>0)break}return t=au(t,!i,"\\",ge),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(s){ut(s,"path");const e=s.length;if(e===0)return".";let t=0,i,n=!1;const o=s.charCodeAt(0);if(e===1)return ep(o)?"\\":s;if(ge(o))if(n=!0,ge(s.charCodeAt(1))){let a=2,l=a;for(;a2&&ge(s.charCodeAt(2))&&(n=!0,t=3));let r=t0&&ge(s.charCodeAt(e-1))&&(r+="\\"),i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(s){ut(s,"path");const e=s.length;if(e===0)return!1;const t=s.charCodeAt(0);return ge(t)||e>2&&Ws(t)&&s.charCodeAt(1)===Vs&&ge(s.charCodeAt(2))},join(...s){if(s.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,n=0;if(typeof t=="string"&&ge(t.charCodeAt(0))){++n;const o=t.length;o>1&&ge(t.charCodeAt(1))&&(++n,o>2&&(ge(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n=2&&(e=`\\${e.slice(n)}`)}return ai.normalize(e)},relative(s,e){if(ut(s,"from"),ut(e,"to"),s===e)return"";const t=ai.resolve(s),i=ai.resolve(e);if(t===i||(s=t.toLowerCase(),e=i.toLowerCase(),s===e))return"";let n=0;for(;nn&&s.charCodeAt(o-1)===ui;)o--;const r=o-n;let a=0;for(;aa&&e.charCodeAt(l-1)===ui;)l--;const c=l-a,h=rh){if(e.charCodeAt(a+u)===ui)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>h&&(s.charCodeAt(n+u)===ui?d=u:u===2&&(d=3)),d===-1&&(d=0)}let f="";for(u=n+d+1;u<=o;++u)(u===o||s.charCodeAt(u)===ui)&&(f+=f.length===0?"..":"\\..");return a+=d,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===ui&&++a,i.slice(a,l))},toNamespacedPath(s){if(typeof s!="string")return s;if(s.length===0)return"";const e=ai.resolve(s);if(e.length<=2)return s;if(e.charCodeAt(0)===ui){if(e.charCodeAt(1)===ui){const t=e.charCodeAt(2);if(t!==yE&&t!==co)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ws(e.charCodeAt(0))&&e.charCodeAt(1)===Vs&&e.charCodeAt(2)===ui)return`\\\\?\\${e}`;return s},dirname(s){ut(s,"path");const e=s.length;if(e===0)return".";let t=-1,i=0;const n=s.charCodeAt(0);if(e===1)return ge(n)?s:".";if(ge(n)){if(t=i=1,ge(s.charCodeAt(1))){let a=2,l=a;for(;a2&&ge(s.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(ge(s.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return s.slice(0,o)},basename(s,e){e!==void 0&&ut(e,"ext"),ut(s,"path");let t=0,i=-1,n=!0,o;if(s.length>=2&&Ws(s.charCodeAt(0))&&s.charCodeAt(1)===Vs&&(t=2),e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=t;--o){const l=s.charCodeAt(o);if(ge(l)){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=t;--o)if(ge(s.charCodeAt(o))){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){ut(s,"path");let e=0,t=-1,i=0,n=-1,o=!0,r=0;s.length>=2&&s.charCodeAt(1)===Vs&&Ws(s.charCodeAt(0))&&(e=i=2);for(let a=s.length-1;a>=e;--a){const l=s.charCodeAt(a);if(ge(l)){if(!o){i=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===co?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||n===-1||r===0||r===1&&t===n-1&&t===i+1?"":s.slice(t,n)},format:uy.bind(null,"\\"),parse(s){ut(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.length;let i=0,n=s.charCodeAt(0);if(t===1)return ge(n)?(e.root=e.dir=s,e):(e.base=e.name=s,e);if(ge(n)){if(i=1,ge(s.charCodeAt(1))){let d=2,u=d;for(;d0&&(e.root=s.slice(0,i));let o=-1,r=i,a=-1,l=!0,c=s.length-1,h=0;for(;c>=i;--c){if(n=s.charCodeAt(c),ge(n)){if(!l){r=c+1;break}continue}a===-1&&(l=!1,a=c+1),n===co?o===-1?o=c:h!==1&&(h=1):o!==-1&&(h=-1)}return a!==-1&&(o===-1||h===0||h===1&&o===a-1&&o===r+1?e.base=e.name=s.slice(r,a):(e.name=s.slice(r,o),e.base=s.slice(r,a),e.ext=s.slice(o,a))),r>0&&r!==i?e.dir=s.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},tt={resolve(...s){let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){const n=i>=0?s[i]:Jm();ut(n,"path"),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===Pt)}return e=au(e,!t,"/",ep),t?`/${e}`:e.length>0?e:"."},normalize(s){if(ut(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===Pt,t=s.charCodeAt(s.length-1)===Pt;return s=au(s,!e,"/",ep),s.length===0?e?"/":t?"./":".":(t&&(s+="/"),e?`/${s}`:s)},isAbsolute(s){return ut(s,"path"),s.length>0&&s.charCodeAt(0)===Pt},join(...s){if(s.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":tt.normalize(e)},relative(s,e){if(ut(s,"from"),ut(e,"to"),s===e||(s=tt.resolve(s),e=tt.resolve(e),s===e))return"";const t=1,i=s.length,n=i-t,o=1,r=e.length-o,a=na){if(e.charCodeAt(o+c)===Pt)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else n>a&&(s.charCodeAt(t+c)===Pt?l=c:c===0&&(l=0));let h="";for(c=t+l+1;c<=i;++c)(c===i||s.charCodeAt(c)===Pt)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(o+l)}`},toNamespacedPath(s){return s},dirname(s){if(ut(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===Pt;let t=-1,i=!0;for(let n=s.length-1;n>=1;--n)if(s.charCodeAt(n)===Pt){if(!i){t=n;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":s.slice(0,t)},basename(s,e){e!==void 0&&ut(e,"ext"),ut(s,"path");let t=0,i=-1,n=!0,o;if(e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=0;--o){const l=s.charCodeAt(o);if(l===Pt){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=0;--o)if(s.charCodeAt(o)===Pt){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){ut(s,"path");let e=-1,t=0,i=-1,n=!0,o=0;for(let r=s.length-1;r>=0;--r){const a=s.charCodeAt(r);if(a===Pt){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a===co?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":s.slice(e,i)},format:uy.bind(null,"/"),parse(s){ut(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.charCodeAt(0)===Pt;let i;t?(e.root="/",i=1):i=0;let n=-1,o=0,r=-1,a=!0,l=s.length-1,c=0;for(;l>=i;--l){const h=s.charCodeAt(l);if(h===Pt){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),h===co?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}if(r!==-1){const h=o===0&&t?1:o;n===-1||c===0||c===1&&n===r-1&&n===o+1?e.base=e.name=s.slice(h,r):(e.name=s.slice(h,n),e.base=s.slice(h,r),e.ext=s.slice(n,r))}return o>0?e.dir=s.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};tt.win32=ai.win32=ai;tt.posix=ai.posix=tt;const fy=Ar==="win32"?ai.normalize:tt.normalize,LE=Ar==="win32"?ai.resolve:tt.resolve,kE=Ar==="win32"?ai.relative:tt.relative,xE=Ar==="win32"?ai.dirname:tt.dirname,gy=Ar==="win32"?ai.basename:tt.basename,IE=Ar==="win32"?ai.extname:tt.extname,rr=Ar==="win32"?ai.sep:tt.sep,EE=/^\w[\w\d+.-]*$/,DE=/^\//,NE=/^\/\//;function Yb(s,e){if(!s.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!EE.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!DE.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(NE.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function TE(s,e){return!s&&!e?"file":s}function ME(s,e){switch(s){case"https":case"http":case"file":e?e[0]!==mn&&(e=mn+e):e=mn;break}return e}const ze="",mn="/",RE=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class we{constructor(e,t,i,n,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||ze,this.authority=e.authority||ze,this.path=e.path||ze,this.query=e.query||ze,this.fragment=e.fragment||ze):(this.scheme=TE(e,r),this.authority=t||ze,this.path=ME(this.scheme,i||ze),this.query=n||ze,this.fragment=o||ze,Yb(this,r))}static isUri(e){return e instanceof we?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}get fsPath(){return lu(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=ze),i===void 0?i=this.authority:i===null&&(i=ze),n===void 0?n=this.path:n===null&&(n=ze),o===void 0?o=this.query:o===null&&(o=ze),r===void 0?r=this.fragment:r===null&&(r=ze),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new jr(t,i,n,o,r)}static parse(e,t=!1){const i=RE.exec(e);return i?new jr(i[2]||ze,Wh(i[4]||ze),Wh(i[5]||ze),Wh(i[7]||ze),Wh(i[9]||ze),t):new jr(ze,ze,ze,ze,ze)}static file(e){let t=ze;if(li&&(e=e.replace(/\\/g,mn)),e[0]===mn&&e[1]===mn){const i=e.indexOf(mn,2);i===-1?(t=e.substring(2),e=mn):(t=e.substring(2,i),e=e.substring(i)||mn)}return new jr("file",t,e,ze,ze)}static from(e){const t=new jr(e.scheme,e.authority,e.path,e.query,e.fragment);return Yb(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return li&&e.scheme==="file"?i=we.file(ai.join(lu(e,!0),...t)).path:i=tt.join(e.path,...t),e.with({path:i})}toString(e=!1){return tp(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof we)return e;{const t=new jr(e);return t._formatted=e.external,t._fsPath=e._sep===my?e.fsPath:null,t}}else return e}}const my=li?1:void 0;class jr extends we{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=lu(this,!1)),this._fsPath}toString(e=!1){return e?tp(this,!0):(this._formatted||(this._formatted=tp(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=my),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const py={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Xb(s,e){let t,i=-1;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(s.substring(i,n)),i=-1),t!==void 0&&(t+=s.charAt(n));else{t===void 0&&(t=s.substr(0,n));const r=py[o];r!==void 0?(i!==-1&&(t+=encodeURIComponent(s.substring(i,n)),i=-1),t+=r):i===-1&&(i=n)}}return i!==-1&&(t+=encodeURIComponent(s.substring(i))),t!==void 0?t:s}function AE(s){let e;for(let t=0;t1&&s.scheme==="file"?t=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?e?t=s.path.substr(1):t=s.path[1].toLowerCase()+s.path.substr(2):t=s.path,li&&(t=t.replace(/\//g,"\\")),t}function tp(s,e){const t=e?AE:Xb;let i="",{scheme:n,authority:o,path:r,query:a,fragment:l}=s;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=mn,i+=mn),o){let c=o.indexOf("@");if(c!==-1){const h=o.substr(0,c);o=o.substr(c+1),c=h.indexOf(":"),c===-1?i+=t(h,!1):(i+=t(h.substr(0,c),!1),i+=":",i+=t(h.substr(c+1),!1)),i+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?i+=t(o,!1):(i+=t(o.substr(0,c),!1),i+=o.substr(c))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const c=r.charCodeAt(1);c>=65&&c<=90&&(r=`/${String.fromCharCode(c+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const c=r.charCodeAt(0);c>=65&&c<=90&&(r=`${String.fromCharCode(c+32)}:${r.substr(2)}`)}i+=t(r,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:Xb(l,!1)),i}function _y(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+_y(s.substr(3)):s}}const Qb=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Wh(s){return s.match(Qb)?s.replace(Qb,e=>_y(e)):s}class A{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new A(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return A.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return A.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return D.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return D.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return D.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return D.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return D.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new D(i,n,o,r)}intersectRanges(e){return D.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return ic?(o=c,r=h):o===c&&(r=Math.min(r,h)),i>o||i===o&&n>r?null:new D(i,n,o,r)}equalsRange(e){return D.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return D.getEndPosition(this)}static getEndPosition(e){return new A(e.endLineNumber,e.endColumn)}getStartPosition(){return D.getStartPosition(this)}static getStartPosition(e){return new A(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new D(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new D(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return D.collapseToStart(this)}static collapseToStart(e){return new D(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new D(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new D(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class ce extends D{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ce.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new ce(this.startLineNumber,this.startColumn,e,t):new ce(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new A(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new A(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new ce(e,t,this.endLineNumber,this.endColumn):new ce(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new ce(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new ce(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ce(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ce(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerFactory(e,t){var i;(i=this._factories.get(e))===null||i===void 0||i.dispose();const n=new PE(this,e,t);return this._factories.set(e,n),Pe(()=>{const o=this._factories.get(e);!o||o!==n||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return ip(this,void 0,void 0,function*(){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class PE extends W{constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return ip(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return ip(this,void 0,void 0,function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}function FE(s){return s?s.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}class g{constructor(e,t,i){this.id=e,this.definition=t,this.description=i,g._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return g._allCodicons}}g._allCodicons=[];g.add=new g("add",{fontCharacter:"\\ea60"});g.plus=new g("plus",g.add.definition);g.gistNew=new g("gist-new",g.add.definition);g.repoCreate=new g("repo-create",g.add.definition);g.lightbulb=new g("lightbulb",{fontCharacter:"\\ea61"});g.lightBulb=new g("light-bulb",{fontCharacter:"\\ea61"});g.repo=new g("repo",{fontCharacter:"\\ea62"});g.repoDelete=new g("repo-delete",{fontCharacter:"\\ea62"});g.gistFork=new g("gist-fork",{fontCharacter:"\\ea63"});g.repoForked=new g("repo-forked",{fontCharacter:"\\ea63"});g.gitPullRequest=new g("git-pull-request",{fontCharacter:"\\ea64"});g.gitPullRequestAbandoned=new g("git-pull-request-abandoned",{fontCharacter:"\\ea64"});g.recordKeys=new g("record-keys",{fontCharacter:"\\ea65"});g.keyboard=new g("keyboard",{fontCharacter:"\\ea65"});g.tag=new g("tag",{fontCharacter:"\\ea66"});g.tagAdd=new g("tag-add",{fontCharacter:"\\ea66"});g.tagRemove=new g("tag-remove",{fontCharacter:"\\ea66"});g.person=new g("person",{fontCharacter:"\\ea67"});g.personFollow=new g("person-follow",{fontCharacter:"\\ea67"});g.personOutline=new g("person-outline",{fontCharacter:"\\ea67"});g.personFilled=new g("person-filled",{fontCharacter:"\\ea67"});g.gitBranch=new g("git-branch",{fontCharacter:"\\ea68"});g.gitBranchCreate=new g("git-branch-create",{fontCharacter:"\\ea68"});g.gitBranchDelete=new g("git-branch-delete",{fontCharacter:"\\ea68"});g.sourceControl=new g("source-control",{fontCharacter:"\\ea68"});g.mirror=new g("mirror",{fontCharacter:"\\ea69"});g.mirrorPublic=new g("mirror-public",{fontCharacter:"\\ea69"});g.star=new g("star",{fontCharacter:"\\ea6a"});g.starAdd=new g("star-add",{fontCharacter:"\\ea6a"});g.starDelete=new g("star-delete",{fontCharacter:"\\ea6a"});g.starEmpty=new g("star-empty",{fontCharacter:"\\ea6a"});g.comment=new g("comment",{fontCharacter:"\\ea6b"});g.commentAdd=new g("comment-add",{fontCharacter:"\\ea6b"});g.alert=new g("alert",{fontCharacter:"\\ea6c"});g.warning=new g("warning",{fontCharacter:"\\ea6c"});g.search=new g("search",{fontCharacter:"\\ea6d"});g.searchSave=new g("search-save",{fontCharacter:"\\ea6d"});g.logOut=new g("log-out",{fontCharacter:"\\ea6e"});g.signOut=new g("sign-out",{fontCharacter:"\\ea6e"});g.logIn=new g("log-in",{fontCharacter:"\\ea6f"});g.signIn=new g("sign-in",{fontCharacter:"\\ea6f"});g.eye=new g("eye",{fontCharacter:"\\ea70"});g.eyeUnwatch=new g("eye-unwatch",{fontCharacter:"\\ea70"});g.eyeWatch=new g("eye-watch",{fontCharacter:"\\ea70"});g.circleFilled=new g("circle-filled",{fontCharacter:"\\ea71"});g.primitiveDot=new g("primitive-dot",{fontCharacter:"\\ea71"});g.closeDirty=new g("close-dirty",{fontCharacter:"\\ea71"});g.debugBreakpoint=new g("debug-breakpoint",{fontCharacter:"\\ea71"});g.debugBreakpointDisabled=new g("debug-breakpoint-disabled",{fontCharacter:"\\ea71"});g.debugHint=new g("debug-hint",{fontCharacter:"\\ea71"});g.primitiveSquare=new g("primitive-square",{fontCharacter:"\\ea72"});g.edit=new g("edit",{fontCharacter:"\\ea73"});g.pencil=new g("pencil",{fontCharacter:"\\ea73"});g.info=new g("info",{fontCharacter:"\\ea74"});g.issueOpened=new g("issue-opened",{fontCharacter:"\\ea74"});g.gistPrivate=new g("gist-private",{fontCharacter:"\\ea75"});g.gitForkPrivate=new g("git-fork-private",{fontCharacter:"\\ea75"});g.lock=new g("lock",{fontCharacter:"\\ea75"});g.mirrorPrivate=new g("mirror-private",{fontCharacter:"\\ea75"});g.close=new g("close",{fontCharacter:"\\ea76"});g.removeClose=new g("remove-close",{fontCharacter:"\\ea76"});g.x=new g("x",{fontCharacter:"\\ea76"});g.repoSync=new g("repo-sync",{fontCharacter:"\\ea77"});g.sync=new g("sync",{fontCharacter:"\\ea77"});g.clone=new g("clone",{fontCharacter:"\\ea78"});g.desktopDownload=new g("desktop-download",{fontCharacter:"\\ea78"});g.beaker=new g("beaker",{fontCharacter:"\\ea79"});g.microscope=new g("microscope",{fontCharacter:"\\ea79"});g.vm=new g("vm",{fontCharacter:"\\ea7a"});g.deviceDesktop=new g("device-desktop",{fontCharacter:"\\ea7a"});g.file=new g("file",{fontCharacter:"\\ea7b"});g.fileText=new g("file-text",{fontCharacter:"\\ea7b"});g.more=new g("more",{fontCharacter:"\\ea7c"});g.ellipsis=new g("ellipsis",{fontCharacter:"\\ea7c"});g.kebabHorizontal=new g("kebab-horizontal",{fontCharacter:"\\ea7c"});g.mailReply=new g("mail-reply",{fontCharacter:"\\ea7d"});g.reply=new g("reply",{fontCharacter:"\\ea7d"});g.organization=new g("organization",{fontCharacter:"\\ea7e"});g.organizationFilled=new g("organization-filled",{fontCharacter:"\\ea7e"});g.organizationOutline=new g("organization-outline",{fontCharacter:"\\ea7e"});g.newFile=new g("new-file",{fontCharacter:"\\ea7f"});g.fileAdd=new g("file-add",{fontCharacter:"\\ea7f"});g.newFolder=new g("new-folder",{fontCharacter:"\\ea80"});g.fileDirectoryCreate=new g("file-directory-create",{fontCharacter:"\\ea80"});g.trash=new g("trash",{fontCharacter:"\\ea81"});g.trashcan=new g("trashcan",{fontCharacter:"\\ea81"});g.history=new g("history",{fontCharacter:"\\ea82"});g.clock=new g("clock",{fontCharacter:"\\ea82"});g.folder=new g("folder",{fontCharacter:"\\ea83"});g.fileDirectory=new g("file-directory",{fontCharacter:"\\ea83"});g.symbolFolder=new g("symbol-folder",{fontCharacter:"\\ea83"});g.logoGithub=new g("logo-github",{fontCharacter:"\\ea84"});g.markGithub=new g("mark-github",{fontCharacter:"\\ea84"});g.github=new g("github",{fontCharacter:"\\ea84"});g.terminal=new g("terminal",{fontCharacter:"\\ea85"});g.console=new g("console",{fontCharacter:"\\ea85"});g.repl=new g("repl",{fontCharacter:"\\ea85"});g.zap=new g("zap",{fontCharacter:"\\ea86"});g.symbolEvent=new g("symbol-event",{fontCharacter:"\\ea86"});g.error=new g("error",{fontCharacter:"\\ea87"});g.stop=new g("stop",{fontCharacter:"\\ea87"});g.variable=new g("variable",{fontCharacter:"\\ea88"});g.symbolVariable=new g("symbol-variable",{fontCharacter:"\\ea88"});g.array=new g("array",{fontCharacter:"\\ea8a"});g.symbolArray=new g("symbol-array",{fontCharacter:"\\ea8a"});g.symbolModule=new g("symbol-module",{fontCharacter:"\\ea8b"});g.symbolPackage=new g("symbol-package",{fontCharacter:"\\ea8b"});g.symbolNamespace=new g("symbol-namespace",{fontCharacter:"\\ea8b"});g.symbolObject=new g("symbol-object",{fontCharacter:"\\ea8b"});g.symbolMethod=new g("symbol-method",{fontCharacter:"\\ea8c"});g.symbolFunction=new g("symbol-function",{fontCharacter:"\\ea8c"});g.symbolConstructor=new g("symbol-constructor",{fontCharacter:"\\ea8c"});g.symbolBoolean=new g("symbol-boolean",{fontCharacter:"\\ea8f"});g.symbolNull=new g("symbol-null",{fontCharacter:"\\ea8f"});g.symbolNumeric=new g("symbol-numeric",{fontCharacter:"\\ea90"});g.symbolNumber=new g("symbol-number",{fontCharacter:"\\ea90"});g.symbolStructure=new g("symbol-structure",{fontCharacter:"\\ea91"});g.symbolStruct=new g("symbol-struct",{fontCharacter:"\\ea91"});g.symbolParameter=new g("symbol-parameter",{fontCharacter:"\\ea92"});g.symbolTypeParameter=new g("symbol-type-parameter",{fontCharacter:"\\ea92"});g.symbolKey=new g("symbol-key",{fontCharacter:"\\ea93"});g.symbolText=new g("symbol-text",{fontCharacter:"\\ea93"});g.symbolReference=new g("symbol-reference",{fontCharacter:"\\ea94"});g.goToFile=new g("go-to-file",{fontCharacter:"\\ea94"});g.symbolEnum=new g("symbol-enum",{fontCharacter:"\\ea95"});g.symbolValue=new g("symbol-value",{fontCharacter:"\\ea95"});g.symbolRuler=new g("symbol-ruler",{fontCharacter:"\\ea96"});g.symbolUnit=new g("symbol-unit",{fontCharacter:"\\ea96"});g.activateBreakpoints=new g("activate-breakpoints",{fontCharacter:"\\ea97"});g.archive=new g("archive",{fontCharacter:"\\ea98"});g.arrowBoth=new g("arrow-both",{fontCharacter:"\\ea99"});g.arrowDown=new g("arrow-down",{fontCharacter:"\\ea9a"});g.arrowLeft=new g("arrow-left",{fontCharacter:"\\ea9b"});g.arrowRight=new g("arrow-right",{fontCharacter:"\\ea9c"});g.arrowSmallDown=new g("arrow-small-down",{fontCharacter:"\\ea9d"});g.arrowSmallLeft=new g("arrow-small-left",{fontCharacter:"\\ea9e"});g.arrowSmallRight=new g("arrow-small-right",{fontCharacter:"\\ea9f"});g.arrowSmallUp=new g("arrow-small-up",{fontCharacter:"\\eaa0"});g.arrowUp=new g("arrow-up",{fontCharacter:"\\eaa1"});g.bell=new g("bell",{fontCharacter:"\\eaa2"});g.bold=new g("bold",{fontCharacter:"\\eaa3"});g.book=new g("book",{fontCharacter:"\\eaa4"});g.bookmark=new g("bookmark",{fontCharacter:"\\eaa5"});g.debugBreakpointConditionalUnverified=new g("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"});g.debugBreakpointConditional=new g("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"});g.debugBreakpointConditionalDisabled=new g("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"});g.debugBreakpointDataUnverified=new g("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"});g.debugBreakpointData=new g("debug-breakpoint-data",{fontCharacter:"\\eaa9"});g.debugBreakpointDataDisabled=new g("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"});g.debugBreakpointLogUnverified=new g("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"});g.debugBreakpointLog=new g("debug-breakpoint-log",{fontCharacter:"\\eaab"});g.debugBreakpointLogDisabled=new g("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"});g.briefcase=new g("briefcase",{fontCharacter:"\\eaac"});g.broadcast=new g("broadcast",{fontCharacter:"\\eaad"});g.browser=new g("browser",{fontCharacter:"\\eaae"});g.bug=new g("bug",{fontCharacter:"\\eaaf"});g.calendar=new g("calendar",{fontCharacter:"\\eab0"});g.caseSensitive=new g("case-sensitive",{fontCharacter:"\\eab1"});g.check=new g("check",{fontCharacter:"\\eab2"});g.checklist=new g("checklist",{fontCharacter:"\\eab3"});g.chevronDown=new g("chevron-down",{fontCharacter:"\\eab4"});g.dropDownButton=new g("drop-down-button",g.chevronDown.definition);g.chevronLeft=new g("chevron-left",{fontCharacter:"\\eab5"});g.chevronRight=new g("chevron-right",{fontCharacter:"\\eab6"});g.chevronUp=new g("chevron-up",{fontCharacter:"\\eab7"});g.chromeClose=new g("chrome-close",{fontCharacter:"\\eab8"});g.chromeMaximize=new g("chrome-maximize",{fontCharacter:"\\eab9"});g.chromeMinimize=new g("chrome-minimize",{fontCharacter:"\\eaba"});g.chromeRestore=new g("chrome-restore",{fontCharacter:"\\eabb"});g.circleOutline=new g("circle-outline",{fontCharacter:"\\eabc"});g.debugBreakpointUnverified=new g("debug-breakpoint-unverified",{fontCharacter:"\\eabc"});g.circleSlash=new g("circle-slash",{fontCharacter:"\\eabd"});g.circuitBoard=new g("circuit-board",{fontCharacter:"\\eabe"});g.clearAll=new g("clear-all",{fontCharacter:"\\eabf"});g.clippy=new g("clippy",{fontCharacter:"\\eac0"});g.closeAll=new g("close-all",{fontCharacter:"\\eac1"});g.cloudDownload=new g("cloud-download",{fontCharacter:"\\eac2"});g.cloudUpload=new g("cloud-upload",{fontCharacter:"\\eac3"});g.code=new g("code",{fontCharacter:"\\eac4"});g.collapseAll=new g("collapse-all",{fontCharacter:"\\eac5"});g.colorMode=new g("color-mode",{fontCharacter:"\\eac6"});g.commentDiscussion=new g("comment-discussion",{fontCharacter:"\\eac7"});g.compareChanges=new g("compare-changes",{fontCharacter:"\\eafd"});g.creditCard=new g("credit-card",{fontCharacter:"\\eac9"});g.dash=new g("dash",{fontCharacter:"\\eacc"});g.dashboard=new g("dashboard",{fontCharacter:"\\eacd"});g.database=new g("database",{fontCharacter:"\\eace"});g.debugContinue=new g("debug-continue",{fontCharacter:"\\eacf"});g.debugDisconnect=new g("debug-disconnect",{fontCharacter:"\\ead0"});g.debugPause=new g("debug-pause",{fontCharacter:"\\ead1"});g.debugRestart=new g("debug-restart",{fontCharacter:"\\ead2"});g.debugStart=new g("debug-start",{fontCharacter:"\\ead3"});g.debugStepInto=new g("debug-step-into",{fontCharacter:"\\ead4"});g.debugStepOut=new g("debug-step-out",{fontCharacter:"\\ead5"});g.debugStepOver=new g("debug-step-over",{fontCharacter:"\\ead6"});g.debugStop=new g("debug-stop",{fontCharacter:"\\ead7"});g.debug=new g("debug",{fontCharacter:"\\ead8"});g.deviceCameraVideo=new g("device-camera-video",{fontCharacter:"\\ead9"});g.deviceCamera=new g("device-camera",{fontCharacter:"\\eada"});g.deviceMobile=new g("device-mobile",{fontCharacter:"\\eadb"});g.diffAdded=new g("diff-added",{fontCharacter:"\\eadc"});g.diffIgnored=new g("diff-ignored",{fontCharacter:"\\eadd"});g.diffModified=new g("diff-modified",{fontCharacter:"\\eade"});g.diffRemoved=new g("diff-removed",{fontCharacter:"\\eadf"});g.diffRenamed=new g("diff-renamed",{fontCharacter:"\\eae0"});g.diff=new g("diff",{fontCharacter:"\\eae1"});g.discard=new g("discard",{fontCharacter:"\\eae2"});g.editorLayout=new g("editor-layout",{fontCharacter:"\\eae3"});g.emptyWindow=new g("empty-window",{fontCharacter:"\\eae4"});g.exclude=new g("exclude",{fontCharacter:"\\eae5"});g.extensions=new g("extensions",{fontCharacter:"\\eae6"});g.eyeClosed=new g("eye-closed",{fontCharacter:"\\eae7"});g.fileBinary=new g("file-binary",{fontCharacter:"\\eae8"});g.fileCode=new g("file-code",{fontCharacter:"\\eae9"});g.fileMedia=new g("file-media",{fontCharacter:"\\eaea"});g.filePdf=new g("file-pdf",{fontCharacter:"\\eaeb"});g.fileSubmodule=new g("file-submodule",{fontCharacter:"\\eaec"});g.fileSymlinkDirectory=new g("file-symlink-directory",{fontCharacter:"\\eaed"});g.fileSymlinkFile=new g("file-symlink-file",{fontCharacter:"\\eaee"});g.fileZip=new g("file-zip",{fontCharacter:"\\eaef"});g.files=new g("files",{fontCharacter:"\\eaf0"});g.filter=new g("filter",{fontCharacter:"\\eaf1"});g.flame=new g("flame",{fontCharacter:"\\eaf2"});g.foldDown=new g("fold-down",{fontCharacter:"\\eaf3"});g.foldUp=new g("fold-up",{fontCharacter:"\\eaf4"});g.fold=new g("fold",{fontCharacter:"\\eaf5"});g.folderActive=new g("folder-active",{fontCharacter:"\\eaf6"});g.folderOpened=new g("folder-opened",{fontCharacter:"\\eaf7"});g.gear=new g("gear",{fontCharacter:"\\eaf8"});g.gift=new g("gift",{fontCharacter:"\\eaf9"});g.gistSecret=new g("gist-secret",{fontCharacter:"\\eafa"});g.gist=new g("gist",{fontCharacter:"\\eafb"});g.gitCommit=new g("git-commit",{fontCharacter:"\\eafc"});g.gitCompare=new g("git-compare",{fontCharacter:"\\eafd"});g.gitMerge=new g("git-merge",{fontCharacter:"\\eafe"});g.githubAction=new g("github-action",{fontCharacter:"\\eaff"});g.githubAlt=new g("github-alt",{fontCharacter:"\\eb00"});g.globe=new g("globe",{fontCharacter:"\\eb01"});g.grabber=new g("grabber",{fontCharacter:"\\eb02"});g.graph=new g("graph",{fontCharacter:"\\eb03"});g.gripper=new g("gripper",{fontCharacter:"\\eb04"});g.heart=new g("heart",{fontCharacter:"\\eb05"});g.home=new g("home",{fontCharacter:"\\eb06"});g.horizontalRule=new g("horizontal-rule",{fontCharacter:"\\eb07"});g.hubot=new g("hubot",{fontCharacter:"\\eb08"});g.inbox=new g("inbox",{fontCharacter:"\\eb09"});g.issueClosed=new g("issue-closed",{fontCharacter:"\\eba4"});g.issueReopened=new g("issue-reopened",{fontCharacter:"\\eb0b"});g.issues=new g("issues",{fontCharacter:"\\eb0c"});g.italic=new g("italic",{fontCharacter:"\\eb0d"});g.jersey=new g("jersey",{fontCharacter:"\\eb0e"});g.json=new g("json",{fontCharacter:"\\eb0f"});g.kebabVertical=new g("kebab-vertical",{fontCharacter:"\\eb10"});g.key=new g("key",{fontCharacter:"\\eb11"});g.law=new g("law",{fontCharacter:"\\eb12"});g.lightbulbAutofix=new g("lightbulb-autofix",{fontCharacter:"\\eb13"});g.linkExternal=new g("link-external",{fontCharacter:"\\eb14"});g.link=new g("link",{fontCharacter:"\\eb15"});g.listOrdered=new g("list-ordered",{fontCharacter:"\\eb16"});g.listUnordered=new g("list-unordered",{fontCharacter:"\\eb17"});g.liveShare=new g("live-share",{fontCharacter:"\\eb18"});g.loading=new g("loading",{fontCharacter:"\\eb19"});g.location=new g("location",{fontCharacter:"\\eb1a"});g.mailRead=new g("mail-read",{fontCharacter:"\\eb1b"});g.mail=new g("mail",{fontCharacter:"\\eb1c"});g.markdown=new g("markdown",{fontCharacter:"\\eb1d"});g.megaphone=new g("megaphone",{fontCharacter:"\\eb1e"});g.mention=new g("mention",{fontCharacter:"\\eb1f"});g.milestone=new g("milestone",{fontCharacter:"\\eb20"});g.mortarBoard=new g("mortar-board",{fontCharacter:"\\eb21"});g.move=new g("move",{fontCharacter:"\\eb22"});g.multipleWindows=new g("multiple-windows",{fontCharacter:"\\eb23"});g.mute=new g("mute",{fontCharacter:"\\eb24"});g.noNewline=new g("no-newline",{fontCharacter:"\\eb25"});g.note=new g("note",{fontCharacter:"\\eb26"});g.octoface=new g("octoface",{fontCharacter:"\\eb27"});g.openPreview=new g("open-preview",{fontCharacter:"\\eb28"});g.package_=new g("package",{fontCharacter:"\\eb29"});g.paintcan=new g("paintcan",{fontCharacter:"\\eb2a"});g.pin=new g("pin",{fontCharacter:"\\eb2b"});g.play=new g("play",{fontCharacter:"\\eb2c"});g.run=new g("run",{fontCharacter:"\\eb2c"});g.plug=new g("plug",{fontCharacter:"\\eb2d"});g.preserveCase=new g("preserve-case",{fontCharacter:"\\eb2e"});g.preview=new g("preview",{fontCharacter:"\\eb2f"});g.project=new g("project",{fontCharacter:"\\eb30"});g.pulse=new g("pulse",{fontCharacter:"\\eb31"});g.question=new g("question",{fontCharacter:"\\eb32"});g.quote=new g("quote",{fontCharacter:"\\eb33"});g.radioTower=new g("radio-tower",{fontCharacter:"\\eb34"});g.reactions=new g("reactions",{fontCharacter:"\\eb35"});g.references=new g("references",{fontCharacter:"\\eb36"});g.refresh=new g("refresh",{fontCharacter:"\\eb37"});g.regex=new g("regex",{fontCharacter:"\\eb38"});g.remoteExplorer=new g("remote-explorer",{fontCharacter:"\\eb39"});g.remote=new g("remote",{fontCharacter:"\\eb3a"});g.remove=new g("remove",{fontCharacter:"\\eb3b"});g.replaceAll=new g("replace-all",{fontCharacter:"\\eb3c"});g.replace=new g("replace",{fontCharacter:"\\eb3d"});g.repoClone=new g("repo-clone",{fontCharacter:"\\eb3e"});g.repoForcePush=new g("repo-force-push",{fontCharacter:"\\eb3f"});g.repoPull=new g("repo-pull",{fontCharacter:"\\eb40"});g.repoPush=new g("repo-push",{fontCharacter:"\\eb41"});g.report=new g("report",{fontCharacter:"\\eb42"});g.requestChanges=new g("request-changes",{fontCharacter:"\\eb43"});g.rocket=new g("rocket",{fontCharacter:"\\eb44"});g.rootFolderOpened=new g("root-folder-opened",{fontCharacter:"\\eb45"});g.rootFolder=new g("root-folder",{fontCharacter:"\\eb46"});g.rss=new g("rss",{fontCharacter:"\\eb47"});g.ruby=new g("ruby",{fontCharacter:"\\eb48"});g.saveAll=new g("save-all",{fontCharacter:"\\eb49"});g.saveAs=new g("save-as",{fontCharacter:"\\eb4a"});g.save=new g("save",{fontCharacter:"\\eb4b"});g.screenFull=new g("screen-full",{fontCharacter:"\\eb4c"});g.screenNormal=new g("screen-normal",{fontCharacter:"\\eb4d"});g.searchStop=new g("search-stop",{fontCharacter:"\\eb4e"});g.server=new g("server",{fontCharacter:"\\eb50"});g.settingsGear=new g("settings-gear",{fontCharacter:"\\eb51"});g.settings=new g("settings",{fontCharacter:"\\eb52"});g.shield=new g("shield",{fontCharacter:"\\eb53"});g.smiley=new g("smiley",{fontCharacter:"\\eb54"});g.sortPrecedence=new g("sort-precedence",{fontCharacter:"\\eb55"});g.splitHorizontal=new g("split-horizontal",{fontCharacter:"\\eb56"});g.splitVertical=new g("split-vertical",{fontCharacter:"\\eb57"});g.squirrel=new g("squirrel",{fontCharacter:"\\eb58"});g.starFull=new g("star-full",{fontCharacter:"\\eb59"});g.starHalf=new g("star-half",{fontCharacter:"\\eb5a"});g.symbolClass=new g("symbol-class",{fontCharacter:"\\eb5b"});g.symbolColor=new g("symbol-color",{fontCharacter:"\\eb5c"});g.symbolCustomColor=new g("symbol-customcolor",{fontCharacter:"\\eb5c"});g.symbolConstant=new g("symbol-constant",{fontCharacter:"\\eb5d"});g.symbolEnumMember=new g("symbol-enum-member",{fontCharacter:"\\eb5e"});g.symbolField=new g("symbol-field",{fontCharacter:"\\eb5f"});g.symbolFile=new g("symbol-file",{fontCharacter:"\\eb60"});g.symbolInterface=new g("symbol-interface",{fontCharacter:"\\eb61"});g.symbolKeyword=new g("symbol-keyword",{fontCharacter:"\\eb62"});g.symbolMisc=new g("symbol-misc",{fontCharacter:"\\eb63"});g.symbolOperator=new g("symbol-operator",{fontCharacter:"\\eb64"});g.symbolProperty=new g("symbol-property",{fontCharacter:"\\eb65"});g.wrench=new g("wrench",{fontCharacter:"\\eb65"});g.wrenchSubaction=new g("wrench-subaction",{fontCharacter:"\\eb65"});g.symbolSnippet=new g("symbol-snippet",{fontCharacter:"\\eb66"});g.tasklist=new g("tasklist",{fontCharacter:"\\eb67"});g.telescope=new g("telescope",{fontCharacter:"\\eb68"});g.textSize=new g("text-size",{fontCharacter:"\\eb69"});g.threeBars=new g("three-bars",{fontCharacter:"\\eb6a"});g.thumbsdown=new g("thumbsdown",{fontCharacter:"\\eb6b"});g.thumbsup=new g("thumbsup",{fontCharacter:"\\eb6c"});g.tools=new g("tools",{fontCharacter:"\\eb6d"});g.triangleDown=new g("triangle-down",{fontCharacter:"\\eb6e"});g.triangleLeft=new g("triangle-left",{fontCharacter:"\\eb6f"});g.triangleRight=new g("triangle-right",{fontCharacter:"\\eb70"});g.triangleUp=new g("triangle-up",{fontCharacter:"\\eb71"});g.twitter=new g("twitter",{fontCharacter:"\\eb72"});g.unfold=new g("unfold",{fontCharacter:"\\eb73"});g.unlock=new g("unlock",{fontCharacter:"\\eb74"});g.unmute=new g("unmute",{fontCharacter:"\\eb75"});g.unverified=new g("unverified",{fontCharacter:"\\eb76"});g.verified=new g("verified",{fontCharacter:"\\eb77"});g.versions=new g("versions",{fontCharacter:"\\eb78"});g.vmActive=new g("vm-active",{fontCharacter:"\\eb79"});g.vmOutline=new g("vm-outline",{fontCharacter:"\\eb7a"});g.vmRunning=new g("vm-running",{fontCharacter:"\\eb7b"});g.watch=new g("watch",{fontCharacter:"\\eb7c"});g.whitespace=new g("whitespace",{fontCharacter:"\\eb7d"});g.wholeWord=new g("whole-word",{fontCharacter:"\\eb7e"});g.window=new g("window",{fontCharacter:"\\eb7f"});g.wordWrap=new g("word-wrap",{fontCharacter:"\\eb80"});g.zoomIn=new g("zoom-in",{fontCharacter:"\\eb81"});g.zoomOut=new g("zoom-out",{fontCharacter:"\\eb82"});g.listFilter=new g("list-filter",{fontCharacter:"\\eb83"});g.listFlat=new g("list-flat",{fontCharacter:"\\eb84"});g.listSelection=new g("list-selection",{fontCharacter:"\\eb85"});g.selection=new g("selection",{fontCharacter:"\\eb85"});g.listTree=new g("list-tree",{fontCharacter:"\\eb86"});g.debugBreakpointFunctionUnverified=new g("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"});g.debugBreakpointFunction=new g("debug-breakpoint-function",{fontCharacter:"\\eb88"});g.debugBreakpointFunctionDisabled=new g("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"});g.debugStackframeActive=new g("debug-stackframe-active",{fontCharacter:"\\eb89"});g.debugStackframeDot=new g("debug-stackframe-dot",{fontCharacter:"\\eb8a"});g.debugStackframe=new g("debug-stackframe",{fontCharacter:"\\eb8b"});g.debugStackframeFocused=new g("debug-stackframe-focused",{fontCharacter:"\\eb8b"});g.debugBreakpointUnsupported=new g("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"});g.symbolString=new g("symbol-string",{fontCharacter:"\\eb8d"});g.debugReverseContinue=new g("debug-reverse-continue",{fontCharacter:"\\eb8e"});g.debugStepBack=new g("debug-step-back",{fontCharacter:"\\eb8f"});g.debugRestartFrame=new g("debug-restart-frame",{fontCharacter:"\\eb90"});g.callIncoming=new g("call-incoming",{fontCharacter:"\\eb92"});g.callOutgoing=new g("call-outgoing",{fontCharacter:"\\eb93"});g.menu=new g("menu",{fontCharacter:"\\eb94"});g.expandAll=new g("expand-all",{fontCharacter:"\\eb95"});g.feedback=new g("feedback",{fontCharacter:"\\eb96"});g.groupByRefType=new g("group-by-ref-type",{fontCharacter:"\\eb97"});g.ungroupByRefType=new g("ungroup-by-ref-type",{fontCharacter:"\\eb98"});g.account=new g("account",{fontCharacter:"\\eb99"});g.bellDot=new g("bell-dot",{fontCharacter:"\\eb9a"});g.debugConsole=new g("debug-console",{fontCharacter:"\\eb9b"});g.library=new g("library",{fontCharacter:"\\eb9c"});g.output=new g("output",{fontCharacter:"\\eb9d"});g.runAll=new g("run-all",{fontCharacter:"\\eb9e"});g.syncIgnored=new g("sync-ignored",{fontCharacter:"\\eb9f"});g.pinned=new g("pinned",{fontCharacter:"\\eba0"});g.githubInverted=new g("github-inverted",{fontCharacter:"\\eba1"});g.debugAlt=new g("debug-alt",{fontCharacter:"\\eb91"});g.serverProcess=new g("server-process",{fontCharacter:"\\eba2"});g.serverEnvironment=new g("server-environment",{fontCharacter:"\\eba3"});g.pass=new g("pass",{fontCharacter:"\\eba4"});g.stopCircle=new g("stop-circle",{fontCharacter:"\\eba5"});g.playCircle=new g("play-circle",{fontCharacter:"\\eba6"});g.record=new g("record",{fontCharacter:"\\eba7"});g.debugAltSmall=new g("debug-alt-small",{fontCharacter:"\\eba8"});g.vmConnect=new g("vm-connect",{fontCharacter:"\\eba9"});g.cloud=new g("cloud",{fontCharacter:"\\ebaa"});g.merge=new g("merge",{fontCharacter:"\\ebab"});g.exportIcon=new g("export",{fontCharacter:"\\ebac"});g.graphLeft=new g("graph-left",{fontCharacter:"\\ebad"});g.magnet=new g("magnet",{fontCharacter:"\\ebae"});g.notebook=new g("notebook",{fontCharacter:"\\ebaf"});g.redo=new g("redo",{fontCharacter:"\\ebb0"});g.checkAll=new g("check-all",{fontCharacter:"\\ebb1"});g.pinnedDirty=new g("pinned-dirty",{fontCharacter:"\\ebb2"});g.passFilled=new g("pass-filled",{fontCharacter:"\\ebb3"});g.circleLargeFilled=new g("circle-large-filled",{fontCharacter:"\\ebb4"});g.circleLargeOutline=new g("circle-large-outline",{fontCharacter:"\\ebb5"});g.combine=new g("combine",{fontCharacter:"\\ebb6"});g.gather=new g("gather",{fontCharacter:"\\ebb6"});g.table=new g("table",{fontCharacter:"\\ebb7"});g.variableGroup=new g("variable-group",{fontCharacter:"\\ebb8"});g.typeHierarchy=new g("type-hierarchy",{fontCharacter:"\\ebb9"});g.typeHierarchySub=new g("type-hierarchy-sub",{fontCharacter:"\\ebba"});g.typeHierarchySuper=new g("type-hierarchy-super",{fontCharacter:"\\ebbb"});g.gitPullRequestCreate=new g("git-pull-request-create",{fontCharacter:"\\ebbc"});g.runAbove=new g("run-above",{fontCharacter:"\\ebbd"});g.runBelow=new g("run-below",{fontCharacter:"\\ebbe"});g.notebookTemplate=new g("notebook-template",{fontCharacter:"\\ebbf"});g.debugRerun=new g("debug-rerun",{fontCharacter:"\\ebc0"});g.workspaceTrusted=new g("workspace-trusted",{fontCharacter:"\\ebc1"});g.workspaceUntrusted=new g("workspace-untrusted",{fontCharacter:"\\ebc2"});g.workspaceUnspecified=new g("workspace-unspecified",{fontCharacter:"\\ebc3"});g.terminalCmd=new g("terminal-cmd",{fontCharacter:"\\ebc4"});g.terminalDebian=new g("terminal-debian",{fontCharacter:"\\ebc5"});g.terminalLinux=new g("terminal-linux",{fontCharacter:"\\ebc6"});g.terminalPowershell=new g("terminal-powershell",{fontCharacter:"\\ebc7"});g.terminalTmux=new g("terminal-tmux",{fontCharacter:"\\ebc8"});g.terminalUbuntu=new g("terminal-ubuntu",{fontCharacter:"\\ebc9"});g.terminalBash=new g("terminal-bash",{fontCharacter:"\\ebca"});g.arrowSwap=new g("arrow-swap",{fontCharacter:"\\ebcb"});g.copy=new g("copy",{fontCharacter:"\\ebcc"});g.personAdd=new g("person-add",{fontCharacter:"\\ebcd"});g.filterFilled=new g("filter-filled",{fontCharacter:"\\ebce"});g.wand=new g("wand",{fontCharacter:"\\ebcf"});g.debugLineByLine=new g("debug-line-by-line",{fontCharacter:"\\ebd0"});g.inspect=new g("inspect",{fontCharacter:"\\ebd1"});g.layers=new g("layers",{fontCharacter:"\\ebd2"});g.layersDot=new g("layers-dot",{fontCharacter:"\\ebd3"});g.layersActive=new g("layers-active",{fontCharacter:"\\ebd4"});g.compass=new g("compass",{fontCharacter:"\\ebd5"});g.compassDot=new g("compass-dot",{fontCharacter:"\\ebd6"});g.compassActive=new g("compass-active",{fontCharacter:"\\ebd7"});g.azure=new g("azure",{fontCharacter:"\\ebd8"});g.issueDraft=new g("issue-draft",{fontCharacter:"\\ebd9"});g.gitPullRequestClosed=new g("git-pull-request-closed",{fontCharacter:"\\ebda"});g.gitPullRequestDraft=new g("git-pull-request-draft",{fontCharacter:"\\ebdb"});g.debugAll=new g("debug-all",{fontCharacter:"\\ebdc"});g.debugCoverage=new g("debug-coverage",{fontCharacter:"\\ebdd"});g.runErrors=new g("run-errors",{fontCharacter:"\\ebde"});g.folderLibrary=new g("folder-library",{fontCharacter:"\\ebdf"});g.debugContinueSmall=new g("debug-continue-small",{fontCharacter:"\\ebe0"});g.beakerStop=new g("beaker-stop",{fontCharacter:"\\ebe1"});g.graphLine=new g("graph-line",{fontCharacter:"\\ebe2"});g.graphScatter=new g("graph-scatter",{fontCharacter:"\\ebe3"});g.pieChart=new g("pie-chart",{fontCharacter:"\\ebe4"});g.bracket=new g("bracket",g.json.definition);g.bracketDot=new g("bracket-dot",{fontCharacter:"\\ebe5"});g.bracketError=new g("bracket-error",{fontCharacter:"\\ebe6"});g.lockSmall=new g("lock-small",{fontCharacter:"\\ebe7"});g.azureDevops=new g("azure-devops",{fontCharacter:"\\ebe8"});g.verifiedFilled=new g("verified-filled",{fontCharacter:"\\ebe9"});g.newLine=new g("newline",{fontCharacter:"\\ebea"});g.layout=new g("layout",{fontCharacter:"\\ebeb"});g.layoutActivitybarLeft=new g("layout-activitybar-left",{fontCharacter:"\\ebec"});g.layoutActivitybarRight=new g("layout-activitybar-right",{fontCharacter:"\\ebed"});g.layoutPanelLeft=new g("layout-panel-left",{fontCharacter:"\\ebee"});g.layoutPanelCenter=new g("layout-panel-center",{fontCharacter:"\\ebef"});g.layoutPanelJustify=new g("layout-panel-justify",{fontCharacter:"\\ebf0"});g.layoutPanelRight=new g("layout-panel-right",{fontCharacter:"\\ebf1"});g.layoutPanel=new g("layout-panel",{fontCharacter:"\\ebf2"});g.layoutSidebarLeft=new g("layout-sidebar-left",{fontCharacter:"\\ebf3"});g.layoutSidebarRight=new g("layout-sidebar-right",{fontCharacter:"\\ebf4"});g.layoutStatusbar=new g("layout-statusbar",{fontCharacter:"\\ebf5"});g.layoutMenubar=new g("layout-menubar",{fontCharacter:"\\ebf6"});g.layoutCentered=new g("layout-centered",{fontCharacter:"\\ebf7"});g.target=new g("target",{fontCharacter:"\\ebf8"});g.indent=new g("indent",{fontCharacter:"\\ebf9"});g.recordSmall=new g("record-small",{fontCharacter:"\\ebfa"});g.errorSmall=new g("error-small",{fontCharacter:"\\ebfb"});g.arrowCircleDown=new g("arrow-circle-down",{fontCharacter:"\\ebfc"});g.arrowCircleLeft=new g("arrow-circle-left",{fontCharacter:"\\ebfd"});g.arrowCircleRight=new g("arrow-circle-right",{fontCharacter:"\\ebfe"});g.arrowCircleUp=new g("arrow-circle-up",{fontCharacter:"\\ebff"});g.dialogError=new g("dialog-error",g.error.definition);g.dialogWarning=new g("dialog-warning",g.warning.definition);g.dialogInfo=new g("dialog-info",g.info.definition);g.dialogClose=new g("dialog-close",g.close.definition);g.treeItemExpanded=new g("tree-item-expanded",g.chevronDown.definition);g.treeFilterOnTypeOn=new g("tree-filter-on-type-on",g.listFilter.definition);g.treeFilterOnTypeOff=new g("tree-filter-on-type-off",g.listSelection.definition);g.treeFilterClear=new g("tree-filter-clear",g.close.definition);g.treeItemLoading=new g("tree-item-loading",g.loading.definition);g.menuSelection=new g("menu-selection",g.check.definition);g.menuSubmenu=new g("menu-submenu",g.chevronRight.definition);g.menuBarMore=new g("menubar-more",g.more.definition);g.scrollbarButtonLeft=new g("scrollbar-button-left",g.triangleLeft.definition);g.scrollbarButtonRight=new g("scrollbar-button-right",g.triangleRight.definition);g.scrollbarButtonUp=new g("scrollbar-button-up",g.triangleUp.definition);g.scrollbarButtonDown=new g("scrollbar-button-down",g.triangleDown.definition);g.toolBarMore=new g("toolbar-more",g.more.definition);g.quickInputBack=new g("quick-input-back",g.arrowLeft.definition);var ei;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(o){if(o instanceof g)return["codicon","codicon-"+o.id];const r=e.exec(o.id);if(!r)return t(g.error);let[,a,l]=r;const c=["codicon","codicon-"+a];return l&&c.push("codicon-modifier-"+l.substr(1)),c}s.asClassNameArray=t;function i(o){return t(o).join(" ")}s.asClassName=i;function n(o){return"."+t(o).join(".")}s.asCSSSelector=n})(ei||(ei={}));class pi{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static getFontStyle(e){return(e&15360)>>>10}static getForeground(e){return(e&8372224)>>>14}static getBackground(e){return(e&4286578688)>>>23}static getClassNameFromMetadata(e){const t=this.getForeground(e);let i="mtk"+t;const n=this.getFontStyle(e);return n&1&&(i+=" mtki"),n&2&&(i+=" mtkb"),n&4&&(i+=" mtku"),n&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;n&1&&(o+="font-style: italic;"),n&2&&(o+="font-weight: bold;");let r="";return n&4&&(r+=" underline"),n&8&&(r+=" line-through"),r&&(o+=`text-decoration:${r};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(i&1),bold:Boolean(i&2),underline:Boolean(i&4),strikethrough:Boolean(i&8)}}}class Ec{constructor(e,t,i){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=i}toString(){return"("+this.offset+", "+this.type+")"}}class Q1{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class wf{constructor(e,t){this._encodedTokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}var Jb;(function(s){const e=new Map;e.set(0,g.symbolMethod),e.set(1,g.symbolFunction),e.set(2,g.symbolConstructor),e.set(3,g.symbolField),e.set(4,g.symbolVariable),e.set(5,g.symbolClass),e.set(6,g.symbolStruct),e.set(7,g.symbolInterface),e.set(8,g.symbolModule),e.set(9,g.symbolProperty),e.set(10,g.symbolEvent),e.set(11,g.symbolOperator),e.set(12,g.symbolUnit),e.set(13,g.symbolValue),e.set(15,g.symbolEnum),e.set(14,g.symbolConstant),e.set(15,g.symbolEnum),e.set(16,g.symbolEnumMember),e.set(17,g.symbolKeyword),e.set(27,g.symbolSnippet),e.set(18,g.symbolText),e.set(19,g.symbolColor),e.set(20,g.symbolFile),e.set(21,g.symbolReference),e.set(22,g.symbolCustomColor),e.set(23,g.symbolFolder),e.set(24,g.symbolTypeParameter),e.set(25,g.account),e.set(26,g.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=g.symbolProperty),r}s.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function n(o,r){let a=i.get(o);return typeof a=="undefined"&&!r&&(a=9),a}s.fromString=n})(Jb||(Jb={}));var eC;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(eC||(eC={}));var tC;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(tC||(tC={}));var iC;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(iC||(iC={}));var nC;(function(s){const e=new Map;e.set(0,g.symbolFile),e.set(1,g.symbolModule),e.set(2,g.symbolNamespace),e.set(3,g.symbolPackage),e.set(4,g.symbolClass),e.set(5,g.symbolMethod),e.set(6,g.symbolProperty),e.set(7,g.symbolField),e.set(8,g.symbolConstructor),e.set(9,g.symbolEnum),e.set(10,g.symbolInterface),e.set(11,g.symbolFunction),e.set(12,g.symbolVariable),e.set(13,g.symbolConstant),e.set(14,g.symbolString),e.set(15,g.symbolNumber),e.set(16,g.symbolBoolean),e.set(17,g.symbolArray),e.set(18,g.symbolObject),e.set(19,g.symbolKey),e.set(20,g.symbolNull),e.set(21,g.symbolEnumMember),e.set(22,g.symbolStruct),e.set(23,g.symbolEvent),e.set(24,g.symbolOperator),e.set(25,g.symbolTypeParameter);function t(i){let n=e.get(i);return n||(console.info("No codicon found for SymbolKind "+i),n=g.symbolProperty),n}s.toIcon=t})(nC||(nC={}));class br{constructor(e){this.value=e}}br.Comment=new br("comment");br.Imports=new br("imports");br.Region=new br("region");var sC;(function(s){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}s.is=e})(sC||(sC={}));var oC;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(oC||(oC={}));const et=new OE;var np;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(np||(np={}));var sp;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(sp||(sp={}));var op;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.User=25]="User",s[s.Issue=26]="Issue",s[s.Snippet=27]="Snippet"})(op||(op={}));var rp;(function(s){s[s.Deprecated=1]="Deprecated"})(rp||(rp={}));var ap;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(ap||(ap={}));var lp;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(lp||(lp={}));var cp;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(cp||(cp={}));var hp;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(hp||(hp={}));var dp;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(dp||(dp={}));var up;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(up||(up={}));var fp;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingDelete=6]="autoClosingDelete",s[s.autoClosingOvertype=7]="autoClosingOvertype",s[s.autoClosingQuotes=8]="autoClosingQuotes",s[s.autoIndent=9]="autoIndent",s[s.automaticLayout=10]="automaticLayout",s[s.autoSurround=11]="autoSurround",s[s.bracketPairColorization=12]="bracketPairColorization",s[s.guides=13]="guides",s[s.codeLens=14]="codeLens",s[s.codeLensFontFamily=15]="codeLensFontFamily",s[s.codeLensFontSize=16]="codeLensFontSize",s[s.colorDecorators=17]="colorDecorators",s[s.columnSelection=18]="columnSelection",s[s.comments=19]="comments",s[s.contextmenu=20]="contextmenu",s[s.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",s[s.cursorBlinking=22]="cursorBlinking",s[s.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",s[s.cursorStyle=24]="cursorStyle",s[s.cursorSurroundingLines=25]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",s[s.cursorWidth=27]="cursorWidth",s[s.disableLayerHinting=28]="disableLayerHinting",s[s.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",s[s.domReadOnly=30]="domReadOnly",s[s.dragAndDrop=31]="dragAndDrop",s[s.emptySelectionClipboard=32]="emptySelectionClipboard",s[s.extraEditorClassName=33]="extraEditorClassName",s[s.fastScrollSensitivity=34]="fastScrollSensitivity",s[s.find=35]="find",s[s.fixedOverflowWidgets=36]="fixedOverflowWidgets",s[s.folding=37]="folding",s[s.foldingStrategy=38]="foldingStrategy",s[s.foldingHighlight=39]="foldingHighlight",s[s.foldingImportsByDefault=40]="foldingImportsByDefault",s[s.foldingMaximumRegions=41]="foldingMaximumRegions",s[s.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",s[s.fontFamily=43]="fontFamily",s[s.fontInfo=44]="fontInfo",s[s.fontLigatures=45]="fontLigatures",s[s.fontSize=46]="fontSize",s[s.fontWeight=47]="fontWeight",s[s.formatOnPaste=48]="formatOnPaste",s[s.formatOnType=49]="formatOnType",s[s.glyphMargin=50]="glyphMargin",s[s.gotoLocation=51]="gotoLocation",s[s.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",s[s.hover=53]="hover",s[s.inDiffEditor=54]="inDiffEditor",s[s.inlineSuggest=55]="inlineSuggest",s[s.letterSpacing=56]="letterSpacing",s[s.lightbulb=57]="lightbulb",s[s.lineDecorationsWidth=58]="lineDecorationsWidth",s[s.lineHeight=59]="lineHeight",s[s.lineNumbers=60]="lineNumbers",s[s.lineNumbersMinChars=61]="lineNumbersMinChars",s[s.linkedEditing=62]="linkedEditing",s[s.links=63]="links",s[s.matchBrackets=64]="matchBrackets",s[s.minimap=65]="minimap",s[s.mouseStyle=66]="mouseStyle",s[s.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=68]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",s[s.multiCursorModifier=70]="multiCursorModifier",s[s.multiCursorPaste=71]="multiCursorPaste",s[s.occurrencesHighlight=72]="occurrencesHighlight",s[s.overviewRulerBorder=73]="overviewRulerBorder",s[s.overviewRulerLanes=74]="overviewRulerLanes",s[s.padding=75]="padding",s[s.parameterHints=76]="parameterHints",s[s.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",s[s.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",s[s.quickSuggestions=79]="quickSuggestions",s[s.quickSuggestionsDelay=80]="quickSuggestionsDelay",s[s.readOnly=81]="readOnly",s[s.renameOnType=82]="renameOnType",s[s.renderControlCharacters=83]="renderControlCharacters",s[s.renderFinalNewline=84]="renderFinalNewline",s[s.renderLineHighlight=85]="renderLineHighlight",s[s.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",s[s.renderValidationDecorations=87]="renderValidationDecorations",s[s.renderWhitespace=88]="renderWhitespace",s[s.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",s[s.roundedSelection=90]="roundedSelection",s[s.rulers=91]="rulers",s[s.scrollbar=92]="scrollbar",s[s.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=94]="scrollBeyondLastLine",s[s.scrollPredominantAxis=95]="scrollPredominantAxis",s[s.selectionClipboard=96]="selectionClipboard",s[s.selectionHighlight=97]="selectionHighlight",s[s.selectOnLineNumbers=98]="selectOnLineNumbers",s[s.showFoldingControls=99]="showFoldingControls",s[s.showUnused=100]="showUnused",s[s.snippetSuggestions=101]="snippetSuggestions",s[s.smartSelect=102]="smartSelect",s[s.smoothScrolling=103]="smoothScrolling",s[s.stickyTabStops=104]="stickyTabStops",s[s.stopRenderingLineAfter=105]="stopRenderingLineAfter",s[s.suggest=106]="suggest",s[s.suggestFontSize=107]="suggestFontSize",s[s.suggestLineHeight=108]="suggestLineHeight",s[s.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",s[s.suggestSelection=110]="suggestSelection",s[s.tabCompletion=111]="tabCompletion",s[s.tabIndex=112]="tabIndex",s[s.unicodeHighlighting=113]="unicodeHighlighting",s[s.unusualLineTerminators=114]="unusualLineTerminators",s[s.useShadowDOM=115]="useShadowDOM",s[s.useTabStops=116]="useTabStops",s[s.wordSeparators=117]="wordSeparators",s[s.wordWrap=118]="wordWrap",s[s.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=121]="wordWrapColumn",s[s.wordWrapOverride1=122]="wordWrapOverride1",s[s.wordWrapOverride2=123]="wordWrapOverride2",s[s.wrappingIndent=124]="wrappingIndent",s[s.wrappingStrategy=125]="wrappingStrategy",s[s.showDeprecated=126]="showDeprecated",s[s.inlayHints=127]="inlayHints",s[s.editorClassName=128]="editorClassName",s[s.pixelRatio=129]="pixelRatio",s[s.tabFocusMode=130]="tabFocusMode",s[s.layoutInfo=131]="layoutInfo",s[s.wrappingInfo=132]="wrappingInfo"})(fp||(fp={}));var gp;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(gp||(gp={}));var mp;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(mp||(mp={}));var pp;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(pp||(pp={}));var _p;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(_p||(_p={}));var bp;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(bp||(bp={}));var Cp;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(Cp||(Cp={}));var wp;(function(s){s[s.DependsOnKbLayout=-1]="DependsOnKbLayout",s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.Digit0=21]="Digit0",s[s.Digit1=22]="Digit1",s[s.Digit2=23]="Digit2",s[s.Digit3=24]="Digit3",s[s.Digit4=25]="Digit4",s[s.Digit5=26]="Digit5",s[s.Digit6=27]="Digit6",s[s.Digit7=28]="Digit7",s[s.Digit8=29]="Digit8",s[s.Digit9=30]="Digit9",s[s.KeyA=31]="KeyA",s[s.KeyB=32]="KeyB",s[s.KeyC=33]="KeyC",s[s.KeyD=34]="KeyD",s[s.KeyE=35]="KeyE",s[s.KeyF=36]="KeyF",s[s.KeyG=37]="KeyG",s[s.KeyH=38]="KeyH",s[s.KeyI=39]="KeyI",s[s.KeyJ=40]="KeyJ",s[s.KeyK=41]="KeyK",s[s.KeyL=42]="KeyL",s[s.KeyM=43]="KeyM",s[s.KeyN=44]="KeyN",s[s.KeyO=45]="KeyO",s[s.KeyP=46]="KeyP",s[s.KeyQ=47]="KeyQ",s[s.KeyR=48]="KeyR",s[s.KeyS=49]="KeyS",s[s.KeyT=50]="KeyT",s[s.KeyU=51]="KeyU",s[s.KeyV=52]="KeyV",s[s.KeyW=53]="KeyW",s[s.KeyX=54]="KeyX",s[s.KeyY=55]="KeyY",s[s.KeyZ=56]="KeyZ",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.Semicolon=80]="Semicolon",s[s.Equal=81]="Equal",s[s.Comma=82]="Comma",s[s.Minus=83]="Minus",s[s.Period=84]="Period",s[s.Slash=85]="Slash",s[s.Backquote=86]="Backquote",s[s.BracketLeft=87]="BracketLeft",s[s.Backslash=88]="Backslash",s[s.BracketRight=89]="BracketRight",s[s.Quote=90]="Quote",s[s.OEM_8=91]="OEM_8",s[s.IntlBackslash=92]="IntlBackslash",s[s.Numpad0=93]="Numpad0",s[s.Numpad1=94]="Numpad1",s[s.Numpad2=95]="Numpad2",s[s.Numpad3=96]="Numpad3",s[s.Numpad4=97]="Numpad4",s[s.Numpad5=98]="Numpad5",s[s.Numpad6=99]="Numpad6",s[s.Numpad7=100]="Numpad7",s[s.Numpad8=101]="Numpad8",s[s.Numpad9=102]="Numpad9",s[s.NumpadMultiply=103]="NumpadMultiply",s[s.NumpadAdd=104]="NumpadAdd",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NumpadSubtract=106]="NumpadSubtract",s[s.NumpadDecimal=107]="NumpadDecimal",s[s.NumpadDivide=108]="NumpadDivide",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.AudioVolumeMute=112]="AudioVolumeMute",s[s.AudioVolumeUp=113]="AudioVolumeUp",s[s.AudioVolumeDown=114]="AudioVolumeDown",s[s.BrowserSearch=115]="BrowserSearch",s[s.BrowserHome=116]="BrowserHome",s[s.BrowserBack=117]="BrowserBack",s[s.BrowserForward=118]="BrowserForward",s[s.MediaTrackNext=119]="MediaTrackNext",s[s.MediaTrackPrevious=120]="MediaTrackPrevious",s[s.MediaStop=121]="MediaStop",s[s.MediaPlayPause=122]="MediaPlayPause",s[s.LaunchMediaPlayer=123]="LaunchMediaPlayer",s[s.LaunchMail=124]="LaunchMail",s[s.LaunchApp2=125]="LaunchApp2",s[s.Clear=126]="Clear",s[s.MAX_VALUE=127]="MAX_VALUE"})(wp||(wp={}));var vp;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(vp||(vp={}));var Sp;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Sp||(Sp={}));var yp;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(yp||(yp={}));var Lp;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Lp||(Lp={}));var kp;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(kp||(kp={}));var xp;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(xp||(xp={}));var Ip;(function(s){s[s.Left=0]="Left",s[s.Right=1]="Right",s[s.None=2]="None"})(Ip||(Ip={}));var Ep;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(Ep||(Ep={}));var Dp;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Dp||(Dp={}));var Np;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(Np||(Np={}));var Tp;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(Tp||(Tp={}));var Mp;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(Mp||(Mp={}));var Rp;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Rp||(Rp={}));var Ap;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(Ap||(Ap={}));var Op;(function(s){s[s.Deprecated=1]="Deprecated"})(Op||(Op={}));var Pp;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(Pp||(Pp={}));var Fp;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Fp||(Fp={}));var Bp;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Bp||(Bp={}));var Vp;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(Vp||(Vp={}));class bh{static chord(e,t){return _E(e,t)}}bh.CtrlCmd=2048;bh.Shift=1024;bh.Alt=512;bh.WinCtrl=256;function by(){return{editor:void 0,languages:void 0,CancellationTokenSource:ml,Emitter:M,KeyCode:wp,KeyMod:bh,Position:A,Range:D,Selection:ce,SelectionDirection:Mp,MarkerSeverity:vp,MarkerTag:Sp,Uri:we,Token:Ec}}class BE{constructor(e){this.computeFn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}}class Cy{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var wy;function VE(s){return!s||typeof s!="string"?!0:s.trim().length===0}const WE=/{(\d+)}/g;function cu(s,...e){return e.length===0?s:s.replace(WE,function(t,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function HE(s){return s.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Qn(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function vy(s,e){if(!s||!e)return s;const t=e.length;if(t===0||s.length===0)return s;let i=0;for(;s.indexOf(e,i)===i;)i=i+t;return s.substring(i)}function zE(s,e){if(!s||!e)return s;const t=e.length,i=s.length;if(t===0||i===0)return s;let n=i,o=-1;for(;o=s.lastIndexOf(e,n-1),!(o===-1||o+t!==n);){if(o===0)return"";n=o}return s.substring(0,n)}function UE(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Sy(s,e,t={}){if(!s)throw new Error("Cannot create regex from empty string");e||(s=Qn(s)),t.wholeWord&&(/\B/.test(s.charAt(0))||(s="\\b"+s),/\B/.test(s.charAt(s.length-1))||(s=s+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(s,i)}function $E(s){return s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$"?!1:!!(s.exec("")&&s.lastIndex===0)}function Lg(s){return(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")}function Ch(s){return s.split(/\r\n|\r|\n/)}function Ci(s){for(let e=0,t=s.length;e=0;t--){const i=s.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Wp(s,e){return se?1:0}function J1(s,e,t=0,i=s.length,n=0,o=e.length){for(;tc)return 1}const r=i-t,a=o-n;return ra?1:0}function rC(s,e){return wh(s,e,0,s.length,0,e.length)}function wh(s,e,t=0,i=s.length,n=0,o=e.length){for(;t=128||c>=128)return J1(s.toLowerCase(),e.toLowerCase(),t,i,n,o);ra(l)&&(l-=32),ra(c)&&(c-=32);const h=l-c;if(h!==0)return h}const r=i-t,a=o-n;return ra?1:0}function ra(s){return s>=97&&s<=122}function Xs(s){return s>=65&&s<=90}function aa(s,e){return s.length===e.length&&wh(s,e)===0}function e0(s,e){const t=e.length;return e.length>s.length?!1:wh(s,e,0,t)===0}function aC(s,e){let t,i=Math.min(s.length,e.length);for(t=0;t1){const i=s.charCodeAt(e-2);if(gt(i))return t0(i,t)}return t}class i0{constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}get offset(){return this._offset}setOffset(e){this._offset=e}prevCodePoint(){const e=jE(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=hu(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class du{constructor(e,t=0){this._iterator=new i0(e,t)}get offset(){return this._iterator.offset}nextGraphemeLength(){const e=so.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(cC(n,r)){t.setOffset(o);break}n=r}return t.offset-i}prevGraphemeLength(){const e=so.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(cC(r,n)){t.setOffset(o);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function n0(s,e){return new du(s,e).nextGraphemeLength()}function yy(s,e){return new du(s,e).prevGraphemeLength()}function KE(s,e){e>0&&Ua(s.charCodeAt(e))&&e--;const t=e+n0(s,e);return[t-yy(s,t),t]}const qE=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function s0(s){return qE.test(s)}const GE=/^[\t\n\r\x20-\x7E]*$/;function o0(s){return GE.test(s)}const Ly=/[\u2028\u2029]/;function ky(s){return Ly.test(s)}function vo(s){return s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function r0(s){return s>=127462&&s<=127487||s===8986||s===8987||s===9200||s===9203||s>=9728&&s<=10175||s===11088||s===11093||s>=127744&&s<=128591||s>=128640&&s<=128764||s>=128992&&s<=129008||s>=129280&&s<=129535||s>=129648&&s<=129782}const ZE=String.fromCharCode(65279);function a0(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function YE(s,e=!1){return s?(e&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function xy(s){return s=s%(2*26),s<26?String.fromCharCode(97+s):String.fromCharCode(65+s-26)}function cC(s,e){return s===0?e!==5&&e!==7:s===2&&e===3?!1:s===4||s===2||s===3||e===4||e===2||e===3?!0:!(s===8&&(e===8||e===9||e===11||e===12)||(s===11||s===9)&&(e===9||e===10)||(s===12||s===10)&&e===10||e===5||e===13||e===7||s===1||s===13&&e===14||s===6&&e===6)}class so{constructor(){this._data=XE()}static getInstance(){return so._INSTANCE||(so._INSTANCE=new so),so._INSTANCE}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1])n=2*n+1;else return t[3*n+2];return 0}}so._INSTANCE=null;function XE(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function QE(s,e){if(s===0)return 0;const t=JE(s,e);if(t!==void 0)return t;const i=new i0(e,s);return i.prevCodePoint(),i.offset}function JE(s,e){const t=new i0(e,s);let i=t.prevCodePoint();for(;eD(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!r0(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function eD(s){return 127995<=s&&s<=127999}class sn{constructor(e){this.confusableDictionary=e}static getInstance(e){return sn.cache.get(Array.from(e))}static getLocales(){return sn._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}wy=sn;sn.ambiguousCharacterData=new Cy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));sn.cache=new BE(s=>{function e(c){const h=new Map;for(let d=0;d!c.startsWith("_")&&c in n);o.length===0&&(o=["_default"]);let r;for(const c of o){const h=e(n[c]);r=i(r,h)}const a=e(n._common),l=t(a,r);return new sn(l)});sn._locales=new Cy(()=>Object.keys(sn.ambiguousCharacterData.getValue()).filter(s=>!s.startsWith("_")));class ho{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ho.getRawData())),this._data}static isInvisibleCharacter(e){return ho.getData().has(e)}static get codePoints(){return ho.getData()}}ho._data=void 0;class Hp{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}Hp.INSTANCE=new Hp;class tD extends W{constructor(){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList&&this._mediaQueryList.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class iD extends W{constructor(){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new tD);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class nD{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new iD),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}const Dc=new nD;function Iy(){return Hp.INSTANCE.getZoomFactor()}const _l=navigator.userAgent,Oi=_l.indexOf("Firefox")>=0,uo=_l.indexOf("AppleWebKit")>=0,l0=_l.indexOf("Chrome")>=0,Jn=!l0&&_l.indexOf("Safari")>=0,c0=!l0&&!Jn&&uo,sD=_l.indexOf("Electron/")>=0,Ey=_l.indexOf("Android")>=0,Dy=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches;var oD=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:Dc,getZoomFactor:Iy,isFirefox:Oi,isWebKit:uo,isChrome:l0,isSafari:Jn,isWebkitWebView:c0,isElectron:sD,isAndroid:Ey,isStandalone:Dy},Symbol.toStringTag,{value:"Module"}));class Ny{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontStyle="",this._fontFeatureSettings="",this._textDecoration="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ue(s){return new Ny(s)}function ii(s,e){s instanceof Ny?(s.setFontFamily(e.getMassagedFontFamily(Jn?bi.fontFamily:null)),s.setFontWeight(e.fontWeight),s.setFontSize(e.fontSize),s.setFontFeatureSettings(e.fontFeatureSettings),s.setLineHeight(e.lineHeight),s.setLetterSpacing(e.letterSpacing)):(s.style.fontFamily=e.getMassagedFontFamily(Jn?bi.fontFamily:null),s.style.fontWeight=e.fontWeight,s.style.fontSize=e.fontSize+"px",s.style.fontFeatureSettings=e.fontFeatureSettings,s.style.lineHeight=e.lineHeight+"px",s.style.letterSpacing=e.letterSpacing+"px")}class rD{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class h0{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");ii(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");ii(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");ii(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=n),a.appendChild(document.createElement("br"));const l=document.createElement("span");h0._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i="\xA0";for(let n=0;n<8;n++)i+=i;e.innerText=i}else{let i=t.chr;for(let n=0;n<8;n++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new zp({pixelRatio:Dc.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){const o=new rD(e,t);return i.push(o),n&&n.push(o),o}_actualReadFontInfo(e){const t=[],i=[],n=this._createRequest("n",0,t,i),o=this._createRequest("\uFF4D",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),c=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),d=this._createRequest("4",0,t,i),u=this._createRequest("5",0,t,i),f=this._createRequest("6",0,t,i),m=this._createRequest("7",0,t,i),_=this._createRequest("8",0,t,i),b=this._createRequest("9",0,t,i),w=this._createRequest("\u2192",0,t,i),C=this._createRequest("\uFFEB",0,t,null),v=this._createRequest("\xB7",0,t,i),S=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%";for(let R=0,T=k.length;R.001){L=!1;break}}let I=!0;return L&&C.width!==y&&(I=!1),C.width>w.width&&(I=!1),new zp({pixelRatio:Dc.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:L,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:I,spaceWidth:r.width,middotWidth:v.width,wsmiddotWidth:S.width,maxDigitWidth:x},!0)}}class hC{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const Up=new hD;var Cn;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(Cn||(Cn={}));const rn=pe("instantiationService");function dD(s,e,t){e[Cn.DI_TARGET]===e?e[Cn.DI_DEPENDENCIES].push({id:s,index:t}):(e[Cn.DI_DEPENDENCIES]=[{id:s,index:t}],e[Cn.DI_TARGET]=e)}function pe(s){if(Cn.serviceIds.has(s))return Cn.serviceIds.get(s);const e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");dD(e,t,n)};return e.toString=()=>s,Cn.serviceIds.set(s,e),e}const kt=pe("codeEditorService");function Rd(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}const uD={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class fD extends W{constructor(e,t={}){super(),this._onDidUpdate=this._register(new M),this._editor=e,this._options=Nr(t,uD,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(i=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(i=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(i=>{this.ranges.push({rhs:!0,range:new D(i.modifiedStartLineNumber,i.modifiedStartColumn,i.modifiedEndLineNumber,i.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new D(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new D(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,i)=>D.compareRangesUsingStarts(t.range,i.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let n=0,o=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const n=i.range.getStartPosition();this._editor.setPosition(n),this._editor.revealRangeInCenter(i.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}const d0={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var Cr;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(Cr||(Cr={}));var Ts;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(Ts||(Ts={}));var $a;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})($a||($a={}));class Ad{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),this.indentSize=e.tabSize|0,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&Ri(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class Nc{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class xg{constructor(e,t,i,n,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class gD{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class mD{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function pD(s){return!s.isTooLargeForSyncing()&&!s.isForSimpleWidget}var dt;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(dt||(dt={}));class Ig{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&s.getLanguageId(r-1)===n;)r--;return new bD(s,n,r,o+1,s.getStartOffset(r),s.getEndOffset(o))}class bD{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function On(s){return(s&3)!==0}class vf{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new Ig(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new Ig({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.colorizedBracketPairs?this._colorizedBracketPairs=dC(e.colorizedBracketPairs.map(t=>[t[0],t[1]])):e.brackets?this._colorizedBracketPairs=dC(e.brackets.map(t=>[t[0],t[1]]).filter(t=>!(t[0]==="<"&&t[1]===">"))):this._colorizedBracketPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new Ig({open:t.open,close:t.close||""}))}this._autoCloseBefore=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:vf.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}vf.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> - `;function dC(s){return s.filter(([e,t])=>e!==""&&t!=="")}const uC=typeof Buffer!="undefined";let Eg;class Sf{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(e){return uC&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new Sf(e)}toString(){return uC?this.buffer.toString():(Eg||(Eg=new TextDecoder),Eg.decode(this.buffer))}}function CD(s,e){return s[e+0]<<0>>>0|s[e+1]<<8>>>0}function wD(s,e,t){s[t+0]=e&255,e=e>>>8,s[t+1]=e&255}function dn(s,e){return s[e]*Math.pow(2,24)+s[e+1]*Math.pow(2,16)+s[e+2]*Math.pow(2,8)+s[e+3]}function un(s,e,t){s[t+3]=e,e=e>>>8,s[t+2]=e,e=e>>>8,s[t+1]=e,e=e>>>8,s[t]=e}function fC(s,e){return s[e]}function gC(s,e,t){s[t]=e}let Dg;function Ty(){return Dg||(Dg=new TextDecoder("UTF-16LE")),Dg}let Ng;function vD(){return Ng||(Ng=new TextDecoder("UTF-16BE")),Ng}let Tg;function My(){return Tg||(Tg=XS()?Ty():vD()),Tg}const Ry=typeof TextDecoder!="undefined";let ja,$p;Ry?(ja=s=>new yD(s),$p=SD):(ja=s=>new LD,$p=Ay);function SD(s,e,t){const i=new Uint16Array(s.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?Ay(s,e,t):Ty().decode(i)}function Ay(s,e,t){const i=[];let n=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r{const[l,c]=r,[h,d]=a;return l===h||l===d||c===h||c===d},n=(r,a)=>{const l=Math.min(r,a),c=Math.max(r,a);for(let h=0;h0&&o.push({open:a,close:l})}return o}class xD{constructor(e,t){this._richEditBracketsBrand=void 0;const i=kD(t);this.brackets=i.map((n,o)=>new gu(e,o,n.open,n.close,ID(n.open,n.close,i,o),ED(n.open,n.close,i,o))),this.forwardRegex=DD(this.brackets),this.reversedRegex=ND(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const o of n.open)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of n.close)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function Oy(s,e,t,i){for(let n=0,o=e.length;n=0&&i.push(a);for(const a of r.close)a.indexOf(s)>=0&&i.push(a)}}function Py(s,e){return s.length-e.length}function yf(s){if(s.length<=1)return s;const e=[],t=new Set;for(const i of s)t.has(i)||(e.push(i),t.add(i));return e}function ID(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o=0;r--)n[o++]=i.charCodeAt(r);return My().decode(n)}else{const n=[];let o=0;for(let r=i.length-1;r>=0;r--)n[o++]=i.charAt(r);return n.join("")}}let e=null,t=null;return function(n){return e!==n&&(e=n,t=s(e)),t}}();class Ui{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new D(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const a=u0(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,a,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=n+r;return new D(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const r=i.substring(n,o);return this.findNextBracketInText(e,t,r,n)}}class MD{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const n=i.charAt(i.length-1);e.push(n)}return wo(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const n=t.findTokenIndexAtOffset(i-1);if(On(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Ui.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const h=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:l}:null}}function Hh(s){return s.global&&(s.lastIndex=0),!0}class RD{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&Hh(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&Hh(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&Hh(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&Hh(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class la{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=la._createOpenBracketRegExp(t[0]),n=la._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,r=this._regExpRules.length;oc.reg?(c.reg.lastIndex=0,c.reg.test(c.text)):!0))return a.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,r=this._brackets.length;o=2&&i.length>0){for(let o=0,r=this._brackets.length;o=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_C=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};class Mg{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Eo=pe("languageConfigurationService");let jp=class extends W{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this.onDidChangeEmitter=this._register(new M),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(Kp));this._register(this.configurationService.onDidChangeConfiguration(n=>{const o=n.change.keys.some(a=>i.has(a)),r=n.change.overrides.filter(([a,l])=>l.some(c=>i.has(c))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new Mg(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new Mg(a)))})),this._register(Ki.onDidChange(n=>{this.configurations.delete(n.languageId),this.onDidChangeEmitter.fire(new Mg(n.languageId))}))}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=PD(e,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};jp=OD([_C(0,Rt),_C(1,Wt)],jp);function PD(s,e,t){let i=Ki.getLanguageConfiguration(s);if(!i){if(!t.isRegisteredLanguageId(s))throw new Error(`Language id "${s}" is not configured nor known`);i=new Tc(s,{})}const n=FD(i.languageId,e),o=Wy([i.underlyingConfig,n]);return new Tc(i.languageId,o)}const Kp={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function FD(s,e){const t=e.getValue(Kp.brackets,{overrideIdentifier:s}),i=e.getValue(Kp.colorizedBracketPairs,{overrideIdentifier:s});return{brackets:bC(t),colorizedBracketPairs:bC(i)}}function bC(s){if(!!Array.isArray(s))return s.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}class CC{constructor(e){this.languageId=e}}class BD{constructor(){this._entries=new Map,this._onDidChange=new M,this.onDidChange=this._onDidChange.event}register(e,t,i=0){let n=this._entries.get(e);n||(n=new VD(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new CC(e)),Pe(()=>{o.dispose(),this._onDidChange.fire(new CC(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}getComments(e){const t=this.getLanguageConfiguration(e);return t&&t.comments||null}getIndentRulesSupport(e){const t=this.getLanguageConfiguration(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,i){const n=e.getLanguageIdAtPosition(t,0);if(t>1){let o,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==n)return r;const a=e.getLineContent(o);if(i.shouldIgnore(a)||/^\s+$/.test(a)||a===""){r=o;continue}return o}}return-1}getInheritIndentForLine(e,t,i,n=!0){if(e<4)return null;const o=this.getIndentRulesSupport(t.getLanguageId());if(!o)return null;if(i<=1)return{indentation:"",action:null};const r=this.getPrecedingValidLine(t,i,o);if(r<0)return null;if(r<1)return{indentation:"",action:null};const a=t.getLineContent(r);if(o.shouldIncrease(a)||o.shouldIndentNextLine(a))return{indentation:Ut(a),action:dt.Indent,line:r};if(o.shouldDecrease(a))return{indentation:Ut(a),action:null,line:r};{if(r===1)return{indentation:Ut(t.getLineContent(r)),action:null,line:r};const l=r-1,c=o.getIndentMetadata(t.getLineContent(l));if(!(c&3)&&c&4){let h=0;for(let d=l-1;d>0;d--)if(!o.shouldIndentNextLine(t.getLineContent(d))){h=d;break}return{indentation:Ut(t.getLineContent(h+1)),action:null,line:h+1}}if(n)return{indentation:Ut(t.getLineContent(r)),action:null,line:r};for(let h=r;h>0;h--){const d=t.getLineContent(h);if(o.shouldIncrease(d))return{indentation:Ut(d),action:dt.Indent,line:h};if(o.shouldIndentNextLine(d)){let u=0;for(let f=h-1;f>0;f--)if(!o.shouldIndentNextLine(t.getLineContent(h))){u=f;break}return{indentation:Ut(t.getLineContent(u+1)),action:null,line:u+1}}else if(o.shouldDecrease(d))return{indentation:Ut(d),action:null,line:h}}return{indentation:Ut(t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,i,n,o){if(e<4)return null;const r=this.getLanguageConfiguration(i);if(!r)return null;const a=this.getIndentRulesSupport(i);if(!a)return null;const l=this.getInheritIndentForLine(e,t,n),c=t.getLineContent(n);if(l){const h=l.line;if(h!==void 0){const d=r.onEnter(e,"",t.getLineContent(h),"");if(d){let u=Ut(t.getLineContent(h));return d.removeText&&(u=u.substring(0,u.length-d.removeText)),d.indentAction===dt.Indent||d.indentAction===dt.IndentOutdent?u=o.shiftIndent(u):d.indentAction===dt.Outdent&&(u=o.unshiftIndent(u)),a.shouldDecrease(c)&&(u=o.unshiftIndent(u)),d.appendText&&(u+=d.appendText),Ut(u)}}return a.shouldDecrease(c)?l.action===dt.Indent?l.indentation:o.unshiftIndent(l.indentation):l.action===dt.Indent?o.shiftIndent(l.indentation):l.indentation}return null}getIndentForEnter(e,t,i,n){if(e<4)return null;t.forceTokenization(i.startLineNumber);const o=t.getLineTokens(i.startLineNumber),r=fu(o,i.startColumn-1),a=r.getLineContent();let l=!1,c;r.firstCharOffset>0&&o.getLanguageId(0)!==r.languageId?(l=!0,c=a.substr(0,i.startColumn-1-r.firstCharOffset)):c=o.getLineContent().substring(0,i.startColumn-1);let h;i.isEmpty()?h=a.substr(i.startColumn-1-r.firstCharOffset):h=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);const d=this.getIndentRulesSupport(r.languageId);if(!d)return null;const u=c,f=Ut(c),m={getLineTokens:C=>t.getLineTokens(C),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(C,v)=>t.getLanguageIdAtPosition(C,v),getLineContent:C=>C===i.startLineNumber?u:t.getLineContent(C)},_=Ut(o.getLineContent()),b=this.getInheritIndentForLine(e,m,i.startLineNumber+1);if(!b){const C=l?_:f;return{beforeEnter:C,afterEnter:C}}let w=l?_:b.indentation;return b.action===dt.Indent&&(w=n.shiftIndent(w)),d.shouldDecrease(h)&&(w=n.unshiftIndent(w)),{beforeEnter:l?_:f,afterEnter:w}}getIndentActionForType(e,t,i,n,o){if(e<4)return null;const r=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn);if(r.firstCharOffset)return null;const a=this.getIndentRulesSupport(r.languageId);if(!a)return null;const l=r.getLineContent(),c=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(i.isEmpty()?h=l.substr(i.startColumn-1-r.firstCharOffset):h=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset),!a.shouldDecrease(c+h)&&a.shouldDecrease(c+n+h)){const d=this.getInheritIndentForLine(e,t,i.startLineNumber,!1);if(!d)return null;let u=d.indentation;return d.action!==dt.Indent&&(u=o.unshiftIndent(u)),u}return null}getIndentMetadata(e,t){const i=this.getIndentRulesSupport(e.getLanguageId());return!i||t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t))}getEnterAction(e,t,i){const n=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn),o=this.getLanguageConfiguration(n.languageId);if(!o)return null;const r=n.getLineContent(),a=r.substr(0,i.startColumn-1-n.firstCharOffset);let l;i.isEmpty()?l=r.substr(i.startColumn-1-n.firstCharOffset):l=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-n.firstCharOffset);let c="";if(i.startLineNumber>1&&n.firstCharOffset===0){const _=this.getScopedLineTokens(t,i.startLineNumber-1);_.languageId===n.languageId&&(c=_.getLineContent())}const h=o.onEnter(e,c,a,l);if(!h)return null;const d=h.indentAction;let u=h.appendText;const f=h.removeText||0;u?d===dt.Indent&&(u=" "+u):d===dt.Indent||d===dt.IndentOutdent?u=" ":u="";let m=this.getIndentationAtPosition(t,i.startLineNumber,i.startColumn);return f&&(m=m.substring(0,m.length-f)),{indentAction:d,appendText:u,removeText:f,indentation:m}}getIndentationAtPosition(e,t,i){const n=e.getLineContent(t);let o=Ut(n);return o.length>i-1&&(o=o.substring(0,i-1)),o}getScopedLineTokens(e,t,i){e.forceTokenization(t);const n=e.getLineTokens(t),o=typeof i=="undefined"?e.getLineMaxColumn(t)-1:i-1;return fu(n,o)}}const Ki=new BD;class VD{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new wC(e,t,++this._order);return this._entries.push(i),this._resolved=null,Pe(()=>{for(let n=0;ne.configuration)))}}function Wy(s){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of s)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class wC{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class Tc{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new la(this.underlyingConfig):null,this.comments=Tc._handleComments(this.underlyingConfig),this.characterPair=new vf(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||U1,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new RD(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return ey(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new xD(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new MD(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new _D(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[n,o]=t.blockComment;i.blockCommentStartToken=n,i.blockCommentEndToken=o}return i}}ve(Eo,jp);const mu=new class{clone(){return this}equals(s){return this===s}};function WD(s,e){return new Q1([new Ec(0,"",s)],e)}function HD(s,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(s<<0|0<<8|0<<10|1<<14|2<<23)>>>0,new wf(t,e===null?mu:e)}const At=pe("modelService");var $i=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},zh=globalThis&&globalThis.__asyncValues||function(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=s[Symbol.asyncIterator],t;return e?e.call(s):(s=typeof __values=="function"?__values(s):s[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=s[o]&&function(r){return new Promise(function(a,l){r=s[o](r),n(a,l,r.done,r.value)})}}function n(o,r,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},r)}};function zD(s){return!!s&&typeof s.then=="function"}function Hy(s){const e=new ml,t=s(e.token),i=new Promise((n,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),e.dispose(),o(new _h)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),n(a)},a=>{r.dispose(),e.dispose(),o(a)})});return new class{cancel(){e.cancel()}then(n,o){return i.then(n,o)}catch(n){return this.then(void 0,n)}finally(n){return i.finally(n)}}}class UD{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{this.queuedPromise=null;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}}const $D=(s,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},s);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},jD=s=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,s())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},zy=Symbol("MicrotaskDelay");class bl{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,o)=>{this.doResolve=n,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const n=this.task;return this.task=null,n()}}));const i=()=>{var n;this.deferred=null,(n=this.doResolve)===null||n===void 0||n.call(this,null)};return this.deferred=t===zy?jD(i):$D(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(new _h),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class KD{constructor(e){this.delayer=new bl(e),this.throttler=new UD}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function Mc(s,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{o.dispose(),t()},s),o=e.onCancellationRequested(()=>{clearTimeout(n),o.dispose(),i(new _h)})}):Hy(t=>Mc(s,t))}function qp(s,e=0){const t=setTimeout(s,e);return Pe(()=>clearTimeout(t))}class os{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class vh{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class Tt{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let pu;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?pu=s=>{YS(()=>{if(e)return;const t=Date.now()+15;s(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:pu=(s,e)=>{const t=requestIdleCallback(s,typeof e=="number"?{timeout:e}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(t))}}}})();class kf{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=pu(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class Uy{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new _h),this.rejected=!0,e()})}}var Gp;(function(s){function e(i){return $i(this,void 0,void 0,function*(){let n;const o=yield Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n!="undefined")throw n;return o})}s.settled=e;function t(i){return new Promise((n,o)=>$i(this,void 0,void 0,function*(){try{yield i(n,o)}catch(r){o(r)}}))}s.withAsyncBody=t})(Gp||(Gp={}));class fi{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new M,queueMicrotask(()=>$i(this,void 0,void 0,function*(){const t={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{yield Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new fi(t=>{t.emitMany(e)})}static fromPromise(e){return new fi(t=>$i(this,void 0,void 0,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new fi(t=>$i(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>$i(this,void 0,void 0,function*(){return t.emitOne(yield i)})))}))}static merge(e){return new fi(t=>$i(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>{var n,o;return $i(this,void 0,void 0,function*(){var r,a;try{for(n=zh(i);o=yield n.next(),!o.done;){const l=o.value;t.emitOne(l)}}catch(l){r={error:l}}finally{try{o&&!o.done&&(a=n.return)&&(yield a.call(n))}finally{if(r)throw r.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>$i(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(e$i(this,void 0,void 0,function*(){var n,o;try{for(var r=zh(e),a;a=yield r.next(),!a.done;){const l=a.value;i.emitOne(t(l))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}map(e){return fi.map(this,e)}static filter(e,t){return new fi(i=>$i(this,void 0,void 0,function*(){var n,o;try{for(var r=zh(e),a;a=yield r.next(),!a.done;){const l=a.value;t(l)&&i.emitOne(l)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}filter(e){return fi.filter(this,e)}static coalesce(e){return fi.filter(e,t=>!!t)}coalesce(){return fi.coalesce(this)}static toPromise(e){var t,i,n,o;return $i(this,void 0,void 0,function*(){const r=[];try{for(t=zh(e);i=yield t.next(),!i.done;){const a=i.value;r.push(a)}}catch(a){n={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return r})}toPromise(){return fi.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}fi.EMPTY=fi.fromArray([]);const qD="$initialize";let vC=!1;function Zp(s){!fl||(vC||(vC=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(s.message))}class GD{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class SC{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class ZD{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class YD{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class XD{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class QD{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new GD(this._workerId,i,e,t))})}listen(e,t){let i=null;const n=new M({onFirstListenerAdd:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new ZD(this._workerId,i,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(i),this._send(new XD(this._workerId,i)),i=null}});return n.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then(n=>{this._send(new SC(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=Gb(n.detail)),this._send(new SC(this._workerId,t,void 0,Gb(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(n=>{this._send(new YD(this._workerId,t,n))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let i=0;i{this._protocol.handleMessage(c)},c=>{n&&n(c)})),this._protocol=new QD({sendMessage:(c,h)=>{this._worker.postMessage(c,h)},handleMessage:(c,h)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,h))}catch(d){return Promise.reject(d)}},handleEvent:(c,h)=>{if(jy(c)){const d=i[c].call(i,h);if(typeof d!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return d}if($y(c)){const d=i[c];if(typeof d!="function")throw new Error(`Missing event ${c} on main thread host.`);return d}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;typeof Ge.require!="undefined"&&typeof Ge.require.getConfig=="function"?o=Ge.require.getConfig():typeof Ge.requirejs!="undefined"&&(o=Ge.requirejs.s.contexts._.config);const r=j1(i);this._onModuleLoaded=this._protocol.sendMessage(qD,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const a=(c,h)=>this._request(c,h),l=(c,h)=>this._protocol.listen(c,h);this._lazyProxy=new Promise((c,h)=>{n=h,this._onModuleLoaded.then(d=>{c(eN(d,a,l))},d=>{h(d),this._onError("Worker failed to load "+t,d)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function $y(s){return s[0]==="o"&&s[1]==="n"&&Xs(s.charCodeAt(2))}function jy(s){return/^onDynamic/.test(s)&&Xs(s.charCodeAt(9))}function eN(s,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},n=r=>function(a){return t(r,a)};let o={};for(const r of s){if(jy(r)){o[r]=n(r);continue}if($y(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}var Rg;const yC=(Rg=window.trustedTypes)===null||Rg===void 0?void 0:Rg.createPolicy("defaultWorkerFactory",{createScriptURL:s=>s});function tN(s){if(Ge.MonacoEnvironment){if(typeof Ge.MonacoEnvironment.getWorker=="function")return Ge.MonacoEnvironment.getWorker("workerMain.js",s);if(typeof Ge.MonacoEnvironment.getWorkerUrl=="function"){const e=Ge.MonacoEnvironment.getWorkerUrl("workerMain.js",s);return new Worker(yC?yC.createScriptURL(e):e,{name:s})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function iN(s){return typeof s.then=="function"}class nN{constructor(e,t,i,n,o){this.id=t;const r=tN(i);iN(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){n(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(i=>i.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class xf{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++xf.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new nN(e,n,this._label||"anonymous"+n,t,o=>{Zp(o),this._webWorkerFailedBeforeError=o,i(o)})}}xf.LAST_WORKER_ID=0;class qs{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function g0(s,e){switch(typeof s){case"object":return s===null?Ds(349,e):Array.isArray(s)?oN(s,e):rN(s,e);case"string":return m0(s,e);case"boolean":return sN(s,e);case"number":return Ds(s,e);case"undefined":return Ds(937,e);default:return Ds(617,e)}}function Ds(s,e){return(e<<5)-e+s|0}function sN(s,e){return Ds(s?433:863,e)}function m0(s,e){e=Ds(149417,e);for(let t=0,i=s.length;tg0(i,t),e)}function rN(s,e){return e=Ds(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=m0(i,t),g0(s[i],t)),e)}function Ag(s,e,t=32){const i=t-e,n=~((1<>>i)>>>0}function LC(s,e=0,t=s.byteLength,i=0){for(let n=0;nt.toString(16).padStart(2,"0")).join(""):aN((s>>>0).toString(16),e/4)}class If{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let n=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(gt(r))if(a+1>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Ml(this._h0)+Ml(this._h1)+Ml(this._h2)+Ml(this._h3)+Ml(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,LC(this._buff,this._buffLen),this._buffLen>56&&(this._step(),LC(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=If._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,Ag(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i=this._h0,n=this._h1,o=this._h2,r=this._h3,a=this._h4,l,c,h;for(let d=0;d<80;d++)d<20?(l=n&o|~n&r,c=1518500249):d<40?(l=n^o^r,c=1859775393):d<60?(l=n&o|n&r|o&r,c=2400959708):(l=n^o^r,c=3395469782),h=Ag(i,5)+l+a+c+e.getUint32(d*4,!1)&4294967295,a=r,r=o,o=Ag(n,30),n=i,i=h;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}If._bigBlock32=new DataView(new ArrayBuffer(320));class kC{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new qs(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ks{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,r]=ks._getElements(e),[a,l,c]=ks._getElements(t);this._hasStrings=r&&c,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(ks._isStringArray(t)){const i=new Int32Array(t.length);for(let n=0,o=t.length;n=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let d;return i<=n?(Kr.Assert(e===t+1,"originalStart should only be one more than originalEnd"),d=[new qs(e,0,i,n-i+1)]):e<=t?(Kr.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),d=[new qs(e,t-e+1,i,0)]):(Kr.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Kr.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,n,r,a,o),c=r[0],h=a[0];if(l!==null)return l;if(!o[0]){const d=this.ComputeDiffRecursive(e,c,i,h,o);let u=[];return o[0]?u=[new qs(c+1,t-(c+1)+1,h+1,n-(h+1)+1)]:u=this.ComputeDiffRecursive(c+1,t,h+1,n,o),this.ConcatenateChanges(d,u)}return[new qs(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C){let v=null,S=null,k=new xC,x=t,L=i,y=f[0]-b[0]-n,I=-1073741824,R=this.m_forwardHistory.length-1;do{const T=y+e;T===x||T=0&&(c=this.m_forwardHistory[R],e=c[0],x=1,L=c.length-1)}while(--R>=-1);if(v=k.getReverseChanges(),C[0]){let T=f[0]+1,P=b[0]+1;if(v!==null&&v.length>0){const F=v[v.length-1];T=Math.max(T,F.getOriginalEnd()),P=Math.max(P,F.getModifiedEnd())}S=[new qs(T,u-T+1,P,_-P+1)]}else{k=new xC,x=r,L=a,y=f[0]-b[0]-l,I=1073741824,R=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const T=y+o;T===x||T=h[T+1]?(d=h[T+1]-1,m=d-y-l,d>I&&k.MarkNextChange(),I=d+1,k.AddOriginalElement(d+1,m+1),y=T+1-o):(d=h[T-1],m=d-y-l,d>I&&k.MarkNextChange(),I=d,k.AddModifiedElement(d+1,m+1),y=T-1-o),R>=0&&(h=this.m_reverseHistory[R],o=h[0],x=1,L=h.length-1)}while(--R>=-1);S=k.getChanges()}return this.ConcatenateChanges(v,S)}ComputeRecursionPoint(e,t,i,n,o,r,a){let l=0,c=0,h=0,d=0,u=0,f=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),_=m+1,b=new Int32Array(_),w=new Int32Array(_),C=n-i,v=t-e,S=e-i,k=t-n,L=(v-C)%2===0;b[C]=e,w[v]=t,a[0]=!1;for(let y=1;y<=m/2+1;y++){let I=0,R=0;h=this.ClipDiagonalBound(C-y,y,C,_),d=this.ClipDiagonalBound(C+y,y,C,_);for(let P=h;P<=d;P+=2){P===h||PI+R&&(I=l,R=c),!L&&Math.abs(P-v)<=y-1&&l>=w[P])return o[0]=l,r[0]=c,F<=w[P]&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):null}const T=(I-e+(R-i)-y)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(I,T))return a[0]=!0,o[0]=I,r[0]=R,T>0&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):(e++,i++,[new qs(e,t-e+1,i,n-i+1)]);u=this.ClipDiagonalBound(v-y,y,v,_),f=this.ClipDiagonalBound(v+y,y,v,_);for(let P=u;P<=f;P+=2){P===u||P=w[P+1]?l=w[P+1]-1:l=w[P-1],c=l-(P-v)-k;const F=l;for(;l>e&&c>i&&this.ElementsAreEqual(l,c);)l--,c--;if(w[P]=l,L&&Math.abs(P-C)<=y&&l<=b[P])return o[0]=l,r[0]=c,F>=b[P]&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):null}if(y<=1447){let P=new Int32Array(d-h+2);P[0]=C-h+1,qr.Copy2(b,h,P,1,d-h+1),this.m_forwardHistory.push(P),P=new Int32Array(f-u+2),P[0]=v-u+1,qr.Copy2(w,u,P,1,f-u+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a)}PrettifyChanges(e){for(let t=0;t0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const d=e[t-1];n=d.originalStart+d.originalLength,o=d.modifiedStart+d.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const u=i.originalStart-d,f=i.modifiedStart-d;if(uc&&(c=_,l=d)}i.originalStart-=l,i.modifiedStart-=l;const h=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],h)){e[t-1]=h[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&f>l&&(l=f,c=d,h=u)}return l>0?[c,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+r}ConcatenateChanges(e,t){let i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return qr.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],qr.Copy(t,1,n,e.length,t.length-1),n}else{const n=new Array(e.length+t.length);return qr.Copy(e,0,n,0,e.length),qr.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,i){if(Kr.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Kr.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new qs(n,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const f=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),m=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let _=Ky(f,m,o,!0).changes;a&&(_=dN(_)),u=[];for(let b=0,w=_.length;b1&&_>1;){const b=u.charCodeAt(m-2),w=f.charCodeAt(_-2);if(b!==w)break;m--,_--}(m>1||_>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,m,r+1,1,_)}{let m=Xp(u,1),_=Xp(f,1);const b=u.length+1,w=f.length+1;for(;m!0;const e=Date.now();return()=>Date.now()-e255?255:s|0}function Gr(s){return s<0?0:s>4294967295?4294967295:s|0}class fN{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Gr(e);const i=this.values,n=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Gr(e),t=Gr(t),this.values[e]===t?!1:(this.values[e]=t,e-1=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Gr(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],r=o-this.values[n],e=o)t=n+1;else break;return new qy(n,e-r)}}class gN{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new qy(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=pf(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=n+i;for(let o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class pN{constructor(e,t,i){const n=new Uint8Array(e*t);for(let o=0,r=e*t;ot&&(t=l),a>i&&(i=a),c>i&&(i=c)}t++,i++;const n=new pN(i,t,0);for(let o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)}}let Og=null;function bN(){return Og===null&&(Og=new _N([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Og}let Rl=null;function CN(){if(Rl===null){Rl=new Sh(0);const s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let t=0;tn);if(n>0){const a=t.charCodeAt(n-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=bN()){const i=CN(),n=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let c=0,h=0,d=0,u=1,f=!1,m=!1,_=!1,b=!1;for(;c=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}Qp.INSTANCE=new Qp;class vN extends Sh{constructor(e){super(0);for(let t=0,i=e.length;t(e.hasOwnProperty(t)||(e[t]=s(t)),e[t])}const Ka=SN(s=>new vN(s)),yN=999;class Bo{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=LN(this.searchString):e=this.searchString.indexOf(` -`)>=0;let t=null;try{t=Sy(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new gD(t,this.wordSeparators?Ka(this.wordSeparators):null,i?this.searchString:null)}}function LN(s){if(!s||s.length===0)return!1;for(let e=0,t=s.length;e=t)break;const n=s.charCodeAt(e);if(n===110||n===114||n===87)return!0}return!1}function Uo(s,e,t){if(!t)return new Nc(s,null);const i=[];for(let n=0,o=e.length;n>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class Uh{static findMatches(e,t,i,n,o){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new ca(r.wordSeparators,r.regex),n,o):this._doFindMatchesLineByLine(e,i,r,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,r){let a,l=0;n?(l=n.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o;let c;if(n){const f=n.findLineFeedCountBeforeOffset(o+r.length)-l;c=a+r.length+f}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new D(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,n,o){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r +`))}}class dE{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new lE}invoke(e){this.callback.call(this.callbackThis,e)}}class M{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Cf(this._options._profName):void 0}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(),(i=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||i===void 0||i.call(t),(n=this._leakageMon)===null||n===void 0||n.dispose())}get event(){return this._event||(this._event=(e,t,i)=>{var n,o,r;this._listeners||(this._listeners=new Xi);const a=this._listeners.isEmpty();a&&((n=this._options)===null||n===void 0?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let l,c;this._leakageMon&&this._listeners.size>=30&&(c=G1.create(),l=this._leakageMon.check(c,this._listeners.size+1));const h=new dE(e,t,c),d=this._listeners.push(h);a&&((o=this._options)===null||o===void 0?void 0:o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((r=this._options)===null||r===void 0)&&r.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const u=h.subscription.set(()=>{l&&l(),this._disposed||(d(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return i instanceof se?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}fire(e){var t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Xi);for(let n of this._listeners)this._deliveryQueue.push([n,e]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[n,o]=this._deliveryQueue.shift();try{n.invoke(o)}catch(r){Ze(r)}}(i=this._perfMon)===null||i===void 0||i.stop()}}}class ru extends M{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Xi,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class uE extends ru{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Z1{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(n=>n()),i}}class Zb{constructor(){this.listening=!1,this.inputEvent=K.None,this.inputEventListener=W.None,this.emitter=new M({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const cy=Object.freeze(function(s,e){const t=setTimeout(s.bind(e),0);return{dispose(){clearTimeout(t)}}});var ci;(function(s){function e(t){return t===s.None||t===s.Cancelled||t instanceof Td?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}s.isCancellationToken=e,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:K.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cy})})(ci||(ci={}));class Td{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?cy:(this._emitter||(this._emitter=new M),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ml{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Td),this._token}cancel(){this._token?this._token instanceof Td&&this._token.cancel():this._token=ci.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Td&&this._token.dispose():this._token=ci.None}}class Y1{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Md=new Y1,Ym=new Y1,Xm=new Y1,hy=new Array(230),fE={},gE=[],mE=Object.create(null),pE=Object.create(null),X1=[],Qm=[];for(let s=0;s<=193;s++)X1[s]=-1;for(let s=0;s<=127;s++)Qm[s]=-1;(function(){const s="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",s,s],[0,1,1,"Hyper",0,s,0,s,s,s],[0,1,2,"Super",0,s,0,s,s,s],[0,1,3,"Fn",0,s,0,s,s,s],[0,1,4,"FnLock",0,s,0,s,s,s],[0,1,5,"Suspend",0,s,0,s,s,s],[0,1,6,"Resume",0,s,0,s,s,s],[0,1,7,"Turbo",0,s,0,s,s,s],[0,1,8,"Sleep",0,s,0,"VK_SLEEP",s,s],[0,1,9,"WakeUp",0,s,0,s,s,s],[31,0,10,"KeyA",31,"A",65,"VK_A",s,s],[32,0,11,"KeyB",32,"B",66,"VK_B",s,s],[33,0,12,"KeyC",33,"C",67,"VK_C",s,s],[34,0,13,"KeyD",34,"D",68,"VK_D",s,s],[35,0,14,"KeyE",35,"E",69,"VK_E",s,s],[36,0,15,"KeyF",36,"F",70,"VK_F",s,s],[37,0,16,"KeyG",37,"G",71,"VK_G",s,s],[38,0,17,"KeyH",38,"H",72,"VK_H",s,s],[39,0,18,"KeyI",39,"I",73,"VK_I",s,s],[40,0,19,"KeyJ",40,"J",74,"VK_J",s,s],[41,0,20,"KeyK",41,"K",75,"VK_K",s,s],[42,0,21,"KeyL",42,"L",76,"VK_L",s,s],[43,0,22,"KeyM",43,"M",77,"VK_M",s,s],[44,0,23,"KeyN",44,"N",78,"VK_N",s,s],[45,0,24,"KeyO",45,"O",79,"VK_O",s,s],[46,0,25,"KeyP",46,"P",80,"VK_P",s,s],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",s,s],[48,0,27,"KeyR",48,"R",82,"VK_R",s,s],[49,0,28,"KeyS",49,"S",83,"VK_S",s,s],[50,0,29,"KeyT",50,"T",84,"VK_T",s,s],[51,0,30,"KeyU",51,"U",85,"VK_U",s,s],[52,0,31,"KeyV",52,"V",86,"VK_V",s,s],[53,0,32,"KeyW",53,"W",87,"VK_W",s,s],[54,0,33,"KeyX",54,"X",88,"VK_X",s,s],[55,0,34,"KeyY",55,"Y",89,"VK_Y",s,s],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",s,s],[22,0,36,"Digit1",22,"1",49,"VK_1",s,s],[23,0,37,"Digit2",23,"2",50,"VK_2",s,s],[24,0,38,"Digit3",24,"3",51,"VK_3",s,s],[25,0,39,"Digit4",25,"4",52,"VK_4",s,s],[26,0,40,"Digit5",26,"5",53,"VK_5",s,s],[27,0,41,"Digit6",27,"6",54,"VK_6",s,s],[28,0,42,"Digit7",28,"7",55,"VK_7",s,s],[29,0,43,"Digit8",29,"8",56,"VK_8",s,s],[30,0,44,"Digit9",30,"9",57,"VK_9",s,s],[21,0,45,"Digit0",21,"0",48,"VK_0",s,s],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",s,s],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",s,s],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",s,s],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",s,s],[10,1,50,"Space",10,"Space",32,"VK_SPACE",s,s],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,s,0,s,s,s],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",s,s],[59,1,64,"F1",59,"F1",112,"VK_F1",s,s],[60,1,65,"F2",60,"F2",113,"VK_F2",s,s],[61,1,66,"F3",61,"F3",114,"VK_F3",s,s],[62,1,67,"F4",62,"F4",115,"VK_F4",s,s],[63,1,68,"F5",63,"F5",116,"VK_F5",s,s],[64,1,69,"F6",64,"F6",117,"VK_F6",s,s],[65,1,70,"F7",65,"F7",118,"VK_F7",s,s],[66,1,71,"F8",66,"F8",119,"VK_F8",s,s],[67,1,72,"F9",67,"F9",120,"VK_F9",s,s],[68,1,73,"F10",68,"F10",121,"VK_F10",s,s],[69,1,74,"F11",69,"F11",122,"VK_F11",s,s],[70,1,75,"F12",70,"F12",123,"VK_F12",s,s],[0,1,76,"PrintScreen",0,s,0,s,s,s],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",s,s],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",s,s],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",s,s],[14,1,80,"Home",14,"Home",36,"VK_HOME",s,s],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",s,s],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",s,s],[13,1,83,"End",13,"End",35,"VK_END",s,s],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",s,s],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",s],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",s],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",s],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",s],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",s,s],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",s,s],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",s,s],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",s,s],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",s,s],[3,1,94,"NumpadEnter",3,s,0,s,s,s],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",s,s],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",s,s],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",s,s],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",s,s],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",s,s],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",s,s],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",s,s],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",s,s],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",s,s],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",s,s],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",s,s],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",s,s],[58,1,107,"ContextMenu",58,"ContextMenu",93,s,s,s],[0,1,108,"Power",0,s,0,s,s,s],[0,1,109,"NumpadEqual",0,s,0,s,s,s],[71,1,110,"F13",71,"F13",124,"VK_F13",s,s],[72,1,111,"F14",72,"F14",125,"VK_F14",s,s],[73,1,112,"F15",73,"F15",126,"VK_F15",s,s],[74,1,113,"F16",74,"F16",127,"VK_F16",s,s],[75,1,114,"F17",75,"F17",128,"VK_F17",s,s],[76,1,115,"F18",76,"F18",129,"VK_F18",s,s],[77,1,116,"F19",77,"F19",130,"VK_F19",s,s],[0,1,117,"F20",0,s,0,"VK_F20",s,s],[0,1,118,"F21",0,s,0,"VK_F21",s,s],[0,1,119,"F22",0,s,0,"VK_F22",s,s],[0,1,120,"F23",0,s,0,"VK_F23",s,s],[0,1,121,"F24",0,s,0,"VK_F24",s,s],[0,1,122,"Open",0,s,0,s,s,s],[0,1,123,"Help",0,s,0,s,s,s],[0,1,124,"Select",0,s,0,s,s,s],[0,1,125,"Again",0,s,0,s,s,s],[0,1,126,"Undo",0,s,0,s,s,s],[0,1,127,"Cut",0,s,0,s,s,s],[0,1,128,"Copy",0,s,0,s,s,s],[0,1,129,"Paste",0,s,0,s,s,s],[0,1,130,"Find",0,s,0,s,s,s],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",s,s],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",s,s],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",s,s],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",s,s],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",s,s],[0,1,136,"KanaMode",0,s,0,s,s,s],[0,0,137,"IntlYen",0,s,0,s,s,s],[0,1,138,"Convert",0,s,0,s,s,s],[0,1,139,"NonConvert",0,s,0,s,s,s],[0,1,140,"Lang1",0,s,0,s,s,s],[0,1,141,"Lang2",0,s,0,s,s,s],[0,1,142,"Lang3",0,s,0,s,s,s],[0,1,143,"Lang4",0,s,0,s,s,s],[0,1,144,"Lang5",0,s,0,s,s,s],[0,1,145,"Abort",0,s,0,s,s,s],[0,1,146,"Props",0,s,0,s,s,s],[0,1,147,"NumpadParenLeft",0,s,0,s,s,s],[0,1,148,"NumpadParenRight",0,s,0,s,s,s],[0,1,149,"NumpadBackspace",0,s,0,s,s,s],[0,1,150,"NumpadMemoryStore",0,s,0,s,s,s],[0,1,151,"NumpadMemoryRecall",0,s,0,s,s,s],[0,1,152,"NumpadMemoryClear",0,s,0,s,s,s],[0,1,153,"NumpadMemoryAdd",0,s,0,s,s,s],[0,1,154,"NumpadMemorySubtract",0,s,0,s,s,s],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",s,s],[0,1,156,"NumpadClearEntry",0,s,0,s,s,s],[5,1,0,s,5,"Ctrl",17,"VK_CONTROL",s,s],[4,1,0,s,4,"Shift",16,"VK_SHIFT",s,s],[6,1,0,s,6,"Alt",18,"VK_MENU",s,s],[57,1,0,s,57,"Meta",0,"VK_COMMAND",s,s],[5,1,157,"ControlLeft",5,s,0,"VK_LCONTROL",s,s],[4,1,158,"ShiftLeft",4,s,0,"VK_LSHIFT",s,s],[6,1,159,"AltLeft",6,s,0,"VK_LMENU",s,s],[57,1,160,"MetaLeft",57,s,0,"VK_LWIN",s,s],[5,1,161,"ControlRight",5,s,0,"VK_RCONTROL",s,s],[4,1,162,"ShiftRight",4,s,0,"VK_RSHIFT",s,s],[6,1,163,"AltRight",6,s,0,"VK_RMENU",s,s],[57,1,164,"MetaRight",57,s,0,"VK_RWIN",s,s],[0,1,165,"BrightnessUp",0,s,0,s,s,s],[0,1,166,"BrightnessDown",0,s,0,s,s,s],[0,1,167,"MediaPlay",0,s,0,s,s,s],[0,1,168,"MediaRecord",0,s,0,s,s,s],[0,1,169,"MediaFastForward",0,s,0,s,s,s],[0,1,170,"MediaRewind",0,s,0,s,s,s],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",s,s],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",s,s],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",s,s],[0,1,174,"Eject",0,s,0,s,s,s],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",s,s],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",s,s],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",s,s],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",s,s],[0,1,179,"LaunchApp1",0,s,0,"VK_MEDIA_LAUNCH_APP1",s,s],[0,1,180,"SelectTask",0,s,0,s,s,s],[0,1,181,"LaunchScreenSaver",0,s,0,s,s,s],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",s,s],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",s,s],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",s,s],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",s,s],[0,1,186,"BrowserStop",0,s,0,"VK_BROWSER_STOP",s,s],[0,1,187,"BrowserRefresh",0,s,0,"VK_BROWSER_REFRESH",s,s],[0,1,188,"BrowserFavorites",0,s,0,"VK_BROWSER_FAVORITES",s,s],[0,1,189,"ZoomToggle",0,s,0,s,s,s],[0,1,190,"MailReply",0,s,0,s,s,s],[0,1,191,"MailForward",0,s,0,s,s,s],[0,1,192,"MailSend",0,s,0,s,s,s],[109,1,0,s,109,"KeyInComposition",229,s,s,s],[111,1,0,s,111,"ABNT_C2",194,"VK_ABNT_C2",s,s],[91,1,0,s,91,"OEM_8",223,"VK_OEM_8",s,s],[0,1,0,s,0,s,0,"VK_KANA",s,s],[0,1,0,s,0,s,0,"VK_HANGUL",s,s],[0,1,0,s,0,s,0,"VK_JUNJA",s,s],[0,1,0,s,0,s,0,"VK_FINAL",s,s],[0,1,0,s,0,s,0,"VK_HANJA",s,s],[0,1,0,s,0,s,0,"VK_KANJI",s,s],[0,1,0,s,0,s,0,"VK_CONVERT",s,s],[0,1,0,s,0,s,0,"VK_NONCONVERT",s,s],[0,1,0,s,0,s,0,"VK_ACCEPT",s,s],[0,1,0,s,0,s,0,"VK_MODECHANGE",s,s],[0,1,0,s,0,s,0,"VK_SELECT",s,s],[0,1,0,s,0,s,0,"VK_PRINT",s,s],[0,1,0,s,0,s,0,"VK_EXECUTE",s,s],[0,1,0,s,0,s,0,"VK_SNAPSHOT",s,s],[0,1,0,s,0,s,0,"VK_HELP",s,s],[0,1,0,s,0,s,0,"VK_APPS",s,s],[0,1,0,s,0,s,0,"VK_PROCESSKEY",s,s],[0,1,0,s,0,s,0,"VK_PACKET",s,s],[0,1,0,s,0,s,0,"VK_DBE_SBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_DBE_DBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_ATTN",s,s],[0,1,0,s,0,s,0,"VK_CRSEL",s,s],[0,1,0,s,0,s,0,"VK_EXSEL",s,s],[0,1,0,s,0,s,0,"VK_EREOF",s,s],[0,1,0,s,0,s,0,"VK_PLAY",s,s],[0,1,0,s,0,s,0,"VK_ZOOM",s,s],[0,1,0,s,0,s,0,"VK_NONAME",s,s],[0,1,0,s,0,s,0,"VK_PA1",s,s],[0,1,0,s,0,s,0,"VK_OEM_CLEAR",s,s]];let t=[],i=[];for(const n of e){const[o,r,a,l,c,h,d,u,f,m]=n;if(i[a]||(i[a]=!0,gE[a]=l,mE[l]=a,pE[l.toLowerCase()]=a,r&&(X1[a]=c,c!==0&&c!==3&&c!==5&&c!==4&&c!==6&&c!==57&&(Qm[c]=a))),!t[c]){if(t[c]=!0,!h)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Md.define(c,h),Ym.define(c,f||h),Xm.define(c,m||f||h)}d&&(hy[d]=c),u&&(fE[u]=c)}Qm[3]=46})();var Jo;(function(s){function e(a){return Md.keyCodeToStr(a)}s.toString=e;function t(a){return Md.strToKeyCode(a)}s.fromString=t;function i(a){return Ym.keyCodeToStr(a)}s.toUserSettingsUS=i;function n(a){return Xm.keyCodeToStr(a)}s.toUserSettingsGeneral=n;function o(a){return Ym.strToKeyCode(a)||Xm.strToKeyCode(a)}s.fromUserSettings=o;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Md.keyCodeToStr(a)}s.toElectronAccelerator=r})(Jo||(Jo={}));function _E(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}let ya;if(typeof Ge.vscode!="undefined"&&typeof Ge.vscode.process!="undefined"){const s=Ge.vscode.process;ya={get platform(){return s.platform},get arch(){return s.arch},get env(){return s.env},cwd(){return s.cwd()}}}else typeof process!="undefined"?ya={get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:ya={get platform(){return li?"win32":me?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Jm=ya.cwd;ya.env;const Ar=ya.platform,bE=65,CE=97,wE=90,vE=122,co=46,Pt=47,ui=92,Vs=58,SE=63;class dy extends Error{constructor(e,t,i){let n;typeof t=="string"&&t.indexOf("not ")===0?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${n} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function ut(s,e){if(typeof s!="string")throw new dy(e,"string",s)}function ge(s){return s===Pt||s===ui}function ep(s){return s===Pt}function Ws(s){return s>=bE&&s<=wE||s>=CE&&s<=vE}function au(s,e,t,i){let n="",o=0,r=-1,a=0,l=0;for(let c=0;c<=s.length;++c){if(c2){const h=n.lastIndexOf(t);h===-1?(n="",o=0):(n=n.slice(0,h),o=n.length-1-n.lastIndexOf(t)),r=c,a=0;continue}else if(n.length!==0){n="",o=0,r=c,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",o=2)}else n.length>0?n+=`${t}${s.slice(r+1,c)}`:n=s.slice(r+1,c),o=c-r-1;r=c,a=0}else l===co&&a!==-1?++a:a=-1}return n}function uy(s,e){if(e===null||typeof e!="object")throw new dy("pathObject","Object",e);const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${s}${i}`:i}const ai={resolve(...s){let e="",t="",i=!1;for(let n=s.length-1;n>=-1;n--){let o;if(n>=0){if(o=s[n],ut(o,"path"),o.length===0)continue}else e.length===0?o=Jm():(o={}[`=${e}`]||Jm(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===ui)&&(o=`${e}\\`));const r=o.length;let a=0,l="",c=!1;const h=o.charCodeAt(0);if(r===1)ge(h)&&(a=1,c=!0);else if(ge(h))if(c=!0,ge(o.charCodeAt(1))){let d=2,u=d;for(;d2&&ge(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=c,c&&e.length>0)break}return t=au(t,!i,"\\",ge),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(s){ut(s,"path");const e=s.length;if(e===0)return".";let t=0,i,n=!1;const o=s.charCodeAt(0);if(e===1)return ep(o)?"\\":s;if(ge(o))if(n=!0,ge(s.charCodeAt(1))){let a=2,l=a;for(;a2&&ge(s.charCodeAt(2))&&(n=!0,t=3));let r=t0&&ge(s.charCodeAt(e-1))&&(r+="\\"),i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(s){ut(s,"path");const e=s.length;if(e===0)return!1;const t=s.charCodeAt(0);return ge(t)||e>2&&Ws(t)&&s.charCodeAt(1)===Vs&&ge(s.charCodeAt(2))},join(...s){if(s.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,n=0;if(typeof t=="string"&&ge(t.charCodeAt(0))){++n;const o=t.length;o>1&&ge(t.charCodeAt(1))&&(++n,o>2&&(ge(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n=2&&(e=`\\${e.slice(n)}`)}return ai.normalize(e)},relative(s,e){if(ut(s,"from"),ut(e,"to"),s===e)return"";const t=ai.resolve(s),i=ai.resolve(e);if(t===i||(s=t.toLowerCase(),e=i.toLowerCase(),s===e))return"";let n=0;for(;nn&&s.charCodeAt(o-1)===ui;)o--;const r=o-n;let a=0;for(;aa&&e.charCodeAt(l-1)===ui;)l--;const c=l-a,h=rh){if(e.charCodeAt(a+u)===ui)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>h&&(s.charCodeAt(n+u)===ui?d=u:u===2&&(d=3)),d===-1&&(d=0)}let f="";for(u=n+d+1;u<=o;++u)(u===o||s.charCodeAt(u)===ui)&&(f+=f.length===0?"..":"\\..");return a+=d,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===ui&&++a,i.slice(a,l))},toNamespacedPath(s){if(typeof s!="string")return s;if(s.length===0)return"";const e=ai.resolve(s);if(e.length<=2)return s;if(e.charCodeAt(0)===ui){if(e.charCodeAt(1)===ui){const t=e.charCodeAt(2);if(t!==SE&&t!==co)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ws(e.charCodeAt(0))&&e.charCodeAt(1)===Vs&&e.charCodeAt(2)===ui)return`\\\\?\\${e}`;return s},dirname(s){ut(s,"path");const e=s.length;if(e===0)return".";let t=-1,i=0;const n=s.charCodeAt(0);if(e===1)return ge(n)?s:".";if(ge(n)){if(t=i=1,ge(s.charCodeAt(1))){let a=2,l=a;for(;a2&&ge(s.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(ge(s.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return s.slice(0,o)},basename(s,e){e!==void 0&&ut(e,"ext"),ut(s,"path");let t=0,i=-1,n=!0,o;if(s.length>=2&&Ws(s.charCodeAt(0))&&s.charCodeAt(1)===Vs&&(t=2),e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=t;--o){const l=s.charCodeAt(o);if(ge(l)){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=t;--o)if(ge(s.charCodeAt(o))){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){ut(s,"path");let e=0,t=-1,i=0,n=-1,o=!0,r=0;s.length>=2&&s.charCodeAt(1)===Vs&&Ws(s.charCodeAt(0))&&(e=i=2);for(let a=s.length-1;a>=e;--a){const l=s.charCodeAt(a);if(ge(l)){if(!o){i=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===co?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||n===-1||r===0||r===1&&t===n-1&&t===i+1?"":s.slice(t,n)},format:uy.bind(null,"\\"),parse(s){ut(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.length;let i=0,n=s.charCodeAt(0);if(t===1)return ge(n)?(e.root=e.dir=s,e):(e.base=e.name=s,e);if(ge(n)){if(i=1,ge(s.charCodeAt(1))){let d=2,u=d;for(;d0&&(e.root=s.slice(0,i));let o=-1,r=i,a=-1,l=!0,c=s.length-1,h=0;for(;c>=i;--c){if(n=s.charCodeAt(c),ge(n)){if(!l){r=c+1;break}continue}a===-1&&(l=!1,a=c+1),n===co?o===-1?o=c:h!==1&&(h=1):o!==-1&&(h=-1)}return a!==-1&&(o===-1||h===0||h===1&&o===a-1&&o===r+1?e.base=e.name=s.slice(r,a):(e.name=s.slice(r,o),e.base=s.slice(r,a),e.ext=s.slice(o,a))),r>0&&r!==i?e.dir=s.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},tt={resolve(...s){let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){const n=i>=0?s[i]:Jm();ut(n,"path"),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===Pt)}return e=au(e,!t,"/",ep),t?`/${e}`:e.length>0?e:"."},normalize(s){if(ut(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===Pt,t=s.charCodeAt(s.length-1)===Pt;return s=au(s,!e,"/",ep),s.length===0?e?"/":t?"./":".":(t&&(s+="/"),e?`/${s}`:s)},isAbsolute(s){return ut(s,"path"),s.length>0&&s.charCodeAt(0)===Pt},join(...s){if(s.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":tt.normalize(e)},relative(s,e){if(ut(s,"from"),ut(e,"to"),s===e||(s=tt.resolve(s),e=tt.resolve(e),s===e))return"";const t=1,i=s.length,n=i-t,o=1,r=e.length-o,a=na){if(e.charCodeAt(o+c)===Pt)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else n>a&&(s.charCodeAt(t+c)===Pt?l=c:c===0&&(l=0));let h="";for(c=t+l+1;c<=i;++c)(c===i||s.charCodeAt(c)===Pt)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(o+l)}`},toNamespacedPath(s){return s},dirname(s){if(ut(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===Pt;let t=-1,i=!0;for(let n=s.length-1;n>=1;--n)if(s.charCodeAt(n)===Pt){if(!i){t=n;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":s.slice(0,t)},basename(s,e){e!==void 0&&ut(e,"ext"),ut(s,"path");let t=0,i=-1,n=!0,o;if(e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=0;--o){const l=s.charCodeAt(o);if(l===Pt){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=0;--o)if(s.charCodeAt(o)===Pt){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){ut(s,"path");let e=-1,t=0,i=-1,n=!0,o=0;for(let r=s.length-1;r>=0;--r){const a=s.charCodeAt(r);if(a===Pt){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a===co?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":s.slice(e,i)},format:uy.bind(null,"/"),parse(s){ut(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.charCodeAt(0)===Pt;let i;t?(e.root="/",i=1):i=0;let n=-1,o=0,r=-1,a=!0,l=s.length-1,c=0;for(;l>=i;--l){const h=s.charCodeAt(l);if(h===Pt){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),h===co?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}if(r!==-1){const h=o===0&&t?1:o;n===-1||c===0||c===1&&n===r-1&&n===o+1?e.base=e.name=s.slice(h,r):(e.name=s.slice(h,n),e.base=s.slice(h,r),e.ext=s.slice(n,r))}return o>0?e.dir=s.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};tt.win32=ai.win32=ai;tt.posix=ai.posix=tt;const fy=Ar==="win32"?ai.normalize:tt.normalize,yE=Ar==="win32"?ai.resolve:tt.resolve,LE=Ar==="win32"?ai.relative:tt.relative,kE=Ar==="win32"?ai.dirname:tt.dirname,gy=Ar==="win32"?ai.basename:tt.basename,xE=Ar==="win32"?ai.extname:tt.extname,rr=Ar==="win32"?ai.sep:tt.sep,IE=/^\w[\w\d+.-]*$/,EE=/^\//,DE=/^\/\//;function Yb(s,e){if(!s.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!IE.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!EE.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(DE.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function NE(s,e){return!s&&!e?"file":s}function TE(s,e){switch(s){case"https":case"http":case"file":e?e[0]!==mn&&(e=mn+e):e=mn;break}return e}const ze="",mn="/",ME=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class we{constructor(e,t,i,n,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||ze,this.authority=e.authority||ze,this.path=e.path||ze,this.query=e.query||ze,this.fragment=e.fragment||ze):(this.scheme=NE(e,r),this.authority=t||ze,this.path=TE(this.scheme,i||ze),this.query=n||ze,this.fragment=o||ze,Yb(this,r))}static isUri(e){return e instanceof we?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}get fsPath(){return lu(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=ze),i===void 0?i=this.authority:i===null&&(i=ze),n===void 0?n=this.path:n===null&&(n=ze),o===void 0?o=this.query:o===null&&(o=ze),r===void 0?r=this.fragment:r===null&&(r=ze),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new jr(t,i,n,o,r)}static parse(e,t=!1){const i=ME.exec(e);return i?new jr(i[2]||ze,Wh(i[4]||ze),Wh(i[5]||ze),Wh(i[7]||ze),Wh(i[9]||ze),t):new jr(ze,ze,ze,ze,ze)}static file(e){let t=ze;if(li&&(e=e.replace(/\\/g,mn)),e[0]===mn&&e[1]===mn){const i=e.indexOf(mn,2);i===-1?(t=e.substring(2),e=mn):(t=e.substring(2,i),e=e.substring(i)||mn)}return new jr("file",t,e,ze,ze)}static from(e){const t=new jr(e.scheme,e.authority,e.path,e.query,e.fragment);return Yb(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return li&&e.scheme==="file"?i=we.file(ai.join(lu(e,!0),...t)).path:i=tt.join(e.path,...t),e.with({path:i})}toString(e=!1){return tp(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof we)return e;{const t=new jr(e);return t._formatted=e.external,t._fsPath=e._sep===my?e.fsPath:null,t}}else return e}}const my=li?1:void 0;class jr extends we{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=lu(this,!1)),this._fsPath}toString(e=!1){return e?tp(this,!0):(this._formatted||(this._formatted=tp(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=my),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const py={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Xb(s,e){let t,i=-1;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(s.substring(i,n)),i=-1),t!==void 0&&(t+=s.charAt(n));else{t===void 0&&(t=s.substr(0,n));const r=py[o];r!==void 0?(i!==-1&&(t+=encodeURIComponent(s.substring(i,n)),i=-1),t+=r):i===-1&&(i=n)}}return i!==-1&&(t+=encodeURIComponent(s.substring(i))),t!==void 0?t:s}function RE(s){let e;for(let t=0;t1&&s.scheme==="file"?t=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?e?t=s.path.substr(1):t=s.path[1].toLowerCase()+s.path.substr(2):t=s.path,li&&(t=t.replace(/\//g,"\\")),t}function tp(s,e){const t=e?RE:Xb;let i="",{scheme:n,authority:o,path:r,query:a,fragment:l}=s;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=mn,i+=mn),o){let c=o.indexOf("@");if(c!==-1){const h=o.substr(0,c);o=o.substr(c+1),c=h.indexOf(":"),c===-1?i+=t(h,!1):(i+=t(h.substr(0,c),!1),i+=":",i+=t(h.substr(c+1),!1)),i+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?i+=t(o,!1):(i+=t(o.substr(0,c),!1),i+=o.substr(c))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const c=r.charCodeAt(1);c>=65&&c<=90&&(r=`/${String.fromCharCode(c+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const c=r.charCodeAt(0);c>=65&&c<=90&&(r=`${String.fromCharCode(c+32)}:${r.substr(2)}`)}i+=t(r,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:Xb(l,!1)),i}function _y(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+_y(s.substr(3)):s}}const Qb=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Wh(s){return s.match(Qb)?s.replace(Qb,e=>_y(e)):s}class A{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new A(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return A.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return A.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return D.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return D.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return D.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return D.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return D.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new D(i,n,o,r)}intersectRanges(e){return D.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return ic?(o=c,r=h):o===c&&(r=Math.min(r,h)),i>o||i===o&&n>r?null:new D(i,n,o,r)}equalsRange(e){return D.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return D.getEndPosition(this)}static getEndPosition(e){return new A(e.endLineNumber,e.endColumn)}getStartPosition(){return D.getStartPosition(this)}static getStartPosition(e){return new A(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new D(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new D(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return D.collapseToStart(this)}static collapseToStart(e){return new D(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new D(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new D(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class ce extends D{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ce.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new ce(this.startLineNumber,this.startColumn,e,t):new ce(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new A(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new A(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new ce(e,t,this.endLineNumber,this.endColumn):new ce(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new ce(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new ce(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ce(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ce(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerFactory(e,t){var i;(i=this._factories.get(e))===null||i===void 0||i.dispose();const n=new OE(this,e,t);return this._factories.set(e,n),Pe(()=>{const o=this._factories.get(e);!o||o!==n||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return ip(this,void 0,void 0,function*(){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class OE extends W{constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return ip(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return ip(this,void 0,void 0,function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}function PE(s){return s?s.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}class g{constructor(e,t,i){this.id=e,this.definition=t,this.description=i,g._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return g._allCodicons}}g._allCodicons=[];g.add=new g("add",{fontCharacter:"\\ea60"});g.plus=new g("plus",g.add.definition);g.gistNew=new g("gist-new",g.add.definition);g.repoCreate=new g("repo-create",g.add.definition);g.lightbulb=new g("lightbulb",{fontCharacter:"\\ea61"});g.lightBulb=new g("light-bulb",{fontCharacter:"\\ea61"});g.repo=new g("repo",{fontCharacter:"\\ea62"});g.repoDelete=new g("repo-delete",{fontCharacter:"\\ea62"});g.gistFork=new g("gist-fork",{fontCharacter:"\\ea63"});g.repoForked=new g("repo-forked",{fontCharacter:"\\ea63"});g.gitPullRequest=new g("git-pull-request",{fontCharacter:"\\ea64"});g.gitPullRequestAbandoned=new g("git-pull-request-abandoned",{fontCharacter:"\\ea64"});g.recordKeys=new g("record-keys",{fontCharacter:"\\ea65"});g.keyboard=new g("keyboard",{fontCharacter:"\\ea65"});g.tag=new g("tag",{fontCharacter:"\\ea66"});g.tagAdd=new g("tag-add",{fontCharacter:"\\ea66"});g.tagRemove=new g("tag-remove",{fontCharacter:"\\ea66"});g.person=new g("person",{fontCharacter:"\\ea67"});g.personFollow=new g("person-follow",{fontCharacter:"\\ea67"});g.personOutline=new g("person-outline",{fontCharacter:"\\ea67"});g.personFilled=new g("person-filled",{fontCharacter:"\\ea67"});g.gitBranch=new g("git-branch",{fontCharacter:"\\ea68"});g.gitBranchCreate=new g("git-branch-create",{fontCharacter:"\\ea68"});g.gitBranchDelete=new g("git-branch-delete",{fontCharacter:"\\ea68"});g.sourceControl=new g("source-control",{fontCharacter:"\\ea68"});g.mirror=new g("mirror",{fontCharacter:"\\ea69"});g.mirrorPublic=new g("mirror-public",{fontCharacter:"\\ea69"});g.star=new g("star",{fontCharacter:"\\ea6a"});g.starAdd=new g("star-add",{fontCharacter:"\\ea6a"});g.starDelete=new g("star-delete",{fontCharacter:"\\ea6a"});g.starEmpty=new g("star-empty",{fontCharacter:"\\ea6a"});g.comment=new g("comment",{fontCharacter:"\\ea6b"});g.commentAdd=new g("comment-add",{fontCharacter:"\\ea6b"});g.alert=new g("alert",{fontCharacter:"\\ea6c"});g.warning=new g("warning",{fontCharacter:"\\ea6c"});g.search=new g("search",{fontCharacter:"\\ea6d"});g.searchSave=new g("search-save",{fontCharacter:"\\ea6d"});g.logOut=new g("log-out",{fontCharacter:"\\ea6e"});g.signOut=new g("sign-out",{fontCharacter:"\\ea6e"});g.logIn=new g("log-in",{fontCharacter:"\\ea6f"});g.signIn=new g("sign-in",{fontCharacter:"\\ea6f"});g.eye=new g("eye",{fontCharacter:"\\ea70"});g.eyeUnwatch=new g("eye-unwatch",{fontCharacter:"\\ea70"});g.eyeWatch=new g("eye-watch",{fontCharacter:"\\ea70"});g.circleFilled=new g("circle-filled",{fontCharacter:"\\ea71"});g.primitiveDot=new g("primitive-dot",{fontCharacter:"\\ea71"});g.closeDirty=new g("close-dirty",{fontCharacter:"\\ea71"});g.debugBreakpoint=new g("debug-breakpoint",{fontCharacter:"\\ea71"});g.debugBreakpointDisabled=new g("debug-breakpoint-disabled",{fontCharacter:"\\ea71"});g.debugHint=new g("debug-hint",{fontCharacter:"\\ea71"});g.primitiveSquare=new g("primitive-square",{fontCharacter:"\\ea72"});g.edit=new g("edit",{fontCharacter:"\\ea73"});g.pencil=new g("pencil",{fontCharacter:"\\ea73"});g.info=new g("info",{fontCharacter:"\\ea74"});g.issueOpened=new g("issue-opened",{fontCharacter:"\\ea74"});g.gistPrivate=new g("gist-private",{fontCharacter:"\\ea75"});g.gitForkPrivate=new g("git-fork-private",{fontCharacter:"\\ea75"});g.lock=new g("lock",{fontCharacter:"\\ea75"});g.mirrorPrivate=new g("mirror-private",{fontCharacter:"\\ea75"});g.close=new g("close",{fontCharacter:"\\ea76"});g.removeClose=new g("remove-close",{fontCharacter:"\\ea76"});g.x=new g("x",{fontCharacter:"\\ea76"});g.repoSync=new g("repo-sync",{fontCharacter:"\\ea77"});g.sync=new g("sync",{fontCharacter:"\\ea77"});g.clone=new g("clone",{fontCharacter:"\\ea78"});g.desktopDownload=new g("desktop-download",{fontCharacter:"\\ea78"});g.beaker=new g("beaker",{fontCharacter:"\\ea79"});g.microscope=new g("microscope",{fontCharacter:"\\ea79"});g.vm=new g("vm",{fontCharacter:"\\ea7a"});g.deviceDesktop=new g("device-desktop",{fontCharacter:"\\ea7a"});g.file=new g("file",{fontCharacter:"\\ea7b"});g.fileText=new g("file-text",{fontCharacter:"\\ea7b"});g.more=new g("more",{fontCharacter:"\\ea7c"});g.ellipsis=new g("ellipsis",{fontCharacter:"\\ea7c"});g.kebabHorizontal=new g("kebab-horizontal",{fontCharacter:"\\ea7c"});g.mailReply=new g("mail-reply",{fontCharacter:"\\ea7d"});g.reply=new g("reply",{fontCharacter:"\\ea7d"});g.organization=new g("organization",{fontCharacter:"\\ea7e"});g.organizationFilled=new g("organization-filled",{fontCharacter:"\\ea7e"});g.organizationOutline=new g("organization-outline",{fontCharacter:"\\ea7e"});g.newFile=new g("new-file",{fontCharacter:"\\ea7f"});g.fileAdd=new g("file-add",{fontCharacter:"\\ea7f"});g.newFolder=new g("new-folder",{fontCharacter:"\\ea80"});g.fileDirectoryCreate=new g("file-directory-create",{fontCharacter:"\\ea80"});g.trash=new g("trash",{fontCharacter:"\\ea81"});g.trashcan=new g("trashcan",{fontCharacter:"\\ea81"});g.history=new g("history",{fontCharacter:"\\ea82"});g.clock=new g("clock",{fontCharacter:"\\ea82"});g.folder=new g("folder",{fontCharacter:"\\ea83"});g.fileDirectory=new g("file-directory",{fontCharacter:"\\ea83"});g.symbolFolder=new g("symbol-folder",{fontCharacter:"\\ea83"});g.logoGithub=new g("logo-github",{fontCharacter:"\\ea84"});g.markGithub=new g("mark-github",{fontCharacter:"\\ea84"});g.github=new g("github",{fontCharacter:"\\ea84"});g.terminal=new g("terminal",{fontCharacter:"\\ea85"});g.console=new g("console",{fontCharacter:"\\ea85"});g.repl=new g("repl",{fontCharacter:"\\ea85"});g.zap=new g("zap",{fontCharacter:"\\ea86"});g.symbolEvent=new g("symbol-event",{fontCharacter:"\\ea86"});g.error=new g("error",{fontCharacter:"\\ea87"});g.stop=new g("stop",{fontCharacter:"\\ea87"});g.variable=new g("variable",{fontCharacter:"\\ea88"});g.symbolVariable=new g("symbol-variable",{fontCharacter:"\\ea88"});g.array=new g("array",{fontCharacter:"\\ea8a"});g.symbolArray=new g("symbol-array",{fontCharacter:"\\ea8a"});g.symbolModule=new g("symbol-module",{fontCharacter:"\\ea8b"});g.symbolPackage=new g("symbol-package",{fontCharacter:"\\ea8b"});g.symbolNamespace=new g("symbol-namespace",{fontCharacter:"\\ea8b"});g.symbolObject=new g("symbol-object",{fontCharacter:"\\ea8b"});g.symbolMethod=new g("symbol-method",{fontCharacter:"\\ea8c"});g.symbolFunction=new g("symbol-function",{fontCharacter:"\\ea8c"});g.symbolConstructor=new g("symbol-constructor",{fontCharacter:"\\ea8c"});g.symbolBoolean=new g("symbol-boolean",{fontCharacter:"\\ea8f"});g.symbolNull=new g("symbol-null",{fontCharacter:"\\ea8f"});g.symbolNumeric=new g("symbol-numeric",{fontCharacter:"\\ea90"});g.symbolNumber=new g("symbol-number",{fontCharacter:"\\ea90"});g.symbolStructure=new g("symbol-structure",{fontCharacter:"\\ea91"});g.symbolStruct=new g("symbol-struct",{fontCharacter:"\\ea91"});g.symbolParameter=new g("symbol-parameter",{fontCharacter:"\\ea92"});g.symbolTypeParameter=new g("symbol-type-parameter",{fontCharacter:"\\ea92"});g.symbolKey=new g("symbol-key",{fontCharacter:"\\ea93"});g.symbolText=new g("symbol-text",{fontCharacter:"\\ea93"});g.symbolReference=new g("symbol-reference",{fontCharacter:"\\ea94"});g.goToFile=new g("go-to-file",{fontCharacter:"\\ea94"});g.symbolEnum=new g("symbol-enum",{fontCharacter:"\\ea95"});g.symbolValue=new g("symbol-value",{fontCharacter:"\\ea95"});g.symbolRuler=new g("symbol-ruler",{fontCharacter:"\\ea96"});g.symbolUnit=new g("symbol-unit",{fontCharacter:"\\ea96"});g.activateBreakpoints=new g("activate-breakpoints",{fontCharacter:"\\ea97"});g.archive=new g("archive",{fontCharacter:"\\ea98"});g.arrowBoth=new g("arrow-both",{fontCharacter:"\\ea99"});g.arrowDown=new g("arrow-down",{fontCharacter:"\\ea9a"});g.arrowLeft=new g("arrow-left",{fontCharacter:"\\ea9b"});g.arrowRight=new g("arrow-right",{fontCharacter:"\\ea9c"});g.arrowSmallDown=new g("arrow-small-down",{fontCharacter:"\\ea9d"});g.arrowSmallLeft=new g("arrow-small-left",{fontCharacter:"\\ea9e"});g.arrowSmallRight=new g("arrow-small-right",{fontCharacter:"\\ea9f"});g.arrowSmallUp=new g("arrow-small-up",{fontCharacter:"\\eaa0"});g.arrowUp=new g("arrow-up",{fontCharacter:"\\eaa1"});g.bell=new g("bell",{fontCharacter:"\\eaa2"});g.bold=new g("bold",{fontCharacter:"\\eaa3"});g.book=new g("book",{fontCharacter:"\\eaa4"});g.bookmark=new g("bookmark",{fontCharacter:"\\eaa5"});g.debugBreakpointConditionalUnverified=new g("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"});g.debugBreakpointConditional=new g("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"});g.debugBreakpointConditionalDisabled=new g("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"});g.debugBreakpointDataUnverified=new g("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"});g.debugBreakpointData=new g("debug-breakpoint-data",{fontCharacter:"\\eaa9"});g.debugBreakpointDataDisabled=new g("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"});g.debugBreakpointLogUnverified=new g("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"});g.debugBreakpointLog=new g("debug-breakpoint-log",{fontCharacter:"\\eaab"});g.debugBreakpointLogDisabled=new g("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"});g.briefcase=new g("briefcase",{fontCharacter:"\\eaac"});g.broadcast=new g("broadcast",{fontCharacter:"\\eaad"});g.browser=new g("browser",{fontCharacter:"\\eaae"});g.bug=new g("bug",{fontCharacter:"\\eaaf"});g.calendar=new g("calendar",{fontCharacter:"\\eab0"});g.caseSensitive=new g("case-sensitive",{fontCharacter:"\\eab1"});g.check=new g("check",{fontCharacter:"\\eab2"});g.checklist=new g("checklist",{fontCharacter:"\\eab3"});g.chevronDown=new g("chevron-down",{fontCharacter:"\\eab4"});g.dropDownButton=new g("drop-down-button",g.chevronDown.definition);g.chevronLeft=new g("chevron-left",{fontCharacter:"\\eab5"});g.chevronRight=new g("chevron-right",{fontCharacter:"\\eab6"});g.chevronUp=new g("chevron-up",{fontCharacter:"\\eab7"});g.chromeClose=new g("chrome-close",{fontCharacter:"\\eab8"});g.chromeMaximize=new g("chrome-maximize",{fontCharacter:"\\eab9"});g.chromeMinimize=new g("chrome-minimize",{fontCharacter:"\\eaba"});g.chromeRestore=new g("chrome-restore",{fontCharacter:"\\eabb"});g.circleOutline=new g("circle-outline",{fontCharacter:"\\eabc"});g.debugBreakpointUnverified=new g("debug-breakpoint-unverified",{fontCharacter:"\\eabc"});g.circleSlash=new g("circle-slash",{fontCharacter:"\\eabd"});g.circuitBoard=new g("circuit-board",{fontCharacter:"\\eabe"});g.clearAll=new g("clear-all",{fontCharacter:"\\eabf"});g.clippy=new g("clippy",{fontCharacter:"\\eac0"});g.closeAll=new g("close-all",{fontCharacter:"\\eac1"});g.cloudDownload=new g("cloud-download",{fontCharacter:"\\eac2"});g.cloudUpload=new g("cloud-upload",{fontCharacter:"\\eac3"});g.code=new g("code",{fontCharacter:"\\eac4"});g.collapseAll=new g("collapse-all",{fontCharacter:"\\eac5"});g.colorMode=new g("color-mode",{fontCharacter:"\\eac6"});g.commentDiscussion=new g("comment-discussion",{fontCharacter:"\\eac7"});g.compareChanges=new g("compare-changes",{fontCharacter:"\\eafd"});g.creditCard=new g("credit-card",{fontCharacter:"\\eac9"});g.dash=new g("dash",{fontCharacter:"\\eacc"});g.dashboard=new g("dashboard",{fontCharacter:"\\eacd"});g.database=new g("database",{fontCharacter:"\\eace"});g.debugContinue=new g("debug-continue",{fontCharacter:"\\eacf"});g.debugDisconnect=new g("debug-disconnect",{fontCharacter:"\\ead0"});g.debugPause=new g("debug-pause",{fontCharacter:"\\ead1"});g.debugRestart=new g("debug-restart",{fontCharacter:"\\ead2"});g.debugStart=new g("debug-start",{fontCharacter:"\\ead3"});g.debugStepInto=new g("debug-step-into",{fontCharacter:"\\ead4"});g.debugStepOut=new g("debug-step-out",{fontCharacter:"\\ead5"});g.debugStepOver=new g("debug-step-over",{fontCharacter:"\\ead6"});g.debugStop=new g("debug-stop",{fontCharacter:"\\ead7"});g.debug=new g("debug",{fontCharacter:"\\ead8"});g.deviceCameraVideo=new g("device-camera-video",{fontCharacter:"\\ead9"});g.deviceCamera=new g("device-camera",{fontCharacter:"\\eada"});g.deviceMobile=new g("device-mobile",{fontCharacter:"\\eadb"});g.diffAdded=new g("diff-added",{fontCharacter:"\\eadc"});g.diffIgnored=new g("diff-ignored",{fontCharacter:"\\eadd"});g.diffModified=new g("diff-modified",{fontCharacter:"\\eade"});g.diffRemoved=new g("diff-removed",{fontCharacter:"\\eadf"});g.diffRenamed=new g("diff-renamed",{fontCharacter:"\\eae0"});g.diff=new g("diff",{fontCharacter:"\\eae1"});g.discard=new g("discard",{fontCharacter:"\\eae2"});g.editorLayout=new g("editor-layout",{fontCharacter:"\\eae3"});g.emptyWindow=new g("empty-window",{fontCharacter:"\\eae4"});g.exclude=new g("exclude",{fontCharacter:"\\eae5"});g.extensions=new g("extensions",{fontCharacter:"\\eae6"});g.eyeClosed=new g("eye-closed",{fontCharacter:"\\eae7"});g.fileBinary=new g("file-binary",{fontCharacter:"\\eae8"});g.fileCode=new g("file-code",{fontCharacter:"\\eae9"});g.fileMedia=new g("file-media",{fontCharacter:"\\eaea"});g.filePdf=new g("file-pdf",{fontCharacter:"\\eaeb"});g.fileSubmodule=new g("file-submodule",{fontCharacter:"\\eaec"});g.fileSymlinkDirectory=new g("file-symlink-directory",{fontCharacter:"\\eaed"});g.fileSymlinkFile=new g("file-symlink-file",{fontCharacter:"\\eaee"});g.fileZip=new g("file-zip",{fontCharacter:"\\eaef"});g.files=new g("files",{fontCharacter:"\\eaf0"});g.filter=new g("filter",{fontCharacter:"\\eaf1"});g.flame=new g("flame",{fontCharacter:"\\eaf2"});g.foldDown=new g("fold-down",{fontCharacter:"\\eaf3"});g.foldUp=new g("fold-up",{fontCharacter:"\\eaf4"});g.fold=new g("fold",{fontCharacter:"\\eaf5"});g.folderActive=new g("folder-active",{fontCharacter:"\\eaf6"});g.folderOpened=new g("folder-opened",{fontCharacter:"\\eaf7"});g.gear=new g("gear",{fontCharacter:"\\eaf8"});g.gift=new g("gift",{fontCharacter:"\\eaf9"});g.gistSecret=new g("gist-secret",{fontCharacter:"\\eafa"});g.gist=new g("gist",{fontCharacter:"\\eafb"});g.gitCommit=new g("git-commit",{fontCharacter:"\\eafc"});g.gitCompare=new g("git-compare",{fontCharacter:"\\eafd"});g.gitMerge=new g("git-merge",{fontCharacter:"\\eafe"});g.githubAction=new g("github-action",{fontCharacter:"\\eaff"});g.githubAlt=new g("github-alt",{fontCharacter:"\\eb00"});g.globe=new g("globe",{fontCharacter:"\\eb01"});g.grabber=new g("grabber",{fontCharacter:"\\eb02"});g.graph=new g("graph",{fontCharacter:"\\eb03"});g.gripper=new g("gripper",{fontCharacter:"\\eb04"});g.heart=new g("heart",{fontCharacter:"\\eb05"});g.home=new g("home",{fontCharacter:"\\eb06"});g.horizontalRule=new g("horizontal-rule",{fontCharacter:"\\eb07"});g.hubot=new g("hubot",{fontCharacter:"\\eb08"});g.inbox=new g("inbox",{fontCharacter:"\\eb09"});g.issueClosed=new g("issue-closed",{fontCharacter:"\\eba4"});g.issueReopened=new g("issue-reopened",{fontCharacter:"\\eb0b"});g.issues=new g("issues",{fontCharacter:"\\eb0c"});g.italic=new g("italic",{fontCharacter:"\\eb0d"});g.jersey=new g("jersey",{fontCharacter:"\\eb0e"});g.json=new g("json",{fontCharacter:"\\eb0f"});g.kebabVertical=new g("kebab-vertical",{fontCharacter:"\\eb10"});g.key=new g("key",{fontCharacter:"\\eb11"});g.law=new g("law",{fontCharacter:"\\eb12"});g.lightbulbAutofix=new g("lightbulb-autofix",{fontCharacter:"\\eb13"});g.linkExternal=new g("link-external",{fontCharacter:"\\eb14"});g.link=new g("link",{fontCharacter:"\\eb15"});g.listOrdered=new g("list-ordered",{fontCharacter:"\\eb16"});g.listUnordered=new g("list-unordered",{fontCharacter:"\\eb17"});g.liveShare=new g("live-share",{fontCharacter:"\\eb18"});g.loading=new g("loading",{fontCharacter:"\\eb19"});g.location=new g("location",{fontCharacter:"\\eb1a"});g.mailRead=new g("mail-read",{fontCharacter:"\\eb1b"});g.mail=new g("mail",{fontCharacter:"\\eb1c"});g.markdown=new g("markdown",{fontCharacter:"\\eb1d"});g.megaphone=new g("megaphone",{fontCharacter:"\\eb1e"});g.mention=new g("mention",{fontCharacter:"\\eb1f"});g.milestone=new g("milestone",{fontCharacter:"\\eb20"});g.mortarBoard=new g("mortar-board",{fontCharacter:"\\eb21"});g.move=new g("move",{fontCharacter:"\\eb22"});g.multipleWindows=new g("multiple-windows",{fontCharacter:"\\eb23"});g.mute=new g("mute",{fontCharacter:"\\eb24"});g.noNewline=new g("no-newline",{fontCharacter:"\\eb25"});g.note=new g("note",{fontCharacter:"\\eb26"});g.octoface=new g("octoface",{fontCharacter:"\\eb27"});g.openPreview=new g("open-preview",{fontCharacter:"\\eb28"});g.package_=new g("package",{fontCharacter:"\\eb29"});g.paintcan=new g("paintcan",{fontCharacter:"\\eb2a"});g.pin=new g("pin",{fontCharacter:"\\eb2b"});g.play=new g("play",{fontCharacter:"\\eb2c"});g.run=new g("run",{fontCharacter:"\\eb2c"});g.plug=new g("plug",{fontCharacter:"\\eb2d"});g.preserveCase=new g("preserve-case",{fontCharacter:"\\eb2e"});g.preview=new g("preview",{fontCharacter:"\\eb2f"});g.project=new g("project",{fontCharacter:"\\eb30"});g.pulse=new g("pulse",{fontCharacter:"\\eb31"});g.question=new g("question",{fontCharacter:"\\eb32"});g.quote=new g("quote",{fontCharacter:"\\eb33"});g.radioTower=new g("radio-tower",{fontCharacter:"\\eb34"});g.reactions=new g("reactions",{fontCharacter:"\\eb35"});g.references=new g("references",{fontCharacter:"\\eb36"});g.refresh=new g("refresh",{fontCharacter:"\\eb37"});g.regex=new g("regex",{fontCharacter:"\\eb38"});g.remoteExplorer=new g("remote-explorer",{fontCharacter:"\\eb39"});g.remote=new g("remote",{fontCharacter:"\\eb3a"});g.remove=new g("remove",{fontCharacter:"\\eb3b"});g.replaceAll=new g("replace-all",{fontCharacter:"\\eb3c"});g.replace=new g("replace",{fontCharacter:"\\eb3d"});g.repoClone=new g("repo-clone",{fontCharacter:"\\eb3e"});g.repoForcePush=new g("repo-force-push",{fontCharacter:"\\eb3f"});g.repoPull=new g("repo-pull",{fontCharacter:"\\eb40"});g.repoPush=new g("repo-push",{fontCharacter:"\\eb41"});g.report=new g("report",{fontCharacter:"\\eb42"});g.requestChanges=new g("request-changes",{fontCharacter:"\\eb43"});g.rocket=new g("rocket",{fontCharacter:"\\eb44"});g.rootFolderOpened=new g("root-folder-opened",{fontCharacter:"\\eb45"});g.rootFolder=new g("root-folder",{fontCharacter:"\\eb46"});g.rss=new g("rss",{fontCharacter:"\\eb47"});g.ruby=new g("ruby",{fontCharacter:"\\eb48"});g.saveAll=new g("save-all",{fontCharacter:"\\eb49"});g.saveAs=new g("save-as",{fontCharacter:"\\eb4a"});g.save=new g("save",{fontCharacter:"\\eb4b"});g.screenFull=new g("screen-full",{fontCharacter:"\\eb4c"});g.screenNormal=new g("screen-normal",{fontCharacter:"\\eb4d"});g.searchStop=new g("search-stop",{fontCharacter:"\\eb4e"});g.server=new g("server",{fontCharacter:"\\eb50"});g.settingsGear=new g("settings-gear",{fontCharacter:"\\eb51"});g.settings=new g("settings",{fontCharacter:"\\eb52"});g.shield=new g("shield",{fontCharacter:"\\eb53"});g.smiley=new g("smiley",{fontCharacter:"\\eb54"});g.sortPrecedence=new g("sort-precedence",{fontCharacter:"\\eb55"});g.splitHorizontal=new g("split-horizontal",{fontCharacter:"\\eb56"});g.splitVertical=new g("split-vertical",{fontCharacter:"\\eb57"});g.squirrel=new g("squirrel",{fontCharacter:"\\eb58"});g.starFull=new g("star-full",{fontCharacter:"\\eb59"});g.starHalf=new g("star-half",{fontCharacter:"\\eb5a"});g.symbolClass=new g("symbol-class",{fontCharacter:"\\eb5b"});g.symbolColor=new g("symbol-color",{fontCharacter:"\\eb5c"});g.symbolCustomColor=new g("symbol-customcolor",{fontCharacter:"\\eb5c"});g.symbolConstant=new g("symbol-constant",{fontCharacter:"\\eb5d"});g.symbolEnumMember=new g("symbol-enum-member",{fontCharacter:"\\eb5e"});g.symbolField=new g("symbol-field",{fontCharacter:"\\eb5f"});g.symbolFile=new g("symbol-file",{fontCharacter:"\\eb60"});g.symbolInterface=new g("symbol-interface",{fontCharacter:"\\eb61"});g.symbolKeyword=new g("symbol-keyword",{fontCharacter:"\\eb62"});g.symbolMisc=new g("symbol-misc",{fontCharacter:"\\eb63"});g.symbolOperator=new g("symbol-operator",{fontCharacter:"\\eb64"});g.symbolProperty=new g("symbol-property",{fontCharacter:"\\eb65"});g.wrench=new g("wrench",{fontCharacter:"\\eb65"});g.wrenchSubaction=new g("wrench-subaction",{fontCharacter:"\\eb65"});g.symbolSnippet=new g("symbol-snippet",{fontCharacter:"\\eb66"});g.tasklist=new g("tasklist",{fontCharacter:"\\eb67"});g.telescope=new g("telescope",{fontCharacter:"\\eb68"});g.textSize=new g("text-size",{fontCharacter:"\\eb69"});g.threeBars=new g("three-bars",{fontCharacter:"\\eb6a"});g.thumbsdown=new g("thumbsdown",{fontCharacter:"\\eb6b"});g.thumbsup=new g("thumbsup",{fontCharacter:"\\eb6c"});g.tools=new g("tools",{fontCharacter:"\\eb6d"});g.triangleDown=new g("triangle-down",{fontCharacter:"\\eb6e"});g.triangleLeft=new g("triangle-left",{fontCharacter:"\\eb6f"});g.triangleRight=new g("triangle-right",{fontCharacter:"\\eb70"});g.triangleUp=new g("triangle-up",{fontCharacter:"\\eb71"});g.twitter=new g("twitter",{fontCharacter:"\\eb72"});g.unfold=new g("unfold",{fontCharacter:"\\eb73"});g.unlock=new g("unlock",{fontCharacter:"\\eb74"});g.unmute=new g("unmute",{fontCharacter:"\\eb75"});g.unverified=new g("unverified",{fontCharacter:"\\eb76"});g.verified=new g("verified",{fontCharacter:"\\eb77"});g.versions=new g("versions",{fontCharacter:"\\eb78"});g.vmActive=new g("vm-active",{fontCharacter:"\\eb79"});g.vmOutline=new g("vm-outline",{fontCharacter:"\\eb7a"});g.vmRunning=new g("vm-running",{fontCharacter:"\\eb7b"});g.watch=new g("watch",{fontCharacter:"\\eb7c"});g.whitespace=new g("whitespace",{fontCharacter:"\\eb7d"});g.wholeWord=new g("whole-word",{fontCharacter:"\\eb7e"});g.window=new g("window",{fontCharacter:"\\eb7f"});g.wordWrap=new g("word-wrap",{fontCharacter:"\\eb80"});g.zoomIn=new g("zoom-in",{fontCharacter:"\\eb81"});g.zoomOut=new g("zoom-out",{fontCharacter:"\\eb82"});g.listFilter=new g("list-filter",{fontCharacter:"\\eb83"});g.listFlat=new g("list-flat",{fontCharacter:"\\eb84"});g.listSelection=new g("list-selection",{fontCharacter:"\\eb85"});g.selection=new g("selection",{fontCharacter:"\\eb85"});g.listTree=new g("list-tree",{fontCharacter:"\\eb86"});g.debugBreakpointFunctionUnverified=new g("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"});g.debugBreakpointFunction=new g("debug-breakpoint-function",{fontCharacter:"\\eb88"});g.debugBreakpointFunctionDisabled=new g("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"});g.debugStackframeActive=new g("debug-stackframe-active",{fontCharacter:"\\eb89"});g.debugStackframeDot=new g("debug-stackframe-dot",{fontCharacter:"\\eb8a"});g.debugStackframe=new g("debug-stackframe",{fontCharacter:"\\eb8b"});g.debugStackframeFocused=new g("debug-stackframe-focused",{fontCharacter:"\\eb8b"});g.debugBreakpointUnsupported=new g("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"});g.symbolString=new g("symbol-string",{fontCharacter:"\\eb8d"});g.debugReverseContinue=new g("debug-reverse-continue",{fontCharacter:"\\eb8e"});g.debugStepBack=new g("debug-step-back",{fontCharacter:"\\eb8f"});g.debugRestartFrame=new g("debug-restart-frame",{fontCharacter:"\\eb90"});g.callIncoming=new g("call-incoming",{fontCharacter:"\\eb92"});g.callOutgoing=new g("call-outgoing",{fontCharacter:"\\eb93"});g.menu=new g("menu",{fontCharacter:"\\eb94"});g.expandAll=new g("expand-all",{fontCharacter:"\\eb95"});g.feedback=new g("feedback",{fontCharacter:"\\eb96"});g.groupByRefType=new g("group-by-ref-type",{fontCharacter:"\\eb97"});g.ungroupByRefType=new g("ungroup-by-ref-type",{fontCharacter:"\\eb98"});g.account=new g("account",{fontCharacter:"\\eb99"});g.bellDot=new g("bell-dot",{fontCharacter:"\\eb9a"});g.debugConsole=new g("debug-console",{fontCharacter:"\\eb9b"});g.library=new g("library",{fontCharacter:"\\eb9c"});g.output=new g("output",{fontCharacter:"\\eb9d"});g.runAll=new g("run-all",{fontCharacter:"\\eb9e"});g.syncIgnored=new g("sync-ignored",{fontCharacter:"\\eb9f"});g.pinned=new g("pinned",{fontCharacter:"\\eba0"});g.githubInverted=new g("github-inverted",{fontCharacter:"\\eba1"});g.debugAlt=new g("debug-alt",{fontCharacter:"\\eb91"});g.serverProcess=new g("server-process",{fontCharacter:"\\eba2"});g.serverEnvironment=new g("server-environment",{fontCharacter:"\\eba3"});g.pass=new g("pass",{fontCharacter:"\\eba4"});g.stopCircle=new g("stop-circle",{fontCharacter:"\\eba5"});g.playCircle=new g("play-circle",{fontCharacter:"\\eba6"});g.record=new g("record",{fontCharacter:"\\eba7"});g.debugAltSmall=new g("debug-alt-small",{fontCharacter:"\\eba8"});g.vmConnect=new g("vm-connect",{fontCharacter:"\\eba9"});g.cloud=new g("cloud",{fontCharacter:"\\ebaa"});g.merge=new g("merge",{fontCharacter:"\\ebab"});g.exportIcon=new g("export",{fontCharacter:"\\ebac"});g.graphLeft=new g("graph-left",{fontCharacter:"\\ebad"});g.magnet=new g("magnet",{fontCharacter:"\\ebae"});g.notebook=new g("notebook",{fontCharacter:"\\ebaf"});g.redo=new g("redo",{fontCharacter:"\\ebb0"});g.checkAll=new g("check-all",{fontCharacter:"\\ebb1"});g.pinnedDirty=new g("pinned-dirty",{fontCharacter:"\\ebb2"});g.passFilled=new g("pass-filled",{fontCharacter:"\\ebb3"});g.circleLargeFilled=new g("circle-large-filled",{fontCharacter:"\\ebb4"});g.circleLargeOutline=new g("circle-large-outline",{fontCharacter:"\\ebb5"});g.combine=new g("combine",{fontCharacter:"\\ebb6"});g.gather=new g("gather",{fontCharacter:"\\ebb6"});g.table=new g("table",{fontCharacter:"\\ebb7"});g.variableGroup=new g("variable-group",{fontCharacter:"\\ebb8"});g.typeHierarchy=new g("type-hierarchy",{fontCharacter:"\\ebb9"});g.typeHierarchySub=new g("type-hierarchy-sub",{fontCharacter:"\\ebba"});g.typeHierarchySuper=new g("type-hierarchy-super",{fontCharacter:"\\ebbb"});g.gitPullRequestCreate=new g("git-pull-request-create",{fontCharacter:"\\ebbc"});g.runAbove=new g("run-above",{fontCharacter:"\\ebbd"});g.runBelow=new g("run-below",{fontCharacter:"\\ebbe"});g.notebookTemplate=new g("notebook-template",{fontCharacter:"\\ebbf"});g.debugRerun=new g("debug-rerun",{fontCharacter:"\\ebc0"});g.workspaceTrusted=new g("workspace-trusted",{fontCharacter:"\\ebc1"});g.workspaceUntrusted=new g("workspace-untrusted",{fontCharacter:"\\ebc2"});g.workspaceUnspecified=new g("workspace-unspecified",{fontCharacter:"\\ebc3"});g.terminalCmd=new g("terminal-cmd",{fontCharacter:"\\ebc4"});g.terminalDebian=new g("terminal-debian",{fontCharacter:"\\ebc5"});g.terminalLinux=new g("terminal-linux",{fontCharacter:"\\ebc6"});g.terminalPowershell=new g("terminal-powershell",{fontCharacter:"\\ebc7"});g.terminalTmux=new g("terminal-tmux",{fontCharacter:"\\ebc8"});g.terminalUbuntu=new g("terminal-ubuntu",{fontCharacter:"\\ebc9"});g.terminalBash=new g("terminal-bash",{fontCharacter:"\\ebca"});g.arrowSwap=new g("arrow-swap",{fontCharacter:"\\ebcb"});g.copy=new g("copy",{fontCharacter:"\\ebcc"});g.personAdd=new g("person-add",{fontCharacter:"\\ebcd"});g.filterFilled=new g("filter-filled",{fontCharacter:"\\ebce"});g.wand=new g("wand",{fontCharacter:"\\ebcf"});g.debugLineByLine=new g("debug-line-by-line",{fontCharacter:"\\ebd0"});g.inspect=new g("inspect",{fontCharacter:"\\ebd1"});g.layers=new g("layers",{fontCharacter:"\\ebd2"});g.layersDot=new g("layers-dot",{fontCharacter:"\\ebd3"});g.layersActive=new g("layers-active",{fontCharacter:"\\ebd4"});g.compass=new g("compass",{fontCharacter:"\\ebd5"});g.compassDot=new g("compass-dot",{fontCharacter:"\\ebd6"});g.compassActive=new g("compass-active",{fontCharacter:"\\ebd7"});g.azure=new g("azure",{fontCharacter:"\\ebd8"});g.issueDraft=new g("issue-draft",{fontCharacter:"\\ebd9"});g.gitPullRequestClosed=new g("git-pull-request-closed",{fontCharacter:"\\ebda"});g.gitPullRequestDraft=new g("git-pull-request-draft",{fontCharacter:"\\ebdb"});g.debugAll=new g("debug-all",{fontCharacter:"\\ebdc"});g.debugCoverage=new g("debug-coverage",{fontCharacter:"\\ebdd"});g.runErrors=new g("run-errors",{fontCharacter:"\\ebde"});g.folderLibrary=new g("folder-library",{fontCharacter:"\\ebdf"});g.debugContinueSmall=new g("debug-continue-small",{fontCharacter:"\\ebe0"});g.beakerStop=new g("beaker-stop",{fontCharacter:"\\ebe1"});g.graphLine=new g("graph-line",{fontCharacter:"\\ebe2"});g.graphScatter=new g("graph-scatter",{fontCharacter:"\\ebe3"});g.pieChart=new g("pie-chart",{fontCharacter:"\\ebe4"});g.bracket=new g("bracket",g.json.definition);g.bracketDot=new g("bracket-dot",{fontCharacter:"\\ebe5"});g.bracketError=new g("bracket-error",{fontCharacter:"\\ebe6"});g.lockSmall=new g("lock-small",{fontCharacter:"\\ebe7"});g.azureDevops=new g("azure-devops",{fontCharacter:"\\ebe8"});g.verifiedFilled=new g("verified-filled",{fontCharacter:"\\ebe9"});g.newLine=new g("newline",{fontCharacter:"\\ebea"});g.layout=new g("layout",{fontCharacter:"\\ebeb"});g.layoutActivitybarLeft=new g("layout-activitybar-left",{fontCharacter:"\\ebec"});g.layoutActivitybarRight=new g("layout-activitybar-right",{fontCharacter:"\\ebed"});g.layoutPanelLeft=new g("layout-panel-left",{fontCharacter:"\\ebee"});g.layoutPanelCenter=new g("layout-panel-center",{fontCharacter:"\\ebef"});g.layoutPanelJustify=new g("layout-panel-justify",{fontCharacter:"\\ebf0"});g.layoutPanelRight=new g("layout-panel-right",{fontCharacter:"\\ebf1"});g.layoutPanel=new g("layout-panel",{fontCharacter:"\\ebf2"});g.layoutSidebarLeft=new g("layout-sidebar-left",{fontCharacter:"\\ebf3"});g.layoutSidebarRight=new g("layout-sidebar-right",{fontCharacter:"\\ebf4"});g.layoutStatusbar=new g("layout-statusbar",{fontCharacter:"\\ebf5"});g.layoutMenubar=new g("layout-menubar",{fontCharacter:"\\ebf6"});g.layoutCentered=new g("layout-centered",{fontCharacter:"\\ebf7"});g.target=new g("target",{fontCharacter:"\\ebf8"});g.indent=new g("indent",{fontCharacter:"\\ebf9"});g.recordSmall=new g("record-small",{fontCharacter:"\\ebfa"});g.errorSmall=new g("error-small",{fontCharacter:"\\ebfb"});g.arrowCircleDown=new g("arrow-circle-down",{fontCharacter:"\\ebfc"});g.arrowCircleLeft=new g("arrow-circle-left",{fontCharacter:"\\ebfd"});g.arrowCircleRight=new g("arrow-circle-right",{fontCharacter:"\\ebfe"});g.arrowCircleUp=new g("arrow-circle-up",{fontCharacter:"\\ebff"});g.dialogError=new g("dialog-error",g.error.definition);g.dialogWarning=new g("dialog-warning",g.warning.definition);g.dialogInfo=new g("dialog-info",g.info.definition);g.dialogClose=new g("dialog-close",g.close.definition);g.treeItemExpanded=new g("tree-item-expanded",g.chevronDown.definition);g.treeFilterOnTypeOn=new g("tree-filter-on-type-on",g.listFilter.definition);g.treeFilterOnTypeOff=new g("tree-filter-on-type-off",g.listSelection.definition);g.treeFilterClear=new g("tree-filter-clear",g.close.definition);g.treeItemLoading=new g("tree-item-loading",g.loading.definition);g.menuSelection=new g("menu-selection",g.check.definition);g.menuSubmenu=new g("menu-submenu",g.chevronRight.definition);g.menuBarMore=new g("menubar-more",g.more.definition);g.scrollbarButtonLeft=new g("scrollbar-button-left",g.triangleLeft.definition);g.scrollbarButtonRight=new g("scrollbar-button-right",g.triangleRight.definition);g.scrollbarButtonUp=new g("scrollbar-button-up",g.triangleUp.definition);g.scrollbarButtonDown=new g("scrollbar-button-down",g.triangleDown.definition);g.toolBarMore=new g("toolbar-more",g.more.definition);g.quickInputBack=new g("quick-input-back",g.arrowLeft.definition);var ei;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(o){if(o instanceof g)return["codicon","codicon-"+o.id];const r=e.exec(o.id);if(!r)return t(g.error);let[,a,l]=r;const c=["codicon","codicon-"+a];return l&&c.push("codicon-modifier-"+l.substr(1)),c}s.asClassNameArray=t;function i(o){return t(o).join(" ")}s.asClassName=i;function n(o){return"."+t(o).join(".")}s.asCSSSelector=n})(ei||(ei={}));class pi{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static getFontStyle(e){return(e&15360)>>>10}static getForeground(e){return(e&8372224)>>>14}static getBackground(e){return(e&4286578688)>>>23}static getClassNameFromMetadata(e){const t=this.getForeground(e);let i="mtk"+t;const n=this.getFontStyle(e);return n&1&&(i+=" mtki"),n&2&&(i+=" mtkb"),n&4&&(i+=" mtku"),n&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;n&1&&(o+="font-style: italic;"),n&2&&(o+="font-weight: bold;");let r="";return n&4&&(r+=" underline"),n&8&&(r+=" line-through"),r&&(o+=`text-decoration:${r};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(i&1),bold:Boolean(i&2),underline:Boolean(i&4),strikethrough:Boolean(i&8)}}}class Ec{constructor(e,t,i){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=i}toString(){return"("+this.offset+", "+this.type+")"}}class Q1{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class wf{constructor(e,t){this._encodedTokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}var Jb;(function(s){const e=new Map;e.set(0,g.symbolMethod),e.set(1,g.symbolFunction),e.set(2,g.symbolConstructor),e.set(3,g.symbolField),e.set(4,g.symbolVariable),e.set(5,g.symbolClass),e.set(6,g.symbolStruct),e.set(7,g.symbolInterface),e.set(8,g.symbolModule),e.set(9,g.symbolProperty),e.set(10,g.symbolEvent),e.set(11,g.symbolOperator),e.set(12,g.symbolUnit),e.set(13,g.symbolValue),e.set(15,g.symbolEnum),e.set(14,g.symbolConstant),e.set(15,g.symbolEnum),e.set(16,g.symbolEnumMember),e.set(17,g.symbolKeyword),e.set(27,g.symbolSnippet),e.set(18,g.symbolText),e.set(19,g.symbolColor),e.set(20,g.symbolFile),e.set(21,g.symbolReference),e.set(22,g.symbolCustomColor),e.set(23,g.symbolFolder),e.set(24,g.symbolTypeParameter),e.set(25,g.account),e.set(26,g.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=g.symbolProperty),r}s.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function n(o,r){let a=i.get(o);return typeof a=="undefined"&&!r&&(a=9),a}s.fromString=n})(Jb||(Jb={}));var eC;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(eC||(eC={}));var tC;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(tC||(tC={}));var iC;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(iC||(iC={}));var nC;(function(s){const e=new Map;e.set(0,g.symbolFile),e.set(1,g.symbolModule),e.set(2,g.symbolNamespace),e.set(3,g.symbolPackage),e.set(4,g.symbolClass),e.set(5,g.symbolMethod),e.set(6,g.symbolProperty),e.set(7,g.symbolField),e.set(8,g.symbolConstructor),e.set(9,g.symbolEnum),e.set(10,g.symbolInterface),e.set(11,g.symbolFunction),e.set(12,g.symbolVariable),e.set(13,g.symbolConstant),e.set(14,g.symbolString),e.set(15,g.symbolNumber),e.set(16,g.symbolBoolean),e.set(17,g.symbolArray),e.set(18,g.symbolObject),e.set(19,g.symbolKey),e.set(20,g.symbolNull),e.set(21,g.symbolEnumMember),e.set(22,g.symbolStruct),e.set(23,g.symbolEvent),e.set(24,g.symbolOperator),e.set(25,g.symbolTypeParameter);function t(i){let n=e.get(i);return n||(console.info("No codicon found for SymbolKind "+i),n=g.symbolProperty),n}s.toIcon=t})(nC||(nC={}));class br{constructor(e){this.value=e}}br.Comment=new br("comment");br.Imports=new br("imports");br.Region=new br("region");var sC;(function(s){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}s.is=e})(sC||(sC={}));var oC;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(oC||(oC={}));const et=new AE;var np;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(np||(np={}));var sp;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(sp||(sp={}));var op;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.User=25]="User",s[s.Issue=26]="Issue",s[s.Snippet=27]="Snippet"})(op||(op={}));var rp;(function(s){s[s.Deprecated=1]="Deprecated"})(rp||(rp={}));var ap;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(ap||(ap={}));var lp;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(lp||(lp={}));var cp;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(cp||(cp={}));var hp;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(hp||(hp={}));var dp;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(dp||(dp={}));var up;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(up||(up={}));var fp;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingDelete=6]="autoClosingDelete",s[s.autoClosingOvertype=7]="autoClosingOvertype",s[s.autoClosingQuotes=8]="autoClosingQuotes",s[s.autoIndent=9]="autoIndent",s[s.automaticLayout=10]="automaticLayout",s[s.autoSurround=11]="autoSurround",s[s.bracketPairColorization=12]="bracketPairColorization",s[s.guides=13]="guides",s[s.codeLens=14]="codeLens",s[s.codeLensFontFamily=15]="codeLensFontFamily",s[s.codeLensFontSize=16]="codeLensFontSize",s[s.colorDecorators=17]="colorDecorators",s[s.columnSelection=18]="columnSelection",s[s.comments=19]="comments",s[s.contextmenu=20]="contextmenu",s[s.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",s[s.cursorBlinking=22]="cursorBlinking",s[s.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",s[s.cursorStyle=24]="cursorStyle",s[s.cursorSurroundingLines=25]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",s[s.cursorWidth=27]="cursorWidth",s[s.disableLayerHinting=28]="disableLayerHinting",s[s.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",s[s.domReadOnly=30]="domReadOnly",s[s.dragAndDrop=31]="dragAndDrop",s[s.emptySelectionClipboard=32]="emptySelectionClipboard",s[s.extraEditorClassName=33]="extraEditorClassName",s[s.fastScrollSensitivity=34]="fastScrollSensitivity",s[s.find=35]="find",s[s.fixedOverflowWidgets=36]="fixedOverflowWidgets",s[s.folding=37]="folding",s[s.foldingStrategy=38]="foldingStrategy",s[s.foldingHighlight=39]="foldingHighlight",s[s.foldingImportsByDefault=40]="foldingImportsByDefault",s[s.foldingMaximumRegions=41]="foldingMaximumRegions",s[s.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",s[s.fontFamily=43]="fontFamily",s[s.fontInfo=44]="fontInfo",s[s.fontLigatures=45]="fontLigatures",s[s.fontSize=46]="fontSize",s[s.fontWeight=47]="fontWeight",s[s.formatOnPaste=48]="formatOnPaste",s[s.formatOnType=49]="formatOnType",s[s.glyphMargin=50]="glyphMargin",s[s.gotoLocation=51]="gotoLocation",s[s.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",s[s.hover=53]="hover",s[s.inDiffEditor=54]="inDiffEditor",s[s.inlineSuggest=55]="inlineSuggest",s[s.letterSpacing=56]="letterSpacing",s[s.lightbulb=57]="lightbulb",s[s.lineDecorationsWidth=58]="lineDecorationsWidth",s[s.lineHeight=59]="lineHeight",s[s.lineNumbers=60]="lineNumbers",s[s.lineNumbersMinChars=61]="lineNumbersMinChars",s[s.linkedEditing=62]="linkedEditing",s[s.links=63]="links",s[s.matchBrackets=64]="matchBrackets",s[s.minimap=65]="minimap",s[s.mouseStyle=66]="mouseStyle",s[s.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=68]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",s[s.multiCursorModifier=70]="multiCursorModifier",s[s.multiCursorPaste=71]="multiCursorPaste",s[s.occurrencesHighlight=72]="occurrencesHighlight",s[s.overviewRulerBorder=73]="overviewRulerBorder",s[s.overviewRulerLanes=74]="overviewRulerLanes",s[s.padding=75]="padding",s[s.parameterHints=76]="parameterHints",s[s.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",s[s.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",s[s.quickSuggestions=79]="quickSuggestions",s[s.quickSuggestionsDelay=80]="quickSuggestionsDelay",s[s.readOnly=81]="readOnly",s[s.renameOnType=82]="renameOnType",s[s.renderControlCharacters=83]="renderControlCharacters",s[s.renderFinalNewline=84]="renderFinalNewline",s[s.renderLineHighlight=85]="renderLineHighlight",s[s.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",s[s.renderValidationDecorations=87]="renderValidationDecorations",s[s.renderWhitespace=88]="renderWhitespace",s[s.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",s[s.roundedSelection=90]="roundedSelection",s[s.rulers=91]="rulers",s[s.scrollbar=92]="scrollbar",s[s.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=94]="scrollBeyondLastLine",s[s.scrollPredominantAxis=95]="scrollPredominantAxis",s[s.selectionClipboard=96]="selectionClipboard",s[s.selectionHighlight=97]="selectionHighlight",s[s.selectOnLineNumbers=98]="selectOnLineNumbers",s[s.showFoldingControls=99]="showFoldingControls",s[s.showUnused=100]="showUnused",s[s.snippetSuggestions=101]="snippetSuggestions",s[s.smartSelect=102]="smartSelect",s[s.smoothScrolling=103]="smoothScrolling",s[s.stickyTabStops=104]="stickyTabStops",s[s.stopRenderingLineAfter=105]="stopRenderingLineAfter",s[s.suggest=106]="suggest",s[s.suggestFontSize=107]="suggestFontSize",s[s.suggestLineHeight=108]="suggestLineHeight",s[s.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",s[s.suggestSelection=110]="suggestSelection",s[s.tabCompletion=111]="tabCompletion",s[s.tabIndex=112]="tabIndex",s[s.unicodeHighlighting=113]="unicodeHighlighting",s[s.unusualLineTerminators=114]="unusualLineTerminators",s[s.useShadowDOM=115]="useShadowDOM",s[s.useTabStops=116]="useTabStops",s[s.wordSeparators=117]="wordSeparators",s[s.wordWrap=118]="wordWrap",s[s.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=121]="wordWrapColumn",s[s.wordWrapOverride1=122]="wordWrapOverride1",s[s.wordWrapOverride2=123]="wordWrapOverride2",s[s.wrappingIndent=124]="wrappingIndent",s[s.wrappingStrategy=125]="wrappingStrategy",s[s.showDeprecated=126]="showDeprecated",s[s.inlayHints=127]="inlayHints",s[s.editorClassName=128]="editorClassName",s[s.pixelRatio=129]="pixelRatio",s[s.tabFocusMode=130]="tabFocusMode",s[s.layoutInfo=131]="layoutInfo",s[s.wrappingInfo=132]="wrappingInfo"})(fp||(fp={}));var gp;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(gp||(gp={}));var mp;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(mp||(mp={}));var pp;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(pp||(pp={}));var _p;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(_p||(_p={}));var bp;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(bp||(bp={}));var Cp;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(Cp||(Cp={}));var wp;(function(s){s[s.DependsOnKbLayout=-1]="DependsOnKbLayout",s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.Digit0=21]="Digit0",s[s.Digit1=22]="Digit1",s[s.Digit2=23]="Digit2",s[s.Digit3=24]="Digit3",s[s.Digit4=25]="Digit4",s[s.Digit5=26]="Digit5",s[s.Digit6=27]="Digit6",s[s.Digit7=28]="Digit7",s[s.Digit8=29]="Digit8",s[s.Digit9=30]="Digit9",s[s.KeyA=31]="KeyA",s[s.KeyB=32]="KeyB",s[s.KeyC=33]="KeyC",s[s.KeyD=34]="KeyD",s[s.KeyE=35]="KeyE",s[s.KeyF=36]="KeyF",s[s.KeyG=37]="KeyG",s[s.KeyH=38]="KeyH",s[s.KeyI=39]="KeyI",s[s.KeyJ=40]="KeyJ",s[s.KeyK=41]="KeyK",s[s.KeyL=42]="KeyL",s[s.KeyM=43]="KeyM",s[s.KeyN=44]="KeyN",s[s.KeyO=45]="KeyO",s[s.KeyP=46]="KeyP",s[s.KeyQ=47]="KeyQ",s[s.KeyR=48]="KeyR",s[s.KeyS=49]="KeyS",s[s.KeyT=50]="KeyT",s[s.KeyU=51]="KeyU",s[s.KeyV=52]="KeyV",s[s.KeyW=53]="KeyW",s[s.KeyX=54]="KeyX",s[s.KeyY=55]="KeyY",s[s.KeyZ=56]="KeyZ",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.Semicolon=80]="Semicolon",s[s.Equal=81]="Equal",s[s.Comma=82]="Comma",s[s.Minus=83]="Minus",s[s.Period=84]="Period",s[s.Slash=85]="Slash",s[s.Backquote=86]="Backquote",s[s.BracketLeft=87]="BracketLeft",s[s.Backslash=88]="Backslash",s[s.BracketRight=89]="BracketRight",s[s.Quote=90]="Quote",s[s.OEM_8=91]="OEM_8",s[s.IntlBackslash=92]="IntlBackslash",s[s.Numpad0=93]="Numpad0",s[s.Numpad1=94]="Numpad1",s[s.Numpad2=95]="Numpad2",s[s.Numpad3=96]="Numpad3",s[s.Numpad4=97]="Numpad4",s[s.Numpad5=98]="Numpad5",s[s.Numpad6=99]="Numpad6",s[s.Numpad7=100]="Numpad7",s[s.Numpad8=101]="Numpad8",s[s.Numpad9=102]="Numpad9",s[s.NumpadMultiply=103]="NumpadMultiply",s[s.NumpadAdd=104]="NumpadAdd",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NumpadSubtract=106]="NumpadSubtract",s[s.NumpadDecimal=107]="NumpadDecimal",s[s.NumpadDivide=108]="NumpadDivide",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.AudioVolumeMute=112]="AudioVolumeMute",s[s.AudioVolumeUp=113]="AudioVolumeUp",s[s.AudioVolumeDown=114]="AudioVolumeDown",s[s.BrowserSearch=115]="BrowserSearch",s[s.BrowserHome=116]="BrowserHome",s[s.BrowserBack=117]="BrowserBack",s[s.BrowserForward=118]="BrowserForward",s[s.MediaTrackNext=119]="MediaTrackNext",s[s.MediaTrackPrevious=120]="MediaTrackPrevious",s[s.MediaStop=121]="MediaStop",s[s.MediaPlayPause=122]="MediaPlayPause",s[s.LaunchMediaPlayer=123]="LaunchMediaPlayer",s[s.LaunchMail=124]="LaunchMail",s[s.LaunchApp2=125]="LaunchApp2",s[s.Clear=126]="Clear",s[s.MAX_VALUE=127]="MAX_VALUE"})(wp||(wp={}));var vp;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(vp||(vp={}));var Sp;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Sp||(Sp={}));var yp;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(yp||(yp={}));var Lp;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Lp||(Lp={}));var kp;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(kp||(kp={}));var xp;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(xp||(xp={}));var Ip;(function(s){s[s.Left=0]="Left",s[s.Right=1]="Right",s[s.None=2]="None"})(Ip||(Ip={}));var Ep;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(Ep||(Ep={}));var Dp;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Dp||(Dp={}));var Np;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(Np||(Np={}));var Tp;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(Tp||(Tp={}));var Mp;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(Mp||(Mp={}));var Rp;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Rp||(Rp={}));var Ap;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(Ap||(Ap={}));var Op;(function(s){s[s.Deprecated=1]="Deprecated"})(Op||(Op={}));var Pp;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(Pp||(Pp={}));var Fp;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Fp||(Fp={}));var Bp;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Bp||(Bp={}));var Vp;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(Vp||(Vp={}));class bh{static chord(e,t){return _E(e,t)}}bh.CtrlCmd=2048;bh.Shift=1024;bh.Alt=512;bh.WinCtrl=256;function by(){return{editor:void 0,languages:void 0,CancellationTokenSource:ml,Emitter:M,KeyCode:wp,KeyMod:bh,Position:A,Range:D,Selection:ce,SelectionDirection:Mp,MarkerSeverity:vp,MarkerTag:Sp,Uri:we,Token:Ec}}class FE{constructor(e){this.computeFn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}}class Cy{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var wy;function BE(s){return!s||typeof s!="string"?!0:s.trim().length===0}const VE=/{(\d+)}/g;function cu(s,...e){return e.length===0?s:s.replace(VE,function(t,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function WE(s){return s.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Qn(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function vy(s,e){if(!s||!e)return s;const t=e.length;if(t===0||s.length===0)return s;let i=0;for(;s.indexOf(e,i)===i;)i=i+t;return s.substring(i)}function HE(s,e){if(!s||!e)return s;const t=e.length,i=s.length;if(t===0||i===0)return s;let n=i,o=-1;for(;o=s.lastIndexOf(e,n-1),!(o===-1||o+t!==n);){if(o===0)return"";n=o}return s.substring(0,n)}function zE(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Sy(s,e,t={}){if(!s)throw new Error("Cannot create regex from empty string");e||(s=Qn(s)),t.wholeWord&&(/\B/.test(s.charAt(0))||(s="\\b"+s),/\B/.test(s.charAt(s.length-1))||(s=s+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(s,i)}function UE(s){return s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$"?!1:!!(s.exec("")&&s.lastIndex===0)}function Lg(s){return(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")}function Ch(s){return s.split(/\r\n|\r|\n/)}function Ci(s){for(let e=0,t=s.length;e=0;t--){const i=s.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Wp(s,e){return se?1:0}function J1(s,e,t=0,i=s.length,n=0,o=e.length){for(;tc)return 1}const r=i-t,a=o-n;return ra?1:0}function rC(s,e){return wh(s,e,0,s.length,0,e.length)}function wh(s,e,t=0,i=s.length,n=0,o=e.length){for(;t=128||c>=128)return J1(s.toLowerCase(),e.toLowerCase(),t,i,n,o);ra(l)&&(l-=32),ra(c)&&(c-=32);const h=l-c;if(h!==0)return h}const r=i-t,a=o-n;return ra?1:0}function ra(s){return s>=97&&s<=122}function Xs(s){return s>=65&&s<=90}function aa(s,e){return s.length===e.length&&wh(s,e)===0}function e0(s,e){const t=e.length;return e.length>s.length?!1:wh(s,e,0,t)===0}function aC(s,e){let t,i=Math.min(s.length,e.length);for(t=0;t1){const i=s.charCodeAt(e-2);if(gt(i))return t0(i,t)}return t}class i0{constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}get offset(){return this._offset}setOffset(e){this._offset=e}prevCodePoint(){const e=$E(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=hu(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class du{constructor(e,t=0){this._iterator=new i0(e,t)}get offset(){return this._iterator.offset}nextGraphemeLength(){const e=so.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(cC(n,r)){t.setOffset(o);break}n=r}return t.offset-i}prevGraphemeLength(){const e=so.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(cC(r,n)){t.setOffset(o);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function n0(s,e){return new du(s,e).nextGraphemeLength()}function yy(s,e){return new du(s,e).prevGraphemeLength()}function jE(s,e){e>0&&Ua(s.charCodeAt(e))&&e--;const t=e+n0(s,e);return[t-yy(s,t),t]}const KE=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function s0(s){return KE.test(s)}const qE=/^[\t\n\r\x20-\x7E]*$/;function o0(s){return qE.test(s)}const Ly=/[\u2028\u2029]/;function ky(s){return Ly.test(s)}function vo(s){return s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function r0(s){return s>=127462&&s<=127487||s===8986||s===8987||s===9200||s===9203||s>=9728&&s<=10175||s===11088||s===11093||s>=127744&&s<=128591||s>=128640&&s<=128764||s>=128992&&s<=129008||s>=129280&&s<=129535||s>=129648&&s<=129782}const GE=String.fromCharCode(65279);function a0(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function ZE(s,e=!1){return s?(e&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function xy(s){return s=s%(2*26),s<26?String.fromCharCode(97+s):String.fromCharCode(65+s-26)}function cC(s,e){return s===0?e!==5&&e!==7:s===2&&e===3?!1:s===4||s===2||s===3||e===4||e===2||e===3?!0:!(s===8&&(e===8||e===9||e===11||e===12)||(s===11||s===9)&&(e===9||e===10)||(s===12||s===10)&&e===10||e===5||e===13||e===7||s===1||s===13&&e===14||s===6&&e===6)}class so{constructor(){this._data=YE()}static getInstance(){return so._INSTANCE||(so._INSTANCE=new so),so._INSTANCE}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1])n=2*n+1;else return t[3*n+2];return 0}}so._INSTANCE=null;function YE(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function XE(s,e){if(s===0)return 0;const t=QE(s,e);if(t!==void 0)return t;const i=new i0(e,s);return i.prevCodePoint(),i.offset}function QE(s,e){const t=new i0(e,s);let i=t.prevCodePoint();for(;JE(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!r0(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function JE(s){return 127995<=s&&s<=127999}class sn{constructor(e){this.confusableDictionary=e}static getInstance(e){return sn.cache.get(Array.from(e))}static getLocales(){return sn._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}wy=sn;sn.ambiguousCharacterData=new Cy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));sn.cache=new FE(s=>{function e(c){const h=new Map;for(let d=0;d!c.startsWith("_")&&c in n);o.length===0&&(o=["_default"]);let r;for(const c of o){const h=e(n[c]);r=i(r,h)}const a=e(n._common),l=t(a,r);return new sn(l)});sn._locales=new Cy(()=>Object.keys(sn.ambiguousCharacterData.getValue()).filter(s=>!s.startsWith("_")));class ho{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ho.getRawData())),this._data}static isInvisibleCharacter(e){return ho.getData().has(e)}static get codePoints(){return ho.getData()}}ho._data=void 0;class Hp{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}Hp.INSTANCE=new Hp;class eD extends W{constructor(){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList&&this._mediaQueryList.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class tD extends W{constructor(){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new eD);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class iD{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new tD),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}const Dc=new iD;function Iy(){return Hp.INSTANCE.getZoomFactor()}const _l=navigator.userAgent,Oi=_l.indexOf("Firefox")>=0,uo=_l.indexOf("AppleWebKit")>=0,l0=_l.indexOf("Chrome")>=0,Jn=!l0&&_l.indexOf("Safari")>=0,c0=!l0&&!Jn&&uo,nD=_l.indexOf("Electron/")>=0,Ey=_l.indexOf("Android")>=0,Dy=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches;var sD=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:Dc,getZoomFactor:Iy,isFirefox:Oi,isWebKit:uo,isChrome:l0,isSafari:Jn,isWebkitWebView:c0,isElectron:nD,isAndroid:Ey,isStandalone:Dy},Symbol.toStringTag,{value:"Module"}));class Ny{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontStyle="",this._fontFeatureSettings="",this._textDecoration="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ue(s){return new Ny(s)}function ii(s,e){s instanceof Ny?(s.setFontFamily(e.getMassagedFontFamily(Jn?bi.fontFamily:null)),s.setFontWeight(e.fontWeight),s.setFontSize(e.fontSize),s.setFontFeatureSettings(e.fontFeatureSettings),s.setLineHeight(e.lineHeight),s.setLetterSpacing(e.letterSpacing)):(s.style.fontFamily=e.getMassagedFontFamily(Jn?bi.fontFamily:null),s.style.fontWeight=e.fontWeight,s.style.fontSize=e.fontSize+"px",s.style.fontFeatureSettings=e.fontFeatureSettings,s.style.lineHeight=e.lineHeight+"px",s.style.letterSpacing=e.letterSpacing+"px")}class oD{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class h0{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");ii(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");ii(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");ii(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=n),a.appendChild(document.createElement("br"));const l=document.createElement("span");h0._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i="\xA0";for(let n=0;n<8;n++)i+=i;e.innerText=i}else{let i=t.chr;for(let n=0;n<8;n++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new zp({pixelRatio:Dc.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){const o=new oD(e,t);return i.push(o),n&&n.push(o),o}_actualReadFontInfo(e){const t=[],i=[],n=this._createRequest("n",0,t,i),o=this._createRequest("\uFF4D",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),c=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),d=this._createRequest("4",0,t,i),u=this._createRequest("5",0,t,i),f=this._createRequest("6",0,t,i),m=this._createRequest("7",0,t,i),_=this._createRequest("8",0,t,i),b=this._createRequest("9",0,t,i),w=this._createRequest("\u2192",0,t,i),C=this._createRequest("\uFFEB",0,t,null),v=this._createRequest("\xB7",0,t,i),S=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%";for(let R=0,T=k.length;R.001){L=!1;break}}let I=!0;return L&&C.width!==y&&(I=!1),C.width>w.width&&(I=!1),new zp({pixelRatio:Dc.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:L,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:I,spaceWidth:r.width,middotWidth:v.width,wsmiddotWidth:S.width,maxDigitWidth:x},!0)}}class hC{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const Up=new cD;var Cn;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(Cn||(Cn={}));const rn=pe("instantiationService");function hD(s,e,t){e[Cn.DI_TARGET]===e?e[Cn.DI_DEPENDENCIES].push({id:s,index:t}):(e[Cn.DI_DEPENDENCIES]=[{id:s,index:t}],e[Cn.DI_TARGET]=e)}function pe(s){if(Cn.serviceIds.has(s))return Cn.serviceIds.get(s);const e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");hD(e,t,n)};return e.toString=()=>s,Cn.serviceIds.set(s,e),e}const kt=pe("codeEditorService");function Rd(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}const dD={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class uD extends W{constructor(e,t={}){super(),this._onDidUpdate=this._register(new M),this._editor=e,this._options=Nr(t,dD,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(i=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(i=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(i=>{this.ranges.push({rhs:!0,range:new D(i.modifiedStartLineNumber,i.modifiedStartColumn,i.modifiedEndLineNumber,i.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new D(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new D(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,i)=>D.compareRangesUsingStarts(t.range,i.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let n=0,o=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const n=i.range.getStartPosition();this._editor.setPosition(n),this._editor.revealRangeInCenter(i.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}const d0={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var Cr;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(Cr||(Cr={}));var Ts;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(Ts||(Ts={}));var $a;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})($a||($a={}));class Ad{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),this.indentSize=e.tabSize|0,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&Ri(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class Nc{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class xg{constructor(e,t,i,n,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class fD{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class gD{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function mD(s){return!s.isTooLargeForSyncing()&&!s.isForSimpleWidget}var dt;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(dt||(dt={}));class Ig{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&s.getLanguageId(r-1)===n;)r--;return new _D(s,n,r,o+1,s.getStartOffset(r),s.getEndOffset(o))}class _D{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function On(s){return(s&3)!==0}class vf{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new Ig(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new Ig({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.colorizedBracketPairs?this._colorizedBracketPairs=dC(e.colorizedBracketPairs.map(t=>[t[0],t[1]])):e.brackets?this._colorizedBracketPairs=dC(e.brackets.map(t=>[t[0],t[1]]).filter(t=>!(t[0]==="<"&&t[1]===">"))):this._colorizedBracketPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new Ig({open:t.open,close:t.close||""}))}this._autoCloseBefore=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:vf.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}vf.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> + `;function dC(s){return s.filter(([e,t])=>e!==""&&t!=="")}const uC=typeof Buffer!="undefined";let Eg;class Sf{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(e){return uC&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new Sf(e)}toString(){return uC?this.buffer.toString():(Eg||(Eg=new TextDecoder),Eg.decode(this.buffer))}}function bD(s,e){return s[e+0]<<0>>>0|s[e+1]<<8>>>0}function CD(s,e,t){s[t+0]=e&255,e=e>>>8,s[t+1]=e&255}function dn(s,e){return s[e]*Math.pow(2,24)+s[e+1]*Math.pow(2,16)+s[e+2]*Math.pow(2,8)+s[e+3]}function un(s,e,t){s[t+3]=e,e=e>>>8,s[t+2]=e,e=e>>>8,s[t+1]=e,e=e>>>8,s[t]=e}function fC(s,e){return s[e]}function gC(s,e,t){s[t]=e}let Dg;function Ty(){return Dg||(Dg=new TextDecoder("UTF-16LE")),Dg}let Ng;function wD(){return Ng||(Ng=new TextDecoder("UTF-16BE")),Ng}let Tg;function My(){return Tg||(Tg=XS()?Ty():wD()),Tg}const Ry=typeof TextDecoder!="undefined";let ja,$p;Ry?(ja=s=>new SD(s),$p=vD):(ja=s=>new yD,$p=Ay);function vD(s,e,t){const i=new Uint16Array(s.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?Ay(s,e,t):Ty().decode(i)}function Ay(s,e,t){const i=[];let n=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r{const[l,c]=r,[h,d]=a;return l===h||l===d||c===h||c===d},n=(r,a)=>{const l=Math.min(r,a),c=Math.max(r,a);for(let h=0;h0&&o.push({open:a,close:l})}return o}class kD{constructor(e,t){this._richEditBracketsBrand=void 0;const i=LD(t);this.brackets=i.map((n,o)=>new gu(e,o,n.open,n.close,xD(n.open,n.close,i,o),ID(n.open,n.close,i,o))),this.forwardRegex=ED(this.brackets),this.reversedRegex=DD(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const o of n.open)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of n.close)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function Oy(s,e,t,i){for(let n=0,o=e.length;n=0&&i.push(a);for(const a of r.close)a.indexOf(s)>=0&&i.push(a)}}function Py(s,e){return s.length-e.length}function yf(s){if(s.length<=1)return s;const e=[],t=new Set;for(const i of s)t.has(i)||(e.push(i),t.add(i));return e}function xD(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o=0;r--)n[o++]=i.charCodeAt(r);return My().decode(n)}else{const n=[];let o=0;for(let r=i.length-1;r>=0;r--)n[o++]=i.charAt(r);return n.join("")}}let e=null,t=null;return function(n){return e!==n&&(e=n,t=s(e)),t}}();class Ui{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new D(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const a=u0(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,a,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=n+r;return new D(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const r=i.substring(n,o);return this.findNextBracketInText(e,t,r,n)}}class TD{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const n=i.charAt(i.length-1);e.push(n)}return wo(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const n=t.findTokenIndexAtOffset(i-1);if(On(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Ui.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const h=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:l}:null}}function Hh(s){return s.global&&(s.lastIndex=0),!0}class MD{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&Hh(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&Hh(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&Hh(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&Hh(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class la{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=la._createOpenBracketRegExp(t[0]),n=la._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,r=this._regExpRules.length;oc.reg?(c.reg.lastIndex=0,c.reg.test(c.text)):!0))return a.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,r=this._brackets.length;o=2&&i.length>0){for(let o=0,r=this._brackets.length;o=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_C=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};class Mg{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Eo=pe("languageConfigurationService");let jp=class extends W{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this.onDidChangeEmitter=this._register(new M),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(Kp));this._register(this.configurationService.onDidChangeConfiguration(n=>{const o=n.change.keys.some(a=>i.has(a)),r=n.change.overrides.filter(([a,l])=>l.some(c=>i.has(c))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new Mg(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new Mg(a)))})),this._register(Ki.onDidChange(n=>{this.configurations.delete(n.languageId),this.onDidChangeEmitter.fire(new Mg(n.languageId))}))}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=OD(e,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};jp=AD([_C(0,Rt),_C(1,Wt)],jp);function OD(s,e,t){let i=Ki.getLanguageConfiguration(s);if(!i){if(!t.isRegisteredLanguageId(s))throw new Error(`Language id "${s}" is not configured nor known`);i=new Tc(s,{})}const n=PD(i.languageId,e),o=Wy([i.underlyingConfig,n]);return new Tc(i.languageId,o)}const Kp={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function PD(s,e){const t=e.getValue(Kp.brackets,{overrideIdentifier:s}),i=e.getValue(Kp.colorizedBracketPairs,{overrideIdentifier:s});return{brackets:bC(t),colorizedBracketPairs:bC(i)}}function bC(s){if(!!Array.isArray(s))return s.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}class CC{constructor(e){this.languageId=e}}class FD{constructor(){this._entries=new Map,this._onDidChange=new M,this.onDidChange=this._onDidChange.event}register(e,t,i=0){let n=this._entries.get(e);n||(n=new BD(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new CC(e)),Pe(()=>{o.dispose(),this._onDidChange.fire(new CC(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}getComments(e){const t=this.getLanguageConfiguration(e);return t&&t.comments||null}getIndentRulesSupport(e){const t=this.getLanguageConfiguration(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,i){const n=e.getLanguageIdAtPosition(t,0);if(t>1){let o,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==n)return r;const a=e.getLineContent(o);if(i.shouldIgnore(a)||/^\s+$/.test(a)||a===""){r=o;continue}return o}}return-1}getInheritIndentForLine(e,t,i,n=!0){if(e<4)return null;const o=this.getIndentRulesSupport(t.getLanguageId());if(!o)return null;if(i<=1)return{indentation:"",action:null};const r=this.getPrecedingValidLine(t,i,o);if(r<0)return null;if(r<1)return{indentation:"",action:null};const a=t.getLineContent(r);if(o.shouldIncrease(a)||o.shouldIndentNextLine(a))return{indentation:Ut(a),action:dt.Indent,line:r};if(o.shouldDecrease(a))return{indentation:Ut(a),action:null,line:r};{if(r===1)return{indentation:Ut(t.getLineContent(r)),action:null,line:r};const l=r-1,c=o.getIndentMetadata(t.getLineContent(l));if(!(c&3)&&c&4){let h=0;for(let d=l-1;d>0;d--)if(!o.shouldIndentNextLine(t.getLineContent(d))){h=d;break}return{indentation:Ut(t.getLineContent(h+1)),action:null,line:h+1}}if(n)return{indentation:Ut(t.getLineContent(r)),action:null,line:r};for(let h=r;h>0;h--){const d=t.getLineContent(h);if(o.shouldIncrease(d))return{indentation:Ut(d),action:dt.Indent,line:h};if(o.shouldIndentNextLine(d)){let u=0;for(let f=h-1;f>0;f--)if(!o.shouldIndentNextLine(t.getLineContent(h))){u=f;break}return{indentation:Ut(t.getLineContent(u+1)),action:null,line:u+1}}else if(o.shouldDecrease(d))return{indentation:Ut(d),action:null,line:h}}return{indentation:Ut(t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,i,n,o){if(e<4)return null;const r=this.getLanguageConfiguration(i);if(!r)return null;const a=this.getIndentRulesSupport(i);if(!a)return null;const l=this.getInheritIndentForLine(e,t,n),c=t.getLineContent(n);if(l){const h=l.line;if(h!==void 0){const d=r.onEnter(e,"",t.getLineContent(h),"");if(d){let u=Ut(t.getLineContent(h));return d.removeText&&(u=u.substring(0,u.length-d.removeText)),d.indentAction===dt.Indent||d.indentAction===dt.IndentOutdent?u=o.shiftIndent(u):d.indentAction===dt.Outdent&&(u=o.unshiftIndent(u)),a.shouldDecrease(c)&&(u=o.unshiftIndent(u)),d.appendText&&(u+=d.appendText),Ut(u)}}return a.shouldDecrease(c)?l.action===dt.Indent?l.indentation:o.unshiftIndent(l.indentation):l.action===dt.Indent?o.shiftIndent(l.indentation):l.indentation}return null}getIndentForEnter(e,t,i,n){if(e<4)return null;t.forceTokenization(i.startLineNumber);const o=t.getLineTokens(i.startLineNumber),r=fu(o,i.startColumn-1),a=r.getLineContent();let l=!1,c;r.firstCharOffset>0&&o.getLanguageId(0)!==r.languageId?(l=!0,c=a.substr(0,i.startColumn-1-r.firstCharOffset)):c=o.getLineContent().substring(0,i.startColumn-1);let h;i.isEmpty()?h=a.substr(i.startColumn-1-r.firstCharOffset):h=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);const d=this.getIndentRulesSupport(r.languageId);if(!d)return null;const u=c,f=Ut(c),m={getLineTokens:C=>t.getLineTokens(C),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(C,v)=>t.getLanguageIdAtPosition(C,v),getLineContent:C=>C===i.startLineNumber?u:t.getLineContent(C)},_=Ut(o.getLineContent()),b=this.getInheritIndentForLine(e,m,i.startLineNumber+1);if(!b){const C=l?_:f;return{beforeEnter:C,afterEnter:C}}let w=l?_:b.indentation;return b.action===dt.Indent&&(w=n.shiftIndent(w)),d.shouldDecrease(h)&&(w=n.unshiftIndent(w)),{beforeEnter:l?_:f,afterEnter:w}}getIndentActionForType(e,t,i,n,o){if(e<4)return null;const r=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn);if(r.firstCharOffset)return null;const a=this.getIndentRulesSupport(r.languageId);if(!a)return null;const l=r.getLineContent(),c=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(i.isEmpty()?h=l.substr(i.startColumn-1-r.firstCharOffset):h=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset),!a.shouldDecrease(c+h)&&a.shouldDecrease(c+n+h)){const d=this.getInheritIndentForLine(e,t,i.startLineNumber,!1);if(!d)return null;let u=d.indentation;return d.action!==dt.Indent&&(u=o.unshiftIndent(u)),u}return null}getIndentMetadata(e,t){const i=this.getIndentRulesSupport(e.getLanguageId());return!i||t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t))}getEnterAction(e,t,i){const n=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn),o=this.getLanguageConfiguration(n.languageId);if(!o)return null;const r=n.getLineContent(),a=r.substr(0,i.startColumn-1-n.firstCharOffset);let l;i.isEmpty()?l=r.substr(i.startColumn-1-n.firstCharOffset):l=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-n.firstCharOffset);let c="";if(i.startLineNumber>1&&n.firstCharOffset===0){const _=this.getScopedLineTokens(t,i.startLineNumber-1);_.languageId===n.languageId&&(c=_.getLineContent())}const h=o.onEnter(e,c,a,l);if(!h)return null;const d=h.indentAction;let u=h.appendText;const f=h.removeText||0;u?d===dt.Indent&&(u=" "+u):d===dt.Indent||d===dt.IndentOutdent?u=" ":u="";let m=this.getIndentationAtPosition(t,i.startLineNumber,i.startColumn);return f&&(m=m.substring(0,m.length-f)),{indentAction:d,appendText:u,removeText:f,indentation:m}}getIndentationAtPosition(e,t,i){const n=e.getLineContent(t);let o=Ut(n);return o.length>i-1&&(o=o.substring(0,i-1)),o}getScopedLineTokens(e,t,i){e.forceTokenization(t);const n=e.getLineTokens(t),o=typeof i=="undefined"?e.getLineMaxColumn(t)-1:i-1;return fu(n,o)}}const Ki=new FD;class BD{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new wC(e,t,++this._order);return this._entries.push(i),this._resolved=null,Pe(()=>{for(let n=0;ne.configuration)))}}function Wy(s){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of s)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class wC{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class Tc{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new la(this.underlyingConfig):null,this.comments=Tc._handleComments(this.underlyingConfig),this.characterPair=new vf(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||U1,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new MD(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return ey(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new kD(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new TD(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new pD(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[n,o]=t.blockComment;i.blockCommentStartToken=n,i.blockCommentEndToken=o}return i}}ve(Eo,jp);const mu=new class{clone(){return this}equals(s){return this===s}};function VD(s,e){return new Q1([new Ec(0,"",s)],e)}function WD(s,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(s<<0|0<<8|0<<10|1<<14|2<<23)>>>0,new wf(t,e===null?mu:e)}const At=pe("modelService");var $i=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},zh=globalThis&&globalThis.__asyncValues||function(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=s[Symbol.asyncIterator],t;return e?e.call(s):(s=typeof __values=="function"?__values(s):s[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=s[o]&&function(r){return new Promise(function(a,l){r=s[o](r),n(a,l,r.done,r.value)})}}function n(o,r,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},r)}};function HD(s){return!!s&&typeof s.then=="function"}function Hy(s){const e=new ml,t=s(e.token),i=new Promise((n,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),e.dispose(),o(new _h)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),n(a)},a=>{r.dispose(),e.dispose(),o(a)})});return new class{cancel(){e.cancel()}then(n,o){return i.then(n,o)}catch(n){return this.then(void 0,n)}finally(n){return i.finally(n)}}}class zD{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{this.queuedPromise=null;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}}const UD=(s,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},s);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},$D=s=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,s())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},zy=Symbol("MicrotaskDelay");class bl{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,o)=>{this.doResolve=n,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const n=this.task;return this.task=null,n()}}));const i=()=>{var n;this.deferred=null,(n=this.doResolve)===null||n===void 0||n.call(this,null)};return this.deferred=t===zy?$D(i):UD(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(new _h),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class jD{constructor(e){this.delayer=new bl(e),this.throttler=new zD}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function Mc(s,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{o.dispose(),t()},s),o=e.onCancellationRequested(()=>{clearTimeout(n),o.dispose(),i(new _h)})}):Hy(t=>Mc(s,t))}function qp(s,e=0){const t=setTimeout(s,e);return Pe(()=>clearTimeout(t))}class os{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class vh{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class Tt{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let pu;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?pu=s=>{YS(()=>{if(e)return;const t=Date.now()+15;s(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:pu=(s,e)=>{const t=requestIdleCallback(s,typeof e=="number"?{timeout:e}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(t))}}}})();class kf{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=pu(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class Uy{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new _h),this.rejected=!0,e()})}}var Gp;(function(s){function e(i){return $i(this,void 0,void 0,function*(){let n;const o=yield Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n!="undefined")throw n;return o})}s.settled=e;function t(i){return new Promise((n,o)=>$i(this,void 0,void 0,function*(){try{yield i(n,o)}catch(r){o(r)}}))}s.withAsyncBody=t})(Gp||(Gp={}));class fi{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new M,queueMicrotask(()=>$i(this,void 0,void 0,function*(){const t={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{yield Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new fi(t=>{t.emitMany(e)})}static fromPromise(e){return new fi(t=>$i(this,void 0,void 0,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new fi(t=>$i(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>$i(this,void 0,void 0,function*(){return t.emitOne(yield i)})))}))}static merge(e){return new fi(t=>$i(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>{var n,o;return $i(this,void 0,void 0,function*(){var r,a;try{for(n=zh(i);o=yield n.next(),!o.done;){const l=o.value;t.emitOne(l)}}catch(l){r={error:l}}finally{try{o&&!o.done&&(a=n.return)&&(yield a.call(n))}finally{if(r)throw r.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>$i(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(e$i(this,void 0,void 0,function*(){var n,o;try{for(var r=zh(e),a;a=yield r.next(),!a.done;){const l=a.value;i.emitOne(t(l))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}map(e){return fi.map(this,e)}static filter(e,t){return new fi(i=>$i(this,void 0,void 0,function*(){var n,o;try{for(var r=zh(e),a;a=yield r.next(),!a.done;){const l=a.value;t(l)&&i.emitOne(l)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}filter(e){return fi.filter(this,e)}static coalesce(e){return fi.filter(e,t=>!!t)}coalesce(){return fi.coalesce(this)}static toPromise(e){var t,i,n,o;return $i(this,void 0,void 0,function*(){const r=[];try{for(t=zh(e);i=yield t.next(),!i.done;){const a=i.value;r.push(a)}}catch(a){n={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return r})}toPromise(){return fi.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}fi.EMPTY=fi.fromArray([]);const KD="$initialize";let vC=!1;function Zp(s){!fl||(vC||(vC=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(s.message))}class qD{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class SC{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class GD{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class ZD{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class YD{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class XD{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new qD(this._workerId,i,e,t))})}listen(e,t){let i=null;const n=new M({onFirstListenerAdd:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new GD(this._workerId,i,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(i),this._send(new YD(this._workerId,i)),i=null}});return n.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then(n=>{this._send(new SC(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=Gb(n.detail)),this._send(new SC(this._workerId,t,void 0,Gb(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(n=>{this._send(new ZD(this._workerId,t,n))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let i=0;i{this._protocol.handleMessage(c)},c=>{n&&n(c)})),this._protocol=new XD({sendMessage:(c,h)=>{this._worker.postMessage(c,h)},handleMessage:(c,h)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,h))}catch(d){return Promise.reject(d)}},handleEvent:(c,h)=>{if(jy(c)){const d=i[c].call(i,h);if(typeof d!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return d}if($y(c)){const d=i[c];if(typeof d!="function")throw new Error(`Missing event ${c} on main thread host.`);return d}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;typeof Ge.require!="undefined"&&typeof Ge.require.getConfig=="function"?o=Ge.require.getConfig():typeof Ge.requirejs!="undefined"&&(o=Ge.requirejs.s.contexts._.config);const r=j1(i);this._onModuleLoaded=this._protocol.sendMessage(KD,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const a=(c,h)=>this._request(c,h),l=(c,h)=>this._protocol.listen(c,h);this._lazyProxy=new Promise((c,h)=>{n=h,this._onModuleLoaded.then(d=>{c(JD(d,a,l))},d=>{h(d),this._onError("Worker failed to load "+t,d)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function $y(s){return s[0]==="o"&&s[1]==="n"&&Xs(s.charCodeAt(2))}function jy(s){return/^onDynamic/.test(s)&&Xs(s.charCodeAt(9))}function JD(s,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},n=r=>function(a){return t(r,a)};let o={};for(const r of s){if(jy(r)){o[r]=n(r);continue}if($y(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}var Rg;const yC=(Rg=window.trustedTypes)===null||Rg===void 0?void 0:Rg.createPolicy("defaultWorkerFactory",{createScriptURL:s=>s});function eN(s){if(Ge.MonacoEnvironment){if(typeof Ge.MonacoEnvironment.getWorker=="function")return Ge.MonacoEnvironment.getWorker("workerMain.js",s);if(typeof Ge.MonacoEnvironment.getWorkerUrl=="function"){const e=Ge.MonacoEnvironment.getWorkerUrl("workerMain.js",s);return new Worker(yC?yC.createScriptURL(e):e,{name:s})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function tN(s){return typeof s.then=="function"}class iN{constructor(e,t,i,n,o){this.id=t;const r=eN(i);tN(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){n(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(i=>i.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class xf{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++xf.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new iN(e,n,this._label||"anonymous"+n,t,o=>{Zp(o),this._webWorkerFailedBeforeError=o,i(o)})}}xf.LAST_WORKER_ID=0;class qs{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function g0(s,e){switch(typeof s){case"object":return s===null?Ds(349,e):Array.isArray(s)?sN(s,e):oN(s,e);case"string":return m0(s,e);case"boolean":return nN(s,e);case"number":return Ds(s,e);case"undefined":return Ds(937,e);default:return Ds(617,e)}}function Ds(s,e){return(e<<5)-e+s|0}function nN(s,e){return Ds(s?433:863,e)}function m0(s,e){e=Ds(149417,e);for(let t=0,i=s.length;tg0(i,t),e)}function oN(s,e){return e=Ds(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=m0(i,t),g0(s[i],t)),e)}function Ag(s,e,t=32){const i=t-e,n=~((1<>>i)>>>0}function LC(s,e=0,t=s.byteLength,i=0){for(let n=0;nt.toString(16).padStart(2,"0")).join(""):rN((s>>>0).toString(16),e/4)}class If{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let n=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(gt(r))if(a+1>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Ml(this._h0)+Ml(this._h1)+Ml(this._h2)+Ml(this._h3)+Ml(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,LC(this._buff,this._buffLen),this._buffLen>56&&(this._step(),LC(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=If._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,Ag(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i=this._h0,n=this._h1,o=this._h2,r=this._h3,a=this._h4,l,c,h;for(let d=0;d<80;d++)d<20?(l=n&o|~n&r,c=1518500249):d<40?(l=n^o^r,c=1859775393):d<60?(l=n&o|n&r|o&r,c=2400959708):(l=n^o^r,c=3395469782),h=Ag(i,5)+l+a+c+e.getUint32(d*4,!1)&4294967295,a=r,r=o,o=Ag(n,30),n=i,i=h;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}If._bigBlock32=new DataView(new ArrayBuffer(320));class kC{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new qs(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ks{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,r]=ks._getElements(e),[a,l,c]=ks._getElements(t);this._hasStrings=r&&c,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(ks._isStringArray(t)){const i=new Int32Array(t.length);for(let n=0,o=t.length;n=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let d;return i<=n?(Kr.Assert(e===t+1,"originalStart should only be one more than originalEnd"),d=[new qs(e,0,i,n-i+1)]):e<=t?(Kr.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),d=[new qs(e,t-e+1,i,0)]):(Kr.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Kr.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,n,r,a,o),c=r[0],h=a[0];if(l!==null)return l;if(!o[0]){const d=this.ComputeDiffRecursive(e,c,i,h,o);let u=[];return o[0]?u=[new qs(c+1,t-(c+1)+1,h+1,n-(h+1)+1)]:u=this.ComputeDiffRecursive(c+1,t,h+1,n,o),this.ConcatenateChanges(d,u)}return[new qs(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C){let v=null,S=null,k=new xC,x=t,L=i,y=f[0]-b[0]-n,I=-1073741824,R=this.m_forwardHistory.length-1;do{const T=y+e;T===x||T=0&&(c=this.m_forwardHistory[R],e=c[0],x=1,L=c.length-1)}while(--R>=-1);if(v=k.getReverseChanges(),C[0]){let T=f[0]+1,P=b[0]+1;if(v!==null&&v.length>0){const F=v[v.length-1];T=Math.max(T,F.getOriginalEnd()),P=Math.max(P,F.getModifiedEnd())}S=[new qs(T,u-T+1,P,_-P+1)]}else{k=new xC,x=r,L=a,y=f[0]-b[0]-l,I=1073741824,R=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const T=y+o;T===x||T=h[T+1]?(d=h[T+1]-1,m=d-y-l,d>I&&k.MarkNextChange(),I=d+1,k.AddOriginalElement(d+1,m+1),y=T+1-o):(d=h[T-1],m=d-y-l,d>I&&k.MarkNextChange(),I=d,k.AddModifiedElement(d+1,m+1),y=T-1-o),R>=0&&(h=this.m_reverseHistory[R],o=h[0],x=1,L=h.length-1)}while(--R>=-1);S=k.getChanges()}return this.ConcatenateChanges(v,S)}ComputeRecursionPoint(e,t,i,n,o,r,a){let l=0,c=0,h=0,d=0,u=0,f=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),_=m+1,b=new Int32Array(_),w=new Int32Array(_),C=n-i,v=t-e,S=e-i,k=t-n,L=(v-C)%2===0;b[C]=e,w[v]=t,a[0]=!1;for(let y=1;y<=m/2+1;y++){let I=0,R=0;h=this.ClipDiagonalBound(C-y,y,C,_),d=this.ClipDiagonalBound(C+y,y,C,_);for(let P=h;P<=d;P+=2){P===h||PI+R&&(I=l,R=c),!L&&Math.abs(P-v)<=y-1&&l>=w[P])return o[0]=l,r[0]=c,F<=w[P]&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):null}const T=(I-e+(R-i)-y)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(I,T))return a[0]=!0,o[0]=I,r[0]=R,T>0&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):(e++,i++,[new qs(e,t-e+1,i,n-i+1)]);u=this.ClipDiagonalBound(v-y,y,v,_),f=this.ClipDiagonalBound(v+y,y,v,_);for(let P=u;P<=f;P+=2){P===u||P=w[P+1]?l=w[P+1]-1:l=w[P-1],c=l-(P-v)-k;const F=l;for(;l>e&&c>i&&this.ElementsAreEqual(l,c);)l--,c--;if(w[P]=l,L&&Math.abs(P-C)<=y&&l<=b[P])return o[0]=l,r[0]=c,F>=b[P]&&1447>0&&y<=1447+1?this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a):null}if(y<=1447){let P=new Int32Array(d-h+2);P[0]=C-h+1,qr.Copy2(b,h,P,1,d-h+1),this.m_forwardHistory.push(P),P=new Int32Array(f-u+2),P[0]=v-u+1,qr.Copy2(w,u,P,1,f-u+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(C,h,d,S,v,u,f,k,b,w,l,t,o,c,n,r,L,a)}PrettifyChanges(e){for(let t=0;t0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const d=e[t-1];n=d.originalStart+d.originalLength,o=d.modifiedStart+d.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const u=i.originalStart-d,f=i.modifiedStart-d;if(uc&&(c=_,l=d)}i.originalStart-=l,i.modifiedStart-=l;const h=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],h)){e[t-1]=h[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&f>l&&(l=f,c=d,h=u)}return l>0?[c,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+r}ConcatenateChanges(e,t){let i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return qr.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],qr.Copy(t,1,n,e.length,t.length-1),n}else{const n=new Array(e.length+t.length);return qr.Copy(e,0,n,0,e.length),qr.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,i){if(Kr.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Kr.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new qs(n,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const f=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),m=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let _=Ky(f,m,o,!0).changes;a&&(_=hN(_)),u=[];for(let b=0,w=_.length;b1&&_>1;){const b=u.charCodeAt(m-2),w=f.charCodeAt(_-2);if(b!==w)break;m--,_--}(m>1||_>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,m,r+1,1,_)}{let m=Xp(u,1),_=Xp(f,1);const b=u.length+1,w=f.length+1;for(;m!0;const e=Date.now();return()=>Date.now()-e255?255:s|0}function Gr(s){return s<0?0:s>4294967295?4294967295:s|0}class uN{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Gr(e);const i=this.values,n=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Gr(e),t=Gr(t),this.values[e]===t?!1:(this.values[e]=t,e-1=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Gr(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],r=o-this.values[n],e=o)t=n+1;else break;return new qy(n,e-r)}}class fN{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new qy(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=pf(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=n+i;for(let o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class mN{constructor(e,t,i){const n=new Uint8Array(e*t);for(let o=0,r=e*t;ot&&(t=l),a>i&&(i=a),c>i&&(i=c)}t++,i++;const n=new mN(i,t,0);for(let o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)}}let Og=null;function _N(){return Og===null&&(Og=new pN([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Og}let Rl=null;function bN(){if(Rl===null){Rl=new Sh(0);const s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let t=0;tn);if(n>0){const a=t.charCodeAt(n-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=_N()){const i=bN(),n=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let c=0,h=0,d=0,u=1,f=!1,m=!1,_=!1,b=!1;for(;c=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}Qp.INSTANCE=new Qp;class wN extends Sh{constructor(e){super(0);for(let t=0,i=e.length;t(e.hasOwnProperty(t)||(e[t]=s(t)),e[t])}const Ka=vN(s=>new wN(s)),SN=999;class Bo{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=yN(this.searchString):e=this.searchString.indexOf(` +`)>=0;let t=null;try{t=Sy(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new fD(t,this.wordSeparators?Ka(this.wordSeparators):null,i?this.searchString:null)}}function yN(s){if(!s||s.length===0)return!1;for(let e=0,t=s.length;e=t)break;const n=s.charCodeAt(e);if(n===110||n===114||n===87)return!0}return!1}function Uo(s,e,t){if(!t)return new Nc(s,null);const i=[];for(let n=0,o=e.length;n>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class Uh{static findMatches(e,t,i,n,o){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new ca(r.wordSeparators,r.regex),n,o):this._doFindMatchesLineByLine(e,i,r,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,r){let a,l=0;n?(l=n.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o;let c;if(n){const f=n.findLineFeedCountBeforeOffset(o+r.length)-l;c=a+r.length+f}else c=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new D(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,n,o){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r `?new DC(a):null,c=[];let h=0,d;for(i.reset(0);d=i.next(a);)if(c[h++]=Uo(this._getMultilineMatchRange(e,r,a,l,d.index,d[0]),d,n),h>=o)return c;return c}static _doFindMatchesLineByLine(e,t,i,n,o){const r=[];let a=0;if(t.startLineNumber===t.endLineNumber){const c=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(i,c,t.startLineNumber,t.startColumn-1,a,r,n,o),r}const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(i,l,t.startLineNumber,t.startColumn-1,a,r,n,o);for(let c=t.startLineNumber+1;c=l))return o;return o}const h=new ca(e.wordSeparators,e.regex);let d;h.reset(0);do if(d=h.next(t),d&&(r[o++]=Uo(new D(i,d.index+1+n,i,d.index+1+d[0].length+n),d,a),o>=l))return o;while(d);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const r=new ca(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,r,n):this._doFindNextMatchLineByLine(e,i,r,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new A(t.lineNumber,1),r=e.getOffsetAt(o),a=e.getLineCount(),l=e.getValueInRange(new D(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),c=e.getEOL()===`\r -`?new DC(l):null;i.reset(t.column-1);let h=i.next(l);return h?Uo(this._getMultilineMatchRange(e,r,l,c,h.index,h[0]),h,n):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new A(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),l=this._findFirstMatchInLine(i,a,r,t.column,n);if(l)return l;for(let c=1;c<=o;c++){const h=(r+c-1)%o,d=e.getLineContent(h+1),u=this._findFirstMatchInLine(i,d,h+1,1,n);if(u)return u}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const r=e.next(t);return r?Uo(new D(i,r.index+1,i,r.index+1+r[0].length),r,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const r=new ca(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,n):this._doFindPreviousMatchLineByLine(e,i,r,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new D(1,1,t.lineNumber,t.column),i,n,10*yN);if(o.length>0)return o[o.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new A(r,e.getLineMaxColumn(r)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,n);if(l)return l;for(let c=1;c<=o;c++){const h=(o+r-c-1)%o,d=e.getLineContent(h+1),u=this._findLastMatchInLine(i,d,h+1,n);if(u)return u}return null}static _findLastMatchInLine(e,t,i,n){let o=null,r;for(e.reset(0);r=e.next(t);)o=Uo(new D(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function kN(s,e,t,i,n){if(i===0)return!0;const o=e.charCodeAt(i-1);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i);if(s.get(r)!==0)return!0}return!1}function xN(s,e,t,i,n){if(i+n===t)return!0;const o=e.charCodeAt(i+n);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i+n-1);if(s.get(r)!==0)return!0}return!1}function p0(s,e,t,i,n){return kN(s,e,t,i,n)&&xN(s,e,t,i,n)}class ca{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const n=i.index,o=i[0].length;if(n===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){hu(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=o,!this._wordSeparators||p0(this._wordSeparators,e,t,n,o))return i}while(i);return null}}class IN{static computeUnicodeHighlights(e,t,i){const n=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),r=new NC(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${EN(Array.from(a))}`,"g");const c=new ca(null,l),h=[];let d=!1,u,f=0,m=0,_=0;e:for(let b=n,w=o;b<=w;b++){const C=e.getLineContent(b),v=C.length;c.reset(0);do if(u=c.next(C),u){let S=u.index,k=u.index+u[0].length;if(S>0){const I=C.charCodeAt(S-1);gt(I)&&S--}if(k+1=I){d=!0;break e}h.push(new D(b,S+1,b,k+1))}}while(u)}return{ranges:h,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const i=new NC(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(o),a=sn.getLocales().filter(l=>!sn.getInstance(new Set([...t.allowedLocales,l])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function EN(s,e){return`[${Qn(s.map(i=>String.fromCodePoint(i)).join(""))}]`}class NC{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=sn.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ho.codePoints)TC(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(let r of t){const a=r.codePointAt(0),l=o0(r);n=n||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!ho.isInvisibleCharacter(a)&&(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!TC(e)&&ho.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function TC(s){return s===" "||s===` -`||s===" "}var Ao=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class DN extends mN{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=Ic(e.column,ey(t),this._lines[e.lineNumber-1],0);return i?new D(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,o="",r=0,a=[];return{*[Symbol.iterator](){for(;;)if(rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const o=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>o&&(i=o,n=!0)}return n?{lineNumber:t,column:i}:e}}class wr{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new DN(we.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){!this._models[e]||delete this._models[e]}computeUnicodeHighlights(e,t,i){return Ao(this,void 0,void 0,function*(){const n=this._getModel(e);return n?IN.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=this._getModel(e),r=this._getModel(t);if(!o||!r)return null;const a=o.getLinesContent(),l=r.getLinesContent(),h=new uN(a,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:n}).computeDiff(),d=h.changes.length>0?!1:this._modelsAreIdentical(o,r);return{quitEarly:h.quitEarly,identical:d,changes:h.changes}})}_modelsAreIdentical(e,t){const i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let o=1;o<=i;o++){const r=e.getLineContent(o),a=t.getLineContent(o);if(r!==a)return!1}return!0}computeMoreMinimalEdits(e,t){return Ao(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return t;const n=[];let o;t=t.slice(0).sort((r,a)=>{if(r.range&&a.range)return D.compareRangesUsingStarts(r.range,a.range);const l=r.range?0:1,c=a.range?0:1;return l-c});for(let{range:r,text:a,eol:l}of t){if(typeof l=="number"&&(o=l),D.isEmpty(r)&&!a)continue;const c=i.getValueInRange(r);if(a=a.replace(/\r\n|\n|\r/g,i.eol),c===a)continue;if(Math.max(a.length,c.length)>wr._diffLimit){n.push({range:r,text:a});continue}const h=lN(c,a,!1),d=i.offsetAt(D.lift(r).getStartPosition());for(const u of h){const f=i.positionAt(d+u.originalStart),m=i.positionAt(d+u.originalStart+u.originalLength),_={text:a.substr(u.modifiedStart,u.modifiedLength),range:{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:m.lineNumber,endColumn:m.column}};i.getValueInRange(_.range)!==_.text&&n.push(_)}}return typeof o=="number"&&n.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n})}computeLinks(e){return Ao(this,void 0,void 0,function*(){const t=this._getModel(e);return t?wN(t):null})}textualSuggest(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=new Rr(!0),r=new RegExp(i,n),a=new Set;e:for(let l of e){const c=this._getModel(l);if(!!c){for(let h of c.words(r))if(!(h===t||!isNaN(Number(h)))&&(a.add(h),a.size>wr._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}})}computeWordRanges(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const r=new RegExp(i,n),a=Object.create(null);for(let l=t.startLineNumber;lthis._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(j1(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}wr._diffLimit=1e5;wr._suggestionsLimit=1e4;typeof importScripts=="function"&&(Ge.monaco=by());const Gy=pe("textResourceConfigurationService"),Zy=pe("textResourcePropertiesService"),Do=pe("logService");var wn;(function(s){s[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Info=2]="Info",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",s[s.Off=6]="Off"})(wn||(wn={}));const Yy=wn.Info;class NN extends W{constructor(){super(...arguments),this.level=Yy,this._onDidChangeLogLevel=this._register(new M)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class TN extends NN{constructor(e=Yy){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=wn.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=wn.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=wn.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=wn.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}class MN extends W{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}const be=pe("ILanguageFeaturesService");var RN=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Al=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Jp=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const MC=60*1e3,RC=5*60*1e3;function $o(s,e){const t=s.getModel(e);return!(!t||t.isTooLargeForSyncing())}let e_=class extends W{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new ON(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(r,a)=>$o(this._modelService,r.uri)?this._workerManager.withWorker().then(l=>l.computeLinks(r.uri)).then(l=>l&&{links:l}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new AN(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return $o(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return this._workerManager.withWorker().then(o=>o.computeDiff(e,t,i,n))}computeMoreMinimalEdits(e,t){if($1(t)){if(!$o(this._modelService,e))return Promise.resolve(t);const i=Rr.create(!0),n=this._workerManager.withWorker().then(o=>o.computeMoreMinimalEdits(e,t));return n.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([n,Mc(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return $o(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return $o(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};e_=RN([Al(0,At),Al(1,Gy),Al(2,Do),Al(3,Eo),Al(4,be)],e_);class AN{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return Jp(this,void 0,void 0,function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const n=[];if(i.wordBasedSuggestionsMode==="currentDocument")$o(this._modelService,e.uri)&&n.push(e.uri);else for(const d of this._modelService.getModels())!$o(this._modelService,d.uri)||(d===e?n.unshift(d.uri):(i.wordBasedSuggestionsMode==="allDocuments"||d.getLanguageId()===e.getLanguageId())&&n.push(d.uri));if(n.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),a=r?new D(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):D.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),h=yield(yield this._workerManager.withWorker()).textualSuggest(n,r==null?void 0:r.word,o);if(!!h)return{duration:h.duration,suggestions:h.words.map(d=>({kind:18,label:d,insertText:d,range:{insert:l,replace:a}}))}})}}class ON extends W{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new vh).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(RC/2)),this._register(this._modelService.onModelRemoved(n=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>RC&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Xy(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class PN extends W{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const n=new vh;n.cancelAndSet(()=>this._checkStopModelSync(),Math.round(MC/2)),this._register(n)}}dispose(){for(let e in this._syncedModels)Me(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const n=i.toString();this._syncedModels[n]||this._beginModelSync(i,t),this._syncedModels[n]&&(this._syncedModelsLastUsedTime[n]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>MC&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new se;o.add(i.onDidChangeContent(r=>{this._proxy.acceptModelChanged(n.toString(),r)})),o.add(i.onWillDispose(()=>{this._stopModelSync(n)})),o.add(Pe(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Me(t)}}class AC{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Pg{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Xy extends W{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new xf(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new JD(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Pg(this)))}catch(e){Zp(e),this._worker=new AC(new wr(new Pg(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Zp(e),this._worker=new AC(new wr(new Pg(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new PN(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return Jp(this,void 0,void 0,function*(){return this._disposed?Promise.reject(nE()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(o=>o.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return Jp(this,void 0,void 0,function*(){const n=yield this._withSyncedResources(e),o=i.source,r=Lg(i);return n.textualSuggest(e.map(a=>a.toString()),t,o,r)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=o.source,a=Lg(o);return i.computeWordRanges(e.toString(),t,r,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{const o=this._modelService.getModel(e);if(!o)return null;const r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),a=r.source,l=Lg(r);return n.navigateValueSet(e.toString(),t,i,a,l)})}dispose(){super.dispose(),this._disposed=!0}}function FN(s,e,t){return new BN(s,e,t)}class BN extends Xy{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?j1(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const n=(a,l)=>e.fmr(a,l),o=(a,l)=>function(){const c=Array.prototype.slice.call(arguments,0);return l(a,c)},r={};for(const a of i)r[a]=o(a,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class vt{constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}static createEmpty(e,t){const i=vt.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new vt(n,e,t)}equals(e){return e instanceof vt?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let r=n;r0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=pi.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return pi.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return pi.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return pi.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return pi.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return pi.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return vt.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new _0(this,e,t,i)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let o=0;o>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,n="";const o=new Array;let r=0;for(;;){const a=tr){n+=this._text.substring(r,l.offset);const c=this._tokens[(t<<1)+1];o.push(n.length,c),r=l.offset}n+=l.text,o.push(n.length,l.tokenMetadata),i++}else break}return new vt(new Uint32Array(o),n,this._languageIdCodec)}}vt.defaultTokenMetadata=(0<<10|1<<14|2<<23)>>>0;class _0{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,r=e.getCount();o=i);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof _0?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class Qi{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length,n=t.length;if(i!==n)return!1;for(let o=0;o=o||(a[l++]=new Qi(Math.max(1,c.startColumn-n+1),Math.min(r+1,c.endColumn-n+1),c.className,c.type));return a}static filter(e,t,i,n){if(e.length===0)return[];const o=[];let r=0;for(let a=0,l=e.length;at||h.isEmpty()&&(c.type===0||c.type===3))continue;const d=h.startLineNumber===t?h.startColumn:i,u=h.endLineNumber===t?h.endColumn:n;o[r++]=new Qi(d,u,c.inlineClassName,c.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=Qi._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class VN{static normalize(e,t){if(t.length===0)return[];const i=[],n=new Cu;let o=0;for(let r=0,a=t.length;r1){const _=e.charCodeAt(c-2);gt(_)&&c--}if(h>1){const _=e.charCodeAt(h-2);gt(_)&&h--}const f=c-1,m=h-2;o=n.consumeLowerThan(f,o,i),n.count===0&&(o=f),n.insert(m,d,u)}return n.consumeLowerThan(1073741824,o,i),i}}class mt{constructor(e,t,i){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=i}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class WN{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class Cl{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(Qi.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=_,this.renderWhitespace=b==="all"?4:b==="boundary"?1:b==="selection"?2:b==="trailing"?3:0,this.renderControlCharacters=w,this.fontLigatures=C,this.selectionsOnLine=v&&v.sort((x,L)=>x.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}setColumnInfo(e,t,i,n){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._absoluteOffsets[e-1]=n+i}getAbsoluteOffset(e){return this._absoluteOffsets.length===0?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=Hn.getPartIndex(t),n=Hn.getCharIndex(t);return new b0(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const n=(e<<16|i<<0)>>>0;let o=0,r=this.length-1;for(;o+1>>1,b=this._data[_];if(b===n)return _;b>n?r=_:o=_}if(o===r)return o;const a=this._data[o],l=this._data[r];if(a===n)return o;if(l===n)return r;const c=Hn.getPartIndex(a),h=Hn.getCharIndex(a),d=Hn.getPartIndex(l);let u;c!==d?u=t:u=Hn.getCharIndex(l);const f=i-h,m=u-i;return f<=m?o:r}}class t_{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function C0(s,e){if(s.lineContent.length===0){if(s.lineDecorations.length>0){e.appendASCIIString("");let t=0,i=0,n=0;for(const r of s.lineDecorations)(r.type===1||r.type===2)&&(e.appendASCIIString(''),r.type===1&&(n|=1,t++),r.type===2&&(n|=2,i++));e.appendASCIIString("");const o=new Hn(1,t+i);return o.setColumnInfo(1,t,0,0),new t_(o,!1,n)}return e.appendASCIIString(""),new t_(new Hn(0,0),!1,0)}return ZN(UN(s),e)}class HN{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function Ef(s){const e=ja(1e4),t=C0(s,e);return new HN(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class zN{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=f,this.renderWhitespace=m,this.renderControlCharacters=_}}function UN(s){const e=s.lineContent;let t,i;s.stopRenderingLineAfter!==-1&&s.stopRenderingLineAfter0){for(let r=0,a=s.lineDecorations.length;r0&&(i[n++]=new mt(e,"",0));for(let o=0,r=s.getCount();o=t){i[n++]=new mt(t,l,0);break}i[n++]=new mt(a,l,0)}return i}function jN(s,e,t){let i=0;const n=[];let o=0;if(t)for(let r=0,a=e.length;r=50&&(n[o++]=new mt(u+1,h,d),f=u+1,u=-1);f!==c&&(n[o++]=new mt(c,h,d))}else n[o++]=l;i=c}else for(let r=0,a=e.length;r50){const d=l.type,u=l.metadata,f=Math.ceil(h/50);for(let m=1;m=8234&&s<=8238||s>=8294&&s<=8297||s>=8206&&s<=8207||s===1564}function KN(s,e){const t=[];let i=new mt(0,"",0),n=0;for(const o of e){const r=o.endIndex;for(;ni.endIndex&&(i=new mt(n,o.type,o.metadata),t.push(i)),i=new mt(n+1,"mtkcontrol",o.metadata),t.push(i))}n>i.endIndex&&(i=new mt(r,o.type,o.metadata),t.push(i))}return t}function qN(s,e,t,i){const n=s.continuesWithWrappedLine,o=s.fauxIndentLength,r=s.tabSize,a=s.startVisibleColumn,l=s.useMonospaceOptimizations,c=s.selectionsOnLine,h=s.renderWhitespace===1,d=s.renderWhitespace===3,u=s.renderSpaceWidth!==s.spaceWidth,f=[];let m=0,_=0,b=i[_].type,w=i[_].endIndex;const C=i.length;let v=!1,S=Ci(e),k;S===-1?(v=!0,S=t,k=t):k=pl(e);let x=!1,L=0,y=c&&c[L],I=a%r;for(let T=o;T=y.endOffset&&(L++,y=c&&c[L]);let F;if(Tk)F=!0;else if(P===9)F=!0;else if(P===32)if(h)if(x)F=!0;else{const j=T+1T),F&&d&&(F=v||T>k),x){if(!F||!l&&I>=r){if(u){const j=m>0?f[m-1].endIndex:o;for(let z=j+1;z<=T;z++)f[m++]=new mt(z,"mtkw",1)}else f[m++]=new mt(T,"mtkw",1);I=I%r}}else(T===w||F&&T>o)&&(f[m++]=new mt(T,b,0),I=I%r);for(P===9?I=r:vo(P)?I+=2:I++,x=F;T===w&&(_++,_0?e.charCodeAt(t-1):0,P=t>1?e.charCodeAt(t-2):0;T===32&&P!==32&&P!==9||(R=!0)}else R=!0;if(R)if(u){const T=m>0?f[m-1].endIndex:o;for(let P=T+1;P<=t;P++)f[m++]=new mt(P,"mtkw",1)}else f[m++]=new mt(t,"mtkw",1);else f[m++]=new mt(t,b,0);return f}function GN(s,e,t,i){i.sort(Qi.compare);const n=VN.normalize(s,i),o=n.length;let r=0;const a=[];let l=0,c=0;for(let d=0,u=t.length;dc&&(c=w.startOffset,a[l++]=new mt(c,_,b)),w.endOffset+1<=m)c=w.endOffset+1,a[l++]=new mt(c,_+" "+w.className,b|w.metadata),r++;else{c=m,a[l++]=new mt(c,_+" "+w.className,b|w.metadata);break}}m>c&&(c=m,a[l++]=new mt(c,_,b))}const h=t[t.length-1].endIndex;if(r'):e.appendASCIIString("");for(let I=0,R=l.length;I=c&&(ae+=Xe)}}for(z&&(e.appendASCIIString(' style="width:'),e.appendASCIIString(String(f*ie)),e.appendASCIIString('px"')),e.appendASCII(62);v1?e.write1(8594):e.write1(65515);for(let nt=2;nt<=ae;nt++)e.write1(160)}else ae=1,e.write1(m);k+=ae,v>=c&&(S+=ae)}L=ie}else{let ie=0;for(e.appendASCII(62);v=c&&(S+=nt)}L=ie}Q?x++:x=0,v>=r&&!C&&T.isPseudoAfter()&&(C=!0,w.setColumnInfo(v+1,I,k,y)),e.appendASCIIString("")}return C||w.setColumnInfo(r+1,l.length-1,k,y),a&&e.appendASCIIString(""),e.appendASCIIString(""),new t_(w,u,n)}function YN(s){return s.toString(16).toUpperCase().padStart(4,"0")}class PC{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=n|0}}class XN{constructor(e,t){this.tabSize=e,this.data=t}}class w0{constructor(e,t,i,n,o,r,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=r,this.inlineDecorations=a}}class vi{constructor(e,t,i,n,o,r,a,l,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=vi.isBasicASCII(i,r),this.containsRTL=vi.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return t?o0(e):!0}static containsRTL(e,t,i){return!t&&i?s0(e):!1}}class ic{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class QN{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new ic(new D(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class Jy{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class eL{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function JN(s){return Array.isArray(s)}function e4(s){return!JN(s)}function tL(s){return typeof s=="string"}function FC(s){return!tL(s)}function ta(s){return!s}function fo(s,e){return s.ignoreCase&&e?e.toLowerCase():e}function BC(s){return s.replace(/[&<>'"_]/g,"-")}function t4(s,e){console.log(`${s.languageId}: ${e}`)}function ke(s,e){return new Error(`${s.languageId}: ${e}`)}function Js(s,e,t,i,n){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return e.replace(o,function(a,l,c,h,d,u,f,m,_){return ta(c)?ta(h)?!ta(d)&&d0;){const i=s.tokenizer[t];if(i)return i;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return null}function i4(s,e){let t=e;for(;t&&t.length>0;){if(s.stateNames[t])return!0;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return!1}const iL=5;class Ac{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new La(e,t);let i=La.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new La(e,t),this._entries[i]=n,n)}}Ac._INSTANCE=new Ac(iL);class La{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return La._equals(this,e)}push(e){return Ac.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Ac.create(this.parent,e)}}class ha{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new ha(this.languageId,this.state)}}class eo{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(t!==null)return new nc(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new nc(e,t);const i=La.getStackElementId(e);let n=this._entries[i];return n||(n=new nc(e,null),this._entries[i]=n,n)}}eo._INSTANCE=new eo(iL);class nc{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:eo.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof nc)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class n4{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Ec(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,r=i.state,a=et.get(o);if(!a)return this.enterLanguage(o),this.emit(n,""),r;const l=a.tokenize(e,t,r);if(n!==0)for(const c of l.tokens)this._tokens.push(new Ec(c.offset+n,c.type,c.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new Q1(this._tokens,e)}}class wu{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=e!==null?e.length:0,o=t.length,r=i!==null?i.length:0;if(n===0&&o===0&&r===0)return new Uint32Array(0);if(n===0&&o===0)return i;if(o===0&&r===0)return e;const a=new Uint32Array(n+o+r);e!==null&&a.set(e);for(let l=0;l{if(o)return;let a=!1;for(let l=0,c=r.changedLanguages.length;l{})}}getInitialState(){const e=Ac.create(null,this._lexer.start);return eo.create(e,null)}tokenize(e,t,i){const n=new n4,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){const n=new wu(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=$h(this._lexer,t.stack.state),!i))throw ke(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const r of i){if(!FC(r.action)||r.action.nextEmbedded!=="@pop")continue;o=!0;let a=r.regex;const l=r.regex.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const h=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),h)}const c=e.search(a);c===-1||c!==0&&r.matchOnlyAtLineStart||(n===-1||c0&&o.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,n);const l=e.substring(r);return this._myTokenize(l,t,i,n+r,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const r=e.length,a=t&&this._lexer.includeLF?e+` -`:e,l=a.length;let c=i.embeddedLanguageData,h=i.stack,d=0,u=null,f=!0;for(;f||d=l)break;f=!1;let I=this._lexer.tokenizer[w];if(!I&&(I=$h(this._lexer,w),!I))throw ke(this._lexer,"tokenizer state is not defined: "+w);let R=a.substr(d);for(const T of I)if((d===0||!T.matchOnlyAtLineStart)&&(C=R.match(T.regex),C)){v=C[0],S=T.action;break}}if(C||(C=[""],v=""),S||(d=this._lexer.maxStack)throw ke(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(w)}else if(S.next==="@pop"){if(h.depth<=1)throw ke(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(k));h=h.pop()}else if(S.next==="@popall")h=h.popall();else{let I=Js(this._lexer,S.next,v,C,w);if(I[0]==="@"&&(I=I.substr(1)),$h(this._lexer,I))h=h.push(I);else throw ke(this._lexer,"trying to set a next state '"+I+"' that is undefined in rule: "+this._safeRuleName(k))}}S.log&&typeof S.log=="string"&&t4(this._lexer,this._lexer.languageId+": "+Js(this._lexer,S.log,v,C,w))}if(L===null)throw ke(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(k));const y=I=>{const R=this._languageService.getLanguageIdByLanguageName(I)||this._languageService.getLanguageIdByMimeType(I)||I,T=this._getNestedEmbeddedLanguageData(R);if(d0)throw ke(this._lexer,"groups cannot be nested: "+this._safeRuleName(k));if(C.length!==L.length+1)throw ke(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(k));let I=0;for(let R=1;Rs});class v0{static colorizeElement(e,t,i,n){n=n||{};const o=n.theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(r)||r;e.setTheme(o);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const c=h=>{var d;const u=(d=Bg==null?void 0:Bg.createHTML(h))!==null&&d!==void 0?d:h;i.innerHTML=u};return this.colorize(t,l||"",a,n).then(c,h=>console.error(h))}static colorize(e,t,i,n){return o4(this,void 0,void 0,function*(){const o=e.languageIdCodec;let r=4;n&&typeof n.tabSize=="number"&&(r=n.tabSize),a0(t)&&(t=t.substr(1));const a=Ch(t);if(!e.isRegisteredLanguageId(i))return VC(a,r,o);const l=yield et.getOrCreate(i);return l?r4(a,r,l,o):VC(a,r,o)})}static colorizeLine(e,t,i,n,o=4){const r=vi.isBasicASCII(e,t),a=vi.containsRTL(e,r,i);return Ef(new Cl(!1,!0,e,!1,r,a,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.forceTokenization(t);const r=e.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,i)}}function r4(s,e,t,i){return new Promise((n,o)=>{const r=()=>{const a=a4(s,e,t,i);if(t instanceof yh){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(r,o);return}}n(a)};r()})}function VC(s,e,t){let i=[];const o=new Uint32Array(2);o[0]=0,o[1]=16793600;for(let r=0,a=s.length;r")}return i.join("")}function a4(s,e,t,i){let n=[],o=t.getInitialState();for(let r=0,a=s.length;r"),o=c.endState}return n.join("")}const nL={clipboard:{writeText:va||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:va||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>va||Dy?0:navigator.keyboard||Jn?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function i_(s,e){if(s===0)return null;const t=(s&65535)>>>0,i=(s&4294901760)>>>16;return i!==0?new vu([Vg(t,e),Vg(i,e)]):new vu([Vg(t,e)])}function Vg(s,e){const t=!!(s&2048),i=!!(s&256),n=e===2?i:t,o=!!(s&1024),r=!!(s&512),a=e===2?t:i,l=s&255;return new Oc(n,o,r,a,l)}class Oc{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new vu([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class vu{constructor(e){if(e.length===0)throw q1("parts");this.parts=e}}class l4{constructor(e,t,i,n,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=r}}class c4{}function h4(s){if(s.charCode){let t=String.fromCharCode(s.charCode).toUpperCase();return Jo.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(Oi){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(me&&e===224)return 57}else if(uo){if(e===91)return 57;if(me&&e===93)return 57;if(!me&&e===92)return 57}return hy[e]||0}const d4=me?256:2048,u4=512,f4=1024,g4=me?2048:256;class He{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=h4(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=d4),this.altKey&&(t|=u4),this.shiftKey&&(t|=f4),this.metaKey&&(t|=g4),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Oc(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let n_=!1,Zr=null;function m4(s){if(!s.parent||s.parent===s)return null;try{let e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return n_=!0,null}catch{return n_=!0,null}return s.parent}class s_{static getSameOriginWindowChain(){if(!Zr){Zr=[];let e=window,t;do t=m4(e),t?Zr.push({window:e,iframeElement:e.frameElement||null}):Zr.push({window:e,iframeElement:null}),e=t;while(e)}return Zr.slice(0)}static hasDifferentOriginAncestor(){return Zr||this.getSameOriginWindowChain(),n_}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,o=this.getSameOriginWindowChain();for(const r of o){if(i+=r.window.scrollY,n+=r.window.scrollX,r.window===t||!r.iframeElement)break;let a=r.iframeElement.getBoundingClientRect();i+=a.top,n+=a.left}return{top:i,left:n}}}class Ji{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=s_.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class qa{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let n=e,o=e;if(typeof n.wheelDeltaY!="undefined")this.deltaY=n.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS!="undefined"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Oi&&!me?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof n.wheelDeltaX!="undefined")Jn&&li?this.deltaX=-(n.wheelDeltaX/120):this.deltaX=n.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS!="undefined"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Oi&&!me?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}var Ce;(function(s){s.inMemory="inmemory",s.vscode="vscode",s.internal="private",s.walkThrough="walkThrough",s.walkThroughSnippet="walkThroughSnippet",s.http="http",s.https="https",s.file="file",s.mailto="mailto",s.untitled="untitled",s.data="data",s.command="command",s.vscodeRemote="vscode-remote",s.vscodeRemoteResource="vscode-remote-resource",s.userData="vscode-userdata",s.vscodeCustomEditor="vscode-custom-editor",s.vscodeNotebook="vscode-notebook",s.vscodeNotebookCell="vscode-notebook-cell",s.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeInteractive="vscode-interactive",s.vscodeInteractiveInput="vscode-interactive-input",s.vscodeSettings="vscode-settings",s.vscodeWorkspaceTrust="vscode-workspace-trust",s.vscodeTerminal="vscode-terminal",s.webviewPanel="webview-panel",s.vscodeWebview="vscode-webview",s.extension="extension",s.vscodeFileResource="vscode-file",s.tmp="tmp",s.vsls="vsls"})(Ce||(Ce={}));const p4="tkn";class _4{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${p4}=${encodeURIComponent(o)}`),we.from({scheme:fl?this._preferredWebSchema:Ce.vscodeRemoteResource,authority:`${i}:${n}`,path:"/vscode-remote-resource",query:r})}}const sL=new _4;class Pc{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===Ce.vscodeRemote?sL.rewrite(i):i.scheme===Ce.file&&(va||Zx&&Ge.origin===`${Ce.vscodeFileResource}://${Pc.FALLBACK_AUTHORITY}`)?i.with({scheme:Ce.vscodeFileResource,authority:i.authority||Pc.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return we.isUri(e)?e:we.parse(t.toUrl(e))}}Pc.FALLBACK_AUTHORITY="vscode-app";const b4=new Pc;function Pi(s){for(;s.firstChild;)s.firstChild.remove()}function S0(s){var e;return(e=s==null?void 0:s.isConnected)!==null&&e!==void 0?e:!1}class oL{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){!this._handler||(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function V(s,e,t,i){return new oL(s,e,t,i)}function C4(s){return function(e){return s(new Ji(e))}}function w4(s){return function(e){return s(new He(e))}}let wi=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"?o=C4(i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=w4(i)),V(e,t,o,n)};function y0(s,e){return V(s,"mouseout",t=>{let i=t.relatedTarget;for(;i&&i!==s;)i=i.parentNode;i!==s&&e(t)})}function v4(s,e){return V(s,"pointerout",t=>{let i=t.relatedTarget;for(;i&&i!==s;)i=i.parentNode;i!==s&&e(t)})}function hn(s,e,t){let i=null;const n=l=>a.fire(l),o=()=>{i||(i=new oL(s,e,n,t))},r=()=>{i&&(i.dispose(),i=null)},a=new M({onFirstListenerAdd:o,onLastListenerRemove:r});return a}let Wg=null;function S4(s){if(!Wg){const e=t=>setTimeout(()=>t(new Date().getTime()),0);Wg=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return Wg.call(self,s)}let rL,kn;class Hg{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Ze(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let s=[],e=null,t=!1,i=!1,n=()=>{for(t=!1,e=s,s=[],i=!0;e.length>0;)e.sort(Hg.sort),e.shift().execute();i=!1};kn=(o,r=0)=>{let a=new Hg(o,r);return s.push(a),t||(t=!0,S4(n)),a},rL=(o,r)=>{if(i){let a=new Hg(o,r);return e.push(a),a}else return kn(o,r)}})();const y4=8,L4=function(s,e){return e};class k4 extends W{constructor(e,t,i,n=L4,o=y4){super();let r=null,a=0,l=this._register(new os),c=()=>{a=new Date().getTime(),i(r),r=null};this._register(V(e,t,h=>{r=n(r,h);let d=new Date().getTime()-a;d>=o?(l.cancel(),c()):l.setIfNotSet(c,o-d)}))}}function L0(s,e,t,i,n){return new k4(s,e,t,i,n)}function k0(s){return document.defaultView.getComputedStyle(s,null)}function aL(s){if(s!==document.body)return new Ei(s.clientWidth,s.clientHeight);if(pr&&window.visualViewport)return new Ei(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new Ei(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ei(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ei(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class We{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=k0(e),o="0";return n&&(n.getPropertyValue?o=n.getPropertyValue(t):o=n.getAttribute(i)),We.convertToPixels(e,o)}static getBorderLeftWidth(e){return We.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return We.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return We.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return We.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return We.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return We.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return We.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return We.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return We.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return We.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return We.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return We.getDimension(e,"margin-bottom","marginBottom")}}class Ei{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Ei(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof Ei?e:new Ei(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}Ei.None=new Ei(0,0);function lL(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==document.body&&s!==document.documentElement;){t-=s.scrollTop;const n=hL(s)?null:k0(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=We.getBorderLeftWidth(s),t+=We.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function en(s){let e=s.getBoundingClientRect();return{left:e.left+Ms.scrollX,top:e.top+Ms.scrollY,width:e.width,height:e.height}}const Ms=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function ji(s){let e=We.getMarginLeft(s)+We.getMarginRight(s);return s.offsetWidth+e}function zg(s){let e=We.getBorderLeftWidth(s)+We.getBorderRightWidth(s),t=We.getPaddingLeft(s)+We.getPaddingRight(s);return s.offsetWidth-e-t}function x4(s){let e=We.getBorderTopWidth(s)+We.getBorderBottomWidth(s),t=We.getPaddingTop(s)+We.getPaddingBottom(s);return s.offsetHeight-e-t}function o_(s){let e=We.getMarginTop(s)+We.getMarginBottom(s);return s.offsetHeight+e}function Rs(s,e){for(;s;){if(s===e)return!0;s=s.parentNode}return!1}function cL(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function WC(s,e,t){return!!cL(s,e,t)}function hL(s){return s&&!!s.host&&!!s.mode}function r_(s){return!!vr(s)}function vr(s){for(;s.parentNode;){if(s===document.body)return null;s=s.parentNode}return hL(s)?s:null}function ka(){let s=document.activeElement;for(;s!=null&&s.shadowRoot;)s=s.shadowRoot.activeElement;return s}function xn(s=document.getElementsByTagName("head")[0]){let e=document.createElement("style");return e.type="text/css",e.media="screen",s.appendChild(e),e}let Ug=null;function I4(){return Ug||(Ug=xn()),Ug}function HC(s,e,t=I4()){!t||!e||t.sheet.insertRule(s+"{"+e+"}",0)}function dL(s){return typeof HTMLElement=="object"?s instanceof HTMLElement:s&&typeof s=="object"&&s.nodeType===1&&typeof s.nodeName=="string"}const Y={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:uo?"webkitAnimationStart":"animationstart",ANIMATION_END:uo?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:uo?"webkitAnimationIteration":"animationiteration"},Ie={stop:function(s,e){s.preventDefault?s.preventDefault():s.returnValue=!1,e&&(s.stopPropagation?s.stopPropagation():s.cancelBubble=!0)}};function E4(s){let e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function D4(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}class Su extends W{constructor(e){super(),this._onDidFocus=this._register(new M),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new M),this.onDidBlur=this._onDidBlur.event;let t=Su.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Su.hasFocusWithin(e)!==t&&(t?o():n())},this._register(V(e,Y.FOCUS,n,!0)),this._register(V(e,Y.BLUR,o,!0)),this._register(V(e,Y.FOCUS_IN,()=>this._refreshStateHandler())),this._register(V(e,Y.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(e){const t=vr(e),i=t?t.activeElement:document.activeElement;return Rs(i,e)}}function Ga(s){return new Su(s)}function U(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function Df(s,...e){s.innerText="",U(s,...e)}const N4=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Fc;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Fc||(Fc={}));function uL(s,e,t,...i){let n=N4.exec(e);if(!n)throw new Error("Bad use of emmet");t=Object.assign({},t||{});let o=n[1]||"div",r;return s!==Fc.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),Object.keys(t).forEach(a=>{const l=t[a];typeof l!="undefined"&&(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function J(s,e,...t){return uL(Fc.HTML,s,e,...t)}J.SVG=function(s,e,...t){return uL(Fc.SVG,s,e,...t)};function fL(...s){for(let e of s)e.style.display="",e.removeAttribute("aria-hidden")}function zC(...s){for(let e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function T4(s){return Array.prototype.slice.call(document.getElementsByTagName(s),0)}function UC(s){const e=window.devicePixelRatio*s;return Math.max(1,Math.floor(e))/window.devicePixelRatio}function gL(s){window.open(s,"_blank","noopener")}function M4(s){const e=()=>{s(),t=kn(e)};let t=kn(e);return Pe(()=>t.dispose())}sL.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function a_(s){return s?`url('${b4.asBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function $C(s){return`'${s.replace(/'/g,"%27")}'`}class da extends M{constructor(){super(),this._subscriptions=new se,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(V(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new He(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(V(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(V(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(V(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(V(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(V(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return da.instance||(da.instance=new da),da.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function R4(s,e){window.matchMedia(s).addEventListener("change",e)}const jC=2e4;let jo,Od,l_,Pd,c_;function A4(s){jo=document.createElement("div"),jo.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),jo.appendChild(i),i};Od=e(),l_=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("role","complementary"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),jo.appendChild(i),i};Pd=t(),c_=t(),s.appendChild(jo)}function Nf(s){!jo||(Od.textContent!==s?(Pi(l_),yu(Od,s)):(Pi(Od),yu(l_,s)))}function h_(s){!jo||(me?Nf(s):Pd.textContent!==s?(Pi(c_),yu(Pd,s)):(Pi(Pd),yu(c_,s)))}function yu(s,e){Pi(s),e.length>jC&&(e=e.substr(0,jC)),s.textContent=e,s.style.visibility="hidden",s.style.visibility="visible"}const mL=pe("markerDecorationsService"),Tf=pe("textModelService");var Lu=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class qn extends W{constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return Lu(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class x0 extends W{constructor(){super(...arguments),this._onBeforeRun=this._register(new M),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M),this.onDidRun=this._onDidRun.event}run(e,t){return Lu(this,void 0,void 0,function*(){if(!e.enabled)return;this._onBeforeRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return Lu(this,void 0,void 0,function*(){yield e.run(t)})}}class Or extends qn{constructor(e){super(Or.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Or.ID="vs.actions.separator";class pL{constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}get actions(){return this._actions}dispose(){}run(){return Lu(this,void 0,void 0,function*(){})}}class Mf extends qn{constructor(){super(Mf.ID,p("submenu.empty","(empty)"),void 0,!1)}}Mf.ID="vs.actions.empty";const Bi=pe("commandService"),Ht=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.description){const r=[];for(let l of s.description.args)r.push(l.constraint);const a=s.handler;s.handler=function(l,...c){return gI(c,r),a(l,...c)}}const{id:t}=s;let i=this._commands.get(t);i||(i=new Xi,this._commands.set(t,i));let n=i.unshift(s),o=Pe(()=>{n();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return Ht.registerCommand(s,(t,...i)=>t.get(Bi).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return he.first(e)}getCommands(){const s=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&s.set(e,t)}return s}};Ht.registerCommand("noop",()=>{});const Mt=new Map;Mt.set("false",!1);Mt.set("true",!0);Mt.set("isMac",me);Mt.set("isLinux",qt);Mt.set("isWindows",li);Mt.set("isWeb",fl);Mt.set("isMacNative",me&&!fl);Mt.set("isEdge",Qx);Mt.set("isFirefox",Yx);Mt.set("isChrome",QS);Mt.set("isSafari",Xx);const O4=Object.prototype.hasOwnProperty;class Oe{static has(e){return So.create(e)}static equals(e,t){return Za.create(e,t)}static regex(e,t){return ku.create(e,t)}static not(e){return Sr.create(e)}static and(...e){return oo.create(e,null)}static or(...e){return Ns.create(e,null,!0)}static deserialize(e,t=!1){if(!!e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let i=e.split("||");return Ns.create(i.map(n=>this._deserializeAndExpression(n,t)),null,!0)}static _deserializeAndExpression(e,t){let i=e.split("&&");return oo.create(i.map(n=>this._deserializeOne(n,t)),null)}static _deserializeOne(e,t){if(e=e.trim(),e.indexOf("!=")>=0){let i=e.split("!=");return Rf.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("==")>=0){let i=e.split("==");return Za.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("=~")>=0){let i=e.split("=~");return ku.create(i[0].trim(),this._deserializeRegexValue(i[1],t))}if(e.indexOf(" in ")>=0){let i=e.split(" in ");return I0.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const i=e.split(">=");return Pf.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const i=e.split(">");return Of.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const i=e.split("<=");return Bf.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const i=e.split("<");return Ff.create(i[0].trim(),i[1].trim())}return/^\!\s*/.test(e)?Sr.create(e.substr(1).trim()):So.create(e)}static _deserializeValue(e,t){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;let i=/^'([^']*)'$/.exec(e);return i?i[1].trim():e}static _deserializeRegexValue(e,t){if(VE(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let i=e.indexOf("/"),n=e.lastIndexOf("/");if(i===n||i<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(i+1,n),r=e[n+1]==="i"?"i":"";try{return new RegExp(o,r)}catch(a){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${a}`);return console.warn(`bad regexp-value '${e}', parse error: ${a}`),null}}}function P4(s,e){const t=s?s.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function xa(s,e){return s.cmp(e)}class Si{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return Fi.INSTANCE}}Si.INSTANCE=new Si;class Fi{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Si.INSTANCE}}Fi.INSTANCE=new Fi;class So{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const i=Mt.get(e);return typeof i=="boolean"?i?Fi.INSTANCE:Si.INSTANCE:new So(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:bL(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Mt.get(this.key);return typeof e=="boolean"?e?Fi.INSTANCE:Si.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Sr.create(this.key,this)),this.negated}}class Za{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}static create(e,t,i=null){if(typeof t=="boolean")return t?So.create(e,i):Sr.create(e,i);const n=Mt.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Fi.INSTANCE:Si.INSTANCE:new Za(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Mt.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Fi.INSTANCE:Si.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Rf.create(this.key,this.value,this)),this.negated}}class I0{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new I0(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.indexOf(i)>=0:typeof i=="string"&&typeof t=="object"&&t!==null?O4.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=E0.create(this)),this.negated}}class E0{constructor(e){this._actual=e,this.type=11}static create(e){return new E0(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Rf{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}static create(e,t,i=null){if(typeof t=="boolean")return t?Sr.create(e,i):So.create(e,i);const n=Mt.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Si.INSTANCE:Fi.INSTANCE:new Rf(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Mt.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Si.INSTANCE:Fi.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Za.create(this.key,this.value,this)),this.negated}}class Sr{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const i=Mt.get(e);return typeof i=="boolean"?i?Si.INSTANCE:Fi.INSTANCE:new Sr(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:bL(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Mt.get(this.key);return typeof e=="boolean"?e?Si.INSTANCE:Fi.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=So.create(this.key,this)),this.negated}}function Af(s,e){if(typeof s=="string"){const t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):Si.INSTANCE}class Of{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}static create(e,t,i=null){return Af(t,n=>new Of(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Bf.create(this.key,this.value,this)),this.negated}}class Pf{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}static create(e,t,i=null){return Af(t,n=>new Pf(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ff.create(this.key,this.value,this)),this.negated}}class Ff{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}static create(e,t,i=null){return Af(t,n=>new Ff(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new Bf(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Of.create(this.key,this.value,this)),this.negated}}class ku{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new ku(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D0.create(this)),this.negated}}class D0{constructor(e){this._actual=e,this.type=8}static create(e){return new D0(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function _L(s){let e=null;for(let t=0,i=s.length;te.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const o=i[i.length-1];if(o.type!==9)break;i.pop();const r=i.pop(),a=i.length===0,l=Ns.create(o.expr.map(c=>oo.create([c,r],null)),null,a);l&&(i.push(l),i.sort(xa))}return i.length===1?i[0]:new oo(i,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=Ns.create(e,this,!0)}return this.negated}}class Ns{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,i){return Ns._normalizeArr(e,t,i)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const r of xu(t))for(const a of xu(i))n.push(oo.create([r,a],null));const o=e.length===0;e.unshift(Ns.create(n,null,o))}this.negated=e[0]}return this.negated}}class G extends So{constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?G._info.push(Object.assign(Object.assign({},i),{key:e})):i!==!0&&G._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}static all(){return G._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Za.create(this.key,e)}}G._info=[];const Ne=pe("contextKeyService"),F4="setContext";function bL(s,e){return se?1:0}function Pr(s,e,t,i){return st?1:ei?1:0}function CL(s,e){if(e.type===6&&s.type!==9&&s.type!==6){for(const n of e.expr)if(s.equals(n))return!0}const t=s.negate(),i=xu(t).concat(xu(e));i.sort(xa);for(let n=0;n{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let vL=new V4;xt.add(wL.ThemingContribution,vL);function ni(s){return vL.onColorThemeChange(s)}class W4 extends W{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}var H4=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},KC=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function ql(s){return s.command!==void 0}class N{constructor(e){this.id=N._idPool++,this._debugName=e}}N._idPool=0;N.CommandPalette=new N("CommandPalette");N.DebugBreakpointsContext=new N("DebugBreakpointsContext");N.DebugCallStackContext=new N("DebugCallStackContext");N.DebugConsoleContext=new N("DebugConsoleContext");N.DebugVariablesContext=new N("DebugVariablesContext");N.DebugWatchContext=new N("DebugWatchContext");N.DebugToolBar=new N("DebugToolBar");N.EditorContext=new N("EditorContext");N.SimpleEditorContext=new N("SimpleEditorContext");N.EditorContextCopy=new N("EditorContextCopy");N.EditorContextPeek=new N("EditorContextPeek");N.EditorTitle=new N("EditorTitle");N.EditorTitleRun=new N("EditorTitleRun");N.EditorTitleContext=new N("EditorTitleContext");N.EmptyEditorGroup=new N("EmptyEditorGroup");N.EmptyEditorGroupContext=new N("EmptyEditorGroupContext");N.ExplorerContext=new N("ExplorerContext");N.ExtensionContext=new N("ExtensionContext");N.GlobalActivity=new N("GlobalActivity");N.LayoutControlMenuSubmenu=new N("LayoutControlMenuSubmenu");N.LayoutControlMenu=new N("LayoutControlMenu");N.MenubarMainMenu=new N("MenubarMainMenu");N.MenubarAppearanceMenu=new N("MenubarAppearanceMenu");N.MenubarDebugMenu=new N("MenubarDebugMenu");N.MenubarEditMenu=new N("MenubarEditMenu");N.MenubarCopy=new N("MenubarCopy");N.MenubarFileMenu=new N("MenubarFileMenu");N.MenubarGoMenu=new N("MenubarGoMenu");N.MenubarHelpMenu=new N("MenubarHelpMenu");N.MenubarLayoutMenu=new N("MenubarLayoutMenu");N.MenubarNewBreakpointMenu=new N("MenubarNewBreakpointMenu");N.MenubarPanelAlignmentMenu=new N("MenubarPanelAlignmentMenu");N.MenubarPanelPositionMenu=new N("MenubarPanelPositionMenu");N.MenubarPreferencesMenu=new N("MenubarPreferencesMenu");N.MenubarRecentMenu=new N("MenubarRecentMenu");N.MenubarSelectionMenu=new N("MenubarSelectionMenu");N.MenubarSwitchEditorMenu=new N("MenubarSwitchEditorMenu");N.MenubarSwitchGroupMenu=new N("MenubarSwitchGroupMenu");N.MenubarTerminalMenu=new N("MenubarTerminalMenu");N.MenubarViewMenu=new N("MenubarViewMenu");N.MenubarHomeMenu=new N("MenubarHomeMenu");N.OpenEditorsContext=new N("OpenEditorsContext");N.ProblemsPanelContext=new N("ProblemsPanelContext");N.SCMChangeContext=new N("SCMChangeContext");N.SCMResourceContext=new N("SCMResourceContext");N.SCMResourceFolderContext=new N("SCMResourceFolderContext");N.SCMResourceGroupContext=new N("SCMResourceGroupContext");N.SCMSourceControl=new N("SCMSourceControl");N.SCMTitle=new N("SCMTitle");N.SearchContext=new N("SearchContext");N.StatusBarWindowIndicatorMenu=new N("StatusBarWindowIndicatorMenu");N.StatusBarRemoteIndicatorMenu=new N("StatusBarRemoteIndicatorMenu");N.TestItem=new N("TestItem");N.TestItemGutter=new N("TestItemGutter");N.TestPeekElement=new N("TestPeekElement");N.TestPeekTitle=new N("TestPeekTitle");N.TouchBarContext=new N("TouchBarContext");N.TitleBarContext=new N("TitleBarContext");N.TunnelContext=new N("TunnelContext");N.TunnelPrivacy=new N("TunnelPrivacy");N.TunnelProtocol=new N("TunnelProtocol");N.TunnelPortInline=new N("TunnelInline");N.TunnelTitle=new N("TunnelTitle");N.TunnelLocalAddressInline=new N("TunnelLocalAddressInline");N.TunnelOriginInline=new N("TunnelOriginInline");N.ViewItemContext=new N("ViewItemContext");N.ViewContainerTitle=new N("ViewContainerTitle");N.ViewContainerTitleContext=new N("ViewContainerTitleContext");N.ViewTitle=new N("ViewTitle");N.ViewTitleContext=new N("ViewTitleContext");N.CommentThreadTitle=new N("CommentThreadTitle");N.CommentThreadActions=new N("CommentThreadActions");N.CommentTitle=new N("CommentTitle");N.CommentActions=new N("CommentActions");N.InteractiveToolbar=new N("InteractiveToolbar");N.InteractiveCellTitle=new N("InteractiveCellTitle");N.InteractiveCellExecute=new N("InteractiveCellExecute");N.InteractiveInputExecute=new N("InteractiveInputExecute");N.NotebookToolbar=new N("NotebookToolbar");N.NotebookCellTitle=new N("NotebookCellTitle");N.NotebookCellInsert=new N("NotebookCellInsert");N.NotebookCellBetween=new N("NotebookCellBetween");N.NotebookCellListTop=new N("NotebookCellTop");N.NotebookCellExecute=new N("NotebookCellExecute");N.NotebookCellExecutePrimary=new N("NotebookCellExecutePrimary");N.NotebookDiffCellInputTitle=new N("NotebookDiffCellInputTitle");N.NotebookDiffCellMetadataTitle=new N("NotebookDiffCellMetadataTitle");N.NotebookDiffCellOutputsTitle=new N("NotebookDiffCellOutputsTitle");N.NotebookOutputToolbar=new N("NotebookOutputToolbar");N.NotebookEditorLayoutConfigure=new N("NotebookEditorLayoutConfigure");N.BulkEditTitle=new N("BulkEditTitle");N.BulkEditContext=new N("BulkEditContext");N.TimelineItemContext=new N("TimelineItemContext");N.TimelineTitle=new N("TimelineTitle");N.TimelineTitleContext=new N("TimelineTitleContext");N.AccountsContext=new N("AccountsContext");N.PanelTitle=new N("PanelTitle");N.AuxiliaryBarTitle=new N("AuxiliaryBarTitle");N.TerminalInstanceContext=new N("TerminalInstanceContext");N.TerminalEditorInstanceContext=new N("TerminalEditorInstanceContext");N.TerminalNewDropdownContext=new N("TerminalNewDropdownContext");N.TerminalTabContext=new N("TerminalTabContext");N.TerminalTabEmptyAreaContext=new N("TerminalTabEmptyAreaContext");N.TerminalInlineTabContext=new N("TerminalInlineTabContext");N.WebviewContext=new N("WebviewContext");N.InlineCompletionsActions=new N("InlineCompletionsActions");N.NewFile=new N("NewFile");const SL=pe("menuService"),sc=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===N.CommandPalette}}addCommand(s){return this.addCommands(he.single(s))}addCommands(s){for(const e of s)this._commands.set(e.id,e);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Pe(()=>{let e=!1;for(const t of s)e=this._commands.delete(t.id)||e;e&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((e,t)=>s.set(t,e)),s}appendMenuItem(s,e){return this.appendMenuItems(he.single({id:s,item:e}))}appendMenuItems(s){const e=new Set,t=new Xi;for(const{id:i,item:n}of s){let o=this._menuItems.get(i);o||(o=new Xi,this._menuItems.set(i,o)),t.push(o.push(n)),e.add(i)}return this._onDidChangeMenu.fire(e),Pe(()=>{if(t.size>0){for(let i of t)i();this._onDidChangeMenu.fire(e),t.clear()}})}getMenuItems(s){let e;return this._menuItems.has(s)?e=[...this._menuItems.get(s)]:e=[],s===N.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){const e=new Set;for(const t of s)ql(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||s.push({command:t})})}};class z4 extends pL{constructor(e,t,i,n){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=n}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);t.dispose();for(const[,n]of i)n.length>0&&(e.push(...n),e.push(new Or));return e.length&&e.pop(),e}}let u_=class yL{constructor(e,t,i,n,o){var r,a;if(this._commandService=o,this.id=e.id,this.label=(i==null?void 0:i.renderShortTitle)&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value,this.tooltip=(a=typeof e.tooltip=="string"?e.tooltip:(r=e.tooltip)===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"",this.enabled=!e.precondition||n.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const l=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=n.contextMatchesRules(l.condition),this.checked&&l.tooltip&&(this.tooltip=typeof l.tooltip=="string"?l.tooltip:l.tooltip.value),l.title&&(this.label=typeof l.title=="string"?l.title:l.title.value)}this.item=e,this.alt=t?new yL(t,void 0,i,n,o):void 0,this._options=i,St.isThemeIcon(e.icon)&&(this.class=ei.asClassName(e.icon))}dispose(){}run(...e){var t,i;let n=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(n=[...n,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};u_=H4([KC(3,Ne),KC(4,Bi)],u_);class Eu{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(qi===1){if(e&&e.win)return e.win}else if(qi===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=Eu.bindToCurrentPlatform(e);if(t&&t.primary){const i=i_(t.primary,qi);i&&this._registerDefaultKeybinding(i,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let i=0,n=t.secondary.length;i=21&&e<=30||e>=31&&e<=56?!0:e===80||e===81||e===82||e===83||e===84||e===85||e===86||e===110||e===111||e===87||e===88||e===89||e===90||e===91||e===92}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&Eu._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,i,n,o,r){qi===1&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e.parts,command:t,commandArgs:i,when:r,weight1:n,weight2:o,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort($4)),this._cachedMergedKeybindings.slice(0)}}const wl=new Eu,U4={EditorModes:"platform.keybindingsRegistry"};xt.add(U4.EditorModes,wl);function $4(s,e){return s.weight1!==e.weight1?s.weight1-e.weight1:s.commande.command?1:s.weight2-e.weight2}const Lh=pe("telemetryService");class Vf{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=Oe.and(i,this.precondition):i=this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};wl.registerKeybindingRule(n)}}Ht.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){sc.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class N0 extends Vf{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort((n,o)=>o.priority-n.priority),{dispose:()=>{for(let n=0;n{if(!!o.get(Ne).contextMatchesRules(Qo(this.precondition)))return this.runEditorCommand(o,n,t)})}}class Fs extends Fr{constructor(e){super(Fs.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(n){return n.menuId||(n.menuId=N.EditorContext),n.title||(n.title=e.label),n.when=Oe.and(e.precondition,n.when),n}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(Lh).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class kL extends Fs{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,n)=>n[0]-i[0]),{dispose:()=>{for(let i=0;ir.indexOf(a.id)>=0)}s.getSomeEditorContributions=n;function o(){return Zi.INSTANCE.getDiffEditorContributions()}s.getDiffEditorContributions=o})(Ia||(Ia={}));const j4={EditorCommonContributions:"editor.contributions"};class Zi{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}Zi.INSTANCE=new Zi;xt.add(j4.EditorCommonContributions,Zi.INSTANCE);function kh(s){return s.register(),s}const IL=kh(new N0({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:N.MenubarEditMenu,group:"1_do",title:p({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:N.CommandPalette,group:"",title:p("undo","Undo"),order:1}]}));kh(new LL(IL,{id:"default:undo",precondition:void 0}));const EL=kh(new N0({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:N.MenubarEditMenu,group:"1_do",title:p({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:N.CommandPalette,group:"",title:p("redo","Redo"),order:1}]}));kh(new LL(EL,{id:"default:redo",precondition:void 0}));const K4=kh(new N0({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:N.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:N.CommandPalette,group:"",title:p("selectAll","Select All"),order:1}]}));var q4=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},G4=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Bc=class{constructor(e,t){}dispose(){}};Bc.ID="editor.contrib.markerDecorations";Bc=q4([G4(1,mL)],Bc);T0(Bc.ID,Bc);class DL extends W{constructor(e,t){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire())}}const Z4=Object.prototype.hasOwnProperty;function Y4(s,e){for(let t in s)if(Z4.call(s,t)&&e({key:t,value:s[t]},function(){delete s[t]})===!1)return}class X4{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);!i||(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);!i||i.forEach(t)}}function Q4(s){const e=s.wordWrap;e===!0?s.wordWrap="on":e===!1&&(s.wordWrap="off");const t=s.lineNumbers;t===!0?s.lineNumbers="on":t===!1&&(s.lineNumbers="off"),s.autoClosingBrackets===!1&&(s.autoClosingBrackets="never",s.autoClosingQuotes="never",s.autoSurround="never"),s.cursorBlinking==="visible"&&(s.cursorBlinking="solid");const o=s.renderWhitespace;o===!0?s.renderWhitespace="boundary":o===!1&&(s.renderWhitespace="none");const r=s.renderLineHighlight;r===!0?s.renderLineHighlight="line":r===!1&&(s.renderLineHighlight="none");const a=s.acceptSuggestionOnEnter;a===!0?s.acceptSuggestionOnEnter="on":a===!1&&(s.acceptSuggestionOnEnter="off");const l=s.tabCompletion;l===!1?s.tabCompletion="off":l===!0&&(s.tabCompletion="onlySnippets");const c=s.suggest;if(c&&typeof c.filteredTypes=="object"&&c.filteredTypes){const b={};b.method="showMethods",b.function="showFunctions",b.constructor="showConstructors",b.deprecated="showDeprecated",b.field="showFields",b.variable="showVariables",b.class="showClasses",b.struct="showStructs",b.interface="showInterfaces",b.module="showModules",b.property="showProperties",b.event="showEvents",b.operator="showOperators",b.unit="showUnits",b.value="showValues",b.constant="showConstants",b.enum="showEnums",b.enumMember="showEnumMembers",b.keyword="showKeywords",b.text="showWords",b.color="showColors",b.file="showFiles",b.reference="showReferences",b.folder="showFolders",b.typeParameter="showTypeParameters",b.snippet="showSnippets",Y4(b,w=>{const C=c.filteredTypes[w.key];C===!1&&(c[w.value]=C)})}const h=s.hover;h===!0?s.hover={enabled:!0}:h===!1&&(s.hover={enabled:!1});const d=s.parameterHints;d===!0?s.parameterHints={enabled:!0}:d===!1&&(s.parameterHints={enabled:!1});const u=s.autoIndent;u===!0?s.autoIndent="full":u===!1&&(s.autoIndent="advanced");const f=s.matchBrackets;f===!0?s.matchBrackets="always":f===!1&&(s.matchBrackets="never");const{renderIndentGuides:m,highlightActiveIndentGuide:_}=s;s.guides||(s.guides={}),m!==void 0&&(s.guides.indentation=!!m),_!==void 0&&(s.guides.highlightActiveIndentation=!!_)}class J4{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new M,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}const qC=new J4,Vi=pe("accessibilityService"),eT=new G("accessibilityModeEnabled",!1);var tT=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},iT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let f_=class extends W{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new M),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._computeOptionsMemory=new ry,this.isSimpleWidget=e,this._containerObserver=this._register(new DL(i,t.dimension)),this._rawOptions=GC(t),this._validatedOptions=to.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(10)&&this._containerObserver.startObserving(),this._register(uu.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(qC.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(Up.onDidChange(()=>this._recomputeOptions())),this._register(Dc.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=to.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=ar.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:qC.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return to.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:sT(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:uo||Oi,pixelRatio:Dc.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return Up.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=GC(e);!to.applyUpdate(this._rawOptions,t)||(this._validatedOptions=to.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=nT(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}};f_=tT([iT(3,Vi)],f_);function nT(s){let e=0;for(;s;)s=Math.floor(s/10),e++;return e||1}function sT(){let s="";return!Jn&&!c0&&(s+="no-user-select "),Jn&&(s+="no-minimap-shadow "),me&&(s+="mac "),s}class oT{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class rT{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class to{static validateOptions(e){const t=new oT;for(const i of oa){const n=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new rT;for(const n of oa)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?Kn(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!to._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of oa){const r=!to._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=r,r&&(n=!0)}return n?new oy(i):null}static applyUpdate(e,t){let i=!1;for(const n of oa)if(t.hasOwnProperty(n.name)){const o=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=o.newValue,i=i||o.didChange}return i}}function GC(s){const e=Ys(s);return Q4(e),e}function rt(s,e,t){let i=null,n=null;if(typeof t.value=="function"?(i="value",n=t.value,n.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof t.get=="function"&&(i="get",n=t.get),!n)throw new Error("not supported");const o=`$memoize$${e}`;t[i]=function(...r){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,r)}),this[o]}}var aT=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ae;(function(s){s.Tap="-monaco-gesturetap",s.Change="-monaco-gesturechange",s.Start="-monaco-gesturestart",s.End="-monaco-gesturesend",s.Contextmenu="-monaco-gesturecontextmenu"})(Ae||(Ae={}));class Se extends W{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(V(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(V(document,"touchend",e=>this.onTouchEnd(e))),this._register(V(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return Se.isTouchDevice()?(Se.INSTANCE||(Se.INSTANCE=new Se),Se.INSTANCE.targets.push(e),{dispose:()=>{Se.INSTANCE.targets=Se.INSTANCE.targets.filter(t=>t!==e)}}):W.None}static ignoreTarget(e){return Se.isTouchDevice()?(Se.INSTANCE||(Se.INSTANCE=new Se),Se.INSTANCE.ignoreTargets.push(e),{dispose:()=>{Se.INSTANCE.ignoreTargets=Se.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):W.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i=Se.HOLD_DELAY&&Math.abs(a.initialPageX-ki(a.rollingPageX))<30&&Math.abs(a.initialPageY-ki(a.rollingPageY))<30){let c=this.newGestureEvent(Ae.Contextmenu,a.initialTarget);c.pageX=ki(a.rollingPageX),c.pageY=ki(a.rollingPageY),this.dispatchEvent(c)}else if(i===1){let c=ki(a.rollingPageX),h=ki(a.rollingPageY),d=ki(a.rollingTimestamps)-a.rollingTimestamps[0],u=c-a.rollingPageX[0],f=h-a.rollingPageY[0];const m=this.targets.filter(_=>a.initialTarget instanceof Node&&_.contains(a.initialTarget));this.inertia(m,t,Math.abs(u)/d,u>0?1:-1,c,Math.abs(f)/d,f>0?1:-1,h)}this.dispatchEvent(this.newGestureEvent(Ae.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===Ae.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>Se.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===Ae.Change||e.type===Ae.Contextmenu)&&(this._lastSetTapCountTime=0);for(let t=0;t{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,i,n,o,r,a,l){this.handle=kn(()=>{let c=Date.now(),h=c-t,d=0,u=0,f=!0;i+=Se.SCROLL_FRICTION*h,r+=Se.SCROLL_FRICTION*h,i>0&&(f=!1,d=n*i*h),r>0&&(f=!1,u=a*r*h);let m=this.newGestureEvent(Ae.Change);m.translationX=d,m.translationY=u,e.forEach(_=>_.dispatchEvent(m)),f||this.inertia(e,c,i,n,o+d,r,a,l+u)})}onTouchMove(e){let t=Date.now();for(let i=0,n=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}Se.SCROLL_FRICTION=-.005;Se.HOLD_DELAY=700;Se.CLEAR_TAP_COUNT_TIME=400;aT([rt],Se,"isTouchDevice",null);function M0(s,e){let t=new Ji(e);return t.preventDefault(),{leftButton:t.leftButton,buttons:t.buttons,posx:t.posx,posy:t.posy}}class Wf{constructor(){this._hooks=new se,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,n,o){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=n,this._onStopCallback=o;const r=s_.getSameOriginWindowChain(),a=pr?"pointermove":"mousemove",l="mouseup",c=r.map(d=>d.window.document),h=vr(e);h&&c.unshift(h);for(const d of c)this._hooks.add(L0(d,a,u=>{if(u.buttons!==t){this.stopMonitoring(!0);return}this._mouseMoveCallback(u)},(u,f)=>this._mouseMoveEventMerger(u,f))),this._hooks.add(V(d,l,u=>this.stopMonitoring(!0)));if(s_.hasDifferentOriginAncestor()){let d=r[r.length-1];this._hooks.add(V(d.window.document,"mouseout",u=>{new Ji(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(V(d.window.document,"mouseover",u=>{new Ji(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(V(d.window.document.body,"mouseleave",u=>{this.stopMonitoring(!0)}))}}}function go(s,e){const t=Math.pow(10,e);return Math.round(s*t)/t}class de{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class pn{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=go(Math.max(Math.min(1,t),0),3),this.l=go(Math.max(Math.min(1,i),0),3),this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,c=0;const h=(a+r)/2,d=r-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),r){case t:l=(i-n)/d+(i1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:o}=e;let r,a,l;if(i===0)r=a=l=n;else{const c=n<.5?n*(1+i):n+i-n*i,h=2*n-c;r=pn._hue2rgb(h,c,t+1/3),a=pn._hue2rgb(h,c,t),l=pn._hue2rgb(h,c,t-1/3)}return new de(Math.round(r*255),Math.round(a*255),Math.round(l*255),o)}}class ua{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=go(Math.max(Math.min(1,t),0),3),this.v=go(Math.max(Math.min(1,i),0),3),this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),r=Math.min(t,i,n),a=o-r,l=o===0?0:a/o;let c;return a===0?c=0:o===t?c=((i-n)/a%6+6)%6:o===i?c=(n-t)/a+2:c=(t-i)/a+4,new ua(Math.round(c*60),l,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[c,h,d]=[0,0,0];return t<60?(c=r,h=a):t<120?(c=a,h=r):t<180?(h=r,d=a):t<240?(h=a,d=r):t<300?(c=a,d=r):t<=360&&(c=r,d=a),c=Math.round((c+l)*255),h=Math.round((h+l)*255),d=Math.round((d+l)*255),new de(c,h,d,o)}}class O{constructor(e){if(e)if(e instanceof de)this.rgba=e;else if(e instanceof pn)this._hsla=e,this.rgba=pn.toRGBA(e);else if(e instanceof ua)this._hsva=e,this.rgba=ua.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(e){return O.Format.CSS.parseHex(e)||O.red}get hsla(){return this._hsla?this._hsla:pn.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ua.fromRGBA(this.rgba)}equals(e){return!!e&&de.equals(this.rgba,e.rgba)&&pn.equals(this.hsla,e.hsla)&&ua.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=O._relativeLuminanceForComponent(this.rgba.r),t=O._relativeLuminanceForComponent(this.rgba.g),i=O._relativeLuminanceForComponent(this.rgba.b),n=.2126*e+.7152*t+.0722*i;return go(n,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t0&&s.charAt(s.length-1)==="#"?s.substring(0,s.length-1):s}class cT{constructor(){this._onDidChangeSchema=new M,this.schemasById={}}registerSchema(e,t){this.schemasById[lT(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const hT=new cT;xt.add(Hf.JSONContribution,hT);function dT(s){return`--vscode-${s.replace(/\./g,"-")}`}const NL={ColorContribution:"base.contributions.colors"};class uT{constructor(){this._onDidChangeSchema=new M,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){let r={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=r;let a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const n=i.defaults[t.type];return ps(n,t)}}getColorSchema(){return this.colorSchema}toString(){let e=(t,i)=>{let n=t.indexOf(".")===-1?0:1,o=i.indexOf(".")===-1?0:1;return n!==o?n-o:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(` -`)}}const zf=new uT;xt.add(NL.ColorContribution,zf);function E(s,e,t,i,n){return zf.registerColor(s,e,t,i,n)}const Fe=E("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},p("foreground","Overall foreground color. This color is only used if not overridden by a component.")),fT=E("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},p("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));E("descriptionForeground",{light:"#717171",dark:ne(Fe,.7),hc:ne(Fe,.7)},p("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));E("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},p("iconForeground","The default color for icons in the workbench."));const Zn=E("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},p("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),it=E("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},p("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),yi=E("contrastActiveBorder",{light:null,dark:null,hc:Zn},p("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));E("selection.background",{light:null,dark:null,hc:null},p("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));E("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hc:O.black},p("textSeparatorForeground","Color for text separators."));E("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},p("textLinkForeground","Foreground color for links in text."));E("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},p("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));E("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hc:"#D7BA7D"},p("textPreformatForeground","Foreground color for preformatted text segments."));E("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hc:null},p("textBlockQuoteBackground","Background color for block quotes in text."));E("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hc:O.white},p("textBlockQuoteBorder","Border color for block quotes in text."));E("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:O.black},p("textCodeBlockBackground","Background color for code blocks in text."));const Ya=E("widget.shadow",{dark:ne(O.black,.36),light:ne(O.black,.16),hc:null},p("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),TL=E("input.background",{dark:"#3C3C3C",light:O.white,hc:O.black},p("inputBoxBackground","Input box background.")),ML=E("input.foreground",{dark:Fe,light:Fe,hc:Fe},p("inputBoxForeground","Input box foreground.")),RL=E("input.border",{dark:null,light:null,hc:it},p("inputBoxBorder","Input box border.")),g_=E("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:it},p("inputBoxActiveOptionBorder","Border color of activated options in input fields."));E("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hc:null},p("inputOption.hoverBackground","Background color of activated options in input fields."));const m_=E("inputOption.activeBackground",{dark:ne(Zn,.4),light:ne(Zn,.2),hc:O.transparent},p("inputOption.activeBackground","Background hover color of options in input fields.")),p_=E("inputOption.activeForeground",{dark:O.white,light:O.black,hc:null},p("inputOption.activeForeground","Foreground color of activated options in input fields."));E("input.placeholderForeground",{light:ne(Fe,.5),dark:ne(Fe,.5),hc:ne(Fe,.7)},p("inputPlaceholderForeground","Input box foreground color for placeholder text."));const AL=E("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:O.black},p("inputValidationInfoBackground","Input validation background color for information severity.")),OL=E("inputValidation.infoForeground",{dark:null,light:null,hc:null},p("inputValidationInfoForeground","Input validation foreground color for information severity.")),PL=E("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:it},p("inputValidationInfoBorder","Input validation border color for information severity.")),FL=E("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:O.black},p("inputValidationWarningBackground","Input validation background color for warning severity.")),BL=E("inputValidation.warningForeground",{dark:null,light:null,hc:null},p("inputValidationWarningForeground","Input validation foreground color for warning severity.")),VL=E("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:it},p("inputValidationWarningBorder","Input validation border color for warning severity.")),WL=E("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:O.black},p("inputValidationErrorBackground","Input validation background color for error severity.")),HL=E("inputValidation.errorForeground",{dark:null,light:null,hc:null},p("inputValidationErrorForeground","Input validation foreground color for error severity.")),zL=E("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:it},p("inputValidationErrorBorder","Input validation border color for error severity.")),lr=E("dropdown.background",{dark:"#3C3C3C",light:O.white,hc:O.black},p("dropdownBackground","Dropdown background."));E("dropdown.listBackground",{dark:null,light:null,hc:O.black},p("dropdownListBackground","Dropdown list background."));const oc=E("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:O.white},p("dropdownForeground","Dropdown foreground.")),$g=E("dropdown.border",{dark:lr,light:"#CECECE",hc:it},p("dropdownBorder","Dropdown border."));E("checkbox.background",{dark:lr,light:lr,hc:lr},p("checkbox.background","Background color of checkbox widget."));E("checkbox.foreground",{dark:oc,light:oc,hc:oc},p("checkbox.foreground","Foreground color of checkbox widget."));E("checkbox.border",{dark:$g,light:$g,hc:$g},p("checkbox.border","Border color of checkbox widget."));const gT=E("button.foreground",{dark:O.white,light:O.white,hc:O.white},p("buttonForeground","Button foreground color.")),__=E("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},p("buttonBackground","Button background color.")),mT=E("button.hoverBackground",{dark:yo(__,.2),light:Sl(__,.2),hc:null},p("buttonHoverBackground","Button background color when hovering."));E("button.border",{dark:it,light:it,hc:it},p("buttonBorder","Button border color."));E("button.secondaryForeground",{dark:O.white,light:O.white,hc:O.white},p("buttonSecondaryForeground","Secondary button foreground color."));const ZC=E("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hc:null},p("buttonSecondaryBackground","Secondary button background color."));E("button.secondaryHoverBackground",{dark:yo(ZC,.2),light:Sl(ZC,.2),hc:null},p("buttonSecondaryHoverBackground","Secondary button background color when hovering."));const Fd=E("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:O.black},p("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Bd=E("badge.foreground",{dark:O.white,light:"#333",hc:O.white},p("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),vl=E("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},p("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Ea=E("scrollbarSlider.background",{dark:O.fromHex("#797979").transparent(.4),light:O.fromHex("#646464").transparent(.4),hc:ne(it,.6)},p("scrollbarSliderBackground","Scrollbar slider background color.")),Da=E("scrollbarSlider.hoverBackground",{dark:O.fromHex("#646464").transparent(.7),light:O.fromHex("#646464").transparent(.7),hc:ne(it,.8)},p("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Na=E("scrollbarSlider.activeBackground",{dark:O.fromHex("#BFBFBF").transparent(.4),light:O.fromHex("#000000").transparent(.6),hc:it},p("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),pT=E("progressBar.background",{dark:O.fromHex("#0E70C0"),light:O.fromHex("#0E70C0"),hc:it},p("progressBarBackground","Background color of the progress bar that can show for long running operations.")),_T=E("editorError.background",{dark:null,light:null,hc:null},p("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),cr=E("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},p("editorError.foreground","Foreground color of error squigglies in the editor.")),bT=E("editorError.border",{dark:null,light:null,hc:O.fromHex("#E47777").transparent(.8)},p("errorBorder","Border color of error boxes in the editor.")),CT=E("editorWarning.background",{dark:null,light:null,hc:null},p("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),yn=E("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},p("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),R0=E("editorWarning.border",{dark:null,light:null,hc:O.fromHex("#FFCC00").transparent(.8)},p("warningBorder","Border color of warning boxes in the editor.")),wT=E("editorInfo.background",{dark:null,light:null,hc:null},p("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),As=E("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},p("editorInfo.foreground","Foreground color of info squigglies in the editor.")),UL=E("editorInfo.border",{dark:null,light:null,hc:O.fromHex("#3794FF").transparent(.8)},p("infoBorder","Border color of info boxes in the editor.")),vT=E("editorHint.foreground",{dark:O.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},p("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ST=E("editorHint.border",{dark:null,light:null,hc:O.fromHex("#eeeeee").transparent(.8)},p("hintBorder","Border color of hint boxes in the editor."));E("sash.hoverBorder",{dark:Zn,light:Zn,hc:Zn},p("sashActiveBorder","Border color of active sashes."));const tn=E("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:O.black},p("editorBackground","Editor background color.")),xh=E("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:O.white},p("editorForeground","Editor default foreground color.")),nn=E("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},p("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),mo=E("editorWidget.foreground",{dark:Fe,light:Fe,hc:Fe},p("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Vd=E("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:it},p("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),yT=E("editorWidget.resizeBorder",{light:null,dark:null,hc:null},p("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),YC=E("quickInput.background",{dark:nn,light:nn,hc:nn},p("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),LT=E("quickInput.foreground",{dark:mo,light:mo,hc:mo},p("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),kT=E("quickInputTitle.background",{dark:new O(new de(255,255,255,.105)),light:new O(new de(0,0,0,.06)),hc:"#000000"},p("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),xT=E("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:O.white},p("pickerGroupForeground","Quick picker color for grouping labels.")),IT=E("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:O.white},p("pickerGroupBorder","Quick picker color for grouping borders.")),ET=E("keybindingLabel.background",{dark:new O(new de(128,128,128,.17)),light:new O(new de(221,221,221,.4)),hc:O.transparent},p("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),DT=E("keybindingLabel.foreground",{dark:O.fromHex("#CCCCCC"),light:O.fromHex("#555555"),hc:O.white},p("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),NT=E("keybindingLabel.border",{dark:new O(new de(51,51,51,.6)),light:new O(new de(204,204,204,.4)),hc:new O(new de(111,195,223))},p("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),TT=E("keybindingLabel.bottomBorder",{dark:new O(new de(68,68,68,.6)),light:new O(new de(187,187,187,.4)),hc:new O(new de(111,195,223))},p("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ta=E("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},p("editorSelectionBackground","Color of the editor selection.")),MT=E("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},p("editorSelectionForeground","Color of the selected text for high contrast.")),A0=E("editor.inactiveSelectionBackground",{light:ne(Ta,.5),dark:ne(Ta,.5),hc:ne(Ta,.5)},p("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),$L=E("editor.selectionHighlightBackground",{light:sw(Ta,tn,.3,.6),dark:sw(Ta,tn,.3,.6),hc:null},p("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);E("editor.selectionHighlightBorder",{light:null,dark:null,hc:yi},p("editorSelectionHighlightBorder","Border color for regions with the same content as the selection."));const RT=E("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},p("editorFindMatch","Color of the current search match.")),po=E("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},p("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),AT=E("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},p("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),OT=E("editor.findMatchBorder",{light:null,dark:null,hc:yi},p("editorFindMatchBorder","Border color of the current search match.")),Ma=E("editor.findMatchHighlightBorder",{light:null,dark:null,hc:yi},p("findMatchHighlightBorder","Border color of the other search matches.")),PT=E("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ne(yi,.4)},p("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);E("searchEditor.findMatchBackground",{light:ne(po,.66),dark:ne(po,.66),hc:po},p("searchEditor.queryMatch","Color of the Search Editor query matches."));E("searchEditor.findMatchBorder",{light:ne(Ma,.66),dark:ne(Ma,.66),hc:Ma},p("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));E("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},p("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);const XC=E("editorHoverWidget.background",{light:nn,dark:nn,hc:nn},p("hoverBackground","Background color of the editor hover."));E("editorHoverWidget.foreground",{light:mo,dark:mo,hc:mo},p("hoverForeground","Foreground color of the editor hover."));E("editorHoverWidget.border",{light:Vd,dark:Vd,hc:Vd},p("hoverBorder","Border color of the editor hover."));E("editorHoverWidget.statusBarBackground",{dark:yo(XC,.2),light:Sl(XC,.05),hc:nn},p("statusBarBackground","Background color of the editor hover status bar."));E("editorLink.activeForeground",{dark:"#4E94CE",light:O.blue,hc:O.cyan},p("activeLinkForeground","Color of active links."));const Ra=E("editorInlayHint.foreground",{dark:ne(Bd,.8),light:ne(Bd,.8),hc:Bd},p("editorInlayHintForeground","Foreground color of inline hints")),Aa=E("editorInlayHint.background",{dark:ne(Fd,.6),light:ne(Fd,.3),hc:Fd},p("editorInlayHintBackground","Background color of inline hints"));E("editorInlayHint.typeForeground",{dark:Ra,light:Ra,hc:Ra},p("editorInlayHintForegroundTypes","Foreground color of inline hints for types"));E("editorInlayHint.typeBackground",{dark:Aa,light:Aa,hc:Aa},p("editorInlayHintBackgroundTypes","Background color of inline hints for types"));E("editorInlayHint.parameterForeground",{dark:Ra,light:Ra,hc:Ra},p("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters"));E("editorInlayHint.parameterBackground",{dark:Aa,light:Aa,hc:Aa},p("editorInlayHintBackgroundParameter","Background color of inline hints for parameters"));E("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},p("editorLightBulbForeground","The color used for the lightbulb actions icon."));E("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},p("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon."));const b_=new O(new de(155,185,85,.2)),C_=new O(new de(255,0,0,.2)),jL=E("diffEditor.insertedTextBackground",{dark:b_,light:b_,hc:null},p("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),KL=E("diffEditor.removedTextBackground",{dark:C_,light:C_,hc:null},p("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),FT=E("diffEditor.insertedLineBackground",{dark:null,light:null,hc:null},p("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),BT=E("diffEditor.removedLineBackground",{dark:null,light:null,hc:null},p("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),VT=E("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hc:null},p("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),WT=E("diffEditorGutter.removedLineBackground",{dark:null,light:null,hc:null},p("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),HT=E("diffEditorOverview.insertedForeground",{dark:null,light:null,hc:null},p("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),zT=E("diffEditorOverview.removedForeground",{dark:null,light:null,hc:null},p("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),UT=E("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},p("diffEditorInsertedOutline","Outline color for the text that got inserted.")),$T=E("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},p("diffEditorRemovedOutline","Outline color for text that got removed.")),jT=E("diffEditor.border",{dark:null,light:null,hc:it},p("diffEditorBorder","Border color between the two text editors.")),KT=E("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},p("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),qT=E("list.focusBackground",{dark:null,light:null,hc:null},p("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),GT=E("list.focusForeground",{dark:null,light:null,hc:null},p("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ZT=E("list.focusOutline",{dark:Zn,light:Zn,hc:yi},p("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),_o=E("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},p("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bo=E("list.activeSelectionForeground",{dark:O.white,light:O.white,hc:null},p("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Wd=E("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},p("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),YT=E("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},p("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),XT=E("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},p("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),QT=E("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},p("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),JT=E("list.inactiveFocusBackground",{dark:null,light:null,hc:null},p("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e5=E("list.inactiveFocusOutline",{dark:null,light:null,hc:null},p("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),t5=E("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},p("listHoverBackground","List/Tree background when hovering over items using the mouse.")),i5=E("list.hoverForeground",{dark:null,light:null,hc:null},p("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),n5=E("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},p("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),jg=E("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:Zn},p("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree."));E("list.focusHighlightForeground",{dark:jg,light:E5(_o,jg,"#9DDDFF"),hc:jg},p("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));E("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hc:"#B89500"},p("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer."));E("list.errorForeground",{dark:"#F88070",light:"#B01011",hc:null},p("listErrorForeground","Foreground color of list items containing errors."));E("list.warningForeground",{dark:"#CCA700",light:"#855F00",hc:null},p("listWarningForeground","Foreground color of list items containing warnings."));const s5=E("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:O.black},p("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),o5=E("listFilterWidget.outline",{dark:O.transparent,light:O.transparent,hc:"#f38518"},p("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),r5=E("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:it},p("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches."));E("list.filterMatchBackground",{dark:po,light:po,hc:null},p("listFilterMatchHighlight","Background color of the filtered match."));E("list.filterMatchBorder",{dark:Ma,light:Ma,hc:it},p("listFilterMatchHighlightBorder","Border color of the filtered match."));const a5=E("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},p("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),l5=E("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},p("tableColumnsBorder","Table border color between columns.")),c5=E("tree.tableOddRowsBackground",{dark:ne(Fe,.04),light:ne(Fe,.04),hc:null},p("tableOddRowsBackgroundColor","Background color for odd table rows."));E("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hc:"#A7A8A9"},p("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));const QC=E("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,p("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),h5=E("quickInputList.focusForeground",{dark:bo,light:bo,hc:bo},p("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d5=E("quickInputList.focusIconForeground",{dark:Wd,light:Wd,hc:Wd},p("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u5=E("quickInputList.focusBackground",{dark:nw(QC,_o),light:nw(QC,_o),hc:null},p("quickInput.listFocusBackground","Quick picker background color for the focused item.")),f5=E("menu.border",{dark:null,light:null,hc:it},p("menuBorder","Border color of menus.")),g5=E("menu.foreground",{dark:oc,light:Fe,hc:oc},p("menuForeground","Foreground color of menu items.")),m5=E("menu.background",{dark:lr,light:lr,hc:lr},p("menuBackground","Background color of menu items.")),p5=E("menu.selectionForeground",{dark:bo,light:bo,hc:bo},p("menuSelectionForeground","Foreground color of the selected menu item in menus.")),_5=E("menu.selectionBackground",{dark:_o,light:_o,hc:_o},p("menuSelectionBackground","Background color of the selected menu item in menus.")),b5=E("menu.selectionBorder",{dark:null,light:null,hc:yi},p("menuSelectionBorder","Border color of the selected menu item in menus.")),C5=E("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:it},p("menuSeparatorBackground","Color of a separator menu item in menus.")),w_=E("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},p("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));E("toolbar.hoverOutline",{dark:null,light:null,hc:yi},p("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse"));E("toolbar.activeBackground",{dark:yo(w_,.1),light:Sl(w_,.1),hc:null},p("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));E("editor.snippetTabstopHighlightBackground",{dark:new O(new de(124,124,124,.3)),light:new O(new de(10,50,100,.2)),hc:new O(new de(124,124,124,.3))},p("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop."));E("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},p("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop."));E("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},p("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet."));E("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new O(new de(10,50,100,.5)),hc:"#525252"},p("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));E("breadcrumb.foreground",{light:ne(Fe,.8),dark:ne(Fe,.8),hc:ne(Fe,.8)},p("breadcrumbsFocusForeground","Color of focused breadcrumb items."));E("breadcrumb.background",{light:tn,dark:tn,hc:tn},p("breadcrumbsBackground","Background color of breadcrumb items."));E("breadcrumb.focusForeground",{light:Sl(Fe,.2),dark:yo(Fe,.1),hc:yo(Fe,.1)},p("breadcrumbsFocusForeground","Color of focused breadcrumb items."));E("breadcrumb.activeSelectionForeground",{light:Sl(Fe,.2),dark:yo(Fe,.1),hc:yo(Fe,.1)},p("breadcrumbsSelectedForegound","Color of selected breadcrumb items."));E("breadcrumbPicker.background",{light:nn,dark:nn,hc:nn},p("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const qL=.5,JC=O.fromHex("#40C8AE").transparent(qL),ew=O.fromHex("#40A6FF").transparent(qL),tw=O.fromHex("#606060").transparent(.4),Os=.4,Xa=1,rc=E("merge.currentHeaderBackground",{dark:JC,light:JC,hc:null},p("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.currentContentBackground",{dark:ne(rc,Os),light:ne(rc,Os),hc:ne(rc,Os)},p("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const ac=E("merge.incomingHeaderBackground",{dark:ew,light:ew,hc:null},p("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.incomingContentBackground",{dark:ne(ac,Os),light:ne(ac,Os),hc:ne(ac,Os)},p("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const lc=E("merge.commonHeaderBackground",{dark:tw,light:tw,hc:null},p("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.commonContentBackground",{dark:ne(lc,Os),light:ne(lc,Os),hc:ne(lc,Os)},p("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const O0=E("merge.border",{dark:null,light:null,hc:"#C3DF6F"},p("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));E("editorOverviewRuler.currentContentForeground",{dark:ne(rc,Xa),light:ne(rc,Xa),hc:O0},p("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts."));E("editorOverviewRuler.incomingContentForeground",{dark:ne(ac,Xa),light:ne(ac,Xa),hc:O0},p("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts."));E("editorOverviewRuler.commonContentForeground",{dark:ne(lc,Xa),light:ne(lc,Xa),hc:O0},p("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const P0=E("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},p("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0);E("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},p("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const cc=E("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},p("minimapFindMatchHighlight","Minimap marker color for find matches."),!0);E("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hc:"#ffffff"},p("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0);const iw=E("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},p("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),w5=E("minimap.errorHighlight",{dark:new O(new de(255,18,18,.7)),light:new O(new de(255,18,18,.7)),hc:new O(new de(255,50,50,1))},p("minimapError","Minimap marker color for errors.")),v5=E("minimap.warningHighlight",{dark:yn,light:yn,hc:R0},p("overviewRuleWarning","Minimap marker color for warnings.")),S5=E("minimap.background",{dark:null,light:null,hc:null},p("minimapBackground","Minimap background color.")),y5=E("minimap.foregroundOpacity",{dark:O.fromHex("#000f"),light:O.fromHex("#000f"),hc:O.fromHex("#000f")},p("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),L5=E("minimapSlider.background",{light:ne(Ea,.5),dark:ne(Ea,.5),hc:ne(Ea,.5)},p("minimapSliderBackground","Minimap slider background color.")),k5=E("minimapSlider.hoverBackground",{light:ne(Da,.5),dark:ne(Da,.5),hc:ne(Da,.5)},p("minimapSliderHoverBackground","Minimap slider background color when hovering.")),x5=E("minimapSlider.activeBackground",{light:ne(Na,.5),dark:ne(Na,.5),hc:ne(Na,.5)},p("minimapSliderActiveBackground","Minimap slider background color when clicked on."));E("problemsErrorIcon.foreground",{dark:cr,light:cr,hc:cr},p("problemsErrorIconForeground","The color used for the problems error icon."));E("problemsWarningIcon.foreground",{dark:yn,light:yn,hc:yn},p("problemsWarningIconForeground","The color used for the problems warning icon."));E("problemsInfoIcon.foreground",{dark:As,light:As,hc:As},p("problemsInfoIconForeground","The color used for the problems info icon."));E("charts.foreground",{dark:Fe,light:Fe,hc:Fe},p("chartsForeground","The foreground color used in charts."));E("charts.lines",{dark:ne(Fe,.5),light:ne(Fe,.5),hc:ne(Fe,.5)},p("chartsLines","The color used for horizontal lines in charts."));E("charts.red",{dark:cr,light:cr,hc:cr},p("chartsRed","The red color used in chart visualizations."));E("charts.blue",{dark:As,light:As,hc:As},p("chartsBlue","The blue color used in chart visualizations."));E("charts.yellow",{dark:yn,light:yn,hc:yn},p("chartsYellow","The yellow color used in chart visualizations."));E("charts.orange",{dark:cc,light:cc,hc:cc},p("chartsOrange","The orange color used in chart visualizations."));E("charts.green",{dark:"#89D185",light:"#388A34",hc:"#89D185"},p("chartsGreen","The green color used in chart visualizations."));E("charts.purple",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},p("chartsPurple","The purple color used in chart visualizations."));function I5(s,e){var t,i,n;switch(s.op){case 0:return(t=ps(s.value,e))===null||t===void 0?void 0:t.darken(s.factor);case 1:return(i=ps(s.value,e))===null||i===void 0?void 0:i.lighten(s.factor);case 2:return(n=ps(s.value,e))===null||n===void 0?void 0:n.transparent(s.factor);case 3:for(const o of s.values){const r=ps(o,e);if(r)return r}return;case 5:return ps(e.defines(s.if)?s.then:s.else,e);case 4:{const o=ps(s.value,e);if(!o)return;const r=ps(s.background,e);return r?o.isDarkerThan(r)?O.getLighterColor(o,r,s.factor).transparent(s.transparency):O.getDarkerColor(o,r,s.factor).transparent(s.transparency):o.transparent(s.factor*s.transparency)}default:throw K1()}}function Sl(s,e){return{op:0,value:s,factor:e}}function yo(s,e){return{op:1,value:s,factor:e}}function ne(s,e){return{op:2,value:s,factor:e}}function nw(...s){return{op:3,values:s}}function E5(s,e,t){return{op:5,if:s,then:e,else:t}}function sw(s,e,t,i){return{op:4,value:s,background:e,factor:t,transparency:i}}function ps(s,e){if(s!==null){if(typeof s=="string")return s[0]==="#"?O.fromHex(s):e.getColor(s);if(s instanceof O)return s;if(typeof s=="object")return I5(s,e)}}const GL="vscode://schemas/workbench-colors";let ZL=xt.as(Hf.JSONContribution);ZL.registerSchema(GL,zf.getColorSchema());const ow=new Tt(()=>ZL.notifySchemaChanged(GL),200);zf.onDidChangeSchema(()=>{ow.isScheduled()||ow.schedule()});class F0{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new YL(this.x-Ms.scrollX,this.y-Ms.scrollY)}}class YL{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new F0(this.clientX+Ms.scrollX,this.clientY+Ms.scrollY)}}class D5{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class N5{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function XL(s){const e=en(s);return new D5(e.left,e.top,e.width,e.height)}function QL(s,e,t){const i=e.width/s.offsetWidth,n=e.height/s.offsetHeight,o=(t.x-e.x)/i,r=(t.y-e.y)/n;return new N5(o,r)}class yr extends Ji{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new F0(this.posx,this.posy),this.editorPos=XL(t),this.relativePos=QL(t,this.editorPos,this.pos)}}class T5{constructor(e){this._editorViewDomNode=e}_create(e){return new yr(e,this._editorViewDomNode)}onContextMenu(e,t){return V(e,"contextmenu",i=>{t(this._create(i))})}onMouseUp(e,t){return V(e,"mouseup",i=>{t(this._create(i))})}onMouseDown(e,t){return V(e,"mousedown",i=>{t(this._create(i))})}onMouseLeave(e,t){return y0(e,i=>{t(this._create(i))})}onMouseMoveThrottled(e,t,i,n){return L0(e,"mousemove",t,(r,a)=>i(r,this._create(a)),n)}}class M5{constructor(e){this._editorViewDomNode=e}_create(e){return new yr(e,this._editorViewDomNode)}onPointerUp(e,t){return V(e,"pointerup",i=>{t(this._create(i))})}onPointerDown(e,t){return V(e,"pointerdown",i=>{t(this._create(i))})}onPointerLeave(e,t){return v4(e,i=>{t(this._create(i))})}onPointerMoveThrottled(e,t,i,n){return L0(e,"pointermove",t,(r,a)=>i(r,this._create(a)),n)}}class R5 extends W{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new Wf),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=wi(document,"keydown",a=>{a.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,a.browserEvent)},!0);const r=(a,l)=>i(a,new yr(l,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(e,t,r,n,a=>{this._keydownListener.dispose(),o(a)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class Ih extends W{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=a.left?n.width=Math.max(n.width,a.left+a.width-n.left):(t[i++]=n,n=a)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||e.length===0)return null;const n=[];for(let o=0,r=e.length;oh)return null;if(t=Math.min(h,Math.max(0,t)),n=Math.min(h,Math.max(0,n)),t===n&&i===o&&i===0&&!e.children[t].firstChild){const m=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(m,r,a)}t!==n&&n>0&&o===0&&(n--,o=1073741824);let d=e.children[t].firstChild,u=e.children[n].firstChild;if((!d||!u)&&(!d&&i===0&&t>0&&(d=e.children[t-1].firstChild,i=1073741824),!u&&o===0&&n>0&&(u=e.children[n-1].firstChild,o=1073741824)),!d||!u)return null;i=Math.min(d.textContent.length,Math.max(0,i)),o=Math.min(u.textContent.length,Math.max(0,o));const f=this._readClientRects(d,i,u,o,l);return this._createHorizontalRangesFromClientRects(f,r,a)}}const V5=function(){return va?!0:!(qt||Oi||Jn)}();let Pa=!0;class rw{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=t}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}class aw{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(44);this.renderWhitespace=i.get(88),this.renderControlCharacters=i.get(83),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(59),this.stopRenderingLineAfter=i.get(105),this.fontLigatures=i.get(45)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class Un{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=ue(e);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return this._options.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,t,i,n){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),r=this._options,a=Qi.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let l=null;if(r.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace==="selection"){const u=i.selections;for(const f of u){if(f.endLineNumbere)continue;const m=f.startLineNumber===e?f.startColumn:o.minColumn,_=f.endLineNumber===e?f.endColumn:o.maxColumn;m<_&&(r.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace!=="selection"?a.push(new Qi(m,_,"inline-selected-text",0)):(l||(l=[]),l.push(new WN(m-1,_-1))))}}const c=new Cl(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==Ii.OFF,l);if(this._renderedViewLine&&this._renderedViewLine.input.equals(c))return!1;n.appendASCIIString('
');const h=C0(c,n);n.appendASCIIString("
");let d=null;return Pa&&V5&&o.isBasicASCII&&r.useMonospaceOptimizations&&h.containsForeignElements===0&&o.content.length<300&&c.lineTokens.getCount()<100&&(d=new jh(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping)),d||(d=ek(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof jh:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof jh?this._renderedViewLine.monospaceAssumptionsAreValid():Pa}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof jh&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;o!==-1&&t>o+1&&i>o+1&&(r=!0),o!==-1&&t>o+1&&(t=o+1),o!==-1&&i>o+1&&(i=o+1);const a=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return a&&a.length>0?new B5(r,a):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}Un.CLASS_NAME="view-line";class jh{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return Pa;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),Pa=!1),Pa}toSlowRenderedLine(){return ek(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getCharPosition(t),r=this._getCharPosition(i);return[new Oa(o,r-o)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return this._charWidth*t}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new b0(o,i),n)}}class JL{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let r=0,a=this._characterMapping.length;r<=a;r++)this._pixelOffsetCache[r]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const o=this._readPixelOffset(this.domNode,e,t,n);if(o===-1)return null;const r=this._readPixelOffset(this.domNode,e,i,n);return r===-1?null:[new Oa(o,r-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const r=this._readPixelOffset(e,t,i,o);return r===-1?null:[new Oa(r,0)]}else return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();const o=this._getReadingTarget(e);return o.firstChild?o.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){const o=this._pixelOffsetCache[i];if(o!==-1)return o;const r=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(this._characterMapping.length===0){const l=Kg.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.clientRectScale,n.endNode);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();const o=this._characterMapping.getDomPosition(i),r=Kg.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n.clientRectDeltaLeft,n.clientRectScale,n.endNode);if(!r||r.length===0)return-1;const a=r[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getAbsoluteOffset(i),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-a)<=1)return c}return a}_readRawVisibleRangesForRange(e,t,i,n){if(t===1&&i===this._characterMapping.length)return[new Oa(0,this.getWidth())];const o=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return Kg.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,r.partIndex,r.charIndex,n.clientRectDeltaLeft,n.clientRectScale,n.endNode)}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new b0(o,i),n)}}class W5 extends JL{_readVisibleRangesForRange(e,t,i,n,o){const r=super._readVisibleRangesForRange(e,t,i,n,o);if(!r||r.length===0||i===n||i===1&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const a=this._readPixelOffset(e,t,n,o);if(a!==-1){const l=r[r.length-1];l.left=t){const d=t-r;return c-t=4&&e[0]===3&&e[3]===7}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===7}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===5}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===8}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}}class Qa{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(131),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(59),this.stickyTabStops=n.get(104),this.typicalHalfwidthCharacterWidth=n.get(44).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return Qa.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let r=null,a,l=null;return i.afterLineNumber!==o&&(l=new A(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new A(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),l===null?a=r:r===null?a=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Et._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class B0 extends $5{constructor(e,t,i,n,o){super(e,t,i,n),this._ctx=e,o?(this.target=o,this.targetPath=es.collect(o,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} - target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.columnr.contentLeft+r.width)continue;const a=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(a<=o&&o<=a+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const n=t.isInContentArea?8:5;return t.fulfillViewZone(n,i.position,i)}return null}static _hitTestTextArea(e,t){return zi.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,n,i.range,r):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,r)))}return null}static _hitTestViewLines(e,t,i){if(!zi.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new A(1,1),lw);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const o=e.viewModel.getLineCount(),r=e.viewModel.getLineMaxColumn(o);return t.fulfillContentEmpty(new A(o,r),lw)}if(i){if(zi.isStrictChildOfViewLines(t.targetPath)){const o=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.viewModel.getLineLength(o)===0){const a=e.getLineWidth(o),l=qg(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(new A(o,1),l)}const r=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>=r){const a=qg(t.mouseContentHorizontalOffset-r),l=new A(o,e.viewModel.getLineMaxColumn(o));return t.fulfillContentEmpty(l,a)}}return t.fulfillUnknown()}const n=Et._doHitTest(e,t);return n.type===1?Et.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){if(zi.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new A(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(zi.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new A(n,o))}}return null}static _hitTestScrollbar(e,t){if(zi.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new A(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(131),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return Et._getMouseColumn(n,t.get(44).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const r=n.lineNumber,a=n.column,l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>l){const b=qg(t.mouseContentHorizontalOffset-l);return t.fulfillContentEmpty(n,b)}const c=e.visibleRangeForPosition(r,a);if(!c)return t.fulfillUnknown(n);const h=c.left;if(t.mouseContentHorizontalOffset===h)return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});const d=[];if(d.push({offset:c.left,column:a}),a>1){const b=e.visibleRangeForPosition(r,a-1);b&&d.push({offset:b.left,column:a-1})}const u=e.viewModel.getLineMaxColumn(r);if(ab.offset-w.offset);const f=t.pos.toClientCoordinates(),m=i.getBoundingClientRect(),_=m.left<=f.clientX&&f.clientX<=m.right;for(let b=1;b=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const a=new F0(t.pos.x,r),l=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return l.type===1?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=vr(e.viewDomNode);let n;if(i?typeof i.caretRangeFromPoint=="undefined"?n=j5(i,t.clientX,t.clientY):n=i.caretRangeFromPoint(t.clientX,t.clientY):n=document.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new Gs;const o=n.startContainer;if(o.nodeType===o.TEXT_NODE){const r=o.parentNode,a=r?r.parentNode:null,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,r,n.startOffset):new Gs(o.parentNode)}else if(o.nodeType===o.ELEMENT_NODE){const r=o.parentNode,a=r?r.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,o,o.textContent.length):new Gs(o)}return new Gs}static _doHitTestWithCaretPositionFromPoint(e,t){const i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const n=i.offsetNode.parentNode,o=n?n.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Gs(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const n=i.offsetNode.parentNode,o=n&&n.nodeType===n.ELEMENT_NODE?n.className:null,r=n?n.parentNode:null,a=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(o===Un.CLASS_NAME){const l=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(l)return Ko.createFromDOMInfo(e,l,0)}else if(a===Un.CLASS_NAME)return Ko.createFromDOMInfo(e,i.offsetNode,0)}return new Gs(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),o=Vc.atomicPosition(i,e.column-1,n,2);return o!==-1?new A(e.lineNumber,o+1):e}static _doHitTest(e,t){let i=new Gs;if(typeof document.caretRangeFromPoint=="function"?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),i.type===1){const n=e.viewModel.getInjectedTextAt(i.position),o=e.viewModel.normalizePosition(i.position,2);(n||!o.equals(i.position))&&(i=new v_(o,i.spanNode,n))}return i.type===1&&e.stickyTabStops&&(i=new v_(this._snapToSoftTabBoundary(i.position,e.viewModel),i.spanNode,i.injectedText)),i}}function j5(s,e,t){const i=document.createRange();let n=s.elementFromPoint(e,t);if(n!==null){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const o=n.getBoundingClientRect(),r=window.getComputedStyle(n,null).getPropertyValue("font"),a=n.innerText;let l=o.left,c=0,h;if(e>o.left+o.width)c=a.length;else{const d=er.getInstance();for(let u=0;uthis._createMouseTarget(r,a),r=>this._getMouseColumn(r))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(131).height;const n=new T5(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,r=>this._onContextMenu(r,!0))),this._register(n.onMouseMoveThrottled(this.viewHelper.viewDomNode,r=>this._onMouseMove(r),Du(this.mouseTargetFactory),Lr.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onMouseUp(this.viewHelper.viewDomNode,r=>this._onMouseUp(r))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,r=>this._onMouseLeave(r))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,r=>this._onMouseDown(r)));const o=r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(68))return;const a=new qa(r);if(me?(r.metaKey||r.ctrlKey)&&!r.shiftKey&&!r.altKey:r.ctrlKey&&!r.metaKey&&!r.shiftKey&&!r.altKey){const c=uu.getZoomLevel(),h=a.deltaY>0?1:-1;uu.setZoomLevel(c+h),a.preventDefault(),a.stopPropagation()}};this._register(V(this.viewHelper.viewDomNode,Y.MOUSE_WHEEL,o,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(131)){const t=this._context.configuration.options.get(131).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const n=new YL(e,t).toPageCoordinates(),o=XL(this.viewHelper.viewDomNode);if(n.yo.y+o.height||n.xo.x+o.width)return null;const r=QL(this.viewHelper.viewDomNode,o,n);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,n,r,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const n=vr(this.viewHelper.viewDomNode);n&&(i=n.elementsFromPoint(e.posx,e.posy).find(o=>this.viewHelper.viewDomNode.contains(o)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(i||o&&r))h(),this._mouseDownOperation.start(t.type,e);else if(n)e.preventDefault();else if(a){const d=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(h(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}Lr.MOUSE_MOVE_MINIMUM_TIME=100;class K5 extends W{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new R5(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new os),this._mouseState=new $f,this._currentSelection=new ce(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);!t||(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(81)&&n.get(31)&&!n.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&i.type===6&&i.position&&this._currentSelection.containsPosition(i.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Du(null),o=>this._onMouseDownThenMove(o),o=>{const r=this._findMousePosition(this._lastMouseEvent,!0);o&&o instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:r?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Du(null),o=>this._onMouseDownThenMove(o),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){!this._isActive||this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);!e||this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const a=n.getCurrentScrollTop()+e.relativePos.y,l=Qa.getZoneAtCoord(this._context,a);if(l){const h=this._helpPositionJumpOverViewZone(l);if(h)return Qt.createOutsideEditor(o,h)}const c=n.getLineNumberAtVerticalOffset(a);return Qt.createOutsideEditor(o,new A(c,i.getLineMaxColumn(c)))}const r=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posxt.x+t.width?Qt.createOutsideEditor(o,new A(r,i.getLineMaxColumn(r))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(n.type===8||n.type===5){const r=this._helpPositionJumpOverViewZone(n.detail);if(r)return Qt.createViewZone(n.type,n.element,n.mouseColumn,r,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new A(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t){!e.position||this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:e.type===6&&e.detail.injectedText!==null})}}class $f{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=new Date().getTime();i-this._lastSetMouseDownCountTime>$f.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}$f.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var bn;(function(s){s.text="text/plain",s.binary="application/octet-stream",s.unknown="application/unknown",s.markdown="text/markdown",s.latex="text/latex",s.uriList="text/uri-list"})(bn||(bn={}));class Nt{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e){return new Nt(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new Nt(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,n,-1)}if(e>=this.selectionEnd){const n=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}const t=this.value.substring(this.selectionStart,e);if(t.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;(o=t.indexOf(` -`,o+1))!==-1;)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const n=Math.min(aC(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(lC(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(n,e.value.length-o);const r=t.value.substring(n,t.value.length-o),a=e.selectionStart-n,l=e.selectionEnd-n,c=t.selectionStart-n,h=t.selectionEnd-n;if(c===h){const u=e.selectionStart-n;return{text:r,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}const d=l-a;return{text:r,replacePrevCharCnt:d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(aC(e.value,t.value),e.selectionEnd),n=Math.min(lC(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),r=t.value.substring(i,t.value.length-n);e.selectionStart-i;const a=e.selectionEnd-i;t.selectionStart-i;const l=t.selectionEnd-i;return{text:r,replacePrevCharCnt:a,replaceNextCharCnt:o.length-a,positionDelta:l-r.length}}}Nt.EMPTY=new Nt("",0,0,null,null);class fa{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new D(n,1,o+1,1)}static fromEditorSelection(e,t,i,n,o){const r=fa._getPageOfLine(i.startLineNumber,n),a=fa._getRangeForPage(r,n),l=fa._getPageOfLine(i.endLineNumber,n),c=fa._getRangeForPage(l,n),h=a.intersectRanges(new D(1,1,i.startLineNumber,i.startColumn));let d=t.getValueInRange(h,1);const u=t.getLineCount(),f=t.getLineMaxColumn(u),m=c.intersectRanges(new D(i.endLineNumber,i.endColumn,u,f));let _=t.getValueInRange(m,1),b;if(r===l||r+1===l)b=t.getValueInRange(i,1);else{const w=a.intersectRanges(i),C=c.intersectRanges(i);b=t.getValueInRange(w,1)+String.fromCharCode(8230)+t.getValueInRange(C,1)}return o&&(d.length>500&&(d=d.substring(d.length-500,d.length)),_.length>500&&(_=_.substring(0,500)),b.length>2*500&&(b=b.substring(0,500)+String.fromCharCode(8230)+b.substring(b.length-500,b.length))),new Nt(d+b+_,d.length,d.length+b.length,new A(i.startLineNumber,i.startColumn),new A(i.endLineNumber,i.endColumn))}}var Nu;(function(s){s.Tap="-monaco-textarea-synthetic-tap"})(Nu||(Nu={}));class Tu{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}Tu.INSTANCE=new Tu;class q5{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class G5 extends W{constructor(e,t,i,n){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._onFocus=this._register(new M),this.onFocus=this._onFocus.event,this._onBlur=this._register(new M),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new M),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new M),this.onCut=this._onCut.event,this._onPaste=this._register(new M),this.onPaste=this._onPaste.event,this._onType=this._register(new M),this.onType=this._onType.event,this._onCompositionStart=this._register(new M),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new M),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new M),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new M),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new Tt(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new Tt(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=Nt.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown(r=>{const a=new He(r);(a.keyCode===109||this._currentComposition&&a.keyCode===1)&&a.stopPropagation(),a.equals(9)&&a.preventDefault(),o=a,this._onKeyDown.fire(a)})),this._register(this._textArea.onKeyUp(r=>{const a=new He(r);this._onKeyUp.fire(a)})),this._register(this._textArea.onCompositionStart(r=>{const a=new q5;if(this._currentComposition){this._currentComposition=a;return}if(this._currentComposition=a,this._OS===2&&o&&o.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===r.data&&(o.code==="ArrowRight"||o.code==="ArrowLeft")){a.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:r.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:r.data});return}this._onCompositionStart.fire({data:r.data})})),this._register(this._textArea.onCompositionUpdate(r=>{const a=this._currentComposition;if(!a)return;if(this._browser.isAndroid){const c=Nt.readFromTextArea(this._textArea),h=Nt.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(h),this._onCompositionUpdate.fire(r);return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=Nt.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionUpdate.fire(r)})),this._register(this._textArea.onCompositionEnd(r=>{const a=this._currentComposition;if(!a)return;if(this._currentComposition=null,this._browser.isAndroid){const c=Nt.readFromTextArea(this._textArea),h=Nt.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(h),this._onCompositionEnd.fire();return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=Nt.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const a=Nt.readFromTextArea(this._textArea),l=Nt.deduceInput(this._textAreaState,a,this._OS===2);l.replacePrevCharCnt===0&&l.text.length===1&>(l.text.charCodeAt(0))||(this._textAreaState=a,(l.text!==""||l.replacePrevCharCnt!==0||l.replaceNextCharCnt!==0||l.positionDelta!==0)&&this._onType.fire(l))})),this._register(this._textArea.onCut(r=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(r),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(r=>{this._ensureClipboardGetsEditorSelection(r)})),this._register(this._textArea.onPaste(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),r.preventDefault(),!r.clipboardData)return;let[a,l]=cw.getTextData(r.clipboardData);!a||(l=l||Tu.INSTANCE.get(a),this._onPaste.fire({text:a,metadata:l}))})),this._register(this._textArea.onFocus(()=>{const r=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!r&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return V(document,"selectionchange",t=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),h=this._host.deduceModelPosition(c[0],c[1],c[2]),d=this._textAreaState.deduceEditorPosition(l),u=this._host.deduceModelPosition(d[0],d[1],d[2]),f=new ce(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(f)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};Tu.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,` -`):t.text,i),e.preventDefault(),e.clipboardData&&cw.setTextData(e.clipboardData,t.text,t.html,i)}}class cw{static getTextData(e){const t=e.getData(bn.text);let i=null;const n=e.getData("vscode-editor-data");if(typeof n=="string")try{i=JSON.parse(n),i.version!==1&&(i=null)}catch{}return[t,i]}static setTextData(e,t,i,n){e.setData(bn.text,t),typeof i=="string"&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}}class Z5 extends W{constructor(e){super(),this._actual=e,this.onKeyDown=this._register(hn(this._actual,"keydown")).event,this.onKeyUp=this._register(hn(this._actual,"keyup")).event,this.onCompositionStart=this._register(hn(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(hn(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(hn(this._actual,"compositionend")).event,this.onInput=this._register(hn(this._actual,"input")).event,this.onCut=this._register(hn(this._actual,"cut")).event,this.onCopy=this._register(hn(this._actual,"copy")).event,this.onPaste=this._register(hn(this._actual,"paste")).event,this.onFocus=this._register(hn(this._actual,"focus")).event,this.onBlur=this._register(hn(this._actual,"blur")).event,this._onSyntheticTap=this._register(new M),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(V(this._actual,Nu.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const e=vr(this._actual);return e?e.activeElement===this._actual:S0(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let o=null;const r=vr(n);r?o=r.activeElement:o=document.activeElement;const a=o===n,l=n.selectionStart,c=n.selectionEnd;if(a&&l===t&&c===i){Oi&&window.parent!==window&&n.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),Oi&&window.parent!==window&&n.focus();return}try{const h=E4(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),D4(n,h)}catch{}}}class Y5 extends Lr{constructor(e,t,i){super(e,t,i),this._register(Se.addTarget(this.viewHelper.linesContentDomNode)),this._register(V(this.viewHelper.linesContentDomNode,Ae.Tap,o=>this.onTap(o))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Change,o=>this.onChange(o))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Contextmenu,o=>this._onContextMenu(new yr(o,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(V(this.viewHelper.linesContentDomNode,"pointerdown",o=>{const r=o.pointerType;if(r==="mouse"){this._lastPointerType="mouse";return}else r==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const n=new M5(this.viewHelper.viewDomNode);this._register(n.onPointerMoveThrottled(this.viewHelper.viewDomNode,o=>this._onMouseMove(o),Du(this.mouseTargetFactory),Lr.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onPointerUp(this.viewHelper.viewDomNode,o=>this._onMouseUp(o))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,o=>this._onMouseLeave(o))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,o=>this._onMouseDown(o)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new yr(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:t.type===6&&t.detail.injectedText!==null})}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e)}}class X5 extends Lr{constructor(e,t,i){super(e,t,i),this._register(Se.addTarget(this.viewHelper.linesContentDomNode)),this._register(V(this.viewHelper.linesContentDomNode,Ae.Tap,n=>this.onTap(n))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Change,n=>this.onChange(n))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Contextmenu,n=>this._onContextMenu(new yr(n,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new yr(e,this.viewHelper.viewDomNode),!1);if(t.position){const i=document.createEvent("CustomEvent");i.initEvent(Nu.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(i),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class Q5 extends W{constructor(e,t,i){super(),pr&&nL.pointerEvents?this.handler=this._register(new Y5(e,t,i)):window.TouchEvent?this.handler=this._register(new X5(e,t,i)):this.handler=this._register(new Lr(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}class yl extends Ih{}const J5=E("editor.lineHighlightBackground",{dark:null,light:null,hc:null},p("lineHighlight","Background color for the highlight of line at the cursor position.")),hw=E("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},p("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),eM=E("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},p("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),tM=E("editor.rangeHighlightBorder",{dark:null,light:null,hc:yi},p("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),iM=E("editor.symbolHighlightBackground",{dark:po,light:po,hc:null},p("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),nM=E("editor.symbolHighlightBorder",{dark:null,light:null,hc:yi},p("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),tk=E("editorCursor.foreground",{dark:"#AEAFAD",light:O.black,hc:O.white},p("caret","Color of the editor cursor.")),sM=E("editorCursor.background",null,p("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),hr=E("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},p("editorWhitespaces","Color of whitespace characters in the editor.")),jf=E("editorIndentGuide.background",{dark:hr,light:hr,hc:hr},p("editorIndentGuides","Color of the editor indentation guides.")),Kf=E("editorIndentGuide.activeBackground",{dark:hr,light:hr,hc:hr},p("editorActiveIndentGuide","Color of the active editor indentation guides.")),ik=E("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:O.white},p("editorLineNumbers","Color of editor line numbers.")),Gg=E("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:yi},p("editorActiveLineNumber","Color of editor active line number"),!1,p("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),oM=E("editorLineNumber.activeForeground",{dark:Gg,light:Gg,hc:Gg},p("editorActiveLineNumber","Color of editor active line number")),rM=E("editorRuler.foreground",{dark:"#5A5A5A",light:O.lightgrey,hc:O.white},p("editorRuler","Color of the editor rulers."));E("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},p("editorCodeLensForeground","Foreground color of editor CodeLens"));E("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},p("editorBracketMatchBackground","Background color behind matching brackets"));E("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:it},p("editorBracketMatchBorder","Color for matching brackets boxes"));const aM=E("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},p("editorOverviewRulerBorder","Color of the overview ruler border.")),lM=E("editorOverviewRuler.background",null,p("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),cM=E("editorGutter.background",{dark:tn,light:tn,hc:tn},p("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),hM=E("editorUnnecessaryCode.border",{dark:null,light:null,hc:O.fromHex("#fff").transparent(.8)},p("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),dM=E("editorUnnecessaryCode.opacity",{dark:O.fromHex("#000a"),light:O.fromHex("#0007"),hc:null},p("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`));E("editorGhostText.border",{dark:null,light:null,hc:O.fromHex("#fff").transparent(.8)},p("editorGhostTextBorder","Border color of ghost text in the editor."));E("editorGhostText.foreground",{dark:O.fromHex("#ffffff56"),light:O.fromHex("#0007"),hc:null},p("editorGhostTextForeground","Foreground color of the ghost text in the editor."));E("editorGhostText.background",{dark:null,light:null,hc:null},p("editorGhostTextBackground","Background color of the ghost text in the editor."));const Zg=new O(new de(0,122,204,.6));E("editorOverviewRuler.rangeHighlightForeground",{dark:Zg,light:Zg,hc:Zg},p("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const uM=E("editorOverviewRuler.errorForeground",{dark:new O(new de(255,18,18,.7)),light:new O(new de(255,18,18,.7)),hc:new O(new de(255,50,50,1))},p("overviewRuleError","Overview ruler marker color for errors.")),fM=E("editorOverviewRuler.warningForeground",{dark:yn,light:yn,hc:R0},p("overviewRuleWarning","Overview ruler marker color for warnings.")),gM=E("editorOverviewRuler.infoForeground",{dark:As,light:As,hc:UL},p("overviewRuleInfo","Overview ruler marker color for infos.")),nk=E("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},p("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),sk=E("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},p("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),ok=E("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},p("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),rk=E("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),ak=E("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),lk=E("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),mM=E("editorBracketHighlight.unexpectedBracket.foreground",{dark:new O(new de(255,18,18,.8)),light:new O(new de(255,18,18,.8)),hc:new O(new de(255,50,50,1))},p("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),pM=E("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),_M=E("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),bM=E("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),CM=E("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),wM=E("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),vM=E("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),SM=E("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),yM=E("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),LM=E("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),kM=E("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),xM=E("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),IM=E("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));E("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hc:"#ff0000"},p("editorUnicodeHighlight.border","Border color used to highlight unicode characters."));ni((s,e)=>{const t=s.getColor(tn);t&&e.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${t}; }`);const i=s.getColor(xh);i&&e.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const n=s.getColor(cM);n&&e.addRule(`.monaco-editor .margin { background-color: ${n}; }`);const o=s.getColor(eM);o&&e.addRule(`.monaco-editor .rangeHighlight { background-color: ${o}; }`);const r=s.getColor(tM);r&&e.addRule(`.monaco-editor .rangeHighlight { border: 1px ${s.type==="hc"?"dotted":"solid"} ${r}; }`);const a=s.getColor(iM);a&&e.addRule(`.monaco-editor .symbolHighlight { background-color: ${a}; }`);const l=s.getColor(nM);l&&e.addRule(`.monaco-editor .symbolHighlight { border: 1px ${s.type==="hc"?"dotted":"solid"} ${l}; }`);const c=s.getColor(hr);c&&(e.addRule(`.monaco-editor .mtkw { color: ${c} !important; }`),e.addRule(`.monaco-editor .mtkz { color: ${c} !important; }`))});class Ja extends yl{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new A(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(59);const t=e.get(60);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(84);const i=e.get(131);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new A(e,1));if(t.column!==1)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(this._renderLineNumbers===2){const n=Math.abs(this._lastCursorModelPosition.lineNumber-i);return n===0?''+i+"":String(n)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===i||i%10===0?String(i):"":String(i)}prepareRender(e){if(this._renderLineNumbers===0){this._renderResult=null;return}const t=qt?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o='
',r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const c=l-i;if(!this._renderFinalNewline&&l===r&&this._context.viewModel.getLineLength(l)===0){a[c]="";continue}const h=this._getLineRenderLineNumber(l);h?l===this._activeLineNumber?a[c]='
'+h+"
":a[c]=o+h+"
":a[c]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ja.CLASS_NAME="line-numbers";ni((s,e)=>{const t=s.getColor(ik);t&&e.addRule(`.monaco-editor .line-numbers { color: ${t}; }`);const i=s.getColor(oM);i&&e.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${i}; }`)});class kr extends Wi{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=ue(document.createElement("div")),this._domNode.setClassName(kr.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=ue(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(kr.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}kr.CLASS_NAME="glyph-margin";kr.OUTER_CLASS_NAME="margin";const dr="monaco-mouse-cursor-text";class EM{constructor(e,t,i,n,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new A(this.modelLineNumber,this.distanceToModelLineStart+1),i=new A(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const Ol=Oi;class DM extends Wi{constructor(e,t,i){super(e),this._primaryCursorPosition=new A(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const n=this._context.configuration.options,o=n.get(131);this._setAccessibilityOptions(n),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=n.get(44),this._lineHeight=n.get(59),this._emptySelectionClipboard=n.get(32),this._copyWithSyntaxHighlighting=n.get(21),this._visibleTextArea=null,this._selections=[new ce(1,1,1,1)],this._modelSelections=[new ce(1,1,1,1)],this._lastRenderPosition=null,this.textArea=ue(document.createElement("textarea")),es.write(this.textArea,6),this.textArea.setClassName(`inputarea ${dr}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("tabindex",String(n.get(112))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",p("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),n.get(30)&&n.get(81)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=ue(document.createElement("div")),this.textAreaCover.setPosition("absolute");const r={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:c=>this._context.viewModel.getLineMaxColumn(c),getValueInRange:(c,h)=>this._context.viewModel.getValueInRange(c,h)},a={getDataToCopy:()=>{const c=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,li),h=this._context.viewModel.model.getEOL(),d=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),u=Array.isArray(c)?c:null,f=Array.isArray(c)?c.join(h):c;let m,_=null;if(this._copyWithSyntaxHighlighting&&f.length<65536){const b=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);b&&(m=b.html,_=b.mode)}return{isFromEmptySelection:d,multicursorText:u,text:f,html:m,mode:_}},getScreenReaderContent:c=>{if(this._accessibilitySupport===1){if(me){const h=this._selections[0];if(h.isEmpty()){const d=h.getStartPosition();let u=this._getWordBeforePosition(d);if(u.length===0&&(u=this._getCharacterBeforePosition(d)),u.length>0)return new Nt(u,u.length,u.length,d,d)}}return Nt.EMPTY}if(Ey){const h=this._selections[0];if(h.isEmpty()){const d=h.getStartPosition(),[u,f]=this._getAndroidWordAtPosition(d);if(u.length>0)return new Nt(u,f,f,d,d)}return Nt.EMPTY}return fa.fromEditorSelection(c,r,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(c,h,d)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(c,h,d)},l=this._register(new Z5(this.textArea.domNode));this._textAreaInput=this._register(new G5(a,l,qi,oD)),this._register(this._textAreaInput.onKeyDown(c=>{this._viewController.emitKeyDown(c)})),this._register(this._textAreaInput.onKeyUp(c=>{this._viewController.emitKeyUp(c)})),this._register(this._textAreaInput.onPaste(c=>{let h=!1,d=null,u=null;c.metadata&&(h=this._emptySelectionClipboard&&!!c.metadata.isFromEmptySelection,d=typeof c.metadata.multicursorText!="undefined"?c.metadata.multicursorText:null,u=c.metadata.mode),this._viewController.paste(c.text,h,d,u)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(c=>{c.replacePrevCharCnt||c.replaceNextCharCnt||c.positionDelta?this._viewController.compositionType(c.text,c.replacePrevCharCnt,c.replaceNextCharCnt,c.positionDelta):this._viewController.type(c.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(c=>{this._viewController.setSelection(c)})),this._register(this._textAreaInput.onCompositionStart(c=>{const h=this.textArea.domNode,d=this._modelSelections[0],{distanceToModelLineStart:u,widthOfHiddenTextBefore:f}=(()=>{const _=h.value.substring(0,Math.min(h.selectionStart,h.selectionEnd)),b=_.lastIndexOf(` -`),w=_.substring(b+1),C=w.lastIndexOf(" "),v=w.length-C-1,S=d.getStartPosition(),k=Math.min(S.column-1,v),x=S.column-1-k,L=w.substring(0,w.length-k),y=NM(L,this._fontInfo);return{distanceToModelLineStart:x,widthOfHiddenTextBefore:y}})(),{distanceToModelLineEnd:m}=(()=>{const _=h.value.substring(Math.max(h.selectionStart,h.selectionEnd)),b=_.indexOf(` -`),w=b===-1?_:_.substring(0,b),C=w.indexOf(" "),v=C===-1?w.length:w.length-C-1,S=d.getEndPosition(),k=Math.min(this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column,v);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column-k}})();this._context.viewModel.revealRange("keyboard",!0,D.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new EM(this._context,d.startLineNumber,u,f,m),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${dr} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(c=>{!this._visibleTextArea||(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${dr}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(e.lineNumber),n=Ka(t);let o=!0,r=e.column,a=!0,l=e.column,c=0;for(;c<50&&(o||a);){if(o&&r<=1&&(o=!1),o){const h=i.charCodeAt(r-2);n.get(h)!==0?o=!1:r--}if(a&&l>i.length&&(a=!1),a){const h=i.charCodeAt(l-1);n.get(h)!==0?a=!1:l++}c++}return[i.substring(r-1,l-1),e.column-r]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=Ka(this._context.configuration.options.get(117));let n=e.column,o=0;for(;n>1;){const r=t.charCodeAt(n-2);if(i.get(r)!==0||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const i=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!gt(i.charCodeAt(0)))return i}return""}_getAriaLabel(e){return e.get(2)===1?p("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",qt?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);this._accessibilitySupport===2&&t===Mr.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(44),this._lineHeight=t.get(59),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(112))),(e.hasChanged(30)||e.hasChanged(81))&&(t.get(30)&&t.get(81)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new A(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea&&this._visibleTextArea.prepareRender(e)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea){const i=this._visibleTextArea.visibleTextareaStart,n=this._visibleTextArea.visibleTextareaEnd,o=this._visibleTextArea.startPosition,r=this._visibleTextArea.endPosition;if(o&&r&&i&&n&&n.left>=this._scrollLeft&&i.left<=this._scrollLeft+this._contentWidth){const a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,l=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let c=this._visibleTextArea.widthOfHiddenLineTextBefore,h=this._contentLeft+i.left-this._scrollLeft,d=n.left-i.left+1;if(hthis._contentWidth&&(d=this._contentWidth);const u=this._context.viewModel.getViewLineData(o.lineNumber),f=u.tokens.findTokenIndexAtOffset(o.column-1),m=u.tokens.findTokenIndexAtOffset(r.column-1),_=f===m,b=this._visibleTextArea.definePresentation(_?u.tokens.getPresentation(f):null);this.textArea.domNode.scrollTop=l*this._lineHeight,this.textArea.domNode.scrollLeft=c,this._doRender({lastRenderPosition:null,top:a,left:h,width:d,height:this._lineHeight,useCover:!1,color:(et.getColorMap()||[])[b.foreground],italic:b.italic,bold:b.bold,underline:b.underline,strikethrough:b.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight){this._renderAtTopLeft();return}if(me){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:Ol?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:Ol?0:1,height:Ol?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;do{if(i=e.indexOf(` -`,i+1),i===-1)break;t++}while(!0);return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:Ol?0:1,height:Ol?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;ii(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?O.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(50)?i.setClassName("monaco-editor-background textAreaCover "+kr.OUTER_CLASS_NAME):n.get(60).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Ja.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}}function NM(s,e){if(s.length===0)return 0;const t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const i=document.createElement("span");ii(i,e),i.style.whiteSpace="pre",i.append(s),t.appendChild(i),document.body.appendChild(t);const n=i.offsetWidth;return document.body.removeChild(t),n}function TM(s,e,t){let i=0;for(let o=0;o!0,RM=()=>!1,AM=s=>s===" "||s===" ";class Yr{constructor(e,t,i,n){this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(131);this.readOnly=o.get(81),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(104),this.lineHeight=o.get(59),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(116),this.wordSeparators=o.get(117),this.emptySelectionClipboard=o.get(32),this.copyWithSyntaxHighlighting=o.get(21),this.multiCursorMergeOverlapping=o.get(69),this.multiCursorPaste=o.get(71),this.autoClosingBrackets=o.get(5),this.autoClosingQuotes=o.get(8),this.autoClosingDelete=o.get(6),this.autoClosingOvertype=o.get(7),this.autoSurround=o.get(11),this.autoIndent=o.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close}static shouldRecreate(e){return e.hasChanged(131)||e.hasChanged(117)||e.hasChanged(32)||e.hasChanged(69)||e.hasChanged(71)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(116)||e.hasChanged(59)||e.hasChanged(81)}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||e===void 0?void 0:e.getElectricCharacters();if(t)for(const i of t)this._electricChars[i]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=fu(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return ck(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return AM;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e);case"always":return MM;case"never":return RM}}_getLanguageDefinedShouldAutoClose(e){const t=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet();return i=>t.indexOf(i)!==-1}visibleColumnFromColumn(e,t){return ft.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=ft.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(nr?r:n}}class oe{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new OM(e)}static fromViewState(e){return new PM(e)}static fromModelSelection(e){const t=ce.liftSelection(e),i=new pt(D.fromPositions(t.getSelectionStart()),0,t.getPosition(),0);return oe.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;io,c=n>r,h=nr||wn||b0&&n--,qo.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=o;l<=r;l++){const c=t.getLineMaxColumn(l),h=e.visibleColumnFromColumn(t,new A(l,c));n=Math.max(n,h)}let a=i.toViewVisualColumn;return ae.getLineMinColumn(t.lineNumber))return t.delta(void 0,-yy(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new A(i,e.getLineMaxColumn(i))}else return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),r=Vc.atomicPosition(o,t.column-1,i,0);if(r!==-1&&r+1>=n)return new A(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?_e.leftPositionAtomicSoftTabs(t,i,e.tabSize):_e.leftPosition(t,i);return new Yg(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let r,a;if(i.hasSelection()&&!n)r=i.selection.startLineNumber,a=i.selection.startColumn;else{const l=i.position.delta(void 0,-(o-1)),c=t.normalizePosition(_e.clipPositionColumn(l,t),0),h=_e.left(e,t,c);r=h.lineNumber,a=h.column}return i.move(n,r,a,0)}static clipPositionColumn(e,t){return new A(e.lineNumber,_e.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return ih?(i=h,a?n=t.getLineMaxColumn(i):n=Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,c),f?o=0:o=c-ft.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),l!==void 0){const m=new A(i,n),_=t.normalizePosition(m,l);o=o+(n-_.column),i=_.lineNumber,n=_.column}return new Yg(i,n,o)}static down(e,t,i,n,o,r,a){return this.vertical(e,t,i,n,o,i+r,a,1)}static moveDown(e,t,i,n,o){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);const l=_e.down(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const n=i.selection,o=_e.down(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=_e.down(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new pt(new D(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new A(r.lineNumber,r.column),r.leftoverVisibleColumns)}static up(e,t,i,n,o,r,a){return this.vertical(e,t,i,n,o,i-r,a,0)}static moveUp(e,t,i,n,o){let r,a;i.hasSelection()&&!n?(r=i.selection.startLineNumber,a=i.selection.startColumn):(r=i.position.lineNumber,a=i.position.column);const l=_e.up(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(e,t,i){const n=i.selection,o=_e.up(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=_e.up(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new pt(new D(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new A(r.lineNumber,r.column),r.leftoverVisibleColumns)}static _isBlankLine(e,t){return e.getLineFirstNonWhitespaceColumn(t)===0}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let r=i.position.lineNumber;for(;r=u.length+1)return!1;const f=u.charAt(d.column-2),m=n.get(f);if(!m)return!1;if(ia(f)){if(i==="never")return!1}else if(t==="never")return!1;const _=u.charAt(d.column-1);let b=!1;for(const w of m)w.open===f&&w.close===_&&(b=!0);if(!b)return!1;if(e==="auto"){let w=!1;for(let C=0,v=a.length;C1){const o=t.getLineContent(n.lineNumber),r=Ci(o),a=r===-1?o.length+1:r+1;if(n.column<=a){const l=i.visibleColumnFromColumn(t,n),c=ft.prevIndentTabStop(l,i.indentSize),h=i.columnFromVisibleColumn(t,n.lineNumber,c);return new D(n.lineNumber,h,n.lineNumber,n.column)}}return D.fromPositions(xr.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=QE(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}else if(e.lineNumber>1){const i=e.lineNumber-1;return new A(i,t.getLineMaxColumn(i))}else return e}static cut(e,t,i){const n=[];let o=null;i.sort((r,a)=>A.compare(r.getStartPosition(),a.getEndPosition()));for(let r=0,a=i.length;r1&&(o==null?void 0:o.endLineNumber)!==c.lineNumber?(h=c.lineNumber-1,d=t.getLineMaxColumn(c.lineNumber-1),u=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber)):(h=c.lineNumber,d=1,u=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber));const m=new D(h,d,u,f);o=m,m.isEmpty()?n[r]=null:n[r]=new Yt(m,"")}else n[r]=null;else n[r]=new Yt(l,"")}return new oi(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class $e{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;for(let o=i.column-2;o>=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===0){if(n===2)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(a===2){if(n===1)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(a===1&&n!==0)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1))}return n!==0?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=e.length;for(let r=n;r=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===1||i===1&&a===2||i===2&&a===0)return o+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,r=i.column;r===1&&o>1&&(o=o-1,r=t.getLineMaxColumn(o));let a=$e._findPreviousWordOnLine(e,t,new A(o,r));if(n===0)return new A(o,a?a.start+1:1);if(n===1)return a&&a.wordType===2&&a.end-a.start===1&&a.nextCharClass===0&&(a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1))),new A(o,a?a.start+1:1);if(n===3){for(;a&&a.wordType===2;)a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1));return new A(o,a?a.start+1:1)}return a&&r<=a.end+1&&(a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1))),new A(o,a?a.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===1)return i>1?new A(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const a=o.charCodeAt(r-2),l=o.charCodeAt(r-1);if(a===95&&l!==95)return new A(i,r);if(ra(a)&&Xs(l))return new A(i,r);if(Xs(a)&&Xs(l)&&r+1=l.start+1&&(l=$e._findNextWordOnLine(e,t,new A(o,l.end+1))),l?r=l.start+1:r=t.getLineMaxColumn(o);return new A(o,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i1?c=1:(l--,c=n.getLineMaxColumn(l)):(h&&c<=h.end+1&&(h=$e._findPreviousWordOnLine(i,n,new A(l,h.start+1))),h?c=h.end+1:c>1?c=1:(l--,c=n.getLineMaxColumn(l))),new D(l,c,a.lineNumber,a.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new A(i.positionLineNumber,i.positionColumn),o=this._deleteInsideWordWhitespace(t,n);return o||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return i===32||i===9}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(n===0)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let r=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,r))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;r+11?new D(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumberd.start+1<=i.column&&i.column<=d.end+1,a=(d,u)=>(d=Math.min(d,i.column),u=Math.max(u,i.column),new D(i.lineNumber,d,i.lineNumber,u)),l=d=>{let u=d.start+1,f=d.end+1,m=!1;for(;f-11&&this._charAtIsWhitespace(n,u-2);)u--;return a(u,f)},c=$e._findPreviousWordOnLine(e,t,i);if(c&&r(c))return l(c);const h=$e._findNextWordOnLine(e,t,i);return h&&r(h)?l(h):c&&h?a(c.end+1,h.start+1):c?a(c.start+1,c.end+1):h?a(h.start+1,h.end+1):a(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=$e._moveWordPartLeft(e,i);return new D(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=u.start+1&&(u=$e._findNextWordOnLine(i,n,new A(l,u.end+1))),u?c=u.start+1:cc&&(h=c,d=e.model.getLineMaxColumn(h)),oe.fromModelState(new pt(new D(r.lineNumber,1,h,d),0,new A(h,d),0))}const l=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberl){const c=e.getLineCount();let h=a.lineNumber+1,d=1;return h>c&&(h=c,d=e.getLineMaxColumn(h)),oe.fromViewState(t.viewState.move(t.modelState.hasSelection(),h,d,0))}else{const c=t.modelState.selectionStart.getEndPosition();return oe.fromModelState(t.modelState.move(t.modelState.hasSelection(),c.lineNumber,c.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return oe.fromModelState($e.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new oe(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return oe.fromViewState(new pt(new D(i,n,i,n),0,new A(i,n),0))}static moveTo(e,t,i,n,o){const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new A(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return oe.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,r){switch(i){case 0:return r===4?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return r===4?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return r===2?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return r===2?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return r===2?t.map(a=>oe.fromViewState(_e.moveToPrevBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>oe.fromModelState(_e.moveToPrevBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 5:return r===2?t.map(a=>oe.fromViewState(_e.moveToNextBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>oe.fromModelState(_e.moveToNextBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const r=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const l=this._firstLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 13:{const l=this._lastLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 12:{const l=Math.round((a.startLineNumber+a.endLineNumber)/2),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 14:{const l=[];for(let c=0,h=t.length;ci.endLineNumber-1?r=i.endLineNumber-1:ooe.fromViewState(_e.moveLeft(e.cursorConfig,e,o.viewState,i,n)))}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,r=t.length;ooe.fromViewState(_e.moveRight(e.cursorConfig,e,o.viewState,i,n)))}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,r=t.length;o0)return o[o.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new A(r,e.getLineMaxColumn(r)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,n);if(l)return l;for(let c=1;c<=o;c++){const h=(o+r-c-1)%o,d=e.getLineContent(h+1),u=this._findLastMatchInLine(i,d,h+1,n);if(u)return u}return null}static _findLastMatchInLine(e,t,i,n){let o=null,r;for(e.reset(0);r=e.next(t);)o=Uo(new D(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function LN(s,e,t,i,n){if(i===0)return!0;const o=e.charCodeAt(i-1);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i);if(s.get(r)!==0)return!0}return!1}function kN(s,e,t,i,n){if(i+n===t)return!0;const o=e.charCodeAt(i+n);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i+n-1);if(s.get(r)!==0)return!0}return!1}function p0(s,e,t,i,n){return LN(s,e,t,i,n)&&kN(s,e,t,i,n)}class ca{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const n=i.index,o=i[0].length;if(n===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){hu(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=o,!this._wordSeparators||p0(this._wordSeparators,e,t,n,o))return i}while(i);return null}}class xN{static computeUnicodeHighlights(e,t,i){const n=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),r=new NC(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${IN(Array.from(a))}`,"g");const c=new ca(null,l),h=[];let d=!1,u,f=0,m=0,_=0;e:for(let b=n,w=o;b<=w;b++){const C=e.getLineContent(b),v=C.length;c.reset(0);do if(u=c.next(C),u){let S=u.index,k=u.index+u[0].length;if(S>0){const I=C.charCodeAt(S-1);gt(I)&&S--}if(k+1=I){d=!0;break e}h.push(new D(b,S+1,b,k+1))}}while(u)}return{ranges:h,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const i=new NC(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(o),a=sn.getLocales().filter(l=>!sn.getInstance(new Set([...t.allowedLocales,l])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function IN(s,e){return`[${Qn(s.map(i=>String.fromCodePoint(i)).join(""))}]`}class NC{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=sn.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ho.codePoints)TC(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(let r of t){const a=r.codePointAt(0),l=o0(r);n=n||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!ho.isInvisibleCharacter(a)&&(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!TC(e)&&ho.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function TC(s){return s===" "||s===` +`||s===" "}var Ao=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class EN extends gN{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=Ic(e.column,ey(t),this._lines[e.lineNumber-1],0);return i?new D(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,o="",r=0,a=[];return{*[Symbol.iterator](){for(;;)if(rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const o=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>o&&(i=o,n=!0)}return n?{lineNumber:t,column:i}:e}}class wr{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new EN(we.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){!this._models[e]||delete this._models[e]}computeUnicodeHighlights(e,t,i){return Ao(this,void 0,void 0,function*(){const n=this._getModel(e);return n?xN.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=this._getModel(e),r=this._getModel(t);if(!o||!r)return null;const a=o.getLinesContent(),l=r.getLinesContent(),h=new dN(a,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:n}).computeDiff(),d=h.changes.length>0?!1:this._modelsAreIdentical(o,r);return{quitEarly:h.quitEarly,identical:d,changes:h.changes}})}_modelsAreIdentical(e,t){const i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let o=1;o<=i;o++){const r=e.getLineContent(o),a=t.getLineContent(o);if(r!==a)return!1}return!0}computeMoreMinimalEdits(e,t){return Ao(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return t;const n=[];let o;t=t.slice(0).sort((r,a)=>{if(r.range&&a.range)return D.compareRangesUsingStarts(r.range,a.range);const l=r.range?0:1,c=a.range?0:1;return l-c});for(let{range:r,text:a,eol:l}of t){if(typeof l=="number"&&(o=l),D.isEmpty(r)&&!a)continue;const c=i.getValueInRange(r);if(a=a.replace(/\r\n|\n|\r/g,i.eol),c===a)continue;if(Math.max(a.length,c.length)>wr._diffLimit){n.push({range:r,text:a});continue}const h=aN(c,a,!1),d=i.offsetAt(D.lift(r).getStartPosition());for(const u of h){const f=i.positionAt(d+u.originalStart),m=i.positionAt(d+u.originalStart+u.originalLength),_={text:a.substr(u.modifiedStart,u.modifiedLength),range:{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:m.lineNumber,endColumn:m.column}};i.getValueInRange(_.range)!==_.text&&n.push(_)}}return typeof o=="number"&&n.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),n})}computeLinks(e){return Ao(this,void 0,void 0,function*(){const t=this._getModel(e);return t?CN(t):null})}textualSuggest(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=new Rr(!0),r=new RegExp(i,n),a=new Set;e:for(let l of e){const c=this._getModel(l);if(!!c){for(let h of c.words(r))if(!(h===t||!isNaN(Number(h)))&&(a.add(h),a.size>wr._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}})}computeWordRanges(e,t,i,n){return Ao(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const r=new RegExp(i,n),a=Object.create(null);for(let l=t.startLineNumber;lthis._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(j1(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}wr._diffLimit=1e5;wr._suggestionsLimit=1e4;typeof importScripts=="function"&&(Ge.monaco=by());const Gy=pe("textResourceConfigurationService"),Zy=pe("textResourcePropertiesService"),Do=pe("logService");var wn;(function(s){s[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Info=2]="Info",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",s[s.Off=6]="Off"})(wn||(wn={}));const Yy=wn.Info;class DN extends W{constructor(){super(...arguments),this.level=Yy,this._onDidChangeLogLevel=this._register(new M)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class NN extends DN{constructor(e=Yy){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=wn.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=wn.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=wn.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=wn.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}class TN extends W{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}const be=pe("ILanguageFeaturesService");var MN=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Al=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Jp=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const MC=60*1e3,RC=5*60*1e3;function $o(s,e){const t=s.getModel(e);return!(!t||t.isTooLargeForSyncing())}let e_=class extends W{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new AN(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(r,a)=>$o(this._modelService,r.uri)?this._workerManager.withWorker().then(l=>l.computeLinks(r.uri)).then(l=>l&&{links:l}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new RN(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return $o(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return this._workerManager.withWorker().then(o=>o.computeDiff(e,t,i,n))}computeMoreMinimalEdits(e,t){if($1(t)){if(!$o(this._modelService,e))return Promise.resolve(t);const i=Rr.create(!0),n=this._workerManager.withWorker().then(o=>o.computeMoreMinimalEdits(e,t));return n.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([n,Mc(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return $o(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return $o(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};e_=MN([Al(0,At),Al(1,Gy),Al(2,Do),Al(3,Eo),Al(4,be)],e_);class RN{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return Jp(this,void 0,void 0,function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const n=[];if(i.wordBasedSuggestionsMode==="currentDocument")$o(this._modelService,e.uri)&&n.push(e.uri);else for(const d of this._modelService.getModels())!$o(this._modelService,d.uri)||(d===e?n.unshift(d.uri):(i.wordBasedSuggestionsMode==="allDocuments"||d.getLanguageId()===e.getLanguageId())&&n.push(d.uri));if(n.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),a=r?new D(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):D.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),h=yield(yield this._workerManager.withWorker()).textualSuggest(n,r==null?void 0:r.word,o);if(!!h)return{duration:h.duration,suggestions:h.words.map(d=>({kind:18,label:d,insertText:d,range:{insert:l,replace:a}}))}})}}class AN extends W{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new vh).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(RC/2)),this._register(this._modelService.onModelRemoved(n=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>RC&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Xy(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class ON extends W{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const n=new vh;n.cancelAndSet(()=>this._checkStopModelSync(),Math.round(MC/2)),this._register(n)}}dispose(){for(let e in this._syncedModels)Me(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const n=i.toString();this._syncedModels[n]||this._beginModelSync(i,t),this._syncedModels[n]&&(this._syncedModelsLastUsedTime[n]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>MC&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new se;o.add(i.onDidChangeContent(r=>{this._proxy.acceptModelChanged(n.toString(),r)})),o.add(i.onWillDispose(()=>{this._stopModelSync(n)})),o.add(Pe(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Me(t)}}class AC{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Pg{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Xy extends W{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new xf(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new QD(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Pg(this)))}catch(e){Zp(e),this._worker=new AC(new wr(new Pg(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Zp(e),this._worker=new AC(new wr(new Pg(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new ON(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return Jp(this,void 0,void 0,function*(){return this._disposed?Promise.reject(nE()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(o=>o.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return Jp(this,void 0,void 0,function*(){const n=yield this._withSyncedResources(e),o=i.source,r=Lg(i);return n.textualSuggest(e.map(a=>a.toString()),t,o,r)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=o.source,a=Lg(o);return i.computeWordRanges(e.toString(),t,r,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{const o=this._modelService.getModel(e);if(!o)return null;const r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),a=r.source,l=Lg(r);return n.navigateValueSet(e.toString(),t,i,a,l)})}dispose(){super.dispose(),this._disposed=!0}}function PN(s,e,t){return new FN(s,e,t)}class FN extends Xy{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?j1(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const n=(a,l)=>e.fmr(a,l),o=(a,l)=>function(){const c=Array.prototype.slice.call(arguments,0);return l(a,c)},r={};for(const a of i)r[a]=o(a,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class vt{constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}static createEmpty(e,t){const i=vt.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new vt(n,e,t)}equals(e){return e instanceof vt?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let r=n;r0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=pi.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return pi.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return pi.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return pi.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return pi.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return pi.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return vt.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new _0(this,e,t,i)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let o=0;o>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,n="";const o=new Array;let r=0;for(;;){const a=tr){n+=this._text.substring(r,l.offset);const c=this._tokens[(t<<1)+1];o.push(n.length,c),r=l.offset}n+=l.text,o.push(n.length,l.tokenMetadata),i++}else break}return new vt(new Uint32Array(o),n,this._languageIdCodec)}}vt.defaultTokenMetadata=(0<<10|1<<14|2<<23)>>>0;class _0{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,r=e.getCount();o=i);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof _0?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class Qi{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length,n=t.length;if(i!==n)return!1;for(let o=0;o=o||(a[l++]=new Qi(Math.max(1,c.startColumn-n+1),Math.min(r+1,c.endColumn-n+1),c.className,c.type));return a}static filter(e,t,i,n){if(e.length===0)return[];const o=[];let r=0;for(let a=0,l=e.length;at||h.isEmpty()&&(c.type===0||c.type===3))continue;const d=h.startLineNumber===t?h.startColumn:i,u=h.endLineNumber===t?h.endColumn:n;o[r++]=new Qi(d,u,c.inlineClassName,c.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=Qi._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class BN{static normalize(e,t){if(t.length===0)return[];const i=[],n=new Cu;let o=0;for(let r=0,a=t.length;r1){const _=e.charCodeAt(c-2);gt(_)&&c--}if(h>1){const _=e.charCodeAt(h-2);gt(_)&&h--}const f=c-1,m=h-2;o=n.consumeLowerThan(f,o,i),n.count===0&&(o=f),n.insert(m,d,u)}return n.consumeLowerThan(1073741824,o,i),i}}class mt{constructor(e,t,i){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=i}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class VN{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class Cl{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(Qi.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=_,this.renderWhitespace=b==="all"?4:b==="boundary"?1:b==="selection"?2:b==="trailing"?3:0,this.renderControlCharacters=w,this.fontLigatures=C,this.selectionsOnLine=v&&v.sort((x,L)=>x.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}setColumnInfo(e,t,i,n){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._absoluteOffsets[e-1]=n+i}getAbsoluteOffset(e){return this._absoluteOffsets.length===0?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=Hn.getPartIndex(t),n=Hn.getCharIndex(t);return new b0(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const n=(e<<16|i<<0)>>>0;let o=0,r=this.length-1;for(;o+1>>1,b=this._data[_];if(b===n)return _;b>n?r=_:o=_}if(o===r)return o;const a=this._data[o],l=this._data[r];if(a===n)return o;if(l===n)return r;const c=Hn.getPartIndex(a),h=Hn.getCharIndex(a),d=Hn.getPartIndex(l);let u;c!==d?u=t:u=Hn.getCharIndex(l);const f=i-h,m=u-i;return f<=m?o:r}}class t_{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function C0(s,e){if(s.lineContent.length===0){if(s.lineDecorations.length>0){e.appendASCIIString("");let t=0,i=0,n=0;for(const r of s.lineDecorations)(r.type===1||r.type===2)&&(e.appendASCIIString(''),r.type===1&&(n|=1,t++),r.type===2&&(n|=2,i++));e.appendASCIIString("");const o=new Hn(1,t+i);return o.setColumnInfo(1,t,0,0),new t_(o,!1,n)}return e.appendASCIIString(""),new t_(new Hn(0,0),!1,0)}return GN(zN(s),e)}class WN{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function Ef(s){const e=ja(1e4),t=C0(s,e);return new WN(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class HN{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=f,this.renderWhitespace=m,this.renderControlCharacters=_}}function zN(s){const e=s.lineContent;let t,i;s.stopRenderingLineAfter!==-1&&s.stopRenderingLineAfter0){for(let r=0,a=s.lineDecorations.length;r0&&(i[n++]=new mt(e,"",0));for(let o=0,r=s.getCount();o=t){i[n++]=new mt(t,l,0);break}i[n++]=new mt(a,l,0)}return i}function $N(s,e,t){let i=0;const n=[];let o=0;if(t)for(let r=0,a=e.length;r=50&&(n[o++]=new mt(u+1,h,d),f=u+1,u=-1);f!==c&&(n[o++]=new mt(c,h,d))}else n[o++]=l;i=c}else for(let r=0,a=e.length;r50){const d=l.type,u=l.metadata,f=Math.ceil(h/50);for(let m=1;m=8234&&s<=8238||s>=8294&&s<=8297||s>=8206&&s<=8207||s===1564}function jN(s,e){const t=[];let i=new mt(0,"",0),n=0;for(const o of e){const r=o.endIndex;for(;ni.endIndex&&(i=new mt(n,o.type,o.metadata),t.push(i)),i=new mt(n+1,"mtkcontrol",o.metadata),t.push(i))}n>i.endIndex&&(i=new mt(r,o.type,o.metadata),t.push(i))}return t}function KN(s,e,t,i){const n=s.continuesWithWrappedLine,o=s.fauxIndentLength,r=s.tabSize,a=s.startVisibleColumn,l=s.useMonospaceOptimizations,c=s.selectionsOnLine,h=s.renderWhitespace===1,d=s.renderWhitespace===3,u=s.renderSpaceWidth!==s.spaceWidth,f=[];let m=0,_=0,b=i[_].type,w=i[_].endIndex;const C=i.length;let v=!1,S=Ci(e),k;S===-1?(v=!0,S=t,k=t):k=pl(e);let x=!1,L=0,y=c&&c[L],I=a%r;for(let T=o;T=y.endOffset&&(L++,y=c&&c[L]);let F;if(Tk)F=!0;else if(P===9)F=!0;else if(P===32)if(h)if(x)F=!0;else{const j=T+1T),F&&d&&(F=v||T>k),x){if(!F||!l&&I>=r){if(u){const j=m>0?f[m-1].endIndex:o;for(let z=j+1;z<=T;z++)f[m++]=new mt(z,"mtkw",1)}else f[m++]=new mt(T,"mtkw",1);I=I%r}}else(T===w||F&&T>o)&&(f[m++]=new mt(T,b,0),I=I%r);for(P===9?I=r:vo(P)?I+=2:I++,x=F;T===w&&(_++,_0?e.charCodeAt(t-1):0,P=t>1?e.charCodeAt(t-2):0;T===32&&P!==32&&P!==9||(R=!0)}else R=!0;if(R)if(u){const T=m>0?f[m-1].endIndex:o;for(let P=T+1;P<=t;P++)f[m++]=new mt(P,"mtkw",1)}else f[m++]=new mt(t,"mtkw",1);else f[m++]=new mt(t,b,0);return f}function qN(s,e,t,i){i.sort(Qi.compare);const n=BN.normalize(s,i),o=n.length;let r=0;const a=[];let l=0,c=0;for(let d=0,u=t.length;dc&&(c=w.startOffset,a[l++]=new mt(c,_,b)),w.endOffset+1<=m)c=w.endOffset+1,a[l++]=new mt(c,_+" "+w.className,b|w.metadata),r++;else{c=m,a[l++]=new mt(c,_+" "+w.className,b|w.metadata);break}}m>c&&(c=m,a[l++]=new mt(c,_,b))}const h=t[t.length-1].endIndex;if(r'):e.appendASCIIString("");for(let I=0,R=l.length;I=c&&(ae+=Xe)}}for(z&&(e.appendASCIIString(' style="width:'),e.appendASCIIString(String(f*ie)),e.appendASCIIString('px"')),e.appendASCII(62);v1?e.write1(8594):e.write1(65515);for(let nt=2;nt<=ae;nt++)e.write1(160)}else ae=1,e.write1(m);k+=ae,v>=c&&(S+=ae)}L=ie}else{let ie=0;for(e.appendASCII(62);v=c&&(S+=nt)}L=ie}Q?x++:x=0,v>=r&&!C&&T.isPseudoAfter()&&(C=!0,w.setColumnInfo(v+1,I,k,y)),e.appendASCIIString("")}return C||w.setColumnInfo(r+1,l.length-1,k,y),a&&e.appendASCIIString(""),e.appendASCIIString(""),new t_(w,u,n)}function ZN(s){return s.toString(16).toUpperCase().padStart(4,"0")}class PC{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=n|0}}class YN{constructor(e,t){this.tabSize=e,this.data=t}}class w0{constructor(e,t,i,n,o,r,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=r,this.inlineDecorations=a}}class vi{constructor(e,t,i,n,o,r,a,l,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=vi.isBasicASCII(i,r),this.containsRTL=vi.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return t?o0(e):!0}static containsRTL(e,t,i){return!t&&i?s0(e):!1}}class ic{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class XN{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new ic(new D(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class Jy{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class eL{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function QN(s){return Array.isArray(s)}function JN(s){return!QN(s)}function tL(s){return typeof s=="string"}function FC(s){return!tL(s)}function ta(s){return!s}function fo(s,e){return s.ignoreCase&&e?e.toLowerCase():e}function BC(s){return s.replace(/[&<>'"_]/g,"-")}function e4(s,e){console.log(`${s.languageId}: ${e}`)}function ke(s,e){return new Error(`${s.languageId}: ${e}`)}function Js(s,e,t,i,n){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return e.replace(o,function(a,l,c,h,d,u,f,m,_){return ta(c)?ta(h)?!ta(d)&&d0;){const i=s.tokenizer[t];if(i)return i;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return null}function t4(s,e){let t=e;for(;t&&t.length>0;){if(s.stateNames[t])return!0;const n=t.lastIndexOf(".");n<0?t=null:t=t.substr(0,n)}return!1}const iL=5;class Ac{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new La(e,t);let i=La.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new La(e,t),this._entries[i]=n,n)}}Ac._INSTANCE=new Ac(iL);class La{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return La._equals(this,e)}push(e){return Ac.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Ac.create(this.parent,e)}}class ha{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new ha(this.languageId,this.state)}}class eo{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(t!==null)return new nc(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new nc(e,t);const i=La.getStackElementId(e);let n=this._entries[i];return n||(n=new nc(e,null),this._entries[i]=n,n)}}eo._INSTANCE=new eo(iL);class nc{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:eo.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof nc)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class i4{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Ec(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,r=i.state,a=et.get(o);if(!a)return this.enterLanguage(o),this.emit(n,""),r;const l=a.tokenize(e,t,r);if(n!==0)for(const c of l.tokens)this._tokens.push(new Ec(c.offset+n,c.type,c.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new Q1(this._tokens,e)}}class wu{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=e!==null?e.length:0,o=t.length,r=i!==null?i.length:0;if(n===0&&o===0&&r===0)return new Uint32Array(0);if(n===0&&o===0)return i;if(o===0&&r===0)return e;const a=new Uint32Array(n+o+r);e!==null&&a.set(e);for(let l=0;l{if(o)return;let a=!1;for(let l=0,c=r.changedLanguages.length;l{})}}getInitialState(){const e=Ac.create(null,this._lexer.start);return eo.create(e,null)}tokenize(e,t,i){const n=new i4,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){const n=new wu(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=$h(this._lexer,t.stack.state),!i))throw ke(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const r of i){if(!FC(r.action)||r.action.nextEmbedded!=="@pop")continue;o=!0;let a=r.regex;const l=r.regex.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const h=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),h)}const c=e.search(a);c===-1||c!==0&&r.matchOnlyAtLineStart||(n===-1||c0&&o.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,n);const l=e.substring(r);return this._myTokenize(l,t,i,n+r,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const r=e.length,a=t&&this._lexer.includeLF?e+` +`:e,l=a.length;let c=i.embeddedLanguageData,h=i.stack,d=0,u=null,f=!0;for(;f||d=l)break;f=!1;let I=this._lexer.tokenizer[w];if(!I&&(I=$h(this._lexer,w),!I))throw ke(this._lexer,"tokenizer state is not defined: "+w);let R=a.substr(d);for(const T of I)if((d===0||!T.matchOnlyAtLineStart)&&(C=R.match(T.regex),C)){v=C[0],S=T.action;break}}if(C||(C=[""],v=""),S||(d=this._lexer.maxStack)throw ke(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(w)}else if(S.next==="@pop"){if(h.depth<=1)throw ke(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(k));h=h.pop()}else if(S.next==="@popall")h=h.popall();else{let I=Js(this._lexer,S.next,v,C,w);if(I[0]==="@"&&(I=I.substr(1)),$h(this._lexer,I))h=h.push(I);else throw ke(this._lexer,"trying to set a next state '"+I+"' that is undefined in rule: "+this._safeRuleName(k))}}S.log&&typeof S.log=="string"&&e4(this._lexer,this._lexer.languageId+": "+Js(this._lexer,S.log,v,C,w))}if(L===null)throw ke(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(k));const y=I=>{const R=this._languageService.getLanguageIdByLanguageName(I)||this._languageService.getLanguageIdByMimeType(I)||I,T=this._getNestedEmbeddedLanguageData(R);if(d0)throw ke(this._lexer,"groups cannot be nested: "+this._safeRuleName(k));if(C.length!==L.length+1)throw ke(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(k));let I=0;for(let R=1;Rs});class v0{static colorizeElement(e,t,i,n){n=n||{};const o=n.theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(r)||r;e.setTheme(o);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const c=h=>{var d;const u=(d=Bg==null?void 0:Bg.createHTML(h))!==null&&d!==void 0?d:h;i.innerHTML=u};return this.colorize(t,l||"",a,n).then(c,h=>console.error(h))}static colorize(e,t,i,n){return s4(this,void 0,void 0,function*(){const o=e.languageIdCodec;let r=4;n&&typeof n.tabSize=="number"&&(r=n.tabSize),a0(t)&&(t=t.substr(1));const a=Ch(t);if(!e.isRegisteredLanguageId(i))return VC(a,r,o);const l=yield et.getOrCreate(i);return l?o4(a,r,l,o):VC(a,r,o)})}static colorizeLine(e,t,i,n,o=4){const r=vi.isBasicASCII(e,t),a=vi.containsRTL(e,r,i);return Ef(new Cl(!1,!0,e,!1,r,a,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.forceTokenization(t);const r=e.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,i)}}function o4(s,e,t,i){return new Promise((n,o)=>{const r=()=>{const a=r4(s,e,t,i);if(t instanceof yh){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(r,o);return}}n(a)};r()})}function VC(s,e,t){let i=[];const o=new Uint32Array(2);o[0]=0,o[1]=16793600;for(let r=0,a=s.length;r")}return i.join("")}function r4(s,e,t,i){let n=[],o=t.getInitialState();for(let r=0,a=s.length;r"),o=c.endState}return n.join("")}const nL={clipboard:{writeText:va||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:va||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>va||Dy?0:navigator.keyboard||Jn?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function i_(s,e){if(s===0)return null;const t=(s&65535)>>>0,i=(s&4294901760)>>>16;return i!==0?new vu([Vg(t,e),Vg(i,e)]):new vu([Vg(t,e)])}function Vg(s,e){const t=!!(s&2048),i=!!(s&256),n=e===2?i:t,o=!!(s&1024),r=!!(s&512),a=e===2?t:i,l=s&255;return new Oc(n,o,r,a,l)}class Oc{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new vu([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class vu{constructor(e){if(e.length===0)throw q1("parts");this.parts=e}}class a4{constructor(e,t,i,n,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=r}}class l4{}function c4(s){if(s.charCode){let t=String.fromCharCode(s.charCode).toUpperCase();return Jo.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(Oi){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(me&&e===224)return 57}else if(uo){if(e===91)return 57;if(me&&e===93)return 57;if(!me&&e===92)return 57}return hy[e]||0}const h4=me?256:2048,d4=512,u4=1024,f4=me?2048:256;class He{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=c4(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=h4),this.altKey&&(t|=d4),this.shiftKey&&(t|=u4),this.metaKey&&(t|=f4),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Oc(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let n_=!1,Zr=null;function g4(s){if(!s.parent||s.parent===s)return null;try{let e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return n_=!0,null}catch{return n_=!0,null}return s.parent}class s_{static getSameOriginWindowChain(){if(!Zr){Zr=[];let e=window,t;do t=g4(e),t?Zr.push({window:e,iframeElement:e.frameElement||null}):Zr.push({window:e,iframeElement:null}),e=t;while(e)}return Zr.slice(0)}static hasDifferentOriginAncestor(){return Zr||this.getSameOriginWindowChain(),n_}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,o=this.getSameOriginWindowChain();for(const r of o){if(i+=r.window.scrollY,n+=r.window.scrollX,r.window===t||!r.iframeElement)break;let a=r.iframeElement.getBoundingClientRect();i+=a.top,n+=a.left}return{top:i,left:n}}}class Ji{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=s_.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class qa{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let n=e,o=e;if(typeof n.wheelDeltaY!="undefined")this.deltaY=n.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS!="undefined"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Oi&&!me?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof n.wheelDeltaX!="undefined")Jn&&li?this.deltaX=-(n.wheelDeltaX/120):this.deltaX=n.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS!="undefined"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Oi&&!me?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}var Ce;(function(s){s.inMemory="inmemory",s.vscode="vscode",s.internal="private",s.walkThrough="walkThrough",s.walkThroughSnippet="walkThroughSnippet",s.http="http",s.https="https",s.file="file",s.mailto="mailto",s.untitled="untitled",s.data="data",s.command="command",s.vscodeRemote="vscode-remote",s.vscodeRemoteResource="vscode-remote-resource",s.userData="vscode-userdata",s.vscodeCustomEditor="vscode-custom-editor",s.vscodeNotebook="vscode-notebook",s.vscodeNotebookCell="vscode-notebook-cell",s.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeInteractive="vscode-interactive",s.vscodeInteractiveInput="vscode-interactive-input",s.vscodeSettings="vscode-settings",s.vscodeWorkspaceTrust="vscode-workspace-trust",s.vscodeTerminal="vscode-terminal",s.webviewPanel="webview-panel",s.vscodeWebview="vscode-webview",s.extension="extension",s.vscodeFileResource="vscode-file",s.tmp="tmp",s.vsls="vsls"})(Ce||(Ce={}));const m4="tkn";class p4{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${m4}=${encodeURIComponent(o)}`),we.from({scheme:fl?this._preferredWebSchema:Ce.vscodeRemoteResource,authority:`${i}:${n}`,path:"/vscode-remote-resource",query:r})}}const sL=new p4;class Pc{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===Ce.vscodeRemote?sL.rewrite(i):i.scheme===Ce.file&&(va||Zx&&Ge.origin===`${Ce.vscodeFileResource}://${Pc.FALLBACK_AUTHORITY}`)?i.with({scheme:Ce.vscodeFileResource,authority:i.authority||Pc.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return we.isUri(e)?e:we.parse(t.toUrl(e))}}Pc.FALLBACK_AUTHORITY="vscode-app";const _4=new Pc;function Pi(s){for(;s.firstChild;)s.firstChild.remove()}function S0(s){var e;return(e=s==null?void 0:s.isConnected)!==null&&e!==void 0?e:!1}class oL{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){!this._handler||(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function V(s,e,t,i){return new oL(s,e,t,i)}function b4(s){return function(e){return s(new Ji(e))}}function C4(s){return function(e){return s(new He(e))}}let wi=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"?o=b4(i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=C4(i)),V(e,t,o,n)};function y0(s,e){return V(s,"mouseout",t=>{let i=t.relatedTarget;for(;i&&i!==s;)i=i.parentNode;i!==s&&e(t)})}function w4(s,e){return V(s,"pointerout",t=>{let i=t.relatedTarget;for(;i&&i!==s;)i=i.parentNode;i!==s&&e(t)})}function hn(s,e,t){let i=null;const n=l=>a.fire(l),o=()=>{i||(i=new oL(s,e,n,t))},r=()=>{i&&(i.dispose(),i=null)},a=new M({onFirstListenerAdd:o,onLastListenerRemove:r});return a}let Wg=null;function v4(s){if(!Wg){const e=t=>setTimeout(()=>t(new Date().getTime()),0);Wg=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return Wg.call(self,s)}let rL,kn;class Hg{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Ze(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let s=[],e=null,t=!1,i=!1,n=()=>{for(t=!1,e=s,s=[],i=!0;e.length>0;)e.sort(Hg.sort),e.shift().execute();i=!1};kn=(o,r=0)=>{let a=new Hg(o,r);return s.push(a),t||(t=!0,v4(n)),a},rL=(o,r)=>{if(i){let a=new Hg(o,r);return e.push(a),a}else return kn(o,r)}})();const S4=8,y4=function(s,e){return e};class L4 extends W{constructor(e,t,i,n=y4,o=S4){super();let r=null,a=0,l=this._register(new os),c=()=>{a=new Date().getTime(),i(r),r=null};this._register(V(e,t,h=>{r=n(r,h);let d=new Date().getTime()-a;d>=o?(l.cancel(),c()):l.setIfNotSet(c,o-d)}))}}function L0(s,e,t,i,n){return new L4(s,e,t,i,n)}function k0(s){return document.defaultView.getComputedStyle(s,null)}function aL(s){if(s!==document.body)return new Ei(s.clientWidth,s.clientHeight);if(pr&&window.visualViewport)return new Ei(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new Ei(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ei(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ei(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class We{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=k0(e),o="0";return n&&(n.getPropertyValue?o=n.getPropertyValue(t):o=n.getAttribute(i)),We.convertToPixels(e,o)}static getBorderLeftWidth(e){return We.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return We.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return We.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return We.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return We.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return We.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return We.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return We.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return We.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return We.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return We.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return We.getDimension(e,"margin-bottom","marginBottom")}}class Ei{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Ei(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof Ei?e:new Ei(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}Ei.None=new Ei(0,0);function lL(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==document.body&&s!==document.documentElement;){t-=s.scrollTop;const n=hL(s)?null:k0(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=We.getBorderLeftWidth(s),t+=We.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function en(s){let e=s.getBoundingClientRect();return{left:e.left+Ms.scrollX,top:e.top+Ms.scrollY,width:e.width,height:e.height}}const Ms=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function ji(s){let e=We.getMarginLeft(s)+We.getMarginRight(s);return s.offsetWidth+e}function zg(s){let e=We.getBorderLeftWidth(s)+We.getBorderRightWidth(s),t=We.getPaddingLeft(s)+We.getPaddingRight(s);return s.offsetWidth-e-t}function k4(s){let e=We.getBorderTopWidth(s)+We.getBorderBottomWidth(s),t=We.getPaddingTop(s)+We.getPaddingBottom(s);return s.offsetHeight-e-t}function o_(s){let e=We.getMarginTop(s)+We.getMarginBottom(s);return s.offsetHeight+e}function Rs(s,e){for(;s;){if(s===e)return!0;s=s.parentNode}return!1}function cL(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function WC(s,e,t){return!!cL(s,e,t)}function hL(s){return s&&!!s.host&&!!s.mode}function r_(s){return!!vr(s)}function vr(s){for(;s.parentNode;){if(s===document.body)return null;s=s.parentNode}return hL(s)?s:null}function ka(){let s=document.activeElement;for(;s!=null&&s.shadowRoot;)s=s.shadowRoot.activeElement;return s}function xn(s=document.getElementsByTagName("head")[0]){let e=document.createElement("style");return e.type="text/css",e.media="screen",s.appendChild(e),e}let Ug=null;function x4(){return Ug||(Ug=xn()),Ug}function HC(s,e,t=x4()){!t||!e||t.sheet.insertRule(s+"{"+e+"}",0)}function dL(s){return typeof HTMLElement=="object"?s instanceof HTMLElement:s&&typeof s=="object"&&s.nodeType===1&&typeof s.nodeName=="string"}const Y={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:uo?"webkitAnimationStart":"animationstart",ANIMATION_END:uo?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:uo?"webkitAnimationIteration":"animationiteration"},Ie={stop:function(s,e){s.preventDefault?s.preventDefault():s.returnValue=!1,e&&(s.stopPropagation?s.stopPropagation():s.cancelBubble=!0)}};function I4(s){let e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function E4(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}class Su extends W{constructor(e){super(),this._onDidFocus=this._register(new M),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new M),this.onDidBlur=this._onDidBlur.event;let t=Su.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Su.hasFocusWithin(e)!==t&&(t?o():n())},this._register(V(e,Y.FOCUS,n,!0)),this._register(V(e,Y.BLUR,o,!0)),this._register(V(e,Y.FOCUS_IN,()=>this._refreshStateHandler())),this._register(V(e,Y.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(e){const t=vr(e),i=t?t.activeElement:document.activeElement;return Rs(i,e)}}function Ga(s){return new Su(s)}function U(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function Df(s,...e){s.innerText="",U(s,...e)}const D4=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Fc;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Fc||(Fc={}));function uL(s,e,t,...i){let n=D4.exec(e);if(!n)throw new Error("Bad use of emmet");t=Object.assign({},t||{});let o=n[1]||"div",r;return s!==Fc.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),Object.keys(t).forEach(a=>{const l=t[a];typeof l!="undefined"&&(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function J(s,e,...t){return uL(Fc.HTML,s,e,...t)}J.SVG=function(s,e,...t){return uL(Fc.SVG,s,e,...t)};function fL(...s){for(let e of s)e.style.display="",e.removeAttribute("aria-hidden")}function zC(...s){for(let e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function N4(s){return Array.prototype.slice.call(document.getElementsByTagName(s),0)}function UC(s){const e=window.devicePixelRatio*s;return Math.max(1,Math.floor(e))/window.devicePixelRatio}function gL(s){window.open(s,"_blank","noopener")}function T4(s){const e=()=>{s(),t=kn(e)};let t=kn(e);return Pe(()=>t.dispose())}sL.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function a_(s){return s?`url('${_4.asBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function $C(s){return`'${s.replace(/'/g,"%27")}'`}class da extends M{constructor(){super(),this._subscriptions=new se,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(V(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new He(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(V(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(V(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(V(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(V(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(V(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return da.instance||(da.instance=new da),da.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function M4(s,e){window.matchMedia(s).addEventListener("change",e)}const jC=2e4;let jo,Od,l_,Pd,c_;function R4(s){jo=document.createElement("div"),jo.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),jo.appendChild(i),i};Od=e(),l_=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("role","complementary"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),jo.appendChild(i),i};Pd=t(),c_=t(),s.appendChild(jo)}function Nf(s){!jo||(Od.textContent!==s?(Pi(l_),yu(Od,s)):(Pi(Od),yu(l_,s)))}function h_(s){!jo||(me?Nf(s):Pd.textContent!==s?(Pi(c_),yu(Pd,s)):(Pi(Pd),yu(c_,s)))}function yu(s,e){Pi(s),e.length>jC&&(e=e.substr(0,jC)),s.textContent=e,s.style.visibility="hidden",s.style.visibility="visible"}const mL=pe("markerDecorationsService"),Tf=pe("textModelService");var Lu=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class qn extends W{constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return Lu(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class x0 extends W{constructor(){super(...arguments),this._onBeforeRun=this._register(new M),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M),this.onDidRun=this._onDidRun.event}run(e,t){return Lu(this,void 0,void 0,function*(){if(!e.enabled)return;this._onBeforeRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return Lu(this,void 0,void 0,function*(){yield e.run(t)})}}class Or extends qn{constructor(e){super(Or.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Or.ID="vs.actions.separator";class pL{constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}get actions(){return this._actions}dispose(){}run(){return Lu(this,void 0,void 0,function*(){})}}class Mf extends qn{constructor(){super(Mf.ID,p("submenu.empty","(empty)"),void 0,!1)}}Mf.ID="vs.actions.empty";const Bi=pe("commandService"),Ht=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.description){const r=[];for(let l of s.description.args)r.push(l.constraint);const a=s.handler;s.handler=function(l,...c){return gI(c,r),a(l,...c)}}const{id:t}=s;let i=this._commands.get(t);i||(i=new Xi,this._commands.set(t,i));let n=i.unshift(s),o=Pe(()=>{n();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return Ht.registerCommand(s,(t,...i)=>t.get(Bi).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return he.first(e)}getCommands(){const s=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&s.set(e,t)}return s}};Ht.registerCommand("noop",()=>{});const Mt=new Map;Mt.set("false",!1);Mt.set("true",!0);Mt.set("isMac",me);Mt.set("isLinux",qt);Mt.set("isWindows",li);Mt.set("isWeb",fl);Mt.set("isMacNative",me&&!fl);Mt.set("isEdge",Qx);Mt.set("isFirefox",Yx);Mt.set("isChrome",QS);Mt.set("isSafari",Xx);const A4=Object.prototype.hasOwnProperty;class Oe{static has(e){return So.create(e)}static equals(e,t){return Za.create(e,t)}static regex(e,t){return ku.create(e,t)}static not(e){return Sr.create(e)}static and(...e){return oo.create(e,null)}static or(...e){return Ns.create(e,null,!0)}static deserialize(e,t=!1){if(!!e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let i=e.split("||");return Ns.create(i.map(n=>this._deserializeAndExpression(n,t)),null,!0)}static _deserializeAndExpression(e,t){let i=e.split("&&");return oo.create(i.map(n=>this._deserializeOne(n,t)),null)}static _deserializeOne(e,t){if(e=e.trim(),e.indexOf("!=")>=0){let i=e.split("!=");return Rf.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("==")>=0){let i=e.split("==");return Za.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("=~")>=0){let i=e.split("=~");return ku.create(i[0].trim(),this._deserializeRegexValue(i[1],t))}if(e.indexOf(" in ")>=0){let i=e.split(" in ");return I0.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const i=e.split(">=");return Pf.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const i=e.split(">");return Of.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const i=e.split("<=");return Bf.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const i=e.split("<");return Ff.create(i[0].trim(),i[1].trim())}return/^\!\s*/.test(e)?Sr.create(e.substr(1).trim()):So.create(e)}static _deserializeValue(e,t){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;let i=/^'([^']*)'$/.exec(e);return i?i[1].trim():e}static _deserializeRegexValue(e,t){if(BE(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let i=e.indexOf("/"),n=e.lastIndexOf("/");if(i===n||i<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(i+1,n),r=e[n+1]==="i"?"i":"";try{return new RegExp(o,r)}catch(a){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${a}`);return console.warn(`bad regexp-value '${e}', parse error: ${a}`),null}}}function O4(s,e){const t=s?s.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function xa(s,e){return s.cmp(e)}class Si{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return Fi.INSTANCE}}Si.INSTANCE=new Si;class Fi{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Si.INSTANCE}}Fi.INSTANCE=new Fi;class So{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const i=Mt.get(e);return typeof i=="boolean"?i?Fi.INSTANCE:Si.INSTANCE:new So(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:bL(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Mt.get(this.key);return typeof e=="boolean"?e?Fi.INSTANCE:Si.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Sr.create(this.key,this)),this.negated}}class Za{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}static create(e,t,i=null){if(typeof t=="boolean")return t?So.create(e,i):Sr.create(e,i);const n=Mt.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Fi.INSTANCE:Si.INSTANCE:new Za(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Mt.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Fi.INSTANCE:Si.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Rf.create(this.key,this.value,this)),this.negated}}class I0{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new I0(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.indexOf(i)>=0:typeof i=="string"&&typeof t=="object"&&t!==null?A4.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=E0.create(this)),this.negated}}class E0{constructor(e){this._actual=e,this.type=11}static create(e){return new E0(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Rf{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}static create(e,t,i=null){if(typeof t=="boolean")return t?Sr.create(e,i):So.create(e,i);const n=Mt.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Si.INSTANCE:Fi.INSTANCE:new Rf(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Mt.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Si.INSTANCE:Fi.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Za.create(this.key,this.value,this)),this.negated}}class Sr{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const i=Mt.get(e);return typeof i=="boolean"?i?Si.INSTANCE:Fi.INSTANCE:new Sr(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:bL(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Mt.get(this.key);return typeof e=="boolean"?e?Si.INSTANCE:Fi.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=So.create(this.key,this)),this.negated}}function Af(s,e){if(typeof s=="string"){const t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):Si.INSTANCE}class Of{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}static create(e,t,i=null){return Af(t,n=>new Of(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Bf.create(this.key,this.value,this)),this.negated}}class Pf{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}static create(e,t,i=null){return Af(t,n=>new Pf(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ff.create(this.key,this.value,this)),this.negated}}class Ff{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}static create(e,t,i=null){return Af(t,n=>new Ff(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new Bf(e,n,i))}cmp(e){return e.type!==this.type?this.type-e.type:Pr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Of.create(this.key,this.value,this)),this.negated}}class ku{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new ku(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D0.create(this)),this.negated}}class D0{constructor(e){this._actual=e,this.type=8}static create(e){return new D0(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function _L(s){let e=null;for(let t=0,i=s.length;te.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const o=i[i.length-1];if(o.type!==9)break;i.pop();const r=i.pop(),a=i.length===0,l=Ns.create(o.expr.map(c=>oo.create([c,r],null)),null,a);l&&(i.push(l),i.sort(xa))}return i.length===1?i[0]:new oo(i,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=Ns.create(e,this,!0)}return this.negated}}class Ns{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,i){return Ns._normalizeArr(e,t,i)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const r of xu(t))for(const a of xu(i))n.push(oo.create([r,a],null));const o=e.length===0;e.unshift(Ns.create(n,null,o))}this.negated=e[0]}return this.negated}}class G extends So{constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?G._info.push(Object.assign(Object.assign({},i),{key:e})):i!==!0&&G._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}static all(){return G._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Za.create(this.key,e)}}G._info=[];const Ne=pe("contextKeyService"),P4="setContext";function bL(s,e){return se?1:0}function Pr(s,e,t,i){return st?1:ei?1:0}function CL(s,e){if(e.type===6&&s.type!==9&&s.type!==6){for(const n of e.expr)if(s.equals(n))return!0}const t=s.negate(),i=xu(t).concat(xu(e));i.sort(xa);for(let n=0;n{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let vL=new B4;xt.add(wL.ThemingContribution,vL);function ni(s){return vL.onColorThemeChange(s)}class V4 extends W{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}var W4=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},KC=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function ql(s){return s.command!==void 0}class N{constructor(e){this.id=N._idPool++,this._debugName=e}}N._idPool=0;N.CommandPalette=new N("CommandPalette");N.DebugBreakpointsContext=new N("DebugBreakpointsContext");N.DebugCallStackContext=new N("DebugCallStackContext");N.DebugConsoleContext=new N("DebugConsoleContext");N.DebugVariablesContext=new N("DebugVariablesContext");N.DebugWatchContext=new N("DebugWatchContext");N.DebugToolBar=new N("DebugToolBar");N.EditorContext=new N("EditorContext");N.SimpleEditorContext=new N("SimpleEditorContext");N.EditorContextCopy=new N("EditorContextCopy");N.EditorContextPeek=new N("EditorContextPeek");N.EditorTitle=new N("EditorTitle");N.EditorTitleRun=new N("EditorTitleRun");N.EditorTitleContext=new N("EditorTitleContext");N.EmptyEditorGroup=new N("EmptyEditorGroup");N.EmptyEditorGroupContext=new N("EmptyEditorGroupContext");N.ExplorerContext=new N("ExplorerContext");N.ExtensionContext=new N("ExtensionContext");N.GlobalActivity=new N("GlobalActivity");N.LayoutControlMenuSubmenu=new N("LayoutControlMenuSubmenu");N.LayoutControlMenu=new N("LayoutControlMenu");N.MenubarMainMenu=new N("MenubarMainMenu");N.MenubarAppearanceMenu=new N("MenubarAppearanceMenu");N.MenubarDebugMenu=new N("MenubarDebugMenu");N.MenubarEditMenu=new N("MenubarEditMenu");N.MenubarCopy=new N("MenubarCopy");N.MenubarFileMenu=new N("MenubarFileMenu");N.MenubarGoMenu=new N("MenubarGoMenu");N.MenubarHelpMenu=new N("MenubarHelpMenu");N.MenubarLayoutMenu=new N("MenubarLayoutMenu");N.MenubarNewBreakpointMenu=new N("MenubarNewBreakpointMenu");N.MenubarPanelAlignmentMenu=new N("MenubarPanelAlignmentMenu");N.MenubarPanelPositionMenu=new N("MenubarPanelPositionMenu");N.MenubarPreferencesMenu=new N("MenubarPreferencesMenu");N.MenubarRecentMenu=new N("MenubarRecentMenu");N.MenubarSelectionMenu=new N("MenubarSelectionMenu");N.MenubarSwitchEditorMenu=new N("MenubarSwitchEditorMenu");N.MenubarSwitchGroupMenu=new N("MenubarSwitchGroupMenu");N.MenubarTerminalMenu=new N("MenubarTerminalMenu");N.MenubarViewMenu=new N("MenubarViewMenu");N.MenubarHomeMenu=new N("MenubarHomeMenu");N.OpenEditorsContext=new N("OpenEditorsContext");N.ProblemsPanelContext=new N("ProblemsPanelContext");N.SCMChangeContext=new N("SCMChangeContext");N.SCMResourceContext=new N("SCMResourceContext");N.SCMResourceFolderContext=new N("SCMResourceFolderContext");N.SCMResourceGroupContext=new N("SCMResourceGroupContext");N.SCMSourceControl=new N("SCMSourceControl");N.SCMTitle=new N("SCMTitle");N.SearchContext=new N("SearchContext");N.StatusBarWindowIndicatorMenu=new N("StatusBarWindowIndicatorMenu");N.StatusBarRemoteIndicatorMenu=new N("StatusBarRemoteIndicatorMenu");N.TestItem=new N("TestItem");N.TestItemGutter=new N("TestItemGutter");N.TestPeekElement=new N("TestPeekElement");N.TestPeekTitle=new N("TestPeekTitle");N.TouchBarContext=new N("TouchBarContext");N.TitleBarContext=new N("TitleBarContext");N.TunnelContext=new N("TunnelContext");N.TunnelPrivacy=new N("TunnelPrivacy");N.TunnelProtocol=new N("TunnelProtocol");N.TunnelPortInline=new N("TunnelInline");N.TunnelTitle=new N("TunnelTitle");N.TunnelLocalAddressInline=new N("TunnelLocalAddressInline");N.TunnelOriginInline=new N("TunnelOriginInline");N.ViewItemContext=new N("ViewItemContext");N.ViewContainerTitle=new N("ViewContainerTitle");N.ViewContainerTitleContext=new N("ViewContainerTitleContext");N.ViewTitle=new N("ViewTitle");N.ViewTitleContext=new N("ViewTitleContext");N.CommentThreadTitle=new N("CommentThreadTitle");N.CommentThreadActions=new N("CommentThreadActions");N.CommentTitle=new N("CommentTitle");N.CommentActions=new N("CommentActions");N.InteractiveToolbar=new N("InteractiveToolbar");N.InteractiveCellTitle=new N("InteractiveCellTitle");N.InteractiveCellExecute=new N("InteractiveCellExecute");N.InteractiveInputExecute=new N("InteractiveInputExecute");N.NotebookToolbar=new N("NotebookToolbar");N.NotebookCellTitle=new N("NotebookCellTitle");N.NotebookCellInsert=new N("NotebookCellInsert");N.NotebookCellBetween=new N("NotebookCellBetween");N.NotebookCellListTop=new N("NotebookCellTop");N.NotebookCellExecute=new N("NotebookCellExecute");N.NotebookCellExecutePrimary=new N("NotebookCellExecutePrimary");N.NotebookDiffCellInputTitle=new N("NotebookDiffCellInputTitle");N.NotebookDiffCellMetadataTitle=new N("NotebookDiffCellMetadataTitle");N.NotebookDiffCellOutputsTitle=new N("NotebookDiffCellOutputsTitle");N.NotebookOutputToolbar=new N("NotebookOutputToolbar");N.NotebookEditorLayoutConfigure=new N("NotebookEditorLayoutConfigure");N.BulkEditTitle=new N("BulkEditTitle");N.BulkEditContext=new N("BulkEditContext");N.TimelineItemContext=new N("TimelineItemContext");N.TimelineTitle=new N("TimelineTitle");N.TimelineTitleContext=new N("TimelineTitleContext");N.AccountsContext=new N("AccountsContext");N.PanelTitle=new N("PanelTitle");N.AuxiliaryBarTitle=new N("AuxiliaryBarTitle");N.TerminalInstanceContext=new N("TerminalInstanceContext");N.TerminalEditorInstanceContext=new N("TerminalEditorInstanceContext");N.TerminalNewDropdownContext=new N("TerminalNewDropdownContext");N.TerminalTabContext=new N("TerminalTabContext");N.TerminalTabEmptyAreaContext=new N("TerminalTabEmptyAreaContext");N.TerminalInlineTabContext=new N("TerminalInlineTabContext");N.WebviewContext=new N("WebviewContext");N.InlineCompletionsActions=new N("InlineCompletionsActions");N.NewFile=new N("NewFile");const SL=pe("menuService"),sc=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===N.CommandPalette}}addCommand(s){return this.addCommands(he.single(s))}addCommands(s){for(const e of s)this._commands.set(e.id,e);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Pe(()=>{let e=!1;for(const t of s)e=this._commands.delete(t.id)||e;e&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((e,t)=>s.set(t,e)),s}appendMenuItem(s,e){return this.appendMenuItems(he.single({id:s,item:e}))}appendMenuItems(s){const e=new Set,t=new Xi;for(const{id:i,item:n}of s){let o=this._menuItems.get(i);o||(o=new Xi,this._menuItems.set(i,o)),t.push(o.push(n)),e.add(i)}return this._onDidChangeMenu.fire(e),Pe(()=>{if(t.size>0){for(let i of t)i();this._onDidChangeMenu.fire(e),t.clear()}})}getMenuItems(s){let e;return this._menuItems.has(s)?e=[...this._menuItems.get(s)]:e=[],s===N.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){const e=new Set;for(const t of s)ql(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||s.push({command:t})})}};class H4 extends pL{constructor(e,t,i,n){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=n}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);t.dispose();for(const[,n]of i)n.length>0&&(e.push(...n),e.push(new Or));return e.length&&e.pop(),e}}let u_=class yL{constructor(e,t,i,n,o){var r,a;if(this._commandService=o,this.id=e.id,this.label=(i==null?void 0:i.renderShortTitle)&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value,this.tooltip=(a=typeof e.tooltip=="string"?e.tooltip:(r=e.tooltip)===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"",this.enabled=!e.precondition||n.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const l=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=n.contextMatchesRules(l.condition),this.checked&&l.tooltip&&(this.tooltip=typeof l.tooltip=="string"?l.tooltip:l.tooltip.value),l.title&&(this.label=typeof l.title=="string"?l.title:l.title.value)}this.item=e,this.alt=t?new yL(t,void 0,i,n,o):void 0,this._options=i,St.isThemeIcon(e.icon)&&(this.class=ei.asClassName(e.icon))}dispose(){}run(...e){var t,i;let n=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(n=[...n,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};u_=W4([KC(3,Ne),KC(4,Bi)],u_);class Eu{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(qi===1){if(e&&e.win)return e.win}else if(qi===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=Eu.bindToCurrentPlatform(e);if(t&&t.primary){const i=i_(t.primary,qi);i&&this._registerDefaultKeybinding(i,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let i=0,n=t.secondary.length;i=21&&e<=30||e>=31&&e<=56?!0:e===80||e===81||e===82||e===83||e===84||e===85||e===86||e===110||e===111||e===87||e===88||e===89||e===90||e===91||e===92}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&Eu._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,i,n,o,r){qi===1&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e.parts,command:t,commandArgs:i,when:r,weight1:n,weight2:o,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(U4)),this._cachedMergedKeybindings.slice(0)}}const wl=new Eu,z4={EditorModes:"platform.keybindingsRegistry"};xt.add(z4.EditorModes,wl);function U4(s,e){return s.weight1!==e.weight1?s.weight1-e.weight1:s.commande.command?1:s.weight2-e.weight2}const Lh=pe("telemetryService");class Vf{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=Oe.and(i,this.precondition):i=this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};wl.registerKeybindingRule(n)}}Ht.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){sc.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class N0 extends Vf{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort((n,o)=>o.priority-n.priority),{dispose:()=>{for(let n=0;n{if(!!o.get(Ne).contextMatchesRules(Qo(this.precondition)))return this.runEditorCommand(o,n,t)})}}class Fs extends Fr{constructor(e){super(Fs.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(n){return n.menuId||(n.menuId=N.EditorContext),n.title||(n.title=e.label),n.when=Oe.and(e.precondition,n.when),n}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(Lh).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class kL extends Fs{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,n)=>n[0]-i[0]),{dispose:()=>{for(let i=0;ir.indexOf(a.id)>=0)}s.getSomeEditorContributions=n;function o(){return Zi.INSTANCE.getDiffEditorContributions()}s.getDiffEditorContributions=o})(Ia||(Ia={}));const $4={EditorCommonContributions:"editor.contributions"};class Zi{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}Zi.INSTANCE=new Zi;xt.add($4.EditorCommonContributions,Zi.INSTANCE);function kh(s){return s.register(),s}const IL=kh(new N0({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:N.MenubarEditMenu,group:"1_do",title:p({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:N.CommandPalette,group:"",title:p("undo","Undo"),order:1}]}));kh(new LL(IL,{id:"default:undo",precondition:void 0}));const EL=kh(new N0({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:N.MenubarEditMenu,group:"1_do",title:p({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:N.CommandPalette,group:"",title:p("redo","Redo"),order:1}]}));kh(new LL(EL,{id:"default:redo",precondition:void 0}));const j4=kh(new N0({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:N.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:N.CommandPalette,group:"",title:p("selectAll","Select All"),order:1}]}));var K4=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q4=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Bc=class{constructor(e,t){}dispose(){}};Bc.ID="editor.contrib.markerDecorations";Bc=K4([q4(1,mL)],Bc);T0(Bc.ID,Bc);class DL extends W{constructor(e,t){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire())}}const G4=Object.prototype.hasOwnProperty;function Z4(s,e){for(let t in s)if(G4.call(s,t)&&e({key:t,value:s[t]},function(){delete s[t]})===!1)return}class Y4{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);!i||(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);!i||i.forEach(t)}}function X4(s){const e=s.wordWrap;e===!0?s.wordWrap="on":e===!1&&(s.wordWrap="off");const t=s.lineNumbers;t===!0?s.lineNumbers="on":t===!1&&(s.lineNumbers="off"),s.autoClosingBrackets===!1&&(s.autoClosingBrackets="never",s.autoClosingQuotes="never",s.autoSurround="never"),s.cursorBlinking==="visible"&&(s.cursorBlinking="solid");const o=s.renderWhitespace;o===!0?s.renderWhitespace="boundary":o===!1&&(s.renderWhitespace="none");const r=s.renderLineHighlight;r===!0?s.renderLineHighlight="line":r===!1&&(s.renderLineHighlight="none");const a=s.acceptSuggestionOnEnter;a===!0?s.acceptSuggestionOnEnter="on":a===!1&&(s.acceptSuggestionOnEnter="off");const l=s.tabCompletion;l===!1?s.tabCompletion="off":l===!0&&(s.tabCompletion="onlySnippets");const c=s.suggest;if(c&&typeof c.filteredTypes=="object"&&c.filteredTypes){const b={};b.method="showMethods",b.function="showFunctions",b.constructor="showConstructors",b.deprecated="showDeprecated",b.field="showFields",b.variable="showVariables",b.class="showClasses",b.struct="showStructs",b.interface="showInterfaces",b.module="showModules",b.property="showProperties",b.event="showEvents",b.operator="showOperators",b.unit="showUnits",b.value="showValues",b.constant="showConstants",b.enum="showEnums",b.enumMember="showEnumMembers",b.keyword="showKeywords",b.text="showWords",b.color="showColors",b.file="showFiles",b.reference="showReferences",b.folder="showFolders",b.typeParameter="showTypeParameters",b.snippet="showSnippets",Z4(b,w=>{const C=c.filteredTypes[w.key];C===!1&&(c[w.value]=C)})}const h=s.hover;h===!0?s.hover={enabled:!0}:h===!1&&(s.hover={enabled:!1});const d=s.parameterHints;d===!0?s.parameterHints={enabled:!0}:d===!1&&(s.parameterHints={enabled:!1});const u=s.autoIndent;u===!0?s.autoIndent="full":u===!1&&(s.autoIndent="advanced");const f=s.matchBrackets;f===!0?s.matchBrackets="always":f===!1&&(s.matchBrackets="never");const{renderIndentGuides:m,highlightActiveIndentGuide:_}=s;s.guides||(s.guides={}),m!==void 0&&(s.guides.indentation=!!m),_!==void 0&&(s.guides.highlightActiveIndentation=!!_)}class Q4{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new M,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}const qC=new Q4,Vi=pe("accessibilityService"),J4=new G("accessibilityModeEnabled",!1);var eT=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},tT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let f_=class extends W{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new M),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._computeOptionsMemory=new ry,this.isSimpleWidget=e,this._containerObserver=this._register(new DL(i,t.dimension)),this._rawOptions=GC(t),this._validatedOptions=to.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(10)&&this._containerObserver.startObserving(),this._register(uu.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(qC.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(Up.onDidChange(()=>this._recomputeOptions())),this._register(Dc.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=to.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=ar.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:qC.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return to.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:nT(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:uo||Oi,pixelRatio:Dc.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return Up.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=GC(e);!to.applyUpdate(this._rawOptions,t)||(this._validatedOptions=to.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=iT(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}};f_=eT([tT(3,Vi)],f_);function iT(s){let e=0;for(;s;)s=Math.floor(s/10),e++;return e||1}function nT(){let s="";return!Jn&&!c0&&(s+="no-user-select "),Jn&&(s+="no-minimap-shadow "),me&&(s+="mac "),s}class sT{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class oT{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class to{static validateOptions(e){const t=new sT;for(const i of oa){const n=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new oT;for(const n of oa)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?Kn(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!to._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of oa){const r=!to._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=r,r&&(n=!0)}return n?new oy(i):null}static applyUpdate(e,t){let i=!1;for(const n of oa)if(t.hasOwnProperty(n.name)){const o=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=o.newValue,i=i||o.didChange}return i}}function GC(s){const e=Ys(s);return X4(e),e}function rt(s,e,t){let i=null,n=null;if(typeof t.value=="function"?(i="value",n=t.value,n.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof t.get=="function"&&(i="get",n=t.get),!n)throw new Error("not supported");const o=`$memoize$${e}`;t[i]=function(...r){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,r)}),this[o]}}var rT=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ae;(function(s){s.Tap="-monaco-gesturetap",s.Change="-monaco-gesturechange",s.Start="-monaco-gesturestart",s.End="-monaco-gesturesend",s.Contextmenu="-monaco-gesturecontextmenu"})(Ae||(Ae={}));class Se extends W{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(V(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(V(document,"touchend",e=>this.onTouchEnd(e))),this._register(V(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return Se.isTouchDevice()?(Se.INSTANCE||(Se.INSTANCE=new Se),Se.INSTANCE.targets.push(e),{dispose:()=>{Se.INSTANCE.targets=Se.INSTANCE.targets.filter(t=>t!==e)}}):W.None}static ignoreTarget(e){return Se.isTouchDevice()?(Se.INSTANCE||(Se.INSTANCE=new Se),Se.INSTANCE.ignoreTargets.push(e),{dispose:()=>{Se.INSTANCE.ignoreTargets=Se.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):W.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i=Se.HOLD_DELAY&&Math.abs(a.initialPageX-ki(a.rollingPageX))<30&&Math.abs(a.initialPageY-ki(a.rollingPageY))<30){let c=this.newGestureEvent(Ae.Contextmenu,a.initialTarget);c.pageX=ki(a.rollingPageX),c.pageY=ki(a.rollingPageY),this.dispatchEvent(c)}else if(i===1){let c=ki(a.rollingPageX),h=ki(a.rollingPageY),d=ki(a.rollingTimestamps)-a.rollingTimestamps[0],u=c-a.rollingPageX[0],f=h-a.rollingPageY[0];const m=this.targets.filter(_=>a.initialTarget instanceof Node&&_.contains(a.initialTarget));this.inertia(m,t,Math.abs(u)/d,u>0?1:-1,c,Math.abs(f)/d,f>0?1:-1,h)}this.dispatchEvent(this.newGestureEvent(Ae.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===Ae.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>Se.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===Ae.Change||e.type===Ae.Contextmenu)&&(this._lastSetTapCountTime=0);for(let t=0;t{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,i,n,o,r,a,l){this.handle=kn(()=>{let c=Date.now(),h=c-t,d=0,u=0,f=!0;i+=Se.SCROLL_FRICTION*h,r+=Se.SCROLL_FRICTION*h,i>0&&(f=!1,d=n*i*h),r>0&&(f=!1,u=a*r*h);let m=this.newGestureEvent(Ae.Change);m.translationX=d,m.translationY=u,e.forEach(_=>_.dispatchEvent(m)),f||this.inertia(e,c,i,n,o+d,r,a,l+u)})}onTouchMove(e){let t=Date.now();for(let i=0,n=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}Se.SCROLL_FRICTION=-.005;Se.HOLD_DELAY=700;Se.CLEAR_TAP_COUNT_TIME=400;rT([rt],Se,"isTouchDevice",null);function M0(s,e){let t=new Ji(e);return t.preventDefault(),{leftButton:t.leftButton,buttons:t.buttons,posx:t.posx,posy:t.posy}}class Wf{constructor(){this._hooks=new se,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,n,o){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=n,this._onStopCallback=o;const r=s_.getSameOriginWindowChain(),a=pr?"pointermove":"mousemove",l="mouseup",c=r.map(d=>d.window.document),h=vr(e);h&&c.unshift(h);for(const d of c)this._hooks.add(L0(d,a,u=>{if(u.buttons!==t){this.stopMonitoring(!0);return}this._mouseMoveCallback(u)},(u,f)=>this._mouseMoveEventMerger(u,f))),this._hooks.add(V(d,l,u=>this.stopMonitoring(!0)));if(s_.hasDifferentOriginAncestor()){let d=r[r.length-1];this._hooks.add(V(d.window.document,"mouseout",u=>{new Ji(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(V(d.window.document,"mouseover",u=>{new Ji(u).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(V(d.window.document.body,"mouseleave",u=>{this.stopMonitoring(!0)}))}}}function go(s,e){const t=Math.pow(10,e);return Math.round(s*t)/t}class de{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class pn{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=go(Math.max(Math.min(1,t),0),3),this.l=go(Math.max(Math.min(1,i),0),3),this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,c=0;const h=(a+r)/2,d=r-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),r){case t:l=(i-n)/d+(i1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:o}=e;let r,a,l;if(i===0)r=a=l=n;else{const c=n<.5?n*(1+i):n+i-n*i,h=2*n-c;r=pn._hue2rgb(h,c,t+1/3),a=pn._hue2rgb(h,c,t),l=pn._hue2rgb(h,c,t-1/3)}return new de(Math.round(r*255),Math.round(a*255),Math.round(l*255),o)}}class ua{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=go(Math.max(Math.min(1,t),0),3),this.v=go(Math.max(Math.min(1,i),0),3),this.a=go(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),r=Math.min(t,i,n),a=o-r,l=o===0?0:a/o;let c;return a===0?c=0:o===t?c=((i-n)/a%6+6)%6:o===i?c=(n-t)/a+2:c=(t-i)/a+4,new ua(Math.round(c*60),l,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[c,h,d]=[0,0,0];return t<60?(c=r,h=a):t<120?(c=a,h=r):t<180?(h=r,d=a):t<240?(h=a,d=r):t<300?(c=a,d=r):t<=360&&(c=r,d=a),c=Math.round((c+l)*255),h=Math.round((h+l)*255),d=Math.round((d+l)*255),new de(c,h,d,o)}}class O{constructor(e){if(e)if(e instanceof de)this.rgba=e;else if(e instanceof pn)this._hsla=e,this.rgba=pn.toRGBA(e);else if(e instanceof ua)this._hsva=e,this.rgba=ua.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(e){return O.Format.CSS.parseHex(e)||O.red}get hsla(){return this._hsla?this._hsla:pn.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ua.fromRGBA(this.rgba)}equals(e){return!!e&&de.equals(this.rgba,e.rgba)&&pn.equals(this.hsla,e.hsla)&&ua.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=O._relativeLuminanceForComponent(this.rgba.r),t=O._relativeLuminanceForComponent(this.rgba.g),i=O._relativeLuminanceForComponent(this.rgba.b),n=.2126*e+.7152*t+.0722*i;return go(n,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t0&&s.charAt(s.length-1)==="#"?s.substring(0,s.length-1):s}class lT{constructor(){this._onDidChangeSchema=new M,this.schemasById={}}registerSchema(e,t){this.schemasById[aT(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const cT=new lT;xt.add(Hf.JSONContribution,cT);function hT(s){return`--vscode-${s.replace(/\./g,"-")}`}const NL={ColorContribution:"base.contributions.colors"};class dT{constructor(){this._onDidChangeSchema=new M,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){let r={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=r;let a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const n=i.defaults[t.type];return ps(n,t)}}getColorSchema(){return this.colorSchema}toString(){let e=(t,i)=>{let n=t.indexOf(".")===-1?0:1,o=i.indexOf(".")===-1?0:1;return n!==o?n-o:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(` +`)}}const zf=new dT;xt.add(NL.ColorContribution,zf);function E(s,e,t,i,n){return zf.registerColor(s,e,t,i,n)}const Fe=E("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},p("foreground","Overall foreground color. This color is only used if not overridden by a component.")),uT=E("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},p("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));E("descriptionForeground",{light:"#717171",dark:ne(Fe,.7),hc:ne(Fe,.7)},p("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));E("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},p("iconForeground","The default color for icons in the workbench."));const Zn=E("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},p("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),it=E("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},p("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),yi=E("contrastActiveBorder",{light:null,dark:null,hc:Zn},p("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));E("selection.background",{light:null,dark:null,hc:null},p("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));E("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hc:O.black},p("textSeparatorForeground","Color for text separators."));E("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},p("textLinkForeground","Foreground color for links in text."));E("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},p("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));E("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hc:"#D7BA7D"},p("textPreformatForeground","Foreground color for preformatted text segments."));E("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hc:null},p("textBlockQuoteBackground","Background color for block quotes in text."));E("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hc:O.white},p("textBlockQuoteBorder","Border color for block quotes in text."));E("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:O.black},p("textCodeBlockBackground","Background color for code blocks in text."));const Ya=E("widget.shadow",{dark:ne(O.black,.36),light:ne(O.black,.16),hc:null},p("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),TL=E("input.background",{dark:"#3C3C3C",light:O.white,hc:O.black},p("inputBoxBackground","Input box background.")),ML=E("input.foreground",{dark:Fe,light:Fe,hc:Fe},p("inputBoxForeground","Input box foreground.")),RL=E("input.border",{dark:null,light:null,hc:it},p("inputBoxBorder","Input box border.")),g_=E("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:it},p("inputBoxActiveOptionBorder","Border color of activated options in input fields."));E("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hc:null},p("inputOption.hoverBackground","Background color of activated options in input fields."));const m_=E("inputOption.activeBackground",{dark:ne(Zn,.4),light:ne(Zn,.2),hc:O.transparent},p("inputOption.activeBackground","Background hover color of options in input fields.")),p_=E("inputOption.activeForeground",{dark:O.white,light:O.black,hc:null},p("inputOption.activeForeground","Foreground color of activated options in input fields."));E("input.placeholderForeground",{light:ne(Fe,.5),dark:ne(Fe,.5),hc:ne(Fe,.7)},p("inputPlaceholderForeground","Input box foreground color for placeholder text."));const AL=E("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:O.black},p("inputValidationInfoBackground","Input validation background color for information severity.")),OL=E("inputValidation.infoForeground",{dark:null,light:null,hc:null},p("inputValidationInfoForeground","Input validation foreground color for information severity.")),PL=E("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:it},p("inputValidationInfoBorder","Input validation border color for information severity.")),FL=E("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:O.black},p("inputValidationWarningBackground","Input validation background color for warning severity.")),BL=E("inputValidation.warningForeground",{dark:null,light:null,hc:null},p("inputValidationWarningForeground","Input validation foreground color for warning severity.")),VL=E("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:it},p("inputValidationWarningBorder","Input validation border color for warning severity.")),WL=E("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:O.black},p("inputValidationErrorBackground","Input validation background color for error severity.")),HL=E("inputValidation.errorForeground",{dark:null,light:null,hc:null},p("inputValidationErrorForeground","Input validation foreground color for error severity.")),zL=E("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:it},p("inputValidationErrorBorder","Input validation border color for error severity.")),lr=E("dropdown.background",{dark:"#3C3C3C",light:O.white,hc:O.black},p("dropdownBackground","Dropdown background."));E("dropdown.listBackground",{dark:null,light:null,hc:O.black},p("dropdownListBackground","Dropdown list background."));const oc=E("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:O.white},p("dropdownForeground","Dropdown foreground.")),$g=E("dropdown.border",{dark:lr,light:"#CECECE",hc:it},p("dropdownBorder","Dropdown border."));E("checkbox.background",{dark:lr,light:lr,hc:lr},p("checkbox.background","Background color of checkbox widget."));E("checkbox.foreground",{dark:oc,light:oc,hc:oc},p("checkbox.foreground","Foreground color of checkbox widget."));E("checkbox.border",{dark:$g,light:$g,hc:$g},p("checkbox.border","Border color of checkbox widget."));const fT=E("button.foreground",{dark:O.white,light:O.white,hc:O.white},p("buttonForeground","Button foreground color.")),__=E("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},p("buttonBackground","Button background color.")),gT=E("button.hoverBackground",{dark:yo(__,.2),light:Sl(__,.2),hc:null},p("buttonHoverBackground","Button background color when hovering."));E("button.border",{dark:it,light:it,hc:it},p("buttonBorder","Button border color."));E("button.secondaryForeground",{dark:O.white,light:O.white,hc:O.white},p("buttonSecondaryForeground","Secondary button foreground color."));const ZC=E("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hc:null},p("buttonSecondaryBackground","Secondary button background color."));E("button.secondaryHoverBackground",{dark:yo(ZC,.2),light:Sl(ZC,.2),hc:null},p("buttonSecondaryHoverBackground","Secondary button background color when hovering."));const Fd=E("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:O.black},p("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Bd=E("badge.foreground",{dark:O.white,light:"#333",hc:O.white},p("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),vl=E("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},p("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Ea=E("scrollbarSlider.background",{dark:O.fromHex("#797979").transparent(.4),light:O.fromHex("#646464").transparent(.4),hc:ne(it,.6)},p("scrollbarSliderBackground","Scrollbar slider background color.")),Da=E("scrollbarSlider.hoverBackground",{dark:O.fromHex("#646464").transparent(.7),light:O.fromHex("#646464").transparent(.7),hc:ne(it,.8)},p("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Na=E("scrollbarSlider.activeBackground",{dark:O.fromHex("#BFBFBF").transparent(.4),light:O.fromHex("#000000").transparent(.6),hc:it},p("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),mT=E("progressBar.background",{dark:O.fromHex("#0E70C0"),light:O.fromHex("#0E70C0"),hc:it},p("progressBarBackground","Background color of the progress bar that can show for long running operations.")),pT=E("editorError.background",{dark:null,light:null,hc:null},p("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),cr=E("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},p("editorError.foreground","Foreground color of error squigglies in the editor.")),_T=E("editorError.border",{dark:null,light:null,hc:O.fromHex("#E47777").transparent(.8)},p("errorBorder","Border color of error boxes in the editor.")),bT=E("editorWarning.background",{dark:null,light:null,hc:null},p("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),yn=E("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},p("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),R0=E("editorWarning.border",{dark:null,light:null,hc:O.fromHex("#FFCC00").transparent(.8)},p("warningBorder","Border color of warning boxes in the editor.")),CT=E("editorInfo.background",{dark:null,light:null,hc:null},p("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),As=E("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},p("editorInfo.foreground","Foreground color of info squigglies in the editor.")),UL=E("editorInfo.border",{dark:null,light:null,hc:O.fromHex("#3794FF").transparent(.8)},p("infoBorder","Border color of info boxes in the editor.")),wT=E("editorHint.foreground",{dark:O.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},p("editorHint.foreground","Foreground color of hint squigglies in the editor.")),vT=E("editorHint.border",{dark:null,light:null,hc:O.fromHex("#eeeeee").transparent(.8)},p("hintBorder","Border color of hint boxes in the editor."));E("sash.hoverBorder",{dark:Zn,light:Zn,hc:Zn},p("sashActiveBorder","Border color of active sashes."));const tn=E("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:O.black},p("editorBackground","Editor background color.")),xh=E("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:O.white},p("editorForeground","Editor default foreground color.")),nn=E("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},p("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),mo=E("editorWidget.foreground",{dark:Fe,light:Fe,hc:Fe},p("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Vd=E("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:it},p("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ST=E("editorWidget.resizeBorder",{light:null,dark:null,hc:null},p("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),YC=E("quickInput.background",{dark:nn,light:nn,hc:nn},p("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),yT=E("quickInput.foreground",{dark:mo,light:mo,hc:mo},p("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),LT=E("quickInputTitle.background",{dark:new O(new de(255,255,255,.105)),light:new O(new de(0,0,0,.06)),hc:"#000000"},p("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),kT=E("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:O.white},p("pickerGroupForeground","Quick picker color for grouping labels.")),xT=E("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:O.white},p("pickerGroupBorder","Quick picker color for grouping borders.")),IT=E("keybindingLabel.background",{dark:new O(new de(128,128,128,.17)),light:new O(new de(221,221,221,.4)),hc:O.transparent},p("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ET=E("keybindingLabel.foreground",{dark:O.fromHex("#CCCCCC"),light:O.fromHex("#555555"),hc:O.white},p("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),DT=E("keybindingLabel.border",{dark:new O(new de(51,51,51,.6)),light:new O(new de(204,204,204,.4)),hc:new O(new de(111,195,223))},p("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),NT=E("keybindingLabel.bottomBorder",{dark:new O(new de(68,68,68,.6)),light:new O(new de(187,187,187,.4)),hc:new O(new de(111,195,223))},p("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ta=E("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},p("editorSelectionBackground","Color of the editor selection.")),TT=E("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},p("editorSelectionForeground","Color of the selected text for high contrast.")),A0=E("editor.inactiveSelectionBackground",{light:ne(Ta,.5),dark:ne(Ta,.5),hc:ne(Ta,.5)},p("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),$L=E("editor.selectionHighlightBackground",{light:sw(Ta,tn,.3,.6),dark:sw(Ta,tn,.3,.6),hc:null},p("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);E("editor.selectionHighlightBorder",{light:null,dark:null,hc:yi},p("editorSelectionHighlightBorder","Border color for regions with the same content as the selection."));const MT=E("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},p("editorFindMatch","Color of the current search match.")),po=E("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},p("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),RT=E("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},p("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),AT=E("editor.findMatchBorder",{light:null,dark:null,hc:yi},p("editorFindMatchBorder","Border color of the current search match.")),Ma=E("editor.findMatchHighlightBorder",{light:null,dark:null,hc:yi},p("findMatchHighlightBorder","Border color of the other search matches.")),OT=E("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ne(yi,.4)},p("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);E("searchEditor.findMatchBackground",{light:ne(po,.66),dark:ne(po,.66),hc:po},p("searchEditor.queryMatch","Color of the Search Editor query matches."));E("searchEditor.findMatchBorder",{light:ne(Ma,.66),dark:ne(Ma,.66),hc:Ma},p("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));E("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},p("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);const XC=E("editorHoverWidget.background",{light:nn,dark:nn,hc:nn},p("hoverBackground","Background color of the editor hover."));E("editorHoverWidget.foreground",{light:mo,dark:mo,hc:mo},p("hoverForeground","Foreground color of the editor hover."));E("editorHoverWidget.border",{light:Vd,dark:Vd,hc:Vd},p("hoverBorder","Border color of the editor hover."));E("editorHoverWidget.statusBarBackground",{dark:yo(XC,.2),light:Sl(XC,.05),hc:nn},p("statusBarBackground","Background color of the editor hover status bar."));E("editorLink.activeForeground",{dark:"#4E94CE",light:O.blue,hc:O.cyan},p("activeLinkForeground","Color of active links."));const Ra=E("editorInlayHint.foreground",{dark:ne(Bd,.8),light:ne(Bd,.8),hc:Bd},p("editorInlayHintForeground","Foreground color of inline hints")),Aa=E("editorInlayHint.background",{dark:ne(Fd,.6),light:ne(Fd,.3),hc:Fd},p("editorInlayHintBackground","Background color of inline hints"));E("editorInlayHint.typeForeground",{dark:Ra,light:Ra,hc:Ra},p("editorInlayHintForegroundTypes","Foreground color of inline hints for types"));E("editorInlayHint.typeBackground",{dark:Aa,light:Aa,hc:Aa},p("editorInlayHintBackgroundTypes","Background color of inline hints for types"));E("editorInlayHint.parameterForeground",{dark:Ra,light:Ra,hc:Ra},p("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters"));E("editorInlayHint.parameterBackground",{dark:Aa,light:Aa,hc:Aa},p("editorInlayHintBackgroundParameter","Background color of inline hints for parameters"));E("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},p("editorLightBulbForeground","The color used for the lightbulb actions icon."));E("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},p("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon."));const b_=new O(new de(155,185,85,.2)),C_=new O(new de(255,0,0,.2)),jL=E("diffEditor.insertedTextBackground",{dark:b_,light:b_,hc:null},p("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),KL=E("diffEditor.removedTextBackground",{dark:C_,light:C_,hc:null},p("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),PT=E("diffEditor.insertedLineBackground",{dark:null,light:null,hc:null},p("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),FT=E("diffEditor.removedLineBackground",{dark:null,light:null,hc:null},p("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),BT=E("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hc:null},p("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),VT=E("diffEditorGutter.removedLineBackground",{dark:null,light:null,hc:null},p("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),WT=E("diffEditorOverview.insertedForeground",{dark:null,light:null,hc:null},p("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),HT=E("diffEditorOverview.removedForeground",{dark:null,light:null,hc:null},p("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),zT=E("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},p("diffEditorInsertedOutline","Outline color for the text that got inserted.")),UT=E("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},p("diffEditorRemovedOutline","Outline color for text that got removed.")),$T=E("diffEditor.border",{dark:null,light:null,hc:it},p("diffEditorBorder","Border color between the two text editors.")),jT=E("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},p("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),KT=E("list.focusBackground",{dark:null,light:null,hc:null},p("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),qT=E("list.focusForeground",{dark:null,light:null,hc:null},p("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),GT=E("list.focusOutline",{dark:Zn,light:Zn,hc:yi},p("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),_o=E("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},p("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bo=E("list.activeSelectionForeground",{dark:O.white,light:O.white,hc:null},p("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Wd=E("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},p("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ZT=E("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},p("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),YT=E("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},p("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),XT=E("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},p("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),QT=E("list.inactiveFocusBackground",{dark:null,light:null,hc:null},p("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),JT=E("list.inactiveFocusOutline",{dark:null,light:null,hc:null},p("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e5=E("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},p("listHoverBackground","List/Tree background when hovering over items using the mouse.")),t5=E("list.hoverForeground",{dark:null,light:null,hc:null},p("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),i5=E("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},p("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),jg=E("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:Zn},p("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree."));E("list.focusHighlightForeground",{dark:jg,light:I5(_o,jg,"#9DDDFF"),hc:jg},p("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));E("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hc:"#B89500"},p("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer."));E("list.errorForeground",{dark:"#F88070",light:"#B01011",hc:null},p("listErrorForeground","Foreground color of list items containing errors."));E("list.warningForeground",{dark:"#CCA700",light:"#855F00",hc:null},p("listWarningForeground","Foreground color of list items containing warnings."));const n5=E("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:O.black},p("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),s5=E("listFilterWidget.outline",{dark:O.transparent,light:O.transparent,hc:"#f38518"},p("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),o5=E("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:it},p("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches."));E("list.filterMatchBackground",{dark:po,light:po,hc:null},p("listFilterMatchHighlight","Background color of the filtered match."));E("list.filterMatchBorder",{dark:Ma,light:Ma,hc:it},p("listFilterMatchHighlightBorder","Border color of the filtered match."));const r5=E("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},p("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),a5=E("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},p("tableColumnsBorder","Table border color between columns.")),l5=E("tree.tableOddRowsBackground",{dark:ne(Fe,.04),light:ne(Fe,.04),hc:null},p("tableOddRowsBackgroundColor","Background color for odd table rows."));E("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hc:"#A7A8A9"},p("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));const QC=E("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,p("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),c5=E("quickInputList.focusForeground",{dark:bo,light:bo,hc:bo},p("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),h5=E("quickInputList.focusIconForeground",{dark:Wd,light:Wd,hc:Wd},p("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d5=E("quickInputList.focusBackground",{dark:nw(QC,_o),light:nw(QC,_o),hc:null},p("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u5=E("menu.border",{dark:null,light:null,hc:it},p("menuBorder","Border color of menus.")),f5=E("menu.foreground",{dark:oc,light:Fe,hc:oc},p("menuForeground","Foreground color of menu items.")),g5=E("menu.background",{dark:lr,light:lr,hc:lr},p("menuBackground","Background color of menu items.")),m5=E("menu.selectionForeground",{dark:bo,light:bo,hc:bo},p("menuSelectionForeground","Foreground color of the selected menu item in menus.")),p5=E("menu.selectionBackground",{dark:_o,light:_o,hc:_o},p("menuSelectionBackground","Background color of the selected menu item in menus.")),_5=E("menu.selectionBorder",{dark:null,light:null,hc:yi},p("menuSelectionBorder","Border color of the selected menu item in menus.")),b5=E("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:it},p("menuSeparatorBackground","Color of a separator menu item in menus.")),w_=E("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},p("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));E("toolbar.hoverOutline",{dark:null,light:null,hc:yi},p("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse"));E("toolbar.activeBackground",{dark:yo(w_,.1),light:Sl(w_,.1),hc:null},p("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));E("editor.snippetTabstopHighlightBackground",{dark:new O(new de(124,124,124,.3)),light:new O(new de(10,50,100,.2)),hc:new O(new de(124,124,124,.3))},p("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop."));E("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},p("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop."));E("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},p("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet."));E("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new O(new de(10,50,100,.5)),hc:"#525252"},p("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));E("breadcrumb.foreground",{light:ne(Fe,.8),dark:ne(Fe,.8),hc:ne(Fe,.8)},p("breadcrumbsFocusForeground","Color of focused breadcrumb items."));E("breadcrumb.background",{light:tn,dark:tn,hc:tn},p("breadcrumbsBackground","Background color of breadcrumb items."));E("breadcrumb.focusForeground",{light:Sl(Fe,.2),dark:yo(Fe,.1),hc:yo(Fe,.1)},p("breadcrumbsFocusForeground","Color of focused breadcrumb items."));E("breadcrumb.activeSelectionForeground",{light:Sl(Fe,.2),dark:yo(Fe,.1),hc:yo(Fe,.1)},p("breadcrumbsSelectedForegound","Color of selected breadcrumb items."));E("breadcrumbPicker.background",{light:nn,dark:nn,hc:nn},p("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const qL=.5,JC=O.fromHex("#40C8AE").transparent(qL),ew=O.fromHex("#40A6FF").transparent(qL),tw=O.fromHex("#606060").transparent(.4),Os=.4,Xa=1,rc=E("merge.currentHeaderBackground",{dark:JC,light:JC,hc:null},p("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.currentContentBackground",{dark:ne(rc,Os),light:ne(rc,Os),hc:ne(rc,Os)},p("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const ac=E("merge.incomingHeaderBackground",{dark:ew,light:ew,hc:null},p("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.incomingContentBackground",{dark:ne(ac,Os),light:ne(ac,Os),hc:ne(ac,Os)},p("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const lc=E("merge.commonHeaderBackground",{dark:tw,light:tw,hc:null},p("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);E("merge.commonContentBackground",{dark:ne(lc,Os),light:ne(lc,Os),hc:ne(lc,Os)},p("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const O0=E("merge.border",{dark:null,light:null,hc:"#C3DF6F"},p("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));E("editorOverviewRuler.currentContentForeground",{dark:ne(rc,Xa),light:ne(rc,Xa),hc:O0},p("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts."));E("editorOverviewRuler.incomingContentForeground",{dark:ne(ac,Xa),light:ne(ac,Xa),hc:O0},p("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts."));E("editorOverviewRuler.commonContentForeground",{dark:ne(lc,Xa),light:ne(lc,Xa),hc:O0},p("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const P0=E("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},p("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0);E("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},p("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const cc=E("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},p("minimapFindMatchHighlight","Minimap marker color for find matches."),!0);E("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hc:"#ffffff"},p("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0);const iw=E("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},p("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),C5=E("minimap.errorHighlight",{dark:new O(new de(255,18,18,.7)),light:new O(new de(255,18,18,.7)),hc:new O(new de(255,50,50,1))},p("minimapError","Minimap marker color for errors.")),w5=E("minimap.warningHighlight",{dark:yn,light:yn,hc:R0},p("overviewRuleWarning","Minimap marker color for warnings.")),v5=E("minimap.background",{dark:null,light:null,hc:null},p("minimapBackground","Minimap background color.")),S5=E("minimap.foregroundOpacity",{dark:O.fromHex("#000f"),light:O.fromHex("#000f"),hc:O.fromHex("#000f")},p("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),y5=E("minimapSlider.background",{light:ne(Ea,.5),dark:ne(Ea,.5),hc:ne(Ea,.5)},p("minimapSliderBackground","Minimap slider background color.")),L5=E("minimapSlider.hoverBackground",{light:ne(Da,.5),dark:ne(Da,.5),hc:ne(Da,.5)},p("minimapSliderHoverBackground","Minimap slider background color when hovering.")),k5=E("minimapSlider.activeBackground",{light:ne(Na,.5),dark:ne(Na,.5),hc:ne(Na,.5)},p("minimapSliderActiveBackground","Minimap slider background color when clicked on."));E("problemsErrorIcon.foreground",{dark:cr,light:cr,hc:cr},p("problemsErrorIconForeground","The color used for the problems error icon."));E("problemsWarningIcon.foreground",{dark:yn,light:yn,hc:yn},p("problemsWarningIconForeground","The color used for the problems warning icon."));E("problemsInfoIcon.foreground",{dark:As,light:As,hc:As},p("problemsInfoIconForeground","The color used for the problems info icon."));E("charts.foreground",{dark:Fe,light:Fe,hc:Fe},p("chartsForeground","The foreground color used in charts."));E("charts.lines",{dark:ne(Fe,.5),light:ne(Fe,.5),hc:ne(Fe,.5)},p("chartsLines","The color used for horizontal lines in charts."));E("charts.red",{dark:cr,light:cr,hc:cr},p("chartsRed","The red color used in chart visualizations."));E("charts.blue",{dark:As,light:As,hc:As},p("chartsBlue","The blue color used in chart visualizations."));E("charts.yellow",{dark:yn,light:yn,hc:yn},p("chartsYellow","The yellow color used in chart visualizations."));E("charts.orange",{dark:cc,light:cc,hc:cc},p("chartsOrange","The orange color used in chart visualizations."));E("charts.green",{dark:"#89D185",light:"#388A34",hc:"#89D185"},p("chartsGreen","The green color used in chart visualizations."));E("charts.purple",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},p("chartsPurple","The purple color used in chart visualizations."));function x5(s,e){var t,i,n;switch(s.op){case 0:return(t=ps(s.value,e))===null||t===void 0?void 0:t.darken(s.factor);case 1:return(i=ps(s.value,e))===null||i===void 0?void 0:i.lighten(s.factor);case 2:return(n=ps(s.value,e))===null||n===void 0?void 0:n.transparent(s.factor);case 3:for(const o of s.values){const r=ps(o,e);if(r)return r}return;case 5:return ps(e.defines(s.if)?s.then:s.else,e);case 4:{const o=ps(s.value,e);if(!o)return;const r=ps(s.background,e);return r?o.isDarkerThan(r)?O.getLighterColor(o,r,s.factor).transparent(s.transparency):O.getDarkerColor(o,r,s.factor).transparent(s.transparency):o.transparent(s.factor*s.transparency)}default:throw K1()}}function Sl(s,e){return{op:0,value:s,factor:e}}function yo(s,e){return{op:1,value:s,factor:e}}function ne(s,e){return{op:2,value:s,factor:e}}function nw(...s){return{op:3,values:s}}function I5(s,e,t){return{op:5,if:s,then:e,else:t}}function sw(s,e,t,i){return{op:4,value:s,background:e,factor:t,transparency:i}}function ps(s,e){if(s!==null){if(typeof s=="string")return s[0]==="#"?O.fromHex(s):e.getColor(s);if(s instanceof O)return s;if(typeof s=="object")return x5(s,e)}}const GL="vscode://schemas/workbench-colors";let ZL=xt.as(Hf.JSONContribution);ZL.registerSchema(GL,zf.getColorSchema());const ow=new Tt(()=>ZL.notifySchemaChanged(GL),200);zf.onDidChangeSchema(()=>{ow.isScheduled()||ow.schedule()});class F0{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new YL(this.x-Ms.scrollX,this.y-Ms.scrollY)}}class YL{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new F0(this.clientX+Ms.scrollX,this.clientY+Ms.scrollY)}}class E5{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class D5{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function XL(s){const e=en(s);return new E5(e.left,e.top,e.width,e.height)}function QL(s,e,t){const i=e.width/s.offsetWidth,n=e.height/s.offsetHeight,o=(t.x-e.x)/i,r=(t.y-e.y)/n;return new D5(o,r)}class yr extends Ji{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new F0(this.posx,this.posy),this.editorPos=XL(t),this.relativePos=QL(t,this.editorPos,this.pos)}}class N5{constructor(e){this._editorViewDomNode=e}_create(e){return new yr(e,this._editorViewDomNode)}onContextMenu(e,t){return V(e,"contextmenu",i=>{t(this._create(i))})}onMouseUp(e,t){return V(e,"mouseup",i=>{t(this._create(i))})}onMouseDown(e,t){return V(e,"mousedown",i=>{t(this._create(i))})}onMouseLeave(e,t){return y0(e,i=>{t(this._create(i))})}onMouseMoveThrottled(e,t,i,n){return L0(e,"mousemove",t,(r,a)=>i(r,this._create(a)),n)}}class T5{constructor(e){this._editorViewDomNode=e}_create(e){return new yr(e,this._editorViewDomNode)}onPointerUp(e,t){return V(e,"pointerup",i=>{t(this._create(i))})}onPointerDown(e,t){return V(e,"pointerdown",i=>{t(this._create(i))})}onPointerLeave(e,t){return w4(e,i=>{t(this._create(i))})}onPointerMoveThrottled(e,t,i,n){return L0(e,"pointermove",t,(r,a)=>i(r,this._create(a)),n)}}class M5 extends W{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new Wf),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=wi(document,"keydown",a=>{a.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,a.browserEvent)},!0);const r=(a,l)=>i(a,new yr(l,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(e,t,r,n,a=>{this._keydownListener.dispose(),o(a)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class Ih extends W{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=a.left?n.width=Math.max(n.width,a.left+a.width-n.left):(t[i++]=n,n=a)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||e.length===0)return null;const n=[];for(let o=0,r=e.length;oh)return null;if(t=Math.min(h,Math.max(0,t)),n=Math.min(h,Math.max(0,n)),t===n&&i===o&&i===0&&!e.children[t].firstChild){const m=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(m,r,a)}t!==n&&n>0&&o===0&&(n--,o=1073741824);let d=e.children[t].firstChild,u=e.children[n].firstChild;if((!d||!u)&&(!d&&i===0&&t>0&&(d=e.children[t-1].firstChild,i=1073741824),!u&&o===0&&n>0&&(u=e.children[n-1].firstChild,o=1073741824)),!d||!u)return null;i=Math.min(d.textContent.length,Math.max(0,i)),o=Math.min(u.textContent.length,Math.max(0,o));const f=this._readClientRects(d,i,u,o,l);return this._createHorizontalRangesFromClientRects(f,r,a)}}const B5=function(){return va?!0:!(qt||Oi||Jn)}();let Pa=!0;class rw{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=t}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}class aw{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(44);this.renderWhitespace=i.get(88),this.renderControlCharacters=i.get(83),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(59),this.stopRenderingLineAfter=i.get(105),this.fontLigatures=i.get(45)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class Un{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=ue(e);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return this._options.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,t,i,n){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),r=this._options,a=Qi.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let l=null;if(r.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace==="selection"){const u=i.selections;for(const f of u){if(f.endLineNumbere)continue;const m=f.startLineNumber===e?f.startColumn:o.minColumn,_=f.endLineNumber===e?f.endColumn:o.maxColumn;m<_&&(r.themeType===Gn.HIGH_CONTRAST||this._options.renderWhitespace!=="selection"?a.push(new Qi(m,_,"inline-selected-text",0)):(l||(l=[]),l.push(new VN(m-1,_-1))))}}const c=new Cl(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==Ii.OFF,l);if(this._renderedViewLine&&this._renderedViewLine.input.equals(c))return!1;n.appendASCIIString('
');const h=C0(c,n);n.appendASCIIString("
");let d=null;return Pa&&B5&&o.isBasicASCII&&r.useMonospaceOptimizations&&h.containsForeignElements===0&&o.content.length<300&&c.lineTokens.getCount()<100&&(d=new jh(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping)),d||(d=ek(this._renderedViewLine?this._renderedViewLine.domNode:null,c,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof jh:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof jh?this._renderedViewLine.monospaceAssumptionsAreValid():Pa}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof jh&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;o!==-1&&t>o+1&&i>o+1&&(r=!0),o!==-1&&t>o+1&&(t=o+1),o!==-1&&i>o+1&&(i=o+1);const a=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return a&&a.length>0?new F5(r,a):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}Un.CLASS_NAME="view-line";class jh{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return Pa;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),Pa=!1),Pa}toSlowRenderedLine(){return ek(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getCharPosition(t),r=this._getCharPosition(i);return[new Oa(o,r-o)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return this._charWidth*t}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new b0(o,i),n)}}class JL{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let r=0,a=this._characterMapping.length;r<=a;r++)this._pixelOffsetCache[r]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const o=this._readPixelOffset(this.domNode,e,t,n);if(o===-1)return null;const r=this._readPixelOffset(this.domNode,e,i,n);return r===-1?null:[new Oa(o,r-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const r=this._readPixelOffset(e,t,i,o);return r===-1?null:[new Oa(r,0)]}else return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();const o=this._getReadingTarget(e);return o.firstChild?o.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){const o=this._pixelOffsetCache[i];if(o!==-1)return o;const r=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(this._characterMapping.length===0){const l=Kg.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.clientRectScale,n.endNode);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();const o=this._characterMapping.getDomPosition(i),r=Kg.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n.clientRectDeltaLeft,n.clientRectScale,n.endNode);if(!r||r.length===0)return-1;const a=r[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getAbsoluteOffset(i),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-a)<=1)return c}return a}_readRawVisibleRangesForRange(e,t,i,n){if(t===1&&i===this._characterMapping.length)return[new Oa(0,this.getWidth())];const o=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return Kg.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,r.partIndex,r.charIndex,n.clientRectDeltaLeft,n.clientRectScale,n.endNode)}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new b0(o,i),n)}}class V5 extends JL{_readVisibleRangesForRange(e,t,i,n,o){const r=super._readVisibleRangesForRange(e,t,i,n,o);if(!r||r.length===0||i===n||i===1&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const a=this._readPixelOffset(e,t,n,o);if(a!==-1){const l=r[r.length-1];l.left=t){const d=t-r;return c-t=4&&e[0]===3&&e[3]===7}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===7}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===5}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===8}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}}class Qa{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(131),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(59),this.stickyTabStops=n.get(104),this.typicalHalfwidthCharacterWidth=n.get(44).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return Qa.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let r=null,a,l=null;return i.afterLineNumber!==o&&(l=new A(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new A(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),l===null?a=r:r===null?a=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Et._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class B0 extends U5{constructor(e,t,i,n,o){super(e,t,i,n),this._ctx=e,o?(this.target=o,this.targetPath=es.collect(o,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} + target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.columnr.contentLeft+r.width)continue;const a=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(a<=o&&o<=a+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const n=t.isInContentArea?8:5;return t.fulfillViewZone(n,i.position,i)}return null}static _hitTestTextArea(e,t){return zi.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,n,i.range,r):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,r)))}return null}static _hitTestViewLines(e,t,i){if(!zi.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new A(1,1),lw);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const o=e.viewModel.getLineCount(),r=e.viewModel.getLineMaxColumn(o);return t.fulfillContentEmpty(new A(o,r),lw)}if(i){if(zi.isStrictChildOfViewLines(t.targetPath)){const o=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.viewModel.getLineLength(o)===0){const a=e.getLineWidth(o),l=qg(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(new A(o,1),l)}const r=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>=r){const a=qg(t.mouseContentHorizontalOffset-r),l=new A(o,e.viewModel.getLineMaxColumn(o));return t.fulfillContentEmpty(l,a)}}return t.fulfillUnknown()}const n=Et._doHitTest(e,t);return n.type===1?Et.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){if(zi.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new A(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(zi.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(n);return t.fulfillScrollbar(new A(n,o))}}return null}static _hitTestScrollbar(e,t){if(zi.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new A(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(131),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return Et._getMouseColumn(n,t.get(44).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const r=n.lineNumber,a=n.column,l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>l){const b=qg(t.mouseContentHorizontalOffset-l);return t.fulfillContentEmpty(n,b)}const c=e.visibleRangeForPosition(r,a);if(!c)return t.fulfillUnknown(n);const h=c.left;if(t.mouseContentHorizontalOffset===h)return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});const d=[];if(d.push({offset:c.left,column:a}),a>1){const b=e.visibleRangeForPosition(r,a-1);b&&d.push({offset:b.left,column:a-1})}const u=e.viewModel.getLineMaxColumn(r);if(ab.offset-w.offset);const f=t.pos.toClientCoordinates(),m=i.getBoundingClientRect(),_=m.left<=f.clientX&&f.clientX<=m.right;for(let b=1;b=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const a=new F0(t.pos.x,r),l=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return l.type===1?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=vr(e.viewDomNode);let n;if(i?typeof i.caretRangeFromPoint=="undefined"?n=$5(i,t.clientX,t.clientY):n=i.caretRangeFromPoint(t.clientX,t.clientY):n=document.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new Gs;const o=n.startContainer;if(o.nodeType===o.TEXT_NODE){const r=o.parentNode,a=r?r.parentNode:null,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,r,n.startOffset):new Gs(o.parentNode)}else if(o.nodeType===o.ELEMENT_NODE){const r=o.parentNode,a=r?r.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,o,o.textContent.length):new Gs(o)}return new Gs}static _doHitTestWithCaretPositionFromPoint(e,t){const i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const n=i.offsetNode.parentNode,o=n?n.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Un.CLASS_NAME?Ko.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Gs(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const n=i.offsetNode.parentNode,o=n&&n.nodeType===n.ELEMENT_NODE?n.className:null,r=n?n.parentNode:null,a=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(o===Un.CLASS_NAME){const l=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(l)return Ko.createFromDOMInfo(e,l,0)}else if(a===Un.CLASS_NAME)return Ko.createFromDOMInfo(e,i.offsetNode,0)}return new Gs(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),o=Vc.atomicPosition(i,e.column-1,n,2);return o!==-1?new A(e.lineNumber,o+1):e}static _doHitTest(e,t){let i=new Gs;if(typeof document.caretRangeFromPoint=="function"?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),i.type===1){const n=e.viewModel.getInjectedTextAt(i.position),o=e.viewModel.normalizePosition(i.position,2);(n||!o.equals(i.position))&&(i=new v_(o,i.spanNode,n))}return i.type===1&&e.stickyTabStops&&(i=new v_(this._snapToSoftTabBoundary(i.position,e.viewModel),i.spanNode,i.injectedText)),i}}function $5(s,e,t){const i=document.createRange();let n=s.elementFromPoint(e,t);if(n!==null){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const o=n.getBoundingClientRect(),r=window.getComputedStyle(n,null).getPropertyValue("font"),a=n.innerText;let l=o.left,c=0,h;if(e>o.left+o.width)c=a.length;else{const d=er.getInstance();for(let u=0;uthis._createMouseTarget(r,a),r=>this._getMouseColumn(r))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(131).height;const n=new N5(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,r=>this._onContextMenu(r,!0))),this._register(n.onMouseMoveThrottled(this.viewHelper.viewDomNode,r=>this._onMouseMove(r),Du(this.mouseTargetFactory),Lr.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onMouseUp(this.viewHelper.viewDomNode,r=>this._onMouseUp(r))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,r=>this._onMouseLeave(r))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,r=>this._onMouseDown(r)));const o=r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(68))return;const a=new qa(r);if(me?(r.metaKey||r.ctrlKey)&&!r.shiftKey&&!r.altKey:r.ctrlKey&&!r.metaKey&&!r.shiftKey&&!r.altKey){const c=uu.getZoomLevel(),h=a.deltaY>0?1:-1;uu.setZoomLevel(c+h),a.preventDefault(),a.stopPropagation()}};this._register(V(this.viewHelper.viewDomNode,Y.MOUSE_WHEEL,o,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(131)){const t=this._context.configuration.options.get(131).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const n=new YL(e,t).toPageCoordinates(),o=XL(this.viewHelper.viewDomNode);if(n.yo.y+o.height||n.xo.x+o.width)return null;const r=QL(this.viewHelper.viewDomNode,o,n);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,n,r,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const n=vr(this.viewHelper.viewDomNode);n&&(i=n.elementsFromPoint(e.posx,e.posy).find(o=>this.viewHelper.viewDomNode.contains(o)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(i||o&&r))h(),this._mouseDownOperation.start(t.type,e);else if(n)e.preventDefault();else if(a){const d=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(h(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}Lr.MOUSE_MOVE_MINIMUM_TIME=100;class j5 extends W{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new M5(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new os),this._mouseState=new $f,this._currentSelection=new ce(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);!t||(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(81)&&n.get(31)&&!n.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&i.type===6&&i.position&&this._currentSelection.containsPosition(i.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Du(null),o=>this._onMouseDownThenMove(o),o=>{const r=this._findMousePosition(this._lastMouseEvent,!0);o&&o instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:r?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Du(null),o=>this._onMouseDownThenMove(o),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){!this._isActive||this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);!e||this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const a=n.getCurrentScrollTop()+e.relativePos.y,l=Qa.getZoneAtCoord(this._context,a);if(l){const h=this._helpPositionJumpOverViewZone(l);if(h)return Qt.createOutsideEditor(o,h)}const c=n.getLineNumberAtVerticalOffset(a);return Qt.createOutsideEditor(o,new A(c,i.getLineMaxColumn(c)))}const r=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posxt.x+t.width?Qt.createOutsideEditor(o,new A(r,i.getLineMaxColumn(r))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(n.type===8||n.type===5){const r=this._helpPositionJumpOverViewZone(n.detail);if(r)return Qt.createViewZone(n.type,n.element,n.mouseColumn,r,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new A(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t){!e.position||this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:e.type===6&&e.detail.injectedText!==null})}}class $f{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=new Date().getTime();i-this._lastSetMouseDownCountTime>$f.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}$f.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var bn;(function(s){s.text="text/plain",s.binary="application/octet-stream",s.unknown="application/unknown",s.markdown="text/markdown",s.latex="text/latex",s.uriList="text/uri-list"})(bn||(bn={}));class Nt{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e){return new Nt(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new Nt(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,n,-1)}if(e>=this.selectionEnd){const n=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}const t=this.value.substring(this.selectionStart,e);if(t.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;(o=t.indexOf(` +`,o+1))!==-1;)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const n=Math.min(aC(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(lC(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(n,e.value.length-o);const r=t.value.substring(n,t.value.length-o),a=e.selectionStart-n,l=e.selectionEnd-n,c=t.selectionStart-n,h=t.selectionEnd-n;if(c===h){const u=e.selectionStart-n;return{text:r,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}const d=l-a;return{text:r,replacePrevCharCnt:d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(aC(e.value,t.value),e.selectionEnd),n=Math.min(lC(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),r=t.value.substring(i,t.value.length-n);e.selectionStart-i;const a=e.selectionEnd-i;t.selectionStart-i;const l=t.selectionEnd-i;return{text:r,replacePrevCharCnt:a,replaceNextCharCnt:o.length-a,positionDelta:l-r.length}}}Nt.EMPTY=new Nt("",0,0,null,null);class fa{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new D(n,1,o+1,1)}static fromEditorSelection(e,t,i,n,o){const r=fa._getPageOfLine(i.startLineNumber,n),a=fa._getRangeForPage(r,n),l=fa._getPageOfLine(i.endLineNumber,n),c=fa._getRangeForPage(l,n),h=a.intersectRanges(new D(1,1,i.startLineNumber,i.startColumn));let d=t.getValueInRange(h,1);const u=t.getLineCount(),f=t.getLineMaxColumn(u),m=c.intersectRanges(new D(i.endLineNumber,i.endColumn,u,f));let _=t.getValueInRange(m,1),b;if(r===l||r+1===l)b=t.getValueInRange(i,1);else{const w=a.intersectRanges(i),C=c.intersectRanges(i);b=t.getValueInRange(w,1)+String.fromCharCode(8230)+t.getValueInRange(C,1)}return o&&(d.length>500&&(d=d.substring(d.length-500,d.length)),_.length>500&&(_=_.substring(0,500)),b.length>2*500&&(b=b.substring(0,500)+String.fromCharCode(8230)+b.substring(b.length-500,b.length))),new Nt(d+b+_,d.length,d.length+b.length,new A(i.startLineNumber,i.startColumn),new A(i.endLineNumber,i.endColumn))}}var Nu;(function(s){s.Tap="-monaco-textarea-synthetic-tap"})(Nu||(Nu={}));class Tu{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}Tu.INSTANCE=new Tu;class K5{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class q5 extends W{constructor(e,t,i,n){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._onFocus=this._register(new M),this.onFocus=this._onFocus.event,this._onBlur=this._register(new M),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new M),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new M),this.onCut=this._onCut.event,this._onPaste=this._register(new M),this.onPaste=this._onPaste.event,this._onType=this._register(new M),this.onType=this._onType.event,this._onCompositionStart=this._register(new M),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new M),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new M),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new M),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new Tt(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new Tt(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=Nt.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown(r=>{const a=new He(r);(a.keyCode===109||this._currentComposition&&a.keyCode===1)&&a.stopPropagation(),a.equals(9)&&a.preventDefault(),o=a,this._onKeyDown.fire(a)})),this._register(this._textArea.onKeyUp(r=>{const a=new He(r);this._onKeyUp.fire(a)})),this._register(this._textArea.onCompositionStart(r=>{const a=new K5;if(this._currentComposition){this._currentComposition=a;return}if(this._currentComposition=a,this._OS===2&&o&&o.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===r.data&&(o.code==="ArrowRight"||o.code==="ArrowLeft")){a.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:r.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:r.data});return}this._onCompositionStart.fire({data:r.data})})),this._register(this._textArea.onCompositionUpdate(r=>{const a=this._currentComposition;if(!a)return;if(this._browser.isAndroid){const c=Nt.readFromTextArea(this._textArea),h=Nt.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(h),this._onCompositionUpdate.fire(r);return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=Nt.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionUpdate.fire(r)})),this._register(this._textArea.onCompositionEnd(r=>{const a=this._currentComposition;if(!a)return;if(this._currentComposition=null,this._browser.isAndroid){const c=Nt.readFromTextArea(this._textArea),h=Nt.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(h),this._onCompositionEnd.fire();return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=Nt.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const a=Nt.readFromTextArea(this._textArea),l=Nt.deduceInput(this._textAreaState,a,this._OS===2);l.replacePrevCharCnt===0&&l.text.length===1&>(l.text.charCodeAt(0))||(this._textAreaState=a,(l.text!==""||l.replacePrevCharCnt!==0||l.replaceNextCharCnt!==0||l.positionDelta!==0)&&this._onType.fire(l))})),this._register(this._textArea.onCut(r=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(r),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(r=>{this._ensureClipboardGetsEditorSelection(r)})),this._register(this._textArea.onPaste(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),r.preventDefault(),!r.clipboardData)return;let[a,l]=cw.getTextData(r.clipboardData);!a||(l=l||Tu.INSTANCE.get(a),this._onPaste.fire({text:a,metadata:l}))})),this._register(this._textArea.onFocus(()=>{const r=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!r&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return V(document,"selectionchange",t=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),h=this._host.deduceModelPosition(c[0],c[1],c[2]),d=this._textAreaState.deduceEditorPosition(l),u=this._host.deduceModelPosition(d[0],d[1],d[2]),f=new ce(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(f)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};Tu.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,` +`):t.text,i),e.preventDefault(),e.clipboardData&&cw.setTextData(e.clipboardData,t.text,t.html,i)}}class cw{static getTextData(e){const t=e.getData(bn.text);let i=null;const n=e.getData("vscode-editor-data");if(typeof n=="string")try{i=JSON.parse(n),i.version!==1&&(i=null)}catch{}return[t,i]}static setTextData(e,t,i,n){e.setData(bn.text,t),typeof i=="string"&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}}class G5 extends W{constructor(e){super(),this._actual=e,this.onKeyDown=this._register(hn(this._actual,"keydown")).event,this.onKeyUp=this._register(hn(this._actual,"keyup")).event,this.onCompositionStart=this._register(hn(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(hn(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(hn(this._actual,"compositionend")).event,this.onInput=this._register(hn(this._actual,"input")).event,this.onCut=this._register(hn(this._actual,"cut")).event,this.onCopy=this._register(hn(this._actual,"copy")).event,this.onPaste=this._register(hn(this._actual,"paste")).event,this.onFocus=this._register(hn(this._actual,"focus")).event,this.onBlur=this._register(hn(this._actual,"blur")).event,this._onSyntheticTap=this._register(new M),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(V(this._actual,Nu.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const e=vr(this._actual);return e?e.activeElement===this._actual:S0(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let o=null;const r=vr(n);r?o=r.activeElement:o=document.activeElement;const a=o===n,l=n.selectionStart,c=n.selectionEnd;if(a&&l===t&&c===i){Oi&&window.parent!==window&&n.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),Oi&&window.parent!==window&&n.focus();return}try{const h=I4(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),E4(n,h)}catch{}}}class Z5 extends Lr{constructor(e,t,i){super(e,t,i),this._register(Se.addTarget(this.viewHelper.linesContentDomNode)),this._register(V(this.viewHelper.linesContentDomNode,Ae.Tap,o=>this.onTap(o))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Change,o=>this.onChange(o))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Contextmenu,o=>this._onContextMenu(new yr(o,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(V(this.viewHelper.linesContentDomNode,"pointerdown",o=>{const r=o.pointerType;if(r==="mouse"){this._lastPointerType="mouse";return}else r==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const n=new T5(this.viewHelper.viewDomNode);this._register(n.onPointerMoveThrottled(this.viewHelper.viewDomNode,o=>this._onMouseMove(o),Du(this.mouseTargetFactory),Lr.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onPointerUp(this.viewHelper.viewDomNode,o=>this._onMouseUp(o))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,o=>this._onMouseLeave(o))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,o=>this._onMouseDown(o)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new yr(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:t.type===6&&t.detail.injectedText!==null})}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e)}}class Y5 extends Lr{constructor(e,t,i){super(e,t,i),this._register(Se.addTarget(this.viewHelper.linesContentDomNode)),this._register(V(this.viewHelper.linesContentDomNode,Ae.Tap,n=>this.onTap(n))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Change,n=>this.onChange(n))),this._register(V(this.viewHelper.linesContentDomNode,Ae.Contextmenu,n=>this._onContextMenu(new yr(n,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new yr(e,this.viewHelper.viewDomNode),!1);if(t.position){const i=document.createEvent("CustomEvent");i.initEvent(Nu.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(i),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class X5 extends W{constructor(e,t,i){super(),pr&&nL.pointerEvents?this.handler=this._register(new Z5(e,t,i)):window.TouchEvent?this.handler=this._register(new Y5(e,t,i)):this.handler=this._register(new Lr(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}class yl extends Ih{}const Q5=E("editor.lineHighlightBackground",{dark:null,light:null,hc:null},p("lineHighlight","Background color for the highlight of line at the cursor position.")),hw=E("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},p("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),J5=E("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},p("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),eM=E("editor.rangeHighlightBorder",{dark:null,light:null,hc:yi},p("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),tM=E("editor.symbolHighlightBackground",{dark:po,light:po,hc:null},p("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),iM=E("editor.symbolHighlightBorder",{dark:null,light:null,hc:yi},p("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),tk=E("editorCursor.foreground",{dark:"#AEAFAD",light:O.black,hc:O.white},p("caret","Color of the editor cursor.")),nM=E("editorCursor.background",null,p("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),hr=E("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},p("editorWhitespaces","Color of whitespace characters in the editor.")),jf=E("editorIndentGuide.background",{dark:hr,light:hr,hc:hr},p("editorIndentGuides","Color of the editor indentation guides.")),Kf=E("editorIndentGuide.activeBackground",{dark:hr,light:hr,hc:hr},p("editorActiveIndentGuide","Color of the active editor indentation guides.")),ik=E("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:O.white},p("editorLineNumbers","Color of editor line numbers.")),Gg=E("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:yi},p("editorActiveLineNumber","Color of editor active line number"),!1,p("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),sM=E("editorLineNumber.activeForeground",{dark:Gg,light:Gg,hc:Gg},p("editorActiveLineNumber","Color of editor active line number")),oM=E("editorRuler.foreground",{dark:"#5A5A5A",light:O.lightgrey,hc:O.white},p("editorRuler","Color of the editor rulers."));E("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},p("editorCodeLensForeground","Foreground color of editor CodeLens"));E("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},p("editorBracketMatchBackground","Background color behind matching brackets"));E("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:it},p("editorBracketMatchBorder","Color for matching brackets boxes"));const rM=E("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},p("editorOverviewRulerBorder","Color of the overview ruler border.")),aM=E("editorOverviewRuler.background",null,p("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),lM=E("editorGutter.background",{dark:tn,light:tn,hc:tn},p("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),cM=E("editorUnnecessaryCode.border",{dark:null,light:null,hc:O.fromHex("#fff").transparent(.8)},p("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),hM=E("editorUnnecessaryCode.opacity",{dark:O.fromHex("#000a"),light:O.fromHex("#0007"),hc:null},p("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`));E("editorGhostText.border",{dark:null,light:null,hc:O.fromHex("#fff").transparent(.8)},p("editorGhostTextBorder","Border color of ghost text in the editor."));E("editorGhostText.foreground",{dark:O.fromHex("#ffffff56"),light:O.fromHex("#0007"),hc:null},p("editorGhostTextForeground","Foreground color of the ghost text in the editor."));E("editorGhostText.background",{dark:null,light:null,hc:null},p("editorGhostTextBackground","Background color of the ghost text in the editor."));const Zg=new O(new de(0,122,204,.6));E("editorOverviewRuler.rangeHighlightForeground",{dark:Zg,light:Zg,hc:Zg},p("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const dM=E("editorOverviewRuler.errorForeground",{dark:new O(new de(255,18,18,.7)),light:new O(new de(255,18,18,.7)),hc:new O(new de(255,50,50,1))},p("overviewRuleError","Overview ruler marker color for errors.")),uM=E("editorOverviewRuler.warningForeground",{dark:yn,light:yn,hc:R0},p("overviewRuleWarning","Overview ruler marker color for warnings.")),fM=E("editorOverviewRuler.infoForeground",{dark:As,light:As,hc:UL},p("overviewRuleInfo","Overview ruler marker color for infos.")),nk=E("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},p("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),sk=E("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},p("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),ok=E("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},p("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),rk=E("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),ak=E("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),lk=E("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),gM=E("editorBracketHighlight.unexpectedBracket.foreground",{dark:new O(new de(255,18,18,.8)),light:new O(new de(255,18,18,.8)),hc:new O(new de(255,50,50,1))},p("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),mM=E("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),pM=E("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),_M=E("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),bM=E("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),CM=E("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),wM=E("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),vM=E("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),SM=E("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),yM=E("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),LM=E("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),kM=E("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),xM=E("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},p("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));E("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hc:"#ff0000"},p("editorUnicodeHighlight.border","Border color used to highlight unicode characters."));ni((s,e)=>{const t=s.getColor(tn);t&&e.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${t}; }`);const i=s.getColor(xh);i&&e.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const n=s.getColor(lM);n&&e.addRule(`.monaco-editor .margin { background-color: ${n}; }`);const o=s.getColor(J5);o&&e.addRule(`.monaco-editor .rangeHighlight { background-color: ${o}; }`);const r=s.getColor(eM);r&&e.addRule(`.monaco-editor .rangeHighlight { border: 1px ${s.type==="hc"?"dotted":"solid"} ${r}; }`);const a=s.getColor(tM);a&&e.addRule(`.monaco-editor .symbolHighlight { background-color: ${a}; }`);const l=s.getColor(iM);l&&e.addRule(`.monaco-editor .symbolHighlight { border: 1px ${s.type==="hc"?"dotted":"solid"} ${l}; }`);const c=s.getColor(hr);c&&(e.addRule(`.monaco-editor .mtkw { color: ${c} !important; }`),e.addRule(`.monaco-editor .mtkz { color: ${c} !important; }`))});class Ja extends yl{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new A(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(59);const t=e.get(60);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(84);const i=e.get(131);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new A(e,1));if(t.column!==1)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(this._renderLineNumbers===2){const n=Math.abs(this._lastCursorModelPosition.lineNumber-i);return n===0?''+i+"":String(n)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===i||i%10===0?String(i):"":String(i)}prepareRender(e){if(this._renderLineNumbers===0){this._renderResult=null;return}const t=qt?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o='
',r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const c=l-i;if(!this._renderFinalNewline&&l===r&&this._context.viewModel.getLineLength(l)===0){a[c]="";continue}const h=this._getLineRenderLineNumber(l);h?l===this._activeLineNumber?a[c]='
'+h+"
":a[c]=o+h+"
":a[c]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ja.CLASS_NAME="line-numbers";ni((s,e)=>{const t=s.getColor(ik);t&&e.addRule(`.monaco-editor .line-numbers { color: ${t}; }`);const i=s.getColor(sM);i&&e.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${i}; }`)});class kr extends Wi{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=ue(document.createElement("div")),this._domNode.setClassName(kr.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=ue(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(kr.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}kr.CLASS_NAME="glyph-margin";kr.OUTER_CLASS_NAME="margin";const dr="monaco-mouse-cursor-text";class IM{constructor(e,t,i,n,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new A(this.modelLineNumber,this.distanceToModelLineStart+1),i=new A(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const Ol=Oi;class EM extends Wi{constructor(e,t,i){super(e),this._primaryCursorPosition=new A(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const n=this._context.configuration.options,o=n.get(131);this._setAccessibilityOptions(n),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=n.get(44),this._lineHeight=n.get(59),this._emptySelectionClipboard=n.get(32),this._copyWithSyntaxHighlighting=n.get(21),this._visibleTextArea=null,this._selections=[new ce(1,1,1,1)],this._modelSelections=[new ce(1,1,1,1)],this._lastRenderPosition=null,this.textArea=ue(document.createElement("textarea")),es.write(this.textArea,6),this.textArea.setClassName(`inputarea ${dr}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("tabindex",String(n.get(112))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",p("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),n.get(30)&&n.get(81)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=ue(document.createElement("div")),this.textAreaCover.setPosition("absolute");const r={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:c=>this._context.viewModel.getLineMaxColumn(c),getValueInRange:(c,h)=>this._context.viewModel.getValueInRange(c,h)},a={getDataToCopy:()=>{const c=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,li),h=this._context.viewModel.model.getEOL(),d=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),u=Array.isArray(c)?c:null,f=Array.isArray(c)?c.join(h):c;let m,_=null;if(this._copyWithSyntaxHighlighting&&f.length<65536){const b=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);b&&(m=b.html,_=b.mode)}return{isFromEmptySelection:d,multicursorText:u,text:f,html:m,mode:_}},getScreenReaderContent:c=>{if(this._accessibilitySupport===1){if(me){const h=this._selections[0];if(h.isEmpty()){const d=h.getStartPosition();let u=this._getWordBeforePosition(d);if(u.length===0&&(u=this._getCharacterBeforePosition(d)),u.length>0)return new Nt(u,u.length,u.length,d,d)}}return Nt.EMPTY}if(Ey){const h=this._selections[0];if(h.isEmpty()){const d=h.getStartPosition(),[u,f]=this._getAndroidWordAtPosition(d);if(u.length>0)return new Nt(u,f,f,d,d)}return Nt.EMPTY}return fa.fromEditorSelection(c,r,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(c,h,d)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(c,h,d)},l=this._register(new G5(this.textArea.domNode));this._textAreaInput=this._register(new q5(a,l,qi,sD)),this._register(this._textAreaInput.onKeyDown(c=>{this._viewController.emitKeyDown(c)})),this._register(this._textAreaInput.onKeyUp(c=>{this._viewController.emitKeyUp(c)})),this._register(this._textAreaInput.onPaste(c=>{let h=!1,d=null,u=null;c.metadata&&(h=this._emptySelectionClipboard&&!!c.metadata.isFromEmptySelection,d=typeof c.metadata.multicursorText!="undefined"?c.metadata.multicursorText:null,u=c.metadata.mode),this._viewController.paste(c.text,h,d,u)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(c=>{c.replacePrevCharCnt||c.replaceNextCharCnt||c.positionDelta?this._viewController.compositionType(c.text,c.replacePrevCharCnt,c.replaceNextCharCnt,c.positionDelta):this._viewController.type(c.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(c=>{this._viewController.setSelection(c)})),this._register(this._textAreaInput.onCompositionStart(c=>{const h=this.textArea.domNode,d=this._modelSelections[0],{distanceToModelLineStart:u,widthOfHiddenTextBefore:f}=(()=>{const _=h.value.substring(0,Math.min(h.selectionStart,h.selectionEnd)),b=_.lastIndexOf(` +`),w=_.substring(b+1),C=w.lastIndexOf(" "),v=w.length-C-1,S=d.getStartPosition(),k=Math.min(S.column-1,v),x=S.column-1-k,L=w.substring(0,w.length-k),y=DM(L,this._fontInfo);return{distanceToModelLineStart:x,widthOfHiddenTextBefore:y}})(),{distanceToModelLineEnd:m}=(()=>{const _=h.value.substring(Math.max(h.selectionStart,h.selectionEnd)),b=_.indexOf(` +`),w=b===-1?_:_.substring(0,b),C=w.indexOf(" "),v=C===-1?w.length:w.length-C-1,S=d.getEndPosition(),k=Math.min(this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column,v);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column-k}})();this._context.viewModel.revealRange("keyboard",!0,D.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new IM(this._context,d.startLineNumber,u,f,m),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${dr} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(c=>{!this._visibleTextArea||(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${dr}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(e.lineNumber),n=Ka(t);let o=!0,r=e.column,a=!0,l=e.column,c=0;for(;c<50&&(o||a);){if(o&&r<=1&&(o=!1),o){const h=i.charCodeAt(r-2);n.get(h)!==0?o=!1:r--}if(a&&l>i.length&&(a=!1),a){const h=i.charCodeAt(l-1);n.get(h)!==0?a=!1:l++}c++}return[i.substring(r-1,l-1),e.column-r]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=Ka(this._context.configuration.options.get(117));let n=e.column,o=0;for(;n>1;){const r=t.charCodeAt(n-2);if(i.get(r)!==0||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const i=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!gt(i.charCodeAt(0)))return i}return""}_getAriaLabel(e){return e.get(2)===1?p("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",qt?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);this._accessibilitySupport===2&&t===Mr.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(44),this._lineHeight=t.get(59),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(112))),(e.hasChanged(30)||e.hasChanged(81))&&(t.get(30)&&t.get(81)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new A(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea&&this._visibleTextArea.prepareRender(e)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea){const i=this._visibleTextArea.visibleTextareaStart,n=this._visibleTextArea.visibleTextareaEnd,o=this._visibleTextArea.startPosition,r=this._visibleTextArea.endPosition;if(o&&r&&i&&n&&n.left>=this._scrollLeft&&i.left<=this._scrollLeft+this._contentWidth){const a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,l=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let c=this._visibleTextArea.widthOfHiddenLineTextBefore,h=this._contentLeft+i.left-this._scrollLeft,d=n.left-i.left+1;if(hthis._contentWidth&&(d=this._contentWidth);const u=this._context.viewModel.getViewLineData(o.lineNumber),f=u.tokens.findTokenIndexAtOffset(o.column-1),m=u.tokens.findTokenIndexAtOffset(r.column-1),_=f===m,b=this._visibleTextArea.definePresentation(_?u.tokens.getPresentation(f):null);this.textArea.domNode.scrollTop=l*this._lineHeight,this.textArea.domNode.scrollLeft=c,this._doRender({lastRenderPosition:null,top:a,left:h,width:d,height:this._lineHeight,useCover:!1,color:(et.getColorMap()||[])[b.foreground],italic:b.italic,bold:b.bold,underline:b.underline,strikethrough:b.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight){this._renderAtTopLeft();return}if(me){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:Ol?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:Ol?0:1,height:Ol?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;do{if(i=e.indexOf(` +`,i+1),i===-1)break;t++}while(!0);return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:Ol?0:1,height:Ol?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;ii(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?O.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(50)?i.setClassName("monaco-editor-background textAreaCover "+kr.OUTER_CLASS_NAME):n.get(60).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Ja.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}}function DM(s,e){if(s.length===0)return 0;const t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const i=document.createElement("span");ii(i,e),i.style.whiteSpace="pre",i.append(s),t.appendChild(i),document.body.appendChild(t);const n=i.offsetWidth;return document.body.removeChild(t),n}function NM(s,e,t){let i=0;for(let o=0;o!0,MM=()=>!1,RM=s=>s===" "||s===" ";class Yr{constructor(e,t,i,n){this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(131);this.readOnly=o.get(81),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(104),this.lineHeight=o.get(59),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(116),this.wordSeparators=o.get(117),this.emptySelectionClipboard=o.get(32),this.copyWithSyntaxHighlighting=o.get(21),this.multiCursorMergeOverlapping=o.get(69),this.multiCursorPaste=o.get(71),this.autoClosingBrackets=o.get(5),this.autoClosingQuotes=o.get(8),this.autoClosingDelete=o.get(6),this.autoClosingOvertype=o.get(7),this.autoSurround=o.get(11),this.autoIndent=o.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close}static shouldRecreate(e){return e.hasChanged(131)||e.hasChanged(117)||e.hasChanged(32)||e.hasChanged(69)||e.hasChanged(71)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(116)||e.hasChanged(59)||e.hasChanged(81)}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||e===void 0?void 0:e.getElectricCharacters();if(t)for(const i of t)this._electricChars[i]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=fu(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return ck(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return RM;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e);case"always":return TM;case"never":return MM}}_getLanguageDefinedShouldAutoClose(e){const t=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet();return i=>t.indexOf(i)!==-1}visibleColumnFromColumn(e,t){return ft.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=ft.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(nr?r:n}}class oe{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new AM(e)}static fromViewState(e){return new OM(e)}static fromModelSelection(e){const t=ce.liftSelection(e),i=new pt(D.fromPositions(t.getSelectionStart()),0,t.getPosition(),0);return oe.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;io,c=n>r,h=nr||wn||b0&&n--,qo.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=o;l<=r;l++){const c=t.getLineMaxColumn(l),h=e.visibleColumnFromColumn(t,new A(l,c));n=Math.max(n,h)}let a=i.toViewVisualColumn;return ae.getLineMinColumn(t.lineNumber))return t.delta(void 0,-yy(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new A(i,e.getLineMaxColumn(i))}else return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),r=Vc.atomicPosition(o,t.column-1,i,0);if(r!==-1&&r+1>=n)return new A(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?_e.leftPositionAtomicSoftTabs(t,i,e.tabSize):_e.leftPosition(t,i);return new Yg(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let r,a;if(i.hasSelection()&&!n)r=i.selection.startLineNumber,a=i.selection.startColumn;else{const l=i.position.delta(void 0,-(o-1)),c=t.normalizePosition(_e.clipPositionColumn(l,t),0),h=_e.left(e,t,c);r=h.lineNumber,a=h.column}return i.move(n,r,a,0)}static clipPositionColumn(e,t){return new A(e.lineNumber,_e.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return ih?(i=h,a?n=t.getLineMaxColumn(i):n=Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,c),f?o=0:o=c-ft.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),l!==void 0){const m=new A(i,n),_=t.normalizePosition(m,l);o=o+(n-_.column),i=_.lineNumber,n=_.column}return new Yg(i,n,o)}static down(e,t,i,n,o,r,a){return this.vertical(e,t,i,n,o,i+r,a,1)}static moveDown(e,t,i,n,o){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);const l=_e.down(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const n=i.selection,o=_e.down(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=_e.down(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new pt(new D(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new A(r.lineNumber,r.column),r.leftoverVisibleColumns)}static up(e,t,i,n,o,r,a){return this.vertical(e,t,i,n,o,i-r,a,0)}static moveUp(e,t,i,n,o){let r,a;i.hasSelection()&&!n?(r=i.selection.startLineNumber,a=i.selection.startColumn):(r=i.position.lineNumber,a=i.position.column);const l=_e.up(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(e,t,i){const n=i.selection,o=_e.up(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=_e.up(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new pt(new D(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new A(r.lineNumber,r.column),r.leftoverVisibleColumns)}static _isBlankLine(e,t){return e.getLineFirstNonWhitespaceColumn(t)===0}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let r=i.position.lineNumber;for(;r=u.length+1)return!1;const f=u.charAt(d.column-2),m=n.get(f);if(!m)return!1;if(ia(f)){if(i==="never")return!1}else if(t==="never")return!1;const _=u.charAt(d.column-1);let b=!1;for(const w of m)w.open===f&&w.close===_&&(b=!0);if(!b)return!1;if(e==="auto"){let w=!1;for(let C=0,v=a.length;C1){const o=t.getLineContent(n.lineNumber),r=Ci(o),a=r===-1?o.length+1:r+1;if(n.column<=a){const l=i.visibleColumnFromColumn(t,n),c=ft.prevIndentTabStop(l,i.indentSize),h=i.columnFromVisibleColumn(t,n.lineNumber,c);return new D(n.lineNumber,h,n.lineNumber,n.column)}}return D.fromPositions(xr.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=XE(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}else if(e.lineNumber>1){const i=e.lineNumber-1;return new A(i,t.getLineMaxColumn(i))}else return e}static cut(e,t,i){const n=[];let o=null;i.sort((r,a)=>A.compare(r.getStartPosition(),a.getEndPosition()));for(let r=0,a=i.length;r1&&(o==null?void 0:o.endLineNumber)!==c.lineNumber?(h=c.lineNumber-1,d=t.getLineMaxColumn(c.lineNumber-1),u=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber)):(h=c.lineNumber,d=1,u=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber));const m=new D(h,d,u,f);o=m,m.isEmpty()?n[r]=null:n[r]=new Yt(m,"")}else n[r]=null;else n[r]=new Yt(l,"")}return new oi(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class $e{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;for(let o=i.column-2;o>=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===0){if(n===2)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(a===2){if(n===1)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(a===1&&n!==0)return this._createWord(e,n,a,o+1,this._findEndOfWord(e,t,n,o+1))}return n!==0?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=e.length;for(let r=n;r=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===1||i===1&&a===2||i===2&&a===0)return o+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,r=i.column;r===1&&o>1&&(o=o-1,r=t.getLineMaxColumn(o));let a=$e._findPreviousWordOnLine(e,t,new A(o,r));if(n===0)return new A(o,a?a.start+1:1);if(n===1)return a&&a.wordType===2&&a.end-a.start===1&&a.nextCharClass===0&&(a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1))),new A(o,a?a.start+1:1);if(n===3){for(;a&&a.wordType===2;)a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1));return new A(o,a?a.start+1:1)}return a&&r<=a.end+1&&(a=$e._findPreviousWordOnLine(e,t,new A(o,a.start+1))),new A(o,a?a.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===1)return i>1?new A(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const a=o.charCodeAt(r-2),l=o.charCodeAt(r-1);if(a===95&&l!==95)return new A(i,r);if(ra(a)&&Xs(l))return new A(i,r);if(Xs(a)&&Xs(l)&&r+1=l.start+1&&(l=$e._findNextWordOnLine(e,t,new A(o,l.end+1))),l?r=l.start+1:r=t.getLineMaxColumn(o);return new A(o,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i1?c=1:(l--,c=n.getLineMaxColumn(l)):(h&&c<=h.end+1&&(h=$e._findPreviousWordOnLine(i,n,new A(l,h.start+1))),h?c=h.end+1:c>1?c=1:(l--,c=n.getLineMaxColumn(l))),new D(l,c,a.lineNumber,a.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new A(i.positionLineNumber,i.positionColumn),o=this._deleteInsideWordWhitespace(t,n);return o||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return i===32||i===9}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(n===0)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let r=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,r))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;r+11?new D(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumberd.start+1<=i.column&&i.column<=d.end+1,a=(d,u)=>(d=Math.min(d,i.column),u=Math.max(u,i.column),new D(i.lineNumber,d,i.lineNumber,u)),l=d=>{let u=d.start+1,f=d.end+1,m=!1;for(;f-11&&this._charAtIsWhitespace(n,u-2);)u--;return a(u,f)},c=$e._findPreviousWordOnLine(e,t,i);if(c&&r(c))return l(c);const h=$e._findNextWordOnLine(e,t,i);return h&&r(h)?l(h):c&&h?a(c.end+1,h.start+1):c?a(c.start+1,c.end+1):h?a(h.start+1,h.end+1):a(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=$e._moveWordPartLeft(e,i);return new D(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=u.start+1&&(u=$e._findNextWordOnLine(i,n,new A(l,u.end+1))),u?c=u.start+1:cc&&(h=c,d=e.model.getLineMaxColumn(h)),oe.fromModelState(new pt(new D(r.lineNumber,1,h,d),0,new A(h,d),0))}const l=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberl){const c=e.getLineCount();let h=a.lineNumber+1,d=1;return h>c&&(h=c,d=e.getLineMaxColumn(h)),oe.fromViewState(t.viewState.move(t.modelState.hasSelection(),h,d,0))}else{const c=t.modelState.selectionStart.getEndPosition();return oe.fromModelState(t.modelState.move(t.modelState.hasSelection(),c.lineNumber,c.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return oe.fromModelState($e.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new oe(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return oe.fromViewState(new pt(new D(i,n,i,n),0,new A(i,n),0))}static moveTo(e,t,i,n,o){const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new A(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return oe.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,r){switch(i){case 0:return r===4?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return r===4?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return r===2?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return r===2?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return r===2?t.map(a=>oe.fromViewState(_e.moveToPrevBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>oe.fromModelState(_e.moveToPrevBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 5:return r===2?t.map(a=>oe.fromViewState(_e.moveToNextBlankLine(e.cursorConfig,e,a.viewState,n))):t.map(a=>oe.fromModelState(_e.moveToNextBlankLine(e.cursorConfig,e.model,a.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const r=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const l=this._firstLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 13:{const l=this._lastLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 12:{const l=Math.round((a.startLineNumber+a.endLineNumber)/2),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],n,l,c)]}case 14:{const l=[];for(let c=0,h=t.length;ci.endLineNumber-1?r=i.endLineNumber-1:ooe.fromViewState(_e.moveLeft(e.cursorConfig,e,o.viewState,i,n)))}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,r=t.length;ooe.fromViewState(_e.moveRight(e.cursorConfig,e,o.viewState,i,n)))}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,r=t.length;oe in s?Ax(s,e,{enumerable:!0,config \`\`\` * 'value': Number of units to move. Default is '1'. * 'select': If 'true' makes the selection. Default is 'false'. - `,constraint:e,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},s.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},s.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function t(i){if(!i.to)return null;let n;switch(i.to){case s.RawDirection.Left:n=0;break;case s.RawDirection.Right:n=1;break;case s.RawDirection.Up:n=2;break;case s.RawDirection.Down:n=3;break;case s.RawDirection.PrevBlankLine:n=4;break;case s.RawDirection.NextBlankLine:n=5;break;case s.RawDirection.WrappedLineStart:n=6;break;case s.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=7;break;case s.RawDirection.WrappedLineColumnCenter:n=8;break;case s.RawDirection.WrappedLineEnd:n=9;break;case s.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=10;break;case s.RawDirection.ViewPortTop:n=11;break;case s.RawDirection.ViewPortBottom:n=13;break;case s.RawDirection.ViewPortCenter:n=12;break;case s.RawDirection.ViewPortIfOutside:n=14;break;default:return null}let o=0;switch(i.by){case s.RawUnit.Line:o=1;break;case s.RawUnit.WrappedLine:o=2;break;case s.RawUnit.Character:o=3;break;case s.RawUnit.HalfLine:o=4;break}return{direction:n,unit:o,select:!!i.select,value:i.value||1}}s.parse=t})(Mu||(Mu={}));const Xg=Object.create(null);function Oo(s,e){if(e<=0)return"";Xg[s]||(Xg[s]=["",s]);const t=Xg[s];for(let i=t.length;i<=e;i++)t[i]=t[i-1]+s;return t[e]}class io{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,i,n,o){const r=ft.visibleColumnFromColumn(e,t,i);if(o){const a=Oo(" ",n),c=ft.prevIndentTabStop(r,n)/n;return Oo(a,c)}else{const a=" ",c=ft.prevRenderTabStop(r,i)/i;return Oo(a,c)}}static shiftIndent(e,t,i,n,o){const r=ft.visibleColumnFromColumn(e,t,i);if(o){const a=Oo(" ",n),c=ft.nextIndentTabStop(r,n)/n;return Oo(a,c)}else{const a=" ",c=ft.nextRenderTabStop(r,i)/i;return Oo(a,c)}}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let n=this._selection.endLineNumber;this._selection.endColumn===1&&i!==n&&(n=n-1);const{tabSize:o,indentSize:r,insertSpaces:a}=this._opts,l=i===n;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,h=0;for(let d=i;d<=n;d++,c=h){h=0;const u=e.getLineContent(d);let f=Ci(u);if(this._opts.isUnshift&&(u.length===0||f===0)||!l&&!this._opts.isUnshift&&u.length===0)continue;if(f===-1&&(f=u.length),d>1&&ft.visibleColumnFromColumn(u,f+1,o)%r!==0&&e.isCheapToTokenize(d-1)){const b=Ki.getEnterAction(this._opts.autoIndent,e,new D(d-1,e.getLineMaxColumn(d-1),d-1,e.getLineMaxColumn(d-1)));if(b){if(h=c,b.appendText)for(let w=0,C=b.appendText.length;w1&&ft.visibleColumnFromColumn(u,f+1,o)%r!==0&&e.isCheapToTokenize(d-1)){const b=Ki.getEnterAction(this._opts.autoIndent,e,new D(d-1,e.getLineMaxColumn(d-1),d-1,e.getLineMaxColumn(d-1)));if(b){if(h=c,b.appendText)for(let w=0,C=b.appendText.length;w1){let a;for(a=i-1;a>=1;a--){const h=t.getLineContent(a);if(pl(h)>=0)break}if(a<1)return null;const l=t.getLineMaxColumn(a),c=Ki.getEnterAction(e.autoIndent,t,new D(a,l,a,l));c&&(o=c.indentation+c.appendText)}return n&&(n===dt.Indent&&(o=je.shiftIndent(e,o)),n===dt.Outdent&&(o=je.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";const r=i.getStartPosition();if(e.insertSpaces){const a=e.visibleColumnFromColumn(t,r),l=e.indentSize,c=l-a%l;for(let h=0;hthis._compositionType(i,h,o,r,a,l));return new oi(4,c,{shouldPushStackElementBefore:qh(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-n),c=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+o),h=new D(a.lineNumber,l,a.lineNumber,c);return e.getValueInRange(h)===i&&r===0?null:new Hd(h,i,0,r)}static _typeCommand(e,t,i){return i?new Kh(e,t,!0):new Yt(e,t,!0)}static _enter(e,t,i,n){if(e.autoIndent===0)return je._typeCommand(n,` `,i);if(!t.isCheapToTokenize(n.getStartPosition().lineNumber)||e.autoIndent===1){const l=t.getLineContent(n.startLineNumber),c=Ut(l).substring(0,n.startColumn-1);return je._typeCommand(n,` `+e.normalizeIndentation(c),i)}const o=Ki.getEnterAction(e.autoIndent,t,n);if(o){if(o.indentAction===dt.None)return je._typeCommand(n,` @@ -43,9 +43,9 @@ var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,config `+e.normalizeIndentation(l+o.appendText),i)}}const r=t.getLineContent(n.startLineNumber),a=Ut(r).substring(0,n.startColumn-1);if(e.autoIndent>=4){const l=Ki.getIndentForEnter(e.autoIndent,t,n,{unshiftIndent:c=>je.unshiftIndent(e,c),shiftIndent:c=>je.shiftIndent(e,c),normalizeIndentation:c=>e.normalizeIndentation(c)});if(l){let c=e.visibleColumnFromColumn(t,n.getEndPosition());const h=n.endColumn,d=t.getLineContent(n.endLineNumber),u=Ci(d);if(u>=0?n=n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,u+1)):n=n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new Kh(n,` `+e.normalizeIndentation(l.afterEnter),!0);{let f=0;return h<=u+1&&(e.insertSpaces||(c=Math.ceil(c/e.indentSize)),f=Math.min(c+1-e.normalizeIndentation(l.afterEnter).length-1,0)),new Hd(n,` `+e.normalizeIndentation(l.afterEnter),0,f,!0)}}}return je._typeCommand(n,` -`+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,o=i.length;nje.shiftIndent(e,a),unshiftIndent:a=>je.unshiftIndent(e,a)});if(r===null)return null;if(r!==e.normalizeIndentation(o)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?je._typeCommand(new D(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):je._typeCommand(new D(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let r=0,a=i.length;r2?h.charCodeAt(c.column-2):0)===92&&u)return!1;if(e.autoClosingOvertype==="auto"){let m=!1;for(let _=0,b=n.length;_t.startsWith(l.open)),a=o.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let r=null;for(const a of o)if(r===null||a.open.length>r.open.length){let l=!0;for(const c of i)if(t.getValueInRange(new D(c.lineNumber,c.column-a.open.length+1,c.lineNumber,c.column))+n!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const r of n)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!o||r.open.length>o.open.length)&&(o=r);return o}static _getAutoClosingPairClose(e,t,i,n,o){const r=ia(n),a=r?e.autoClosingQuotes:e.autoClosingBrackets,l=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if(a==="never")return null;for(const m of i)if(!m.isEmpty())return null;const c=i.map(m=>{const _=m.getPosition();return o?{lineNumber:_.lineNumber,beforeColumn:_.column-n.length,afterColumn:_.column}:{lineNumber:_.lineNumber,beforeColumn:_.column,afterColumn:_.column}}),h=this._findAutoClosingPairOpen(e,t,c.map(m=>new A(m.lineNumber,m.beforeColumn)),n);if(!h)return null;const d=this._findContainedAutoClosingPair(e,h),u=d?d.close:"";let f=!0;for(const m of c){const{lineNumber:_,beforeColumn:b,afterColumn:w}=m,C=t.getLineContent(_),v=C.substring(0,b-1),S=C.substring(w-1);if(S.startsWith(u)||(f=!1),S.length>0){const y=S.charAt(0);if(!je._isBeforeClosingBrace(e,S)&&!l(y))return null}if(h.open.length===1&&(n==="'"||n==='"')&&a!=="always"){const y=Ka(e.wordSeparators);if(v.length>0){const I=v.charCodeAt(v.length-1);if(y.get(I)===0)return null}}if(!t.isCheapToTokenize(_))return null;t.forceTokenization(_);const k=t.getLineTokens(_),x=fu(k,b-1);if(!h.shouldAutoClose(x,b-x.firstCharOffset))return null;const L=h.findNeutralCharacter();if(L){const y=t.getTokenTypeIfInsertingCharacter(_,b,L);if(!h.isOK(y))return null}}return f?h.close.substring(0,h.close.length-u.length):h.close}static _runAutoClosingOpenCharType(e,t,i,n,o,r,a){const l=[];for(let c=0,h=n.length;cnew Yt(new D(h.positionLineNumber,h.positionColumn,h.positionLineNumber,h.positionColumn+1),"",!1));return new oi(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const l=this._getAutoClosingPairClose(t,i,o,a,!0);return l!==null?this._runAutoClosingOpenCharType(e,t,i,o,a,!0,l):null}static typeWithInterceptors(e,t,i,n,o,r,a){if(!e&&a===` +`+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,o=i.length;nje.shiftIndent(e,a),unshiftIndent:a=>je.unshiftIndent(e,a)});if(r===null)return null;if(r!==e.normalizeIndentation(o)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?je._typeCommand(new D(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):je._typeCommand(new D(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let r=0,a=i.length;r2?h.charCodeAt(c.column-2):0)===92&&u)return!1;if(e.autoClosingOvertype==="auto"){let m=!1;for(let _=0,b=n.length;_t.startsWith(l.open)),a=o.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let r=null;for(const a of o)if(r===null||a.open.length>r.open.length){let l=!0;for(const c of i)if(t.getValueInRange(new D(c.lineNumber,c.column-a.open.length+1,c.lineNumber,c.column))+n!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const r of n)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!o||r.open.length>o.open.length)&&(o=r);return o}static _getAutoClosingPairClose(e,t,i,n,o){const r=ia(n),a=r?e.autoClosingQuotes:e.autoClosingBrackets,l=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if(a==="never")return null;for(const m of i)if(!m.isEmpty())return null;const c=i.map(m=>{const _=m.getPosition();return o?{lineNumber:_.lineNumber,beforeColumn:_.column-n.length,afterColumn:_.column}:{lineNumber:_.lineNumber,beforeColumn:_.column,afterColumn:_.column}}),h=this._findAutoClosingPairOpen(e,t,c.map(m=>new A(m.lineNumber,m.beforeColumn)),n);if(!h)return null;const d=this._findContainedAutoClosingPair(e,h),u=d?d.close:"";let f=!0;for(const m of c){const{lineNumber:_,beforeColumn:b,afterColumn:w}=m,C=t.getLineContent(_),v=C.substring(0,b-1),S=C.substring(w-1);if(S.startsWith(u)||(f=!1),S.length>0){const y=S.charAt(0);if(!je._isBeforeClosingBrace(e,S)&&!l(y))return null}if(h.open.length===1&&(n==="'"||n==='"')&&a!=="always"){const y=Ka(e.wordSeparators);if(v.length>0){const I=v.charCodeAt(v.length-1);if(y.get(I)===0)return null}}if(!t.isCheapToTokenize(_))return null;t.forceTokenization(_);const k=t.getLineTokens(_),x=fu(k,b-1);if(!h.shouldAutoClose(x,b-x.firstCharOffset))return null;const L=h.findNeutralCharacter();if(L){const y=t.getTokenTypeIfInsertingCharacter(_,b,L);if(!h.isOK(y))return null}}return f?h.close.substring(0,h.close.length-u.length):h.close}static _runAutoClosingOpenCharType(e,t,i,n,o,r,a){const l=[];for(let c=0,h=n.length;cnew Yt(new D(h.positionLineNumber,h.positionColumn,h.positionLineNumber,h.positionColumn+1),"",!1));return new oi(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const l=this._getAutoClosingPairClose(t,i,o,a,!0);return l!==null?this._runAutoClosingOpenCharType(e,t,i,o,a,!0,l):null}static typeWithInterceptors(e,t,i,n,o,r,a){if(!e&&a===` `){const h=[];for(let d=0,u=o.length;d{const n=t.get(kt).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(kt).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var ct;(function(s){class e extends Qe{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,v){C.model.pushStackElement(),C.setCursorStates(v.source,3,[Ot.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,v.position,v.viewPosition)])&&C.revealPrimaryCursor(v.source,!0,this._minimalReveal)}}s.MoveTo=q(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),s.MoveToSelect=q(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends Qe{runCoreEditorCommand(C,v){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),v);C.setCursorStates(v.source,3,S.viewStates.map(k=>oe.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(v.source):C.revealBottomMostCursor(v.source)}}s.ColumnSelect=q(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(w,C,v,S){const k=w.model.validatePosition(S.position),x=w.coordinatesConverter.validateViewPosition(new A(S.viewPosition.lineNumber,S.viewPosition.column),k),L=S.doColumnSelect?v.fromViewLineNumber:x.lineNumber,y=S.doColumnSelect?v.fromViewVisualColumn:S.mouseColumn-1;return qo.columnSelect(w.cursorConfig,w,L,y,x.lineNumber,S.mouseColumn-1)}}),s.CursorColumnSelectLeft=q(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(w,C,v,S){return qo.columnSelectLeft(w.cursorConfig,w,v)}}),s.CursorColumnSelectRight=q(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(w,C,v,S){return qo.columnSelectRight(w.cursorConfig,w,v)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,v,S,k){return qo.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}s.CursorColumnSelectUp=q(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3600,linux:{primary:0}}})),s.CursorColumnSelectPageUp=q(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,v,S,k){return qo.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}s.CursorColumnSelectDown=q(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3602,linux:{primary:0}}})),s.CursorColumnSelectPageDown=q(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3596,linux:{primary:0}}}));class o extends Qe{constructor(){super({id:"cursorMove",precondition:void 0,description:Mu.description})}runCoreEditorCommand(C,v){const S=Mu.parse(v);!S||this._runCursorMove(C,v.source,S)}_runCursorMove(C,v,S){C.model.pushStackElement(),C.setCursorStates(v,3,o._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(v,!0)}static _move(C,v,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Ot.simpleMove(C,v,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Ot.viewportMove(C,v,S.direction,k,x);default:return null}}}s.CursorMoveImpl=o,s.CursorMove=q(new o);class r extends Qe{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,v){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:v.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(v.source,3,Ot.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(v.source,!0)}}s.CursorLeft=q(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),s.CursorLeftSelect=q(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1039}})),s.CursorRight=q(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),s.CursorRightSelect=q(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1041}})),s.CursorUp=q(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),s.CursorUpSelect=q(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),s.CursorPageUp=q(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:11}})),s.CursorPageUpSelect=q(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1035}})),s.CursorDown=q(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),s.CursorDownSelect=q(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),s.CursorPageDown=q(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:12}})),s.CursorPageDownSelect=q(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1036}})),s.CreateCursor=q(new class extends Qe{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(w,C){let v;C.wholeLine?v=Ot.line(w,w.getPrimaryCursorState(),!1,C.position,C.viewPosition):v=Ot.moveTo(w,w.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=w.getCursorStates();if(S.length>1){const k=v.modelState?v.modelState.position:null,x=v.viewState?v.viewState.position:null;for(let L=0,y=S.length;Lx&&(k=x);const L=new D(k,1,k,w.model.getLineMaxColumn(k));let y=0;if(v.at)switch(v.at){case ga.RawAtArgument.Top:y=3;break;case ga.RawAtArgument.Center:y=1;break;case ga.RawAtArgument.Bottom:y=4;break}const I=w.coordinatesConverter.convertModelRangeToViewRange(L);w.revealRange(C.source,!1,I,y,0)}}),s.SelectAll=new class extends S_{constructor(){super(K4)}runDOMCommand(){Oi&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(w,C,v){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,v)}runCoreEditorCommand(w,C){w.model.pushStackElement(),w.setCursorStates("keyboard",3,[Ot.selectAll(w,w.getPrimaryCursorState())])}},s.SetSelection=q(new class extends Qe{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(w,C){w.model.pushStackElement(),w.setCursorStates(C.source,3,[oe.fromModelSelection(C.selection)])}})})(ct||(ct={}));const BM=Oe.and(H.textInputFocus,H.columnSelection);function Ll(s,e){wl.registerKeybindingRule({id:s,primary:e,when:BM,weight:fe+1})}Ll(ct.CursorColumnSelectLeft.id,1039);Ll(ct.CursorColumnSelectRight.id,1041);Ll(ct.CursorColumnSelectUp.id,1040);Ll(ct.CursorColumnSelectPageUp.id,1035);Ll(ct.CursorColumnSelectDown.id,1042);Ll(ct.CursorColumnSelectPageDown.id,1036);function fw(s){return s.register(),s}var gw;(function(s){class e extends Fr{runEditorCommand(i,n,o){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,o||{})}}s.CoreEditingCommand=e,s.LineBreakInsert=q(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:H.writable,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection)))}}),s.Outdent=q(new class extends e{constructor(){super({id:"outdent",precondition:H.writable,kbOpts:{weight:fe,kbExpr:Oe.and(H.editorTextFocus,H.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.outdent(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),s.Tab=q(new class extends e{constructor(){super({id:"tab",precondition:H.writable,kbOpts:{weight:fe,kbExpr:Oe.and(H.editorTextFocus,H.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.tab(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),s.DeleteLeft=q(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[o,r]=xr.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),s.DeleteRight=q(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[o,r]=xr.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),s.Undo=new class extends S_{constructor(){super(IL)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().undo()}},s.Redo=new class extends S_{constructor(){super(EL)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().redo()}}})(gw||(gw={}));class mw extends Vf{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(kt).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function Br(s,e){fw(new mw("default:"+s,s)),fw(new mw(s,s,e))}Br("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});Br("replacePreviousChar");Br("compositionType");Br("compositionStart");Br("compositionEnd");Br("paste");Br("cut");class VM{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){ct.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){ct.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){ct.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),ct.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),ct.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){ct.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){ct.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){ct.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){ct.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){ct.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){ct.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){ct.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){ct.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){ct.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class qf{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return qf.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var Jg;class uk{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(o=c,r=1):r++)}if(e=i&&r<=n&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const r=[];for(let d=0;di)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let h=l;h<=c;h++){const d=h-this._rendLineNumberStart;this._lines[d].onTokensChanged(),n=!0}}return n}}class fk{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new uk(()=>this._host.createVisibleLine())}_createDomNode(){const e=ue(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(131)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,o.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(o,r,a,n,t),o.linesLength+=a-r+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,r),o.linesLength-=r)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const r=Math.max(0,i-o.rendLineNumberStart+1),l=o.linesLength-1-r+1;l>0&&(this._removeLinesAfter(o,l),o.linesLength-=l)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-o])}}_insertLinesBefore(e,t,i,n,o){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");xs._ttPolicy&&(t=xs._ttPolicy.createHTML(t)),n.innerHTML=t;for(let o=0;os});xs._sb=ja(1e5);class gk extends Wi{constructor(e){super(e),this._visibleLines=new fk(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(o),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class HM extends gk{constructor(e){super(e);const i=this._context.configuration.options.get(131);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class zM extends gk{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),ii(this.domNode,t.get(44))}onConfigurationChanged(e){const t=this._context.configuration.options;ii(this.domNode,t.get(44));const i=t.get(131);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Pl{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class UM extends Wi{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=ue(document.createElement("div")),es.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=ue(document.createElement("div")),es.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new $M(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class $M{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=ue(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,o=n.get(131);this._fixedOverflowWidgets=n.get(36),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=n.get(59),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(59),e.hasChanged(131)){const i=t.get(131);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const t=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(t))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,o){const r=e.top,a=r,l=t.top+this._lineHeight,c=o.viewportHeight-l,h=r-n,d=a>=n,u=l,f=c>=n;let m=e.left,_=t.left;return m+i>o.scrollLeft+o.viewportWidth&&(m=o.scrollLeft+o.viewportWidth-i),_+i>o.scrollLeft+o.viewportWidth&&(_=o.scrollLeft+o.viewportWidth-i),mr){const l=a-(r-n);a-=l,i-=l}if(a=b,v=h+n<=d.height-w;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:f,fitsBelow:v,belowTop:h,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:v,belowTop:a,belowLeft:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Pl(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const d of t)d.lineNumbern.lineNumber&&(n=d);let o=1073741824;for(const d of i.ranges)d.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&em(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&em(this._actual.afterRender,this._actual,this._renderData.position)}}function em(s,e,...t){try{return s.call(e,...t)}catch{return null}}class mk extends yl{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new ce(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,o)=>n-o),Kn(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class jM extends mk{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class KM extends mk{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}ni((s,e)=>{const t=s.getColor(J5);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||s.defines(hw)){const i=s.getColor(hw);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),s.type==="hc"&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class qM extends yl{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const h=l.options.className,d=c.options.className;return hd?1:D.compareRangesUsingStarts(l.range,c.range)});const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=o;l<=r;l++){const c=l-o;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',d=Math.max(c.range.startLineNumber,o),u=Math.min(c.range.endLineNumber,r);for(let f=d;f<=u;f++){const m=f-o;i[m]+=h}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,h=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class rs extends W{onclick(e,t){this._register(V(e,Y.CLICK,i=>t(new Ji(i))))}onmousedown(e,t){this._register(V(e,Y.MOUSE_DOWN,i=>t(new Ji(i))))}onmouseover(e,t){this._register(V(e,Y.MOUSE_OVER,i=>t(new Ji(i))))}onnonbubblingmouseout(e,t){this._register(y0(e,i=>t(new Ji(i))))}onkeydown(e,t){this._register(V(e,Y.KEY_DOWN,i=>t(new He(i))))}onkeyup(e,t){this._register(V(e,Y.KEY_UP,i=>t(new He(i))))}oninput(e,t){this._register(V(e,Y.INPUT,t))}onblur(e,t){this._register(V(e,Y.BLUR,t))}onfocus(e,t){this._register(V(e,Y.FOCUS,t))}ignoreGesture(e){Se.ignoreTarget(e)}}const el=11;class GM extends rs{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top!="undefined"&&(this.bgDomNode.style.top="0px"),typeof e.left!="undefined"&&(this.bgDomNode.style.left="0px"),typeof e.bottom!="undefined"&&(this.bgDomNode.style.bottom="0px"),typeof e.right!="undefined"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=el+"px",this.domNode.style.height=el+"px",typeof e.top!="undefined"&&(this.domNode.style.top=e.top+"px"),typeof e.left!="undefined"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom!="undefined"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right!="undefined"&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new Wf),this.onmousedown(this.bgDomNode,t=>this._arrowMouseDown(t)),this.onmousedown(this.domNode,t=>this._arrowMouseDown(t)),this._mousedownRepeatTimer=this._register(new vh),this._mousedownScheduleRepeatTimer=this._register(new os)}_arrowMouseDown(e){const t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),41.666666666666664)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,M0,i=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class ZM extends W{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new os)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}const YM=140;class pk extends rs{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new ZM(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new Wf),this._shouldRender=!0,this.domNode=ue(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,t=>this._domNodeMouseDown(t))}_createArrow(e){const t=this._register(new GM(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=ue(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,o=>{o.leftButton&&(o.preventDefault(),this._sliderMouseDown(o,()=>{}))}),this.onclick(this.slider.domNode,o=>{o.leftButton&&o.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);i<=o&&o<=n?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.browserEvent.offsetX=="number"&&typeof e.browserEvent.offsetY=="number")t=e.browserEvent.offsetX,i=e.browserEvent.offsetY;else{const o=en(this.domNode.domNode);t=e.posx-o.left,i=e.posy-o.top}const n=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),n=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,M0,r=>{const a=this._sliderOrthogonalMousePosition(r),l=Math.abs(a-n);if(li&&l>YM){this._setDesiredScrollPositionNow(o.getScrollPosition());return}const h=this._sliderMousePosition(r)-i;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(h))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const XM=20;class Wc{constructor(e,t,i,n,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Wc(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(XM,Math.floor(i*a/n))),h=(a-c)/(n-i),d=o*h;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:h,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=Wc._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new qa(null,1,0))}),this._createArrow({className:"scra",icon:g.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new qa(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class JM extends pk{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Wc(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-el)/2,a=(t.verticalScrollbarSize-el)/2;this._createArrow({className:"scra",icon:g.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new qa(null,0,1))}),this._createArrow({className:"scra",icon:g.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new qa(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Au{constructor(e,t,i,n,o,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,o=o|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),a+o>r&&(a=r-o),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new Au(this._forceIntegerValues,typeof e.width!="undefined"?e.width:this.width,typeof e.scrollWidth!="undefined"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height!="undefined"?e.height:this.height,typeof e.scrollHeight!="undefined"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Au(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft!="undefined"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop!="undefined"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class Eh extends W{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new M),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Au(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;t?n=new Hc(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=Hc.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class pw{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function tm(s,e){const t=e-s;return function(i){return s+t*iR(i)}}function eR(s,e,t){return function(i){return i2.5*i){let o,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}y_.INSTANCE=new y_;class V0 extends rs{constructor(e,t,i){super(),this._onScroll=this._register(new M),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new M),e.style.overflow="hidden",this._options=rR(t),this._scrollable=i,this._register(this._scrollable.onScroll(o=>{this._onWillScroll.fire(o),this._onDidScroll(o),this._onScroll.fire(o)}));const n={onMouseWheel:o=>this._onMouseWheel(o),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new JM(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new QM(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=ue(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=ue(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=ue(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,o=>this._onMouseOver(o)),this.onnonbubblingmouseout(this._listenOnDomNode,o=>this._onMouseOut(o)),this._hideTimeout=this._register(new os),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Me(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,me&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel!="undefined"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity!="undefined"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity!="undefined"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis!="undefined"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal!="undefined"&&(this._options.horizontal=e.horizontal),typeof e.vertical!="undefined"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize!="undefined"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize!="undefined"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage!="undefined"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Me(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new qa(n))};this._mouseWheelToDispose.push(V(this._listenOnDomNode,Y.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=y_.INSTANCE;{const o=window.devicePixelRatio/Iy();li||qt?t.accept(Date.now(),e.deltaX/o,e.deltaY/o):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(o)>=Math.abs(r)?r=0:o=0),this._options.flipAxes&&([o,r]=[r,o]);const a=!me&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(o){const h=_w*o,d=l.scrollTop-(h<0?Math.floor(h):Math.ceil(h));this._verticalScrollbar.writeScrollPosition(c,d)}if(r){const h=_w*r,d=l.scrollLeft-(h<0?Math.floor(h):Math.ceil(h));this._horizontalScrollbar.writeScrollPosition(c,d)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),nR)}}class oR extends V0{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Eh({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>kn(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class W0 extends V0{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class _k extends V0{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Eh({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>kn(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function rR(s){const e={lazyRender:typeof s.lazyRender!="undefined"?s.lazyRender:!1,className:typeof s.className!="undefined"?s.className:"",useShadows:typeof s.useShadows!="undefined"?s.useShadows:!0,handleMouseWheel:typeof s.handleMouseWheel!="undefined"?s.handleMouseWheel:!0,flipAxes:typeof s.flipAxes!="undefined"?s.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof s.consumeMouseWheelIfScrollbarIsNeeded!="undefined"?s.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof s.alwaysConsumeMouseWheel!="undefined"?s.alwaysConsumeMouseWheel:!1,scrollYToX:typeof s.scrollYToX!="undefined"?s.scrollYToX:!1,mouseWheelScrollSensitivity:typeof s.mouseWheelScrollSensitivity!="undefined"?s.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof s.fastScrollSensitivity!="undefined"?s.fastScrollSensitivity:5,scrollPredominantAxis:typeof s.scrollPredominantAxis!="undefined"?s.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof s.mouseWheelSmoothScroll!="undefined"?s.mouseWheelSmoothScroll:!0,arrowSize:typeof s.arrowSize!="undefined"?s.arrowSize:11,listenOnDomNode:typeof s.listenOnDomNode!="undefined"?s.listenOnDomNode:null,horizontal:typeof s.horizontal!="undefined"?s.horizontal:1,horizontalScrollbarSize:typeof s.horizontalScrollbarSize!="undefined"?s.horizontalScrollbarSize:10,horizontalSliderSize:typeof s.horizontalSliderSize!="undefined"?s.horizontalSliderSize:0,horizontalHasArrows:typeof s.horizontalHasArrows!="undefined"?s.horizontalHasArrows:!1,vertical:typeof s.vertical!="undefined"?s.vertical:1,verticalScrollbarSize:typeof s.verticalScrollbarSize!="undefined"?s.verticalScrollbarSize:10,verticalHasArrows:typeof s.verticalHasArrows!="undefined"?s.verticalHasArrows:!1,verticalSliderSize:typeof s.verticalSliderSize!="undefined"?s.verticalSliderSize:0,scrollByPage:typeof s.scrollByPage!="undefined"?s.scrollByPage:!1};return e.horizontalSliderSize=typeof s.horizontalSliderSize!="undefined"?s.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof s.verticalSliderSize!="undefined"?s.verticalSliderSize:e.verticalScrollbarSize,me&&(e.className+=" mac"),e}class aR extends Wi{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,r=o.get(92),a=o.get(67),l=o.get(34),c=o.get(95),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+Iu(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new W0(t.domNode,h,this._context.viewLayout.getScrollable())),es.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=ue(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(u,f,m)=>{const _={};if(f){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(m){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(V(i.domNode,"scroll",u=>d(i.domNode,!0,!0))),this._register(V(t.domNode,"scroll",u=>d(t.domNode,!0,!1))),this._register(V(n.domNode,"scroll",u=>d(n.domNode,!0,!1))),this._register(V(this.scrollbarDomNode.domNode,"scroll",u=>d(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(131);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(65).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(92)||e.hasChanged(67)||e.hasChanged(34)){const t=this._context.configuration.options,i=t.get(92),n=t.get(67),o=t.get(34),r=t.get(95),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:o,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(131)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Iu(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}ni((s,e)=>{const t=s.getColor(vl);t&&e.addRule(` +`);else{a--;const l=t.getLineMaxColumn(a);n[o]=this._enter(e,t,!1,new D(a,l,a,l))}}return n}static lineInsertAfter(e,t,i){if(t===null||i===null)return[];const n=[];for(let o=0,r=i.length;o{const n=t.get(kt).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(kt).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var ct;(function(s){class e extends Qe{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,v){C.model.pushStackElement(),C.setCursorStates(v.source,3,[Ot.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,v.position,v.viewPosition)])&&C.revealPrimaryCursor(v.source,!0,this._minimalReveal)}}s.MoveTo=q(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),s.MoveToSelect=q(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends Qe{runCoreEditorCommand(C,v){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),v);C.setCursorStates(v.source,3,S.viewStates.map(k=>oe.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(v.source):C.revealBottomMostCursor(v.source)}}s.ColumnSelect=q(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(w,C,v,S){const k=w.model.validatePosition(S.position),x=w.coordinatesConverter.validateViewPosition(new A(S.viewPosition.lineNumber,S.viewPosition.column),k),L=S.doColumnSelect?v.fromViewLineNumber:x.lineNumber,y=S.doColumnSelect?v.fromViewVisualColumn:S.mouseColumn-1;return qo.columnSelect(w.cursorConfig,w,L,y,x.lineNumber,S.mouseColumn-1)}}),s.CursorColumnSelectLeft=q(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(w,C,v,S){return qo.columnSelectLeft(w.cursorConfig,w,v)}}),s.CursorColumnSelectRight=q(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(w,C,v,S){return qo.columnSelectRight(w.cursorConfig,w,v)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,v,S,k){return qo.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}s.CursorColumnSelectUp=q(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3600,linux:{primary:0}}})),s.CursorColumnSelectPageUp=q(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,v,S,k){return qo.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}s.CursorColumnSelectDown=q(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3602,linux:{primary:0}}})),s.CursorColumnSelectPageDown=q(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:3596,linux:{primary:0}}}));class o extends Qe{constructor(){super({id:"cursorMove",precondition:void 0,description:Mu.description})}runCoreEditorCommand(C,v){const S=Mu.parse(v);!S||this._runCursorMove(C,v.source,S)}_runCursorMove(C,v,S){C.model.pushStackElement(),C.setCursorStates(v,3,o._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(v,!0)}static _move(C,v,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Ot.simpleMove(C,v,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Ot.viewportMove(C,v,S.direction,k,x);default:return null}}}s.CursorMoveImpl=o,s.CursorMove=q(new o);class r extends Qe{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,v){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:v.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(v.source,3,Ot.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(v.source,!0)}}s.CursorLeft=q(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),s.CursorLeftSelect=q(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1039}})),s.CursorRight=q(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),s.CursorRightSelect=q(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1041}})),s.CursorUp=q(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),s.CursorUpSelect=q(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),s.CursorPageUp=q(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:11}})),s.CursorPageUpSelect=q(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1035}})),s.CursorDown=q(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),s.CursorDownSelect=q(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),s.CursorPageDown=q(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:12}})),s.CursorPageDownSelect=q(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1036}})),s.CreateCursor=q(new class extends Qe{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(w,C){let v;C.wholeLine?v=Ot.line(w,w.getPrimaryCursorState(),!1,C.position,C.viewPosition):v=Ot.moveTo(w,w.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=w.getCursorStates();if(S.length>1){const k=v.modelState?v.modelState.position:null,x=v.viewState?v.viewState.position:null;for(let L=0,y=S.length;Lx&&(k=x);const L=new D(k,1,k,w.model.getLineMaxColumn(k));let y=0;if(v.at)switch(v.at){case ga.RawAtArgument.Top:y=3;break;case ga.RawAtArgument.Center:y=1;break;case ga.RawAtArgument.Bottom:y=4;break}const I=w.coordinatesConverter.convertModelRangeToViewRange(L);w.revealRange(C.source,!1,I,y,0)}}),s.SelectAll=new class extends S_{constructor(){super(j4)}runDOMCommand(){Oi&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(w,C,v){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,v)}runCoreEditorCommand(w,C){w.model.pushStackElement(),w.setCursorStates("keyboard",3,[Ot.selectAll(w,w.getPrimaryCursorState())])}},s.SetSelection=q(new class extends Qe{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(w,C){w.model.pushStackElement(),w.setCursorStates(C.source,3,[oe.fromModelSelection(C.selection)])}})})(ct||(ct={}));const FM=Oe.and(H.textInputFocus,H.columnSelection);function Ll(s,e){wl.registerKeybindingRule({id:s,primary:e,when:FM,weight:fe+1})}Ll(ct.CursorColumnSelectLeft.id,1039);Ll(ct.CursorColumnSelectRight.id,1041);Ll(ct.CursorColumnSelectUp.id,1040);Ll(ct.CursorColumnSelectPageUp.id,1035);Ll(ct.CursorColumnSelectDown.id,1042);Ll(ct.CursorColumnSelectPageDown.id,1036);function fw(s){return s.register(),s}var gw;(function(s){class e extends Fr{runEditorCommand(i,n,o){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,o||{})}}s.CoreEditingCommand=e,s.LineBreakInsert=q(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:H.writable,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection)))}}),s.Outdent=q(new class extends e{constructor(){super({id:"outdent",precondition:H.writable,kbOpts:{weight:fe,kbExpr:Oe.and(H.editorTextFocus,H.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.outdent(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),s.Tab=q(new class extends e{constructor(){super({id:"tab",precondition:H.writable,kbOpts:{weight:fe,kbExpr:Oe.and(H.editorTextFocus,H.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,je.tab(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),s.DeleteLeft=q(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[o,r]=xr.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),s.DeleteRight=q(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:fe,kbExpr:H.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[o,r]=xr.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),s.Undo=new class extends S_{constructor(){super(IL)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().undo()}},s.Redo=new class extends S_{constructor(){super(EL)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().redo()}}})(gw||(gw={}));class mw extends Vf{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(kt).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function Br(s,e){fw(new mw("default:"+s,s)),fw(new mw(s,s,e))}Br("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});Br("replacePreviousChar");Br("compositionType");Br("compositionStart");Br("compositionEnd");Br("paste");Br("cut");class BM{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){ct.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){ct.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){ct.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),ct.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),ct.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){ct.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){ct.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){ct.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){ct.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){ct.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){ct.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){ct.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){ct.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){ct.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class qf{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return qf.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var Jg;class uk{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(o=c,r=1):r++)}if(e=i&&r<=n&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const r=[];for(let d=0;di)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let h=l;h<=c;h++){const d=h-this._rendLineNumberStart;this._lines[d].onTokensChanged(),n=!0}}return n}}class fk{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new uk(()=>this._host.createVisibleLine())}_createDomNode(){const e=ue(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(131)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,o.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(o,r,a,n,t),o.linesLength+=a-r+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,r),o.linesLength-=r)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const r=Math.max(0,i-o.rendLineNumberStart+1),l=o.linesLength-1-r+1;l>0&&(this._removeLinesAfter(o,l),o.linesLength-=l)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-o])}}_insertLinesBefore(e,t,i,n,o){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");xs._ttPolicy&&(t=xs._ttPolicy.createHTML(t)),n.innerHTML=t;for(let o=0;os});xs._sb=ja(1e5);class gk extends Wi{constructor(e){super(e),this._visibleLines=new fk(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(o),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class WM extends gk{constructor(e){super(e);const i=this._context.configuration.options.get(131);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class HM extends gk{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),ii(this.domNode,t.get(44))}onConfigurationChanged(e){const t=this._context.configuration.options;ii(this.domNode,t.get(44));const i=t.get(131);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Pl{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class zM extends Wi{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=ue(document.createElement("div")),es.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=ue(document.createElement("div")),es.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new UM(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class UM{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=ue(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,o=n.get(131);this._fixedOverflowWidgets=n.get(36),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=n.get(59),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(59),e.hasChanged(131)){const i=t.get(131);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const t=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(t))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,o){const r=e.top,a=r,l=t.top+this._lineHeight,c=o.viewportHeight-l,h=r-n,d=a>=n,u=l,f=c>=n;let m=e.left,_=t.left;return m+i>o.scrollLeft+o.viewportWidth&&(m=o.scrollLeft+o.viewportWidth-i),_+i>o.scrollLeft+o.viewportWidth&&(_=o.scrollLeft+o.viewportWidth-i),mr){const l=a-(r-n);a-=l,i-=l}if(a=b,v=h+n<=d.height-w;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:f,fitsBelow:v,belowTop:h,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:v,belowTop:a,belowLeft:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Pl(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const d of t)d.lineNumbern.lineNumber&&(n=d);let o=1073741824;for(const d of i.ranges)d.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&em(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&em(this._actual.afterRender,this._actual,this._renderData.position)}}function em(s,e,...t){try{return s.call(e,...t)}catch{return null}}class mk extends yl{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new ce(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,o)=>n-o),Kn(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class $M extends mk{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class jM extends mk{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}ni((s,e)=>{const t=s.getColor(Q5);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||s.defines(hw)){const i=s.getColor(hw);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),s.type==="hc"&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class KM extends yl{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const h=l.options.className,d=c.options.className;return hd?1:D.compareRangesUsingStarts(l.range,c.range)});const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=o;l<=r;l++){const c=l-o;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',d=Math.max(c.range.startLineNumber,o),u=Math.min(c.range.endLineNumber,r);for(let f=d;f<=u;f++){const m=f-o;i[m]+=h}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,h=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class rs extends W{onclick(e,t){this._register(V(e,Y.CLICK,i=>t(new Ji(i))))}onmousedown(e,t){this._register(V(e,Y.MOUSE_DOWN,i=>t(new Ji(i))))}onmouseover(e,t){this._register(V(e,Y.MOUSE_OVER,i=>t(new Ji(i))))}onnonbubblingmouseout(e,t){this._register(y0(e,i=>t(new Ji(i))))}onkeydown(e,t){this._register(V(e,Y.KEY_DOWN,i=>t(new He(i))))}onkeyup(e,t){this._register(V(e,Y.KEY_UP,i=>t(new He(i))))}oninput(e,t){this._register(V(e,Y.INPUT,t))}onblur(e,t){this._register(V(e,Y.BLUR,t))}onfocus(e,t){this._register(V(e,Y.FOCUS,t))}ignoreGesture(e){Se.ignoreTarget(e)}}const el=11;class qM extends rs{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top!="undefined"&&(this.bgDomNode.style.top="0px"),typeof e.left!="undefined"&&(this.bgDomNode.style.left="0px"),typeof e.bottom!="undefined"&&(this.bgDomNode.style.bottom="0px"),typeof e.right!="undefined"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=el+"px",this.domNode.style.height=el+"px",typeof e.top!="undefined"&&(this.domNode.style.top=e.top+"px"),typeof e.left!="undefined"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom!="undefined"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right!="undefined"&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new Wf),this.onmousedown(this.bgDomNode,t=>this._arrowMouseDown(t)),this.onmousedown(this.domNode,t=>this._arrowMouseDown(t)),this._mousedownRepeatTimer=this._register(new vh),this._mousedownScheduleRepeatTimer=this._register(new os)}_arrowMouseDown(e){const t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),41.666666666666664)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,M0,i=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class GM extends W{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new os)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}const ZM=140;class pk extends rs{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new GM(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new Wf),this._shouldRender=!0,this.domNode=ue(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,t=>this._domNodeMouseDown(t))}_createArrow(e){const t=this._register(new qM(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=ue(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,o=>{o.leftButton&&(o.preventDefault(),this._sliderMouseDown(o,()=>{}))}),this.onclick(this.slider.domNode,o=>{o.leftButton&&o.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);i<=o&&o<=n?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.browserEvent.offsetX=="number"&&typeof e.browserEvent.offsetY=="number")t=e.browserEvent.offsetX,i=e.browserEvent.offsetY;else{const o=en(this.domNode.domNode);t=e.posx-o.left,i=e.posy-o.top}const n=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),n=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,M0,r=>{const a=this._sliderOrthogonalMousePosition(r),l=Math.abs(a-n);if(li&&l>ZM){this._setDesiredScrollPositionNow(o.getScrollPosition());return}const h=this._sliderMousePosition(r)-i;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(h))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const YM=20;class Wc{constructor(e,t,i,n,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Wc(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(YM,Math.floor(i*a/n))),h=(a-c)/(n-i),d=o*h;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:h,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=Wc._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new qa(null,1,0))}),this._createArrow({className:"scra",icon:g.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new qa(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class QM extends pk{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Wc(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-el)/2,a=(t.verticalScrollbarSize-el)/2;this._createArrow({className:"scra",icon:g.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new qa(null,0,1))}),this._createArrow({className:"scra",icon:g.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new qa(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Au{constructor(e,t,i,n,o,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,o=o|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),a+o>r&&(a=r-o),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new Au(this._forceIntegerValues,typeof e.width!="undefined"?e.width:this.width,typeof e.scrollWidth!="undefined"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height!="undefined"?e.height:this.height,typeof e.scrollHeight!="undefined"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Au(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft!="undefined"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop!="undefined"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class Eh extends W{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new M),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Au(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;t?n=new Hc(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=Hc.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class pw{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function tm(s,e){const t=e-s;return function(i){return s+t*tR(i)}}function JM(s,e,t){return function(i){return i2.5*i){let o,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}y_.INSTANCE=new y_;class V0 extends rs{constructor(e,t,i){super(),this._onScroll=this._register(new M),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new M),e.style.overflow="hidden",this._options=oR(t),this._scrollable=i,this._register(this._scrollable.onScroll(o=>{this._onWillScroll.fire(o),this._onDidScroll(o),this._onScroll.fire(o)}));const n={onMouseWheel:o=>this._onMouseWheel(o),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new QM(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new XM(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=ue(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=ue(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=ue(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,o=>this._onMouseOver(o)),this.onnonbubblingmouseout(this._listenOnDomNode,o=>this._onMouseOut(o)),this._hideTimeout=this._register(new os),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Me(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,me&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel!="undefined"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity!="undefined"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity!="undefined"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis!="undefined"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal!="undefined"&&(this._options.horizontal=e.horizontal),typeof e.vertical!="undefined"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize!="undefined"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize!="undefined"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage!="undefined"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Me(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new qa(n))};this._mouseWheelToDispose.push(V(this._listenOnDomNode,Y.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=y_.INSTANCE;{const o=window.devicePixelRatio/Iy();li||qt?t.accept(Date.now(),e.deltaX/o,e.deltaY/o):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(o)>=Math.abs(r)?r=0:o=0),this._options.flipAxes&&([o,r]=[r,o]);const a=!me&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(o){const h=_w*o,d=l.scrollTop-(h<0?Math.floor(h):Math.ceil(h));this._verticalScrollbar.writeScrollPosition(c,d)}if(r){const h=_w*r,d=l.scrollLeft-(h<0?Math.floor(h):Math.ceil(h));this._horizontalScrollbar.writeScrollPosition(c,d)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),iR)}}class sR extends V0{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Eh({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>kn(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class W0 extends V0{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class _k extends V0{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Eh({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>kn(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function oR(s){const e={lazyRender:typeof s.lazyRender!="undefined"?s.lazyRender:!1,className:typeof s.className!="undefined"?s.className:"",useShadows:typeof s.useShadows!="undefined"?s.useShadows:!0,handleMouseWheel:typeof s.handleMouseWheel!="undefined"?s.handleMouseWheel:!0,flipAxes:typeof s.flipAxes!="undefined"?s.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof s.consumeMouseWheelIfScrollbarIsNeeded!="undefined"?s.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof s.alwaysConsumeMouseWheel!="undefined"?s.alwaysConsumeMouseWheel:!1,scrollYToX:typeof s.scrollYToX!="undefined"?s.scrollYToX:!1,mouseWheelScrollSensitivity:typeof s.mouseWheelScrollSensitivity!="undefined"?s.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof s.fastScrollSensitivity!="undefined"?s.fastScrollSensitivity:5,scrollPredominantAxis:typeof s.scrollPredominantAxis!="undefined"?s.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof s.mouseWheelSmoothScroll!="undefined"?s.mouseWheelSmoothScroll:!0,arrowSize:typeof s.arrowSize!="undefined"?s.arrowSize:11,listenOnDomNode:typeof s.listenOnDomNode!="undefined"?s.listenOnDomNode:null,horizontal:typeof s.horizontal!="undefined"?s.horizontal:1,horizontalScrollbarSize:typeof s.horizontalScrollbarSize!="undefined"?s.horizontalScrollbarSize:10,horizontalSliderSize:typeof s.horizontalSliderSize!="undefined"?s.horizontalSliderSize:0,horizontalHasArrows:typeof s.horizontalHasArrows!="undefined"?s.horizontalHasArrows:!1,vertical:typeof s.vertical!="undefined"?s.vertical:1,verticalScrollbarSize:typeof s.verticalScrollbarSize!="undefined"?s.verticalScrollbarSize:10,verticalHasArrows:typeof s.verticalHasArrows!="undefined"?s.verticalHasArrows:!1,verticalSliderSize:typeof s.verticalSliderSize!="undefined"?s.verticalSliderSize:0,scrollByPage:typeof s.scrollByPage!="undefined"?s.scrollByPage:!1};return e.horizontalSliderSize=typeof s.horizontalSliderSize!="undefined"?s.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof s.verticalSliderSize!="undefined"?s.verticalSliderSize:e.verticalScrollbarSize,me&&(e.className+=" mac"),e}class rR extends Wi{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,r=o.get(92),a=o.get(67),l=o.get(34),c=o.get(95),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+Iu(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new W0(t.domNode,h,this._context.viewLayout.getScrollable())),es.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=ue(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(u,f,m)=>{const _={};if(f){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(m){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(V(i.domNode,"scroll",u=>d(i.domNode,!0,!0))),this._register(V(t.domNode,"scroll",u=>d(t.domNode,!0,!1))),this._register(V(n.domNode,"scroll",u=>d(n.domNode,!0,!1))),this._register(V(this.scrollbarDomNode.domNode,"scroll",u=>d(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(131);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(65).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(92)||e.hasChanged(67)||e.hasChanged(34)){const t=this._context.configuration.options,i=t.get(92),n=t.get(67),o=t.get(34),r=t.get(95),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:o,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(131)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Iu(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}ni((s,e)=>{const t=s.getColor(vl);t&&e.addRule(` .monaco-scrollable-element > .shadow.top { box-shadow: ${t} 0 6px 6px -6px inset; } @@ -69,42 +69,42 @@ var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,config .monaco-scrollable-element > .scrollbar > .slider.active { background: ${o}; } - `)});class Ou{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class H0 extends yl{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let h=t;h<=i;h++){const d=h-t,u=n[d];u.length===0?c[d]="":c[d]='
=this._renderResult.length?"":this._renderResult[i]}}class cR{constructor(){this._isDisposed=!1}dispose(){this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function hR(s,e){let t=0,i=0;const n=s.length;for(;in)throw new Error("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(o&&o.offSide);let a=-2,l=-1,c=-2,h=-1;const d=L=>{if(a!==-1&&(a===-2||a>L-1)){a=-1,l=-1;for(let y=L-2;y>=0;y--){const I=this._computeIndentLevel(y);if(I>=0){a=y,l=I;break}}}if(c===-2){c=-1,h=-1;for(let y=L;y=0){c=y,h=I;break}}}};let u=-2,f=-1,m=-2,_=-1;const b=L=>{if(u===-2){u=-1,f=-1;for(let y=L-2;y>=0;y--){const I=this._computeIndentLevel(y);if(I>=0){u=y,f=I;break}}}if(m!==-1&&(m===-2||m=0){m=y,_=I;break}}}};let w=0,C=!0,v=0,S=!0,k=0,x=0;for(let L=0;C||S;L++){const y=e-L,I=e+L;L>1&&(y<1||y1&&(I>n||I>i)&&(S=!1),L>5e4&&(C=!1,S=!1);let R=-1;if(C&&y>=1){const P=this._computeIndentLevel(y-1);P>=0?(c=y-1,h=P,R=Math.ceil(P/this.textModel.getOptions().indentSize)):(d(y),R=this._getIndentLevelForWhitespaceLine(r,l,h))}let T=-1;if(S&&I<=n){const P=this._computeIndentLevel(I-1);P>=0?(u=I-1,f=P,T=Math.ceil(P/this.textModel.getOptions().indentSize)):(b(I),T=this._getIndentLevelForWhitespaceLine(r,f,_))}if(L===0){x=R;continue}if(L===1){if(I<=n&&T>=0&&x+1===T){C=!1,w=I,v=I,k=T;continue}if(y>=1&&R>=0&&R-1===x){S=!1,w=y,v=y,k=R;continue}if(w=e,v=e,k=x,k===0)return{startLineNumber:w,endLineNumber:v,indent:k}}C&&(R>=k?w=y:C=!1),S&&(T>=k?v=I:S=!1)}return{startLineNumber:w,endLineNumber:v,indent:k}}getLinesBracketGuides(e,t,i,n){var o,r,a,l,c;const h=[],d=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new D(e,1,t,this.textModel.getLineMaxColumn(t)));let u;if(i&&d.length>0){const w=e<=i.lineNumber&&i.lineNumber<=t?d.filter(C=>D.strictContainsPosition(C.range,i)):this.textModel.bracketPairs.getBracketPairsInRange(D.fromPositions(i));u=(o=rI(w,C=>C.range.startLineNumber!==C.range.endLineNumber))===null||o===void 0?void 0:o.range}const f=new za(d),m=new Array,_=new Array,b=new bk;for(let w=e;w<=t;w++){let C=new Array;_.length>0&&(C=C.concat(_),_.length=0),h.push(C);for(const S of f.takeWhile(k=>k.openingBracketRange.startLineNumber<=w)||[]){if(S.range.startLineNumber===S.range.endLineNumber)continue;const k=Math.min(this.getVisibleColumnFromPosition(S.openingBracketRange.getStartPosition()),this.getVisibleColumnFromPosition((a=(r=S.closingBracketRange)===null||r===void 0?void 0:r.getStartPosition())!==null&&a!==void 0?a:S.range.getEndPosition()),S.minVisibleColumnIndentation+1);let x=!1;S.closingBracketRange&&Ci(this.textModel.getLineContent(S.closingBracketRange.startLineNumber))=0;S--){const k=m[S];if(!k)continue;const x=n.highlightActive&&u&&k.bracketPair.range.equalsRange(u),L=b.getInlineClassNameOfLevel(k.nestingLevel)+(x?" "+b.activeClassName:"");(x||n.includeInactive)&&k.renderHorizontalEndLineAtTheBottom&&k.end.lineNumber===w+1&&_.push(new ma(k.guideVisibleColumn,L,null)),!(k.end.lineNumber<=w||k.start.lineNumber>=w)&&(k.guideVisibleColumn>=v&&!x||(v=k.guideVisibleColumn,(x||n.includeInactive)&&C.push(new ma(k.guideVisibleColumn,L,null))))}C.sort((S,k)=>S.visibleColumn-k.visibleColumn)}return h}getVisibleColumnFromPosition(e){return ft.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(o&&o.offSide),a=new Array(t-e+1);let l=-2,c=-1,h=-2,d=-1;for(let u=e;u<=t;u++){const f=u-e,m=this._computeIndentLevel(u-1);if(m>=0){l=u-1,c=m,a[f]=Math.ceil(m/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(h!==-1&&(h===-2||h=0){h=_,d=b;break}}}a[f]=this._getIndentLevelForWhitespaceLine(r,c,d)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&v>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((o=(n=e.visibleRangeForPosition(new A(f,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:v+this._spaceWidth)-v:this._spaceWidth;b+=`
`}u[m]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?ur.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?ur.EnabledForActive:ur.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation&&i){const d=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=d.startLineNumber,a=d.endLineNumber,l=d.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),h=[];for(let d=e;d<=t;d++){const u=new Array;h.push(u);const f=n?n[d-e]:[],m=new za(f),_=o?o[d-e]:[];for(let b=1;b<=_;b++){const w=(b-1)*c+1,C=f.length===0&&r<=d&&d<=a&&b===l;u.push(...m.takeWhile(S=>S.visibleColumn!0)||[])}return h}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Gh(s){if(!(s&&s.isTransparent()))return s}ni((s,e)=>{const t=s.getColor(jf);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=s.getColor(Kf)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:nk,guideColor:pM,guideColorActive:SM},{bracketColor:sk,guideColor:_M,guideColorActive:yM},{bracketColor:ok,guideColor:bM,guideColorActive:LM},{bracketColor:rk,guideColor:CM,guideColorActive:kM},{bracketColor:ak,guideColor:wM,guideColorActive:xM},{bracketColor:lk,guideColor:vM,guideColorActive:IM}],o=new bk,r=n.map(a=>{var l,c;const h=s.getColor(a.bracketColor),d=s.getColor(a.guideColor),u=s.getColor(a.guideColorActive),f=Gh((l=Gh(d))!==null&&l!==void 0?l:h==null?void 0:h.transparent(.3)),m=Gh((c=Gh(u))!==null&&c!==void 0?c:h);if(!(!f||!m))return{guideColor:f,guideColorActive:m}}).filter(fI);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${o.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${o.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${o.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class fR{constructor(){this._currentVisibleRange=new D(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class gR{constructor(e,t,i,n,o,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class mR{constructor(e,t,i,n,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=o,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new Tt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new fR,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Un(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(132)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(44),n=t.get(132),o=t.get(131);return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(89),this._horizontalScrollbarHeight=o.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),ii(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(131)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new aw(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++)this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let o=t;o<=i;o++)n=this._visibleLines.getVisibleLine(o).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new gR(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new mR(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,o),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new A(n,1);const o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=D.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;let o=[],r=0;const a=new rw(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new A(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();for(let d=n.startLineNumber;d<=n.endLineNumber;d++){if(dh)continue;const u=d===n.startLineNumber?n.startColumn:1,f=d===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(d),m=this._visibleLines.getVisibleLine(d).getVisibleRangesForRange(d,u,f,a);if(!!m){if(t&&dthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new rw(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new F5(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){o=!1;continue}n=Math.max(n,a.getWidth())}return o&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const r=this._visibleLines.getVisibleLine(o);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=o)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let o=i;o<=n;o++)this._visibleLines.getVisibleLine(o).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),qt&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++)if(this._visibleLines.getVisibleLine(o).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=o[0].startLineNumber,b=o[0].endLineNumber;for(let w=1,C=o.length;wl){if(!h)return-1;m=d}else if(r===5||r===6)if(r===6&&a<=d&&u<=c)m=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=d-_,w=u-l;m=Math.max(w,b)}else if(r===1||r===2)if(r===2&&a<=d&&u<=c)m=a;else{const _=(d+u)/2;m=Math.max(0,_-l/2)}else m=this._computeMinimumScrolling(a,c,d,u,r===3,r===4);return m}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let o=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)o=Math.min(o,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const h of c.ranges)o=Math.min(o,Math.round(h.left)),r=Math.max(r,Math.round(h.left+h.width))}return e.minimalReveal||(o=Math.max(0,o-Gf.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-o>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,r){e=e|0,t=t|0,i=i|0,n=n|0,o=!!o,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}Gf.HORIZONTAL_EXTRA_PX=30;class pR extends H0{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(131);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let o=0,r=t.length;o
',l=[];for(let c=t;c<=i;c++){const h=c-t,d=n[h];let u="";for(let f=0,m=d.length;f';o[a]=c}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Mi{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Mi._clamp(e),this.g=Mi._clamp(t),this.b=Mi._clamp(i),this.a=Mi._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Mi.Empty=new Mi(0,0,0,0);class Dh extends W{constructor(){super(),this._onDidChange=new M,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(et.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new Dh),this._INSTANCE}_updateColorMap(){const e=et.getColorMap();if(!e){this._colors=[Mi.Empty],this._backgroundIsLight=!0;return}this._colors=[Mi.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Dh._INSTANCE=null;const bR=(()=>{const s=[];for(let e=32;e<=126;e++)s.push(e);return s.push(65533),s})(),CR=(s,e)=>(s-=32,s<0||s>96?e<=2?(s+96)%96:96-1:s);class zc{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=zc.soften(e,12/15),this.charDataLight=zc.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+m>e.height){console.warn("bad render request outside image data");return}const _=h?this.charDataLight:this.charDataNormal,b=CR(n,c),w=e.width*4,C=a.r,v=a.g,S=a.b,k=o.r-C,x=o.g-v,L=o.b-S,y=Math.max(r,l),I=e.data;let R=b*u*f,T=i*w+t*4;for(let P=0;Pe.width||i+d>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,f=.5*(o/255),m=r.r,_=r.g,b=r.b,w=n.r-m,C=n.g-_,v=n.b-b,S=m+w*f,k=_+C*f,x=b+v*f,L=Math.max(o,a),y=e.data;let I=i*u+t*4;for(let R=0;R{const e=new Uint8ClampedArray(s.length/2);for(let t=0;t>1]=bw[s[t]]<<4|bw[s[t+1]]&15;return e},ww={1:_r(()=>Cw("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:_r(()=>Cw("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class hc{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return ww[e]?i=new zc(ww[e](),e):i=hc.createFromSampleData(hc.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const o of bR)i.fillText(String.fromCharCode(o),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=hc._downsample(e,t);return new zc(n,t)}static _downsampleChar(e,t,i,n,o){const r=1*o,a=2*o;let l=n,c=0;for(let h=0;h0){const c=255/l;for(let h=0;hhc.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Uc._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Uc._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(S5);return i?new Mi(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(y5);return t?Mi._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class dc{constructor(e,t,i,n,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,o,r,a,l,c,h,d){const u=e.pixelRatio,f=e.minimapLineHeight,m=Math.floor(e.canvasInnerHeight/f),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0),x=Math.max(1,Math.floor(o*o/k)),L=Math.max(0,e.minimapHeight-x),y=L/(h-o),I=c*y,R=L>0,T=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new dc(c,h,R,y,I,x,1,Math.min(a,T))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*f/u)}else{const k=o/_;b=Math.floor(k*f/u)}let w;e.scrollBeyondLastLine?w=(a-1)*f/u:w=Math.max(0,a*f/u-b),w=Math.min(e.minimapHeight-b,w);const C=w/(h-o),v=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=o/_-1),m>=a+S){const x=a,L=w>0;return new dc(c,h,L,C,v,b,1,x)}else{let k=Math.max(1,Math.floor(t-v*u/f));d&&d.scrollHeight===h&&(d.scrollTop>c&&(k=Math.min(k,d.startLineNumber)),d.scrollTopPu.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,o=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=$c.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let o=0,r=t-e+1;o{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.leftButton&&this._lastRenderData){const c=en(this._slider.domNode),h=c.top+c.height/2;this._startSliderDragging(i.buttons,i.posx,h,i.posy,this._lastRenderData.renderedLayout)}return}const o=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.browserEvent.offsetY;let l=Math.floor(r/o)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderMouseMoveMonitor=new Wf,this._sliderMouseDownListener=wi(this._slider.domNode,"mousedown",i=>{i.preventDefault(),i.stopPropagation(),i.leftButton&&this._lastRenderData&&this._startSliderDragging(i.buttons,i.posx,i.posy,i.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Se.addTarget(this._domNode.domNode),this._sliderTouchStartListener=V(this._domNode.domNode,Ae.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=V(this._domNode.domNode,Ae.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=wi(this._domNode.domNode,Ae.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i,n,o){this._slider.toggleClassName("active",!0);const r=(a,l)=>{const c=Math.abs(l-t);if(li&&c>wR){this._model.setScrollTop(o.scrollTop);return}const h=a-i;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(h))};n!==i&&r(n,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,M0,a=>r(a.posy,a.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return this._model.options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new z0(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(iw),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=dc.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(D.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,f)=>(u.options.zIndex||0)-(f.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,o);const h=new Sw(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,h,e,r),this._renderDecorationsLineHighlights(c,i,h,e,r);const d=new Sw(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,d,e,r,l,a,n),this._renderDecorationsHighlights(c,i,d,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),h=Math.min(n.endLineNumber,l.endLineNumber);if(c>h)continue;for(let f=c;f<=h;f++)i.set(f,!0);const d=(c-n.startLineNumber)*o,u=(h-n.startLineNumber)*o+o;a>=d||(a>r&&e.fillRect(Ks,r,e.canvas.width,a-r),r=d),a=u}a>r&&e.fillRect(Ks,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,o){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==Ts.Inline)continue;const h=Math.max(n.startLineNumber,l.range.startLineNumber),d=Math.min(n.endLineNumber,l.range.endLineNumber);if(h>d)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let f=r.get(u.toString());f||(f=u.transparent(.5).toString(),r.set(u.toString(),f)),e.fillStyle=f;for(let m=h;m<=d;m++){if(i.has(m))continue;i.set(m,!0);const _=(h-n.startLineNumber)*o;e.fillRect(Ks,_,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const h=Math.max(n.startLineNumber,c.startLineNumber),d=Math.min(n.endLineNumber,c.endLineNumber);if(!(h>d))for(let u=h;u<=d;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,o,o,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,o,r,a,l){for(const c of t){const h=c.options.minimap;if(!h)continue;const d=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(d>u)continue;const f=h.getColor(this._theme.value);if(!(!f||f.isTransparent()))for(let m=d;m<=u;m++)switch(h.position){case Ts.Inline:this.renderDecorationOnLine(e,i,c.range,f,n,m,o,o,r,a,l);continue;case Ts.Gutter:{const _=(m-n.startLineNumber)*o,b=2;this.renderDecoration(e,f,b,_,vR,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,r,a,l,c,h,d){const u=(r-o.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:f,endLineNumber:m}=i,_=f===r?i.startColumn:1,b=m===r?i.endColumn:this._model.getLineMaxColumn(r),w=this.getXOffsetForPosition(t,r,_,c,h,d),C=this.getXOffsetForPosition(t,r,b,c,h,d);this.renderDecoration(e,n,w,u,C-w,a)}getXOffsetForPosition(e,t,i,n,o,r){if(i===1)return Ks;if((i-1)*o>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[Ks];let h=Ks;for(let d=1;d=r){l[d]=r;break}l[d]=m,h=m}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,L=u.a/255,y=new Mi(Math.round((u.r-d.r)*L+d.r),Math.round((u.g-d.g)*L+d.g),Math.round((u.b-d.b)*L+d.b),255);let I=0;const R=[];for(let z=0,Q=i-t+1;z=0&&RC)return;const P=b.charCodeAt(k);if(P===9){const F=u-(k+x)%u;x+=F-1,S+=F*r}else if(P===32)S+=r;else{const F=vo(P)?2:1;for(let j=0;jC)return}}}}}class Sw{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,o=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}ni((s,e)=>{const t=s.getColor(L5);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=s.getColor(k5);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=s.getColor(x5);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const o=s.getColor(vl);o&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${o} -6px 0 6px -6px inset; }`)});class yR extends Wi{constructor(e){super(e);const i=this._context.configuration.options.get(131);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=ue(document.createElement("div")),es.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=ue(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.unsetTop();return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const o=Math.floor(n/3),r=Math.floor(n/3),a=n-o-r,l=e,c=l+o,h=l+o+a;return[[0,l,c,l,h,l,c,l],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}else if(i===2){const o=Math.floor(n/2),r=n-o,a=e,l=a+o;return[[0,a,a,a,l,a,a,a],[0,o,o,o,r,o+r,o+r,o+r]]}else{const o=e,r=n;return[[0,o,o,o,o,o,o,o],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class kR extends Wi{constructor(e){super(e),this._domNode=ue(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=et.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new LR(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(T=t-c),y=T-c,I=T+c}y>C+1||k!==b?(v!==0&&h.fillRect(d[b],w,u[b],C-w),b=k,w=y,C=I):I>C&&(C=I)}h.fillRect(d[b],w,u[b],C-w)}if(!this._settings.hideCursor&&this._settings.cursorColor){const f=2*this._settings.pixelRatio|0,m=f/2|0,_=this._settings.x[7],b=this._settings.w[7];h.fillStyle=this._settings.cursorColor;let w=-100,C=-100;for(let v=0,S=this._cursorPositions.length;vt&&(x=t-m);const L=x-m,y=L+f;L>C+1?(v!==0&&h.fillRect(_,w,b,C-w),w=L,C=y):y>C&&(C=y)}h.fillRect(_,w,b,C-w)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(h.beginPath(),h.lineWidth=1,h.strokeStyle=this._settings.borderColor,h.moveTo(0,0),h.lineTo(0,t),h.stroke(),h.moveTo(0,0),h.lineTo(e,0),h.stroke())}}class yw{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class jc{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const w=h.color;let C=this._color2Id[w];C||(C=++this._lastAssignedId,this._color2Id[w]=C,this._id2Color[C]=w);const v=new yw(_-b,_+b,C);h.setColorZone(v),a.push(v)}return this._colorZonesInvalid=!1,a.sort(yw.compare),a}}class IR extends Ih{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=ue(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new xR(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(59)),this._zoneManager.setPixelRatio(i.get(129)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(59)&&(this._zoneManager.setLineHeight(t.get(59)),this._render()),e.hasChanged(129)&&(this._zoneManager.setPixelRatio(t.get(129)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,r=0,a=0;for(const l of t){const c=l.colorId,h=l.from,d=l.to;c!==o?(e.fillRect(0,r,n,a-r),o=c,e.fillStyle=i[o],r=h,a=d):a>=h?a=Math.max(a,d):(e.fillRect(0,r,n,a-r),r=h,a=d)}e.fillRect(0,r,n,a-r)}}class ER extends Wi{constructor(e){super(e),this.domNode=ue(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=ue(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(o),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=s.getColor(rM);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class DR extends Wi{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(92);this._useShadows=i.useShadows,this._domNode=ue(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(131);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(92);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}ni((s,e)=>{const t=s.getColor(vl);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class NR{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class TR{constructor(e,t){this.lineNumber=e,this.ranges=t}}function MR(s){return new NR(s)}function RR(s){return new TR(s.lineNumber,s.ranges.map(MR))}class Ve extends yl{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!o&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const m=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Zh(h-m)m&&(u.top=1),Zh(d-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const o=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let h=0,d=n.length;h1,c)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ve.SELECTION_CLASS_NAME="selected-text";Ve.SELECTION_TOP_LEFT="top-left-radius";Ve.SELECTION_BOTTOM_LEFT="bottom-left-radius";Ve.SELECTION_TOP_RIGHT="top-right-radius";Ve.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Ve.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Ve.ROUNDED_PIECE_WIDTH=10;ni((s,e)=>{const t=s.getColor(Ta);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=s.getColor(A0);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=s.getColor(MT);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function Zh(s){return s<0?-s:s}class Lw{constructor(e,t,i,n,o,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=o,this.textContentClassName=r}}class kw{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(44);this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=ue(document.createElement("div")),this._domNode.setClassName(`cursor ${dr}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),ii(this._domNode,i),this._domNode.setDisplay("none"),this._position=new A(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(44);return this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),ii(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,o]=KE(i,t-1);return[new A(e,n+1),i.substring(n,o)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===_t.Line||this._cursorStyle===_t.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let f;this._cursorStyle===_t.Line?(f=UC(this._lineCursorWidth>0?this._lineCursorWidth:2),f>2&&(t=n)):f=UC(1);let m=u.left;f>=2&&m>=1&&(m-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new Lw(_,m,f,this._lineHeight,t,"")}const o=e.linesVisibleRangesForRange(new D(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!o||o.length===0)return null;const r=o[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===_t.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const f=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(f)}let h=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return(this._cursorStyle===_t.Underline||this._cursorStyle===_t.UnderlineThin)&&(h+=this._lineHeight-2,d=2),new Lw(h,a.left,l,d,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${dr} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Kc extends Wi{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new kw(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=ue(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new os,this._cursorFlatBlinkInterval=new vh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,o=e.ranges.length;n{this._isVisible?this._hide():this._show()},Kc.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},Kc.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case _t.Line:e+=" cursor-line-style";break;case _t.Block:e+=" cursor-block-style";break;case _t.Underline:e+=" cursor-underline-style";break;case _t.LineThin:e+=" cursor-line-thin-style";break;case _t.BlockOutline:e+=" cursor-block-outline-style";break;case _t.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=s.getColor(tk);if(t){let i=s.getColor(sM);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),s.type==="hc"&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const im=()=>{throw new Error("Invalid change accessor")};class AR extends Wi{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=ue(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=ue(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const o=Object.keys(this._zones);for(let r=0,a=o.length;r{const n={addZone:o=>(t=!0,this._addZone(i,o)),removeZone:o=>{!o||(t=this._removeZone(i,o)||t)},layoutZone:o=>{!o||(t=this._layoutZone(i,o)||t)}};OR(e,n),n.addZone=im,n.removeZone=im,n.layoutZone=im}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),o={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:ue(t.domNode),marginDomNode:t.marginDomNode?ue(t.marginDomNode):null};return this._safeCallOnComputedHeight(o.delegate,i.heightInPx),o.domNode.setPosition("absolute"),o.domNode.domNode.style.width="100%",o.domNode.setDisplay("none"),o.domNode.setAttribute("monaco-view-zone",o.whitespaceId),this.domNode.appendChild(o.domNode),o.marginDomNode&&(o.marginDomNode.setPosition("absolute"),o.marginDomNode.domNode.style.width="100%",o.marginDomNode.setDisplay("none"),o.marginDomNode.setAttribute("monaco-view-zone",o.whitespaceId),this.marginDomNode.appendChild(o.marginDomNode)),this._zones[o.whitespaceId]=o,this.setShouldRender(),o.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Ze(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Ze(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const o=Object.keys(this._zones);for(let r=0,a=o.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new U5(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new A(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(131);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(128)+" "+Iu(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=rL(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){WR(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!S0(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new BR(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new O5(this._context.viewLayout,i,this._viewLines);for(const o of e)o.prepareRender(n);for(const o of e)o.render(n),o.onDidRender()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new A(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?qf.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new IR(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(t===null){const n=e.position?e.position.position:null;n!==null&&(t=new D(n.lineNumber,n.column,n.lineNumber,n.column))}const i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function WR(s){try{return s()}catch(e){Ze(e)}}class Bu{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new pt(new D(1,1,1,1),0,new A(1,1),0),new pt(new D(1,1,1,1),0,new A(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new oe(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return ce.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,o,n,a);return i.equals(r)&&n.equals(a)&&o.equals(l)?t:new pt(D.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Bu._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),o=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new pt(n,o,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new pt(n,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new pt(n,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new A(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new A(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new D(n.lineNumber,n.column,o.lineNumber,o.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new pt(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class xw{constructor(e){this.context=e,this.cursors=[new Bu(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return uI(this.cursors,yg(e=>e.viewState.position,A.compare)).viewState.position}getBottomMostViewPosition(){return dI(this.cursors,yg(e=>e.viewState.position,A.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(oe.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let o=0;o=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,D.compareRangesUsingStarts));for(let i=0;id&&_.index--;e.splice(d,1),t.splice(h,1),this._removeSecondaryCursor(d-1),i--}}}}class Iw{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class HR{constructor(){this.changeType=1}}class In{constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new In(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new In(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class Ew{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class zR{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class UR{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class $R{constructor(){this.changeType=5}}class fr{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class nA{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class U0{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return e.kind!==0?this:new U0(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class $0{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return e.kind!==1?this:new $0(this.oldHasFocus,e.hasFocus)}}class j0{constructor(e,t,i,n,o,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}merge(e){return e.kind!==2?this:new j0(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Dw{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class Wu{constructor(e,t,i,n,o,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let o=0;o0){const e=this._cursors.getSelections();for(let t=0;ttl.MAX_CURSOR_COUNT&&(n=n.slice(0,tl.MAX_CURSOR_COUNT),o=!0);const r=uc.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,o,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=D.fromPositions(a[0],a[0]),e.emitViewEvent(new zd(t,i,l,c,n,o,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const n=oe.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,n)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const n=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,oe.fromModelSelections(n))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,oe.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const r=uc.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new GR(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,h)=>!c.modelState.equals(n.cursorState[h].modelState))){const c=n?n.cursorState.map(d=>d.modelState.selection):null,h=n?n.modelVersionId:0;e.emitOutgoingEvent(new Wu(c,a,h,r.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,h=o.text.length-r[2].length-1,d=o.text.lastIndexOf(c,h-1);if(d===-1)return null;t.push([d,h])}return t}executeEdits(e,t,i,n){let o=null;t==="snippet"&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(o)for(let d=0,u=o.length;d0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=uc.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Ze(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return Nw.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{t==="keyboard"&&(this._executeEditOperation(je.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let o=0;for(;o{const c=l.getPosition();return new ce(c.lineNumber,c.column+o,c.lineNumber,c.column+o)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(je.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))},e,r)}paste(e,t,i,n,o){this._executeEdit(()=>{this._executeEditOperation(je.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,o,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(xr.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new oi(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new oi(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}tl.MAX_CURSOR_COUNT=1e4;class uc{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new uc(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class oA{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const h=[];for(let f=0;ff.identifier.minor-m.identifier.minor,u=[];for(let f=0;f0?(h[f].sort(d),u[f]=t[f].computeCursorState(e.model,{getInverseEditOperations:()=>h[f],getTrackedSelection:m=>{const _=parseInt(m,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new ce(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new ce(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[f]=e.selectionsBefore[f];return u});a||(a=e.selectionsBefore);const l=[];for(let c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,h)=>h-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{D.isEmpty(d)&&u===""||n.push({identifier:{major:t,minor:o++},range:d,text:u,forceMoveMarkers:f,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const h={addEditOperation:r,addTrackedEditOperation:(d,u,f)=>{a=!0,r(d,u,f)},trackSelection:(d,u)=>{const f=ce.liftSelection(d);let m;if(f.isEmpty())if(typeof u=="boolean")u?m=2:m=3;else{const w=e.model.getLineMaxColumn(f.startLineNumber);f.startColumn===w?m=2:m=3}else m=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,f,m);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=f.getDirection(),_.toString()}};try{i.getEditOperations(e.model,h)}catch(d){return Ze(d),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-D.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;io.identifier.major?r=n.identifier.major:r=o.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class vk{constructor(e,t,i,n,o,r){this.id=e,this.label=t,this.alias=i,this._precondition=n,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}const kl={Configuration:"base.contributions.configuration"},nm={properties:{},patternProperties:{}},sm={properties:{},patternProperties:{}},om={properties:{},patternProperties:{}},rm={properties:{},patternProperties:{}},am={properties:{},patternProperties:{}},Qh={properties:{},patternProperties:{}},Fl="vscode://schemas/settings/resourceLanguage",Tw=xt.as(Hf.JSONContribution);class rA{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new M,this._onDidUpdateConfiguration=new M,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:p("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},Tw.registerSchema(Fl,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=this.doRegisterConfigurations(e,t);Tw.registerSchema(Fl,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;const i=[],n=[];for(const{overrides:o,source:r}of e)for(const a in o)if(i.push(a),qc.test(a)){const l=Object.assign(Object.assign({},((t=this.configurationDefaultsOverrides.get(a))===null||t===void 0?void 0:t.value)||{}),o[a]);this.configurationDefaultsOverrides.set(a,{source:r,value:l});const c={type:"object",default:l,description:p("defaultLanguageConfiguration.description","Configure settings to be overridden for {0} language.",a),$ref:Fl,defaultDefaultValue:l,source:Ln(r)?void 0:r};n.push(...yk(a)),this.configurationProperties[a]=c,this.defaultLanguageConfigurationOverridesNode.properties[a]=c}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.registerOverrideIdentifiers(n),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){const i=[];return e.forEach(n=>{i.push(...this.validateAndRegisterProperties(n,t,n.extensionInfo,n.restrictedProperties)),this.configurationContributors.push(n),this.registerJSONConfiguration(n)}),i}validateAndRegisterProperties(e,t=!0,i,n,o=3){o=Gi(e.scope)?o:e.scope;let r=[],a=e.properties;if(a)for(let c in a){if(t&&lA(c)){delete a[c];continue}const h=a[c];if(h.source=i,h.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,h),qc.test(c)?h.scope=void 0:(h.scope=Gi(h.scope)?o:h.scope,h.restricted=Gi(h.restricted)?!!(n!=null&&n.includes(c)):h.restricted),a[c].hasOwnProperty("included")&&!a[c].included){this.excludedConfigurationProperties[c]=a[c],delete a[c];continue}else this.configurationProperties[c]=a[c];!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),r.push(c)}let l=e.allOf;if(l)for(let c of l)r.push(...this.validateAndRegisterProperties(c,t,i,n,o));return r}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=i=>{let n=i.properties;if(n)for(const r in n)this.updateSchema(r,n[r]);let o=i.allOf;o&&o.forEach(t)};t(e)}updateSchema(e,t){switch(nm.properties[e]=t,t.scope){case 1:sm.properties[e]=t;break;case 2:om.properties[e]=t;break;case 6:rm.properties[e]=t;break;case 3:am.properties[e]=t;break;case 4:Qh.properties[e]=t;break;case 5:Qh.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Fl};this.updatePropertyDefaultValue(t,i),nm.properties[t]=i,sm.properties[t]=i,om.properties[t]=i,rm.properties[t]=i,am.properties[t]=i,Qh.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){const e={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Fl};nm.patternProperties[Vo]=e,sm.patternProperties[Vo]=e,om.patternProperties[Vo]=e,rm.patternProperties[Vo]=e,am.patternProperties[Vo]=e,Qh.patternProperties[Vo]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=i==null?void 0:i.value,o=i==null?void 0:i.source;vn(n)&&(n=t.defaultDefaultValue,o=void 0),vn(n)&&(n=aA(t.type)),t.default=n,t.defaultValueSource=o}}const Sk="\\[([^\\]]+)\\]",Mw=new RegExp(Sk,"g"),Vo=`^(${Sk})+$`,qc=new RegExp(Vo);function yk(s){const e=[];if(qc.test(s)){let t=Mw.exec(s);for(;t!=null&&t.length;){const i=t[1].trim();i&&e.push(i),t=Mw.exec(s)}}return wo(e)}function aA(s){switch(Array.isArray(s)?s[0]:s){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Lk=new rA;xt.add(kl.Configuration,Lk);function lA(s){return s.trim()?qc.test(s)?p("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",s):Lk.getConfigurationProperties()[s]!==void 0?p("config.property.duplicate","Cannot register '{0}'. This property is already registered.",s):null:p("config.property.empty","Cannot register an empty property")}const cA={ModesRegistry:"editor.modesRegistry"};class hA{constructor(){this._onDidChangeLanguages=new M,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0);xt.as(kl.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}]);globalThis&&globalThis.__awaiter;function uA(s,e,t,i,n,o,r){let a="
",l=i,c=0,h=!0;for(let d=0,u=e.getCount();d0;)r&&h?(m+=" ",h=!1):(m+=" ",h=!0),b--;break}case 60:m+="<",h=!1;break;case 62:m+=">",h=!1;break;case 38:m+="&",h=!1;break;case 0:m+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:m+="\uFFFD",h=!1;break;case 13:m+="​",h=!1;break;case 32:r&&h?(m+=" ",h=!1):(m+=" ",h=!0);break;default:m+=String.fromCharCode(_),h=!1}}if(a+=`${m}`,f>n||l>=n)break}return a+="
",a}class fA{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class gA{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}class Gc{constructor(e,t,i,n){this._instanceId=xy(++Gc.INSTANCE_COUNT),this._pendingChanges=new fA,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,o=o|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new gA(l,n,o,r,a)),l},changeOneWhitespace:(n,o,r)=>{t=!0,o=o|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:o,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const o=new Map;for(const l of t)o.set(l.id,l);const r=l=>{const c=[];for(const h of l)if(!n.has(h.id)){if(o.has(h.id)){const d=o.get(h.id);h.afterLineNumber=d.newAfterLineNumber,h.height=d.newHeight}c.push(h)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=Gc.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?t=this._lineHeight*(e-1):t=0;const i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+i+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,o=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;o=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,o=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,h;a===-1?(a=l,h=r+1,c=0):(h=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let d=o,u=d;const f=5e5;let m=0;o>=f&&(m=Math.floor(o/f)*f,m=Math.floor(m/i)*i,u-=m);const _=[],b=e+(t-e)/2;let w=-1;for(let k=n;k<=r;k++){if(w===-1){const x=d,L=d+i;(x<=b&&bb)&&(w=k)}for(d+=i,_[k-n]=u,u+=i;h===k;)u+=c,d+=c,a++,a>=l?h=r+1:(h=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(d>=t){r=k;break}}w===-1&&(w=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let v=n,S=r;return vt&&S--,{bigNumbersDelta:m,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:w,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(e>=n+o)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),o=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}Gc.INSTANCE_COUNT=0;const mA=125;class Gl{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class pA extends W{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new M),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Gl(0,0,0,0),this._scrollable=this._register(new Eh({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new U0(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class _A extends W{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(131),r=n.get(75);this._linesLayout=new Gc(t,n.get(59),r.top,r.bottom),this._scrollable=this._register(new pA(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Gl(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(103)?mA:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(59)&&this._linesLayout.setLineHeight(t.get(59)),e.hasChanged(75)){const i=t.get(75);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(131)){const i=t.get(131),n=i.contentWidth,o=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Gl(n,r.contentWidth,o,this._getContentHeight(n,o,a)))}else this._updateHeight();e.hasChanged(103)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(92);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(94)?o+=Math.max(0,t-n.get(59)-n.get(75).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Gl(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new PC(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new PC(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(132),n=t.get(44);if(i.isViewportWrapping){const o=t.get(131),r=t.get(65);return e>o.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+o.verticalScrollbarWidth:e}else{const o=t.get(93)*n.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+o,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Gl(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class bA{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,o=e.options;let r;if(o.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new A(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new A(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new D(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new Jy(r,o),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,su(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,o=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function vA(s,e){return kk(s,e.range,t=>t===2)}function kk(s,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=s.getLineTokens(i),o=i===e.startLineNumber,r=i===e.endLineNumber;let a=o?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}class Jh{constructor(e,t,i){this.range=e,this.nestingLevel=t,this.isInvalid=i}}class SA{constructor(e,t,i,n){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n}}class yA extends SA{constructor(e,t,i,n,o){super(e,t,i,n),this.minVisibleColumnIndentation=o}}class I_{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}I_.zero=new I_(0,0);function LA(s,e,t,i){return s!==t?Ke(t-s,i):Ke(0,i-e)}const Ps=0;function kA(s){return s===0}const _i=Math.pow(2,26);function Ke(s,e){return s*_i+e}function Co(s){const e=s,t=Math.floor(e/_i),i=e-t*_i;return new I_(t,i)}function xA(s){return Math.floor(s/_i)}function yt(s,e){return e<_i?s+e:s-s%_i+e}function IA(s,e){const t=s,i=e;if(i-t<=0)return Ps;const o=Math.floor(t/_i),r=Math.floor(i/_i),a=i-r*_i;if(o===r){const l=t-o*_i;return Ke(0,a-l)}else return Ke(r-o,a)}function Ud(s,e){return s=e}function td(s){return Ke(s.lineNumber-1,s.column-1)}function ir(s,e){const t=s,i=Math.floor(t/_i),n=t-i*_i,o=e,r=Math.floor(o/_i),a=o-r*_i;return new D(i+1,n+1,r+1,a+1)}function EA(s){const e=Ch(s);return Ke(e.length-1,e[e.length-1].length)}class Rw{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class DA{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>K0.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return IA(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Co(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const o=this.lineTokens,r=o.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=LA(e,t,this.lineIdx,this.lineCharOffset);return new no(n,0,-1,Je.getEmpty(),new na(n))}}class FA{constructor(e,t){this.text=e,this._offset=Ps,this.idx=0;const n=t.getRegExpStr()?new RegExp(t.getRegExpStr()+`| + `)});class Ou{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class H0 extends yl{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let h=t;h<=i;h++){const d=h-t,u=n[d];u.length===0?c[d]="":c[d]='
=this._renderResult.length?"":this._renderResult[i]}}class lR{constructor(){this._isDisposed=!1}dispose(){this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function cR(s,e){let t=0,i=0;const n=s.length;for(;in)throw new Error("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(o&&o.offSide);let a=-2,l=-1,c=-2,h=-1;const d=L=>{if(a!==-1&&(a===-2||a>L-1)){a=-1,l=-1;for(let y=L-2;y>=0;y--){const I=this._computeIndentLevel(y);if(I>=0){a=y,l=I;break}}}if(c===-2){c=-1,h=-1;for(let y=L;y=0){c=y,h=I;break}}}};let u=-2,f=-1,m=-2,_=-1;const b=L=>{if(u===-2){u=-1,f=-1;for(let y=L-2;y>=0;y--){const I=this._computeIndentLevel(y);if(I>=0){u=y,f=I;break}}}if(m!==-1&&(m===-2||m=0){m=y,_=I;break}}}};let w=0,C=!0,v=0,S=!0,k=0,x=0;for(let L=0;C||S;L++){const y=e-L,I=e+L;L>1&&(y<1||y1&&(I>n||I>i)&&(S=!1),L>5e4&&(C=!1,S=!1);let R=-1;if(C&&y>=1){const P=this._computeIndentLevel(y-1);P>=0?(c=y-1,h=P,R=Math.ceil(P/this.textModel.getOptions().indentSize)):(d(y),R=this._getIndentLevelForWhitespaceLine(r,l,h))}let T=-1;if(S&&I<=n){const P=this._computeIndentLevel(I-1);P>=0?(u=I-1,f=P,T=Math.ceil(P/this.textModel.getOptions().indentSize)):(b(I),T=this._getIndentLevelForWhitespaceLine(r,f,_))}if(L===0){x=R;continue}if(L===1){if(I<=n&&T>=0&&x+1===T){C=!1,w=I,v=I,k=T;continue}if(y>=1&&R>=0&&R-1===x){S=!1,w=y,v=y,k=R;continue}if(w=e,v=e,k=x,k===0)return{startLineNumber:w,endLineNumber:v,indent:k}}C&&(R>=k?w=y:C=!1),S&&(T>=k?v=I:S=!1)}return{startLineNumber:w,endLineNumber:v,indent:k}}getLinesBracketGuides(e,t,i,n){var o,r,a,l,c;const h=[],d=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new D(e,1,t,this.textModel.getLineMaxColumn(t)));let u;if(i&&d.length>0){const w=e<=i.lineNumber&&i.lineNumber<=t?d.filter(C=>D.strictContainsPosition(C.range,i)):this.textModel.bracketPairs.getBracketPairsInRange(D.fromPositions(i));u=(o=rI(w,C=>C.range.startLineNumber!==C.range.endLineNumber))===null||o===void 0?void 0:o.range}const f=new za(d),m=new Array,_=new Array,b=new bk;for(let w=e;w<=t;w++){let C=new Array;_.length>0&&(C=C.concat(_),_.length=0),h.push(C);for(const S of f.takeWhile(k=>k.openingBracketRange.startLineNumber<=w)||[]){if(S.range.startLineNumber===S.range.endLineNumber)continue;const k=Math.min(this.getVisibleColumnFromPosition(S.openingBracketRange.getStartPosition()),this.getVisibleColumnFromPosition((a=(r=S.closingBracketRange)===null||r===void 0?void 0:r.getStartPosition())!==null&&a!==void 0?a:S.range.getEndPosition()),S.minVisibleColumnIndentation+1);let x=!1;S.closingBracketRange&&Ci(this.textModel.getLineContent(S.closingBracketRange.startLineNumber))=0;S--){const k=m[S];if(!k)continue;const x=n.highlightActive&&u&&k.bracketPair.range.equalsRange(u),L=b.getInlineClassNameOfLevel(k.nestingLevel)+(x?" "+b.activeClassName:"");(x||n.includeInactive)&&k.renderHorizontalEndLineAtTheBottom&&k.end.lineNumber===w+1&&_.push(new ma(k.guideVisibleColumn,L,null)),!(k.end.lineNumber<=w||k.start.lineNumber>=w)&&(k.guideVisibleColumn>=v&&!x||(v=k.guideVisibleColumn,(x||n.includeInactive)&&C.push(new ma(k.guideVisibleColumn,L,null))))}C.sort((S,k)=>S.visibleColumn-k.visibleColumn)}return h}getVisibleColumnFromPosition(e){return ft.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(o&&o.offSide),a=new Array(t-e+1);let l=-2,c=-1,h=-2,d=-1;for(let u=e;u<=t;u++){const f=u-e,m=this._computeIndentLevel(u-1);if(m>=0){l=u-1,c=m,a[f]=Math.ceil(m/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(h!==-1&&(h===-2||h=0){h=_,d=b;break}}}a[f]=this._getIndentLevelForWhitespaceLine(r,c,d)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&v>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((o=(n=e.visibleRangeForPosition(new A(f,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:v+this._spaceWidth)-v:this._spaceWidth;b+=`
`}u[m]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?ur.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?ur.EnabledForActive:ur.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation&&i){const d=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=d.startLineNumber,a=d.endLineNumber,l=d.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),h=[];for(let d=e;d<=t;d++){const u=new Array;h.push(u);const f=n?n[d-e]:[],m=new za(f),_=o?o[d-e]:[];for(let b=1;b<=_;b++){const w=(b-1)*c+1,C=f.length===0&&r<=d&&d<=a&&b===l;u.push(...m.takeWhile(S=>S.visibleColumn!0)||[])}return h}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Gh(s){if(!(s&&s.isTransparent()))return s}ni((s,e)=>{const t=s.getColor(jf);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=s.getColor(Kf)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:nk,guideColor:mM,guideColorActive:vM},{bracketColor:sk,guideColor:pM,guideColorActive:SM},{bracketColor:ok,guideColor:_M,guideColorActive:yM},{bracketColor:rk,guideColor:bM,guideColorActive:LM},{bracketColor:ak,guideColor:CM,guideColorActive:kM},{bracketColor:lk,guideColor:wM,guideColorActive:xM}],o=new bk,r=n.map(a=>{var l,c;const h=s.getColor(a.bracketColor),d=s.getColor(a.guideColor),u=s.getColor(a.guideColorActive),f=Gh((l=Gh(d))!==null&&l!==void 0?l:h==null?void 0:h.transparent(.3)),m=Gh((c=Gh(u))!==null&&c!==void 0?c:h);if(!(!f||!m))return{guideColor:f,guideColorActive:m}}).filter(fI);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${o.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${o.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${o.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class uR{constructor(){this._currentVisibleRange=new D(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class fR{constructor(e,t,i,n,o,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class gR{constructor(e,t,i,n,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=o,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new Tt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new uR,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Un(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(132)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(44),n=t.get(132),o=t.get(131);return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(89),this._horizontalScrollbarHeight=o.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),ii(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(131)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new aw(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++)this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let o=t;o<=i;o++)n=this._visibleLines.getVisibleLine(o).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new fR(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new gR(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,o),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new A(n,1);const o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=D.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;let o=[],r=0;const a=new rw(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new A(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();for(let d=n.startLineNumber;d<=n.endLineNumber;d++){if(dh)continue;const u=d===n.startLineNumber?n.startColumn:1,f=d===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(d),m=this._visibleLines.getVisibleLine(d).getVisibleRangesForRange(d,u,f,a);if(!!m){if(t&&dthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new rw(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new P5(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){o=!1;continue}n=Math.max(n,a.getWidth())}return o&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const r=this._visibleLines.getVisibleLine(o);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=o)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let o=i;o<=n;o++)this._visibleLines.getVisibleLine(o).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),qt&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++)if(this._visibleLines.getVisibleLine(o).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=o[0].startLineNumber,b=o[0].endLineNumber;for(let w=1,C=o.length;wl){if(!h)return-1;m=d}else if(r===5||r===6)if(r===6&&a<=d&&u<=c)m=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=d-_,w=u-l;m=Math.max(w,b)}else if(r===1||r===2)if(r===2&&a<=d&&u<=c)m=a;else{const _=(d+u)/2;m=Math.max(0,_-l/2)}else m=this._computeMinimumScrolling(a,c,d,u,r===3,r===4);return m}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let o=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)o=Math.min(o,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const h of c.ranges)o=Math.min(o,Math.round(h.left)),r=Math.max(r,Math.round(h.left+h.width))}return e.minimalReveal||(o=Math.max(0,o-Gf.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-o>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,r){e=e|0,t=t|0,i=i|0,n=n|0,o=!!o,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}Gf.HORIZONTAL_EXTRA_PX=30;class mR extends H0{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(131);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let o=0,r=t.length;o
',l=[];for(let c=t;c<=i;c++){const h=c-t,d=n[h];let u="";for(let f=0,m=d.length;f';o[a]=c}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Mi{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Mi._clamp(e),this.g=Mi._clamp(t),this.b=Mi._clamp(i),this.a=Mi._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Mi.Empty=new Mi(0,0,0,0);class Dh extends W{constructor(){super(),this._onDidChange=new M,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(et.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new Dh),this._INSTANCE}_updateColorMap(){const e=et.getColorMap();if(!e){this._colors=[Mi.Empty],this._backgroundIsLight=!0;return}this._colors=[Mi.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Dh._INSTANCE=null;const _R=(()=>{const s=[];for(let e=32;e<=126;e++)s.push(e);return s.push(65533),s})(),bR=(s,e)=>(s-=32,s<0||s>96?e<=2?(s+96)%96:96-1:s);class zc{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=zc.soften(e,12/15),this.charDataLight=zc.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+m>e.height){console.warn("bad render request outside image data");return}const _=h?this.charDataLight:this.charDataNormal,b=bR(n,c),w=e.width*4,C=a.r,v=a.g,S=a.b,k=o.r-C,x=o.g-v,L=o.b-S,y=Math.max(r,l),I=e.data;let R=b*u*f,T=i*w+t*4;for(let P=0;Pe.width||i+d>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,f=.5*(o/255),m=r.r,_=r.g,b=r.b,w=n.r-m,C=n.g-_,v=n.b-b,S=m+w*f,k=_+C*f,x=b+v*f,L=Math.max(o,a),y=e.data;let I=i*u+t*4;for(let R=0;R{const e=new Uint8ClampedArray(s.length/2);for(let t=0;t>1]=bw[s[t]]<<4|bw[s[t+1]]&15;return e},ww={1:_r(()=>Cw("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:_r(()=>Cw("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class hc{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return ww[e]?i=new zc(ww[e](),e):i=hc.createFromSampleData(hc.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const o of _R)i.fillText(String.fromCharCode(o),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=hc._downsample(e,t);return new zc(n,t)}static _downsampleChar(e,t,i,n,o){const r=1*o,a=2*o;let l=n,c=0;for(let h=0;h0){const c=255/l;for(let h=0;hhc.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Uc._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Uc._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(v5);return i?new Mi(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(S5);return t?Mi._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class dc{constructor(e,t,i,n,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,o,r,a,l,c,h,d){const u=e.pixelRatio,f=e.minimapLineHeight,m=Math.floor(e.canvasInnerHeight/f),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0),x=Math.max(1,Math.floor(o*o/k)),L=Math.max(0,e.minimapHeight-x),y=L/(h-o),I=c*y,R=L>0,T=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new dc(c,h,R,y,I,x,1,Math.min(a,T))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*f/u)}else{const k=o/_;b=Math.floor(k*f/u)}let w;e.scrollBeyondLastLine?w=(a-1)*f/u:w=Math.max(0,a*f/u-b),w=Math.min(e.minimapHeight-b,w);const C=w/(h-o),v=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=o/_-1),m>=a+S){const x=a,L=w>0;return new dc(c,h,L,C,v,b,1,x)}else{let k=Math.max(1,Math.floor(t-v*u/f));d&&d.scrollHeight===h&&(d.scrollTop>c&&(k=Math.min(k,d.startLineNumber)),d.scrollTopPu.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,o=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=$c.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let o=0,r=t-e+1;o{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.leftButton&&this._lastRenderData){const c=en(this._slider.domNode),h=c.top+c.height/2;this._startSliderDragging(i.buttons,i.posx,h,i.posy,this._lastRenderData.renderedLayout)}return}const o=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.browserEvent.offsetY;let l=Math.floor(r/o)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderMouseMoveMonitor=new Wf,this._sliderMouseDownListener=wi(this._slider.domNode,"mousedown",i=>{i.preventDefault(),i.stopPropagation(),i.leftButton&&this._lastRenderData&&this._startSliderDragging(i.buttons,i.posx,i.posy,i.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Se.addTarget(this._domNode.domNode),this._sliderTouchStartListener=V(this._domNode.domNode,Ae.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=V(this._domNode.domNode,Ae.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=wi(this._domNode.domNode,Ae.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i,n,o){this._slider.toggleClassName("active",!0);const r=(a,l)=>{const c=Math.abs(l-t);if(li&&c>CR){this._model.setScrollTop(o.scrollTop);return}const h=a-i;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(h))};n!==i&&r(n,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,M0,a=>r(a.posy,a.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return this._model.options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new z0(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(iw),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=dc.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(D.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,f)=>(u.options.zIndex||0)-(f.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,o);const h=new Sw(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,h,e,r),this._renderDecorationsLineHighlights(c,i,h,e,r);const d=new Sw(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,d,e,r,l,a,n),this._renderDecorationsHighlights(c,i,d,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),h=Math.min(n.endLineNumber,l.endLineNumber);if(c>h)continue;for(let f=c;f<=h;f++)i.set(f,!0);const d=(c-n.startLineNumber)*o,u=(h-n.startLineNumber)*o+o;a>=d||(a>r&&e.fillRect(Ks,r,e.canvas.width,a-r),r=d),a=u}a>r&&e.fillRect(Ks,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,o){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==Ts.Inline)continue;const h=Math.max(n.startLineNumber,l.range.startLineNumber),d=Math.min(n.endLineNumber,l.range.endLineNumber);if(h>d)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let f=r.get(u.toString());f||(f=u.transparent(.5).toString(),r.set(u.toString(),f)),e.fillStyle=f;for(let m=h;m<=d;m++){if(i.has(m))continue;i.set(m,!0);const _=(h-n.startLineNumber)*o;e.fillRect(Ks,_,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const h=Math.max(n.startLineNumber,c.startLineNumber),d=Math.min(n.endLineNumber,c.endLineNumber);if(!(h>d))for(let u=h;u<=d;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,o,o,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,o,r,a,l){for(const c of t){const h=c.options.minimap;if(!h)continue;const d=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(d>u)continue;const f=h.getColor(this._theme.value);if(!(!f||f.isTransparent()))for(let m=d;m<=u;m++)switch(h.position){case Ts.Inline:this.renderDecorationOnLine(e,i,c.range,f,n,m,o,o,r,a,l);continue;case Ts.Gutter:{const _=(m-n.startLineNumber)*o,b=2;this.renderDecoration(e,f,b,_,wR,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,r,a,l,c,h,d){const u=(r-o.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:f,endLineNumber:m}=i,_=f===r?i.startColumn:1,b=m===r?i.endColumn:this._model.getLineMaxColumn(r),w=this.getXOffsetForPosition(t,r,_,c,h,d),C=this.getXOffsetForPosition(t,r,b,c,h,d);this.renderDecoration(e,n,w,u,C-w,a)}getXOffsetForPosition(e,t,i,n,o,r){if(i===1)return Ks;if((i-1)*o>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[Ks];let h=Ks;for(let d=1;d=r){l[d]=r;break}l[d]=m,h=m}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,L=u.a/255,y=new Mi(Math.round((u.r-d.r)*L+d.r),Math.round((u.g-d.g)*L+d.g),Math.round((u.b-d.b)*L+d.b),255);let I=0;const R=[];for(let z=0,Q=i-t+1;z=0&&RC)return;const P=b.charCodeAt(k);if(P===9){const F=u-(k+x)%u;x+=F-1,S+=F*r}else if(P===32)S+=r;else{const F=vo(P)?2:1;for(let j=0;jC)return}}}}}class Sw{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,o=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}ni((s,e)=>{const t=s.getColor(y5);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=s.getColor(L5);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=s.getColor(k5);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const o=s.getColor(vl);o&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${o} -6px 0 6px -6px inset; }`)});class SR extends Wi{constructor(e){super(e);const i=this._context.configuration.options.get(131);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=ue(document.createElement("div")),es.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=ue(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.unsetTop();return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const o=Math.floor(n/3),r=Math.floor(n/3),a=n-o-r,l=e,c=l+o,h=l+o+a;return[[0,l,c,l,h,l,c,l],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}else if(i===2){const o=Math.floor(n/2),r=n-o,a=e,l=a+o;return[[0,a,a,a,l,a,a,a],[0,o,o,o,r,o+r,o+r,o+r]]}else{const o=e,r=n;return[[0,o,o,o,o,o,o,o],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class LR extends Wi{constructor(e){super(e),this._domNode=ue(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=et.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new yR(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(T=t-c),y=T-c,I=T+c}y>C+1||k!==b?(v!==0&&h.fillRect(d[b],w,u[b],C-w),b=k,w=y,C=I):I>C&&(C=I)}h.fillRect(d[b],w,u[b],C-w)}if(!this._settings.hideCursor&&this._settings.cursorColor){const f=2*this._settings.pixelRatio|0,m=f/2|0,_=this._settings.x[7],b=this._settings.w[7];h.fillStyle=this._settings.cursorColor;let w=-100,C=-100;for(let v=0,S=this._cursorPositions.length;vt&&(x=t-m);const L=x-m,y=L+f;L>C+1?(v!==0&&h.fillRect(_,w,b,C-w),w=L,C=y):y>C&&(C=y)}h.fillRect(_,w,b,C-w)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(h.beginPath(),h.lineWidth=1,h.strokeStyle=this._settings.borderColor,h.moveTo(0,0),h.lineTo(0,t),h.stroke(),h.moveTo(0,0),h.lineTo(e,0),h.stroke())}}class yw{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class jc{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const w=h.color;let C=this._color2Id[w];C||(C=++this._lastAssignedId,this._color2Id[w]=C,this._id2Color[C]=w);const v=new yw(_-b,_+b,C);h.setColorZone(v),a.push(v)}return this._colorZonesInvalid=!1,a.sort(yw.compare),a}}class xR extends Ih{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=ue(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new kR(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(59)),this._zoneManager.setPixelRatio(i.get(129)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(59)&&(this._zoneManager.setLineHeight(t.get(59)),this._render()),e.hasChanged(129)&&(this._zoneManager.setPixelRatio(t.get(129)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,r=0,a=0;for(const l of t){const c=l.colorId,h=l.from,d=l.to;c!==o?(e.fillRect(0,r,n,a-r),o=c,e.fillStyle=i[o],r=h,a=d):a>=h?a=Math.max(a,d):(e.fillRect(0,r,n,a-r),r=h,a=d)}e.fillRect(0,r,n,a-r)}}class IR extends Wi{constructor(e){super(e),this.domNode=ue(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=ue(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(o),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=s.getColor(oM);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class ER extends Wi{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(92);this._useShadows=i.useShadows,this._domNode=ue(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(131);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(92);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}ni((s,e)=>{const t=s.getColor(vl);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class DR{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class NR{constructor(e,t){this.lineNumber=e,this.ranges=t}}function TR(s){return new DR(s)}function MR(s){return new NR(s.lineNumber,s.ranges.map(TR))}class Ve extends yl{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!o&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const m=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Zh(h-m)m&&(u.top=1),Zh(d-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const o=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let h=0,d=n.length;h1,c)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ve.SELECTION_CLASS_NAME="selected-text";Ve.SELECTION_TOP_LEFT="top-left-radius";Ve.SELECTION_BOTTOM_LEFT="bottom-left-radius";Ve.SELECTION_TOP_RIGHT="top-right-radius";Ve.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Ve.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Ve.ROUNDED_PIECE_WIDTH=10;ni((s,e)=>{const t=s.getColor(Ta);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=s.getColor(A0);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=s.getColor(TT);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function Zh(s){return s<0?-s:s}class Lw{constructor(e,t,i,n,o,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=o,this.textContentClassName=r}}class kw{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(44);this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=ue(document.createElement("div")),this._domNode.setClassName(`cursor ${dr}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),ii(this._domNode,i),this._domNode.setDisplay("none"),this._position=new A(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(44);return this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),ii(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,o]=jE(i,t-1);return[new A(e,n+1),i.substring(n,o)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===_t.Line||this._cursorStyle===_t.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let f;this._cursorStyle===_t.Line?(f=UC(this._lineCursorWidth>0?this._lineCursorWidth:2),f>2&&(t=n)):f=UC(1);let m=u.left;f>=2&&m>=1&&(m-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new Lw(_,m,f,this._lineHeight,t,"")}const o=e.linesVisibleRangesForRange(new D(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!o||o.length===0)return null;const r=o[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===_t.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const f=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(f)}let h=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return(this._cursorStyle===_t.Underline||this._cursorStyle===_t.UnderlineThin)&&(h+=this._lineHeight-2,d=2),new Lw(h,a.left,l,d,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${dr} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Kc extends Wi{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new kw(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=ue(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new os,this._cursorFlatBlinkInterval=new vh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,o=e.ranges.length;n{this._isVisible?this._hide():this._show()},Kc.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},Kc.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case _t.Line:e+=" cursor-line-style";break;case _t.Block:e+=" cursor-block-style";break;case _t.Underline:e+=" cursor-underline-style";break;case _t.LineThin:e+=" cursor-line-thin-style";break;case _t.BlockOutline:e+=" cursor-block-outline-style";break;case _t.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=s.getColor(tk);if(t){let i=s.getColor(nM);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),s.type==="hc"&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const im=()=>{throw new Error("Invalid change accessor")};class RR extends Wi{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=ue(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=ue(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const o=Object.keys(this._zones);for(let r=0,a=o.length;r{const n={addZone:o=>(t=!0,this._addZone(i,o)),removeZone:o=>{!o||(t=this._removeZone(i,o)||t)},layoutZone:o=>{!o||(t=this._layoutZone(i,o)||t)}};AR(e,n),n.addZone=im,n.removeZone=im,n.layoutZone=im}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),o={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:ue(t.domNode),marginDomNode:t.marginDomNode?ue(t.marginDomNode):null};return this._safeCallOnComputedHeight(o.delegate,i.heightInPx),o.domNode.setPosition("absolute"),o.domNode.domNode.style.width="100%",o.domNode.setDisplay("none"),o.domNode.setAttribute("monaco-view-zone",o.whitespaceId),this.domNode.appendChild(o.domNode),o.marginDomNode&&(o.marginDomNode.setPosition("absolute"),o.marginDomNode.domNode.style.width="100%",o.marginDomNode.setDisplay("none"),o.marginDomNode.setAttribute("monaco-view-zone",o.whitespaceId),this.marginDomNode.appendChild(o.marginDomNode)),this._zones[o.whitespaceId]=o,this.setShouldRender(),o.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Ze(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Ze(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const o=Object.keys(this._zones);for(let r=0,a=o.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new z5(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new A(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(131);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(128)+" "+Iu(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=rL(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){VR(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!S0(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new FR(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new A5(this._context.viewLayout,i,this._viewLines);for(const o of e)o.prepareRender(n);for(const o of e)o.render(n),o.onDidRender()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new A(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?qf.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new xR(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(t===null){const n=e.position?e.position.position:null;n!==null&&(t=new D(n.lineNumber,n.column,n.lineNumber,n.column))}const i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function VR(s){try{return s()}catch(e){Ze(e)}}class Bu{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new pt(new D(1,1,1,1),0,new A(1,1),0),new pt(new D(1,1,1,1),0,new A(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new oe(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return ce.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,o,n,a);return i.equals(r)&&n.equals(a)&&o.equals(l)?t:new pt(D.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Bu._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),o=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new pt(n,o,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new pt(n,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new pt(n,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new A(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new A(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new D(n.lineNumber,n.column,o.lineNumber,o.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new pt(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class xw{constructor(e){this.context=e,this.cursors=[new Bu(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return uI(this.cursors,yg(e=>e.viewState.position,A.compare)).viewState.position}getBottomMostViewPosition(){return dI(this.cursors,yg(e=>e.viewState.position,A.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(oe.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let o=0;o=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,D.compareRangesUsingStarts));for(let i=0;id&&_.index--;e.splice(d,1),t.splice(h,1),this._removeSecondaryCursor(d-1),i--}}}}class Iw{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class WR{constructor(){this.changeType=1}}class In{constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new In(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new In(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class Ew{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class HR{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class zR{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class UR{constructor(){this.changeType=5}}class fr{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class iA{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class U0{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return e.kind!==0?this:new U0(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class $0{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return e.kind!==1?this:new $0(this.oldHasFocus,e.hasFocus)}}class j0{constructor(e,t,i,n,o,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}merge(e){return e.kind!==2?this:new j0(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Dw{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class Wu{constructor(e,t,i,n,o,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let o=0;o0){const e=this._cursors.getSelections();for(let t=0;ttl.MAX_CURSOR_COUNT&&(n=n.slice(0,tl.MAX_CURSOR_COUNT),o=!0);const r=uc.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,o,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=D.fromPositions(a[0],a[0]),e.emitViewEvent(new zd(t,i,l,c,n,o,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const n=oe.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,n)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const n=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,oe.fromModelSelections(n))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,oe.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const r=uc.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new qR(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,h)=>!c.modelState.equals(n.cursorState[h].modelState))){const c=n?n.cursorState.map(d=>d.modelState.selection):null,h=n?n.modelVersionId:0;e.emitOutgoingEvent(new Wu(c,a,h,r.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,h=o.text.length-r[2].length-1,d=o.text.lastIndexOf(c,h-1);if(d===-1)return null;t.push([d,h])}return t}executeEdits(e,t,i,n){let o=null;t==="snippet"&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(o)for(let d=0,u=o.length;d0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=uc.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Ze(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return Nw.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{t==="keyboard"&&(this._executeEditOperation(je.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let o=0;for(;o{const c=l.getPosition();return new ce(c.lineNumber,c.column+o,c.lineNumber,c.column+o)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(je.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))},e,r)}paste(e,t,i,n,o){this._executeEdit(()=>{this._executeEditOperation(je.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,o,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(xr.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new oi(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new oi(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}tl.MAX_CURSOR_COUNT=1e4;class uc{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new uc(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class sA{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const h=[];for(let f=0;ff.identifier.minor-m.identifier.minor,u=[];for(let f=0;f0?(h[f].sort(d),u[f]=t[f].computeCursorState(e.model,{getInverseEditOperations:()=>h[f],getTrackedSelection:m=>{const _=parseInt(m,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new ce(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new ce(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[f]=e.selectionsBefore[f];return u});a||(a=e.selectionsBefore);const l=[];for(let c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,h)=>h-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{D.isEmpty(d)&&u===""||n.push({identifier:{major:t,minor:o++},range:d,text:u,forceMoveMarkers:f,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const h={addEditOperation:r,addTrackedEditOperation:(d,u,f)=>{a=!0,r(d,u,f)},trackSelection:(d,u)=>{const f=ce.liftSelection(d);let m;if(f.isEmpty())if(typeof u=="boolean")u?m=2:m=3;else{const w=e.model.getLineMaxColumn(f.startLineNumber);f.startColumn===w?m=2:m=3}else m=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,f,m);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=f.getDirection(),_.toString()}};try{i.getEditOperations(e.model,h)}catch(d){return Ze(d),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-D.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;io.identifier.major?r=n.identifier.major:r=o.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class vk{constructor(e,t,i,n,o,r){this.id=e,this.label=t,this.alias=i,this._precondition=n,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}const kl={Configuration:"base.contributions.configuration"},nm={properties:{},patternProperties:{}},sm={properties:{},patternProperties:{}},om={properties:{},patternProperties:{}},rm={properties:{},patternProperties:{}},am={properties:{},patternProperties:{}},Qh={properties:{},patternProperties:{}},Fl="vscode://schemas/settings/resourceLanguage",Tw=xt.as(Hf.JSONContribution);class oA{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new M,this._onDidUpdateConfiguration=new M,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:p("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},Tw.registerSchema(Fl,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=this.doRegisterConfigurations(e,t);Tw.registerSchema(Fl,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;const i=[],n=[];for(const{overrides:o,source:r}of e)for(const a in o)if(i.push(a),qc.test(a)){const l=Object.assign(Object.assign({},((t=this.configurationDefaultsOverrides.get(a))===null||t===void 0?void 0:t.value)||{}),o[a]);this.configurationDefaultsOverrides.set(a,{source:r,value:l});const c={type:"object",default:l,description:p("defaultLanguageConfiguration.description","Configure settings to be overridden for {0} language.",a),$ref:Fl,defaultDefaultValue:l,source:Ln(r)?void 0:r};n.push(...yk(a)),this.configurationProperties[a]=c,this.defaultLanguageConfigurationOverridesNode.properties[a]=c}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.registerOverrideIdentifiers(n),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){const i=[];return e.forEach(n=>{i.push(...this.validateAndRegisterProperties(n,t,n.extensionInfo,n.restrictedProperties)),this.configurationContributors.push(n),this.registerJSONConfiguration(n)}),i}validateAndRegisterProperties(e,t=!0,i,n,o=3){o=Gi(e.scope)?o:e.scope;let r=[],a=e.properties;if(a)for(let c in a){if(t&&aA(c)){delete a[c];continue}const h=a[c];if(h.source=i,h.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,h),qc.test(c)?h.scope=void 0:(h.scope=Gi(h.scope)?o:h.scope,h.restricted=Gi(h.restricted)?!!(n!=null&&n.includes(c)):h.restricted),a[c].hasOwnProperty("included")&&!a[c].included){this.excludedConfigurationProperties[c]=a[c],delete a[c];continue}else this.configurationProperties[c]=a[c];!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),r.push(c)}let l=e.allOf;if(l)for(let c of l)r.push(...this.validateAndRegisterProperties(c,t,i,n,o));return r}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=i=>{let n=i.properties;if(n)for(const r in n)this.updateSchema(r,n[r]);let o=i.allOf;o&&o.forEach(t)};t(e)}updateSchema(e,t){switch(nm.properties[e]=t,t.scope){case 1:sm.properties[e]=t;break;case 2:om.properties[e]=t;break;case 6:rm.properties[e]=t;break;case 3:am.properties[e]=t;break;case 4:Qh.properties[e]=t;break;case 5:Qh.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Fl};this.updatePropertyDefaultValue(t,i),nm.properties[t]=i,sm.properties[t]=i,om.properties[t]=i,rm.properties[t]=i,am.properties[t]=i,Qh.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){const e={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Fl};nm.patternProperties[Vo]=e,sm.patternProperties[Vo]=e,om.patternProperties[Vo]=e,rm.patternProperties[Vo]=e,am.patternProperties[Vo]=e,Qh.patternProperties[Vo]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=i==null?void 0:i.value,o=i==null?void 0:i.source;vn(n)&&(n=t.defaultDefaultValue,o=void 0),vn(n)&&(n=rA(t.type)),t.default=n,t.defaultValueSource=o}}const Sk="\\[([^\\]]+)\\]",Mw=new RegExp(Sk,"g"),Vo=`^(${Sk})+$`,qc=new RegExp(Vo);function yk(s){const e=[];if(qc.test(s)){let t=Mw.exec(s);for(;t!=null&&t.length;){const i=t[1].trim();i&&e.push(i),t=Mw.exec(s)}}return wo(e)}function rA(s){switch(Array.isArray(s)?s[0]:s){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Lk=new oA;xt.add(kl.Configuration,Lk);function aA(s){return s.trim()?qc.test(s)?p("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",s):Lk.getConfigurationProperties()[s]!==void 0?p("config.property.duplicate","Cannot register '{0}'. This property is already registered.",s):null:p("config.property.empty","Cannot register an empty property")}const lA={ModesRegistry:"editor.modesRegistry"};class cA{constructor(){this._onDidChangeLanguages=new M,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0);xt.as(kl.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}]);globalThis&&globalThis.__awaiter;function dA(s,e,t,i,n,o,r){let a="
",l=i,c=0,h=!0;for(let d=0,u=e.getCount();d0;)r&&h?(m+=" ",h=!1):(m+=" ",h=!0),b--;break}case 60:m+="<",h=!1;break;case 62:m+=">",h=!1;break;case 38:m+="&",h=!1;break;case 0:m+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:m+="\uFFFD",h=!1;break;case 13:m+="​",h=!1;break;case 32:r&&h?(m+=" ",h=!1):(m+=" ",h=!0);break;default:m+=String.fromCharCode(_),h=!1}}if(a+=`${m}`,f>n||l>=n)break}return a+="
",a}class uA{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class fA{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}class Gc{constructor(e,t,i,n){this._instanceId=xy(++Gc.INSTANCE_COUNT),this._pendingChanges=new uA,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,o=o|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new fA(l,n,o,r,a)),l},changeOneWhitespace:(n,o,r)=>{t=!0,o=o|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:o,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const o=new Map;for(const l of t)o.set(l.id,l);const r=l=>{const c=[];for(const h of l)if(!n.has(h.id)){if(o.has(h.id)){const d=o.get(h.id);h.afterLineNumber=d.newAfterLineNumber,h.height=d.newHeight}c.push(h)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=Gc.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?t=this._lineHeight*(e-1):t=0;const i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+i+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,o=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;o=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,o=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,h;a===-1?(a=l,h=r+1,c=0):(h=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let d=o,u=d;const f=5e5;let m=0;o>=f&&(m=Math.floor(o/f)*f,m=Math.floor(m/i)*i,u-=m);const _=[],b=e+(t-e)/2;let w=-1;for(let k=n;k<=r;k++){if(w===-1){const x=d,L=d+i;(x<=b&&bb)&&(w=k)}for(d+=i,_[k-n]=u,u+=i;h===k;)u+=c,d+=c,a++,a>=l?h=r+1:(h=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(d>=t){r=k;break}}w===-1&&(w=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let v=n,S=r;return vt&&S--,{bigNumbersDelta:m,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:w,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(e>=n+o)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),o=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}Gc.INSTANCE_COUNT=0;const gA=125;class Gl{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class mA extends W{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new M),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Gl(0,0,0,0),this._scrollable=this._register(new Eh({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new U0(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class pA extends W{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(131),r=n.get(75);this._linesLayout=new Gc(t,n.get(59),r.top,r.bottom),this._scrollable=this._register(new mA(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Gl(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(103)?gA:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(59)&&this._linesLayout.setLineHeight(t.get(59)),e.hasChanged(75)){const i=t.get(75);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(131)){const i=t.get(131),n=i.contentWidth,o=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Gl(n,r.contentWidth,o,this._getContentHeight(n,o,a)))}else this._updateHeight();e.hasChanged(103)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(92);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(94)?o+=Math.max(0,t-n.get(59)-n.get(75).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Gl(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new PC(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new PC(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(132),n=t.get(44);if(i.isViewportWrapping){const o=t.get(131),r=t.get(65);return e>o.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+o.verticalScrollbarWidth:e}else{const o=t.get(93)*n.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+o,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Gl(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class _A{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,o=e.options;let r;if(o.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new A(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new A(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new D(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new Jy(r,o),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,su(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,o=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function wA(s,e){return kk(s,e.range,t=>t===2)}function kk(s,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=s.getLineTokens(i),o=i===e.startLineNumber,r=i===e.endLineNumber;let a=o?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}class Jh{constructor(e,t,i){this.range=e,this.nestingLevel=t,this.isInvalid=i}}class vA{constructor(e,t,i,n){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n}}class SA extends vA{constructor(e,t,i,n,o){super(e,t,i,n),this.minVisibleColumnIndentation=o}}class I_{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}I_.zero=new I_(0,0);function yA(s,e,t,i){return s!==t?Ke(t-s,i):Ke(0,i-e)}const Ps=0;function LA(s){return s===0}const _i=Math.pow(2,26);function Ke(s,e){return s*_i+e}function Co(s){const e=s,t=Math.floor(e/_i),i=e-t*_i;return new I_(t,i)}function kA(s){return Math.floor(s/_i)}function yt(s,e){return e<_i?s+e:s-s%_i+e}function xA(s,e){const t=s,i=e;if(i-t<=0)return Ps;const o=Math.floor(t/_i),r=Math.floor(i/_i),a=i-r*_i;if(o===r){const l=t-o*_i;return Ke(0,a-l)}else return Ke(r-o,a)}function Ud(s,e){return s=e}function td(s){return Ke(s.lineNumber-1,s.column-1)}function ir(s,e){const t=s,i=Math.floor(t/_i),n=t-i*_i,o=e,r=Math.floor(o/_i),a=o-r*_i;return new D(i+1,n+1,r+1,a+1)}function IA(s){const e=Ch(s);return Ke(e.length-1,e[e.length-1].length)}class Rw{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class EA{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>K0.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return xA(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Co(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const o=this.lineTokens,r=o.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=yA(e,t,this.lineIdx,this.lineCharOffset);return new no(n,0,-1,Je.getEmpty(),new na(n))}}class PA{constructor(e,t){this.text=e,this._offset=Ps,this.idx=0;const n=t.getRegExpStr()?new RegExp(t.getRegExpStr()+`| `,"g"):null,o=[];let r,a=0,l=0,c=0,h=0;const d=new Array;for(let m=0;m<60;m++)d.push(new no(Ke(0,m),0,-1,Je.getEmpty(),new na(Ke(0,m))));const u=new Array;for(let m=0;m<60;m++)u.push(new no(Ke(1,m),0,-1,Je.getEmpty(),new na(Ke(1,m))));if(n)for(n.lastIndex=0;(r=n.exec(e))!==null;){const m=r.index,_=r[0];if(_===` -`)a++,l=m+1;else{if(c!==m){let b;if(h===a){const w=m-c;if(wBA(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"g"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e)}findClosingTokenText(e){for(const[t,i]of this.map)if(i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function BA(s){const e=Qn(s);return/^[\w ]+$/.test(s)?`\\b${e}\\b`:e}class VA{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){const t=this.languageIdToBracketTokens.get(e);if(!t)return!1;const i=Uu.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider).getRegExpStr();return t.getRegExpStr()!==i}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=Uu.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function WA(s){if(s.length===0)return null;if(s.length===1)return s[0];let e=0;function t(){if(e>=s.length)return null;const r=e,a=s[r].listHeight;for(e++;e=2?xk(r===0&&e===s.length?s:s.slice(r,e),!1):s[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())Ow(i,n)<=Ow(n,r)?(i=lm(i,n),n=r):n=lm(n,r);return lm(i,n)}function xk(s,e=!1){if(s.length===0)return null;if(s.length===1)return s[0];let t=s.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?s[2]:null,e)}function Ow(s,e){return Math.abs(s.listHeight-e.listHeight)}function lm(s,e){return s.listHeight===e.listHeight?ts.create23(s,e,null,!1):s.listHeight>e.listHeight?HA(s,e):zA(e,s)}function HA(s,e){s=s.toMutable();let t=s;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let o=i.length-1;o>=0;o--){const r=i[o];n?r.childrenLength>=3?n=ts.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?ts.create23(s,n,null,!1):s}function zA(s,e){s=s.toMutable();let t=s;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let o=i.length-1;o>=0;o--){const r=i[o];n?r.childrenLength>=3?n=ts.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?ts.create23(n,s,null,!1):s}class UA{constructor(e){this.lastOffset=Ps,this.nextNodes=[e],this.offsets=[Ps],this.idxs=[]}readLongestNodeAt(e,t){if(Ud(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Bl(this.nextNodes);if(!i)return;const n=Bl(this.offsets);if(Ud(e,n))return;if(Ud(n,e))if(yt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const o=cm(i);o!==-1?(this.nextNodes.push(i.getChild(o)),this.offsets.push(n),this.idxs.push(o)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const o=cm(i);if(o===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(o)),this.offsets.push(n),this.idxs.push(o)}}}}nextNodeAfterCurrent(){for(;;){const e=Bl(this.offsets),t=Bl(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Bl(this.nextNodes),n=cm(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(yt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function cm(s,e=-1){for(;;){if(e++,e>=s.childrenLength)return-1;if(s.getChild(e))return e}}function Bl(s){return s.length>0?s[s.length-1]:void 0}function Pw(s,e,t,i){return new $A(s,e,t,i).parseDocument()}class $A{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new UA(i):void 0,this.positionMapper=new DA(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Je.getEmpty());return e||(e=ts.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const o=this.parseChild(e);o.kind===4&&o.childrenLength===0||t.push(o)}return this.oldNodeReader?WA(t):xk(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!kA(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),o=>Ud(o.length,i)?o.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new AA(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),o=this.tokenizer.peek();return o&&o.kind===2&&(o.bracketId===t.bracketId||o.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),Zc.create(t.astNode,n,o.astNode)):Zc.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class jA extends W{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new M,this.denseKeyProvider=new NA,this.brackets=new VA(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new FA(this.textModel.getValue(),i);this.initialAstWithoutTokens=Pw(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new Rw(Ke(i.fromLineNumber-1,0),Ke(i.toLineNumber,0),Ke(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=D.lift(i.range);return new Rw(td(n.getStartPosition()),td(n.getEndPosition()),EA(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,o=new OA(this.textModel,this.brackets);return Pw(o,e,n,i)}getBracketsInRange(e){const t=Ke(e.startLineNumber-1,e.startColumn-1),i=Ke(e.endLineNumber-1,e.endColumn-1),n=new Array,o=this.initialAstWithoutTokens||this.astWithTokens;return E_(o,Ps,o.length,t,i,n),n}getBracketPairsInRange(e,t){const i=new Array,n=td(e.getStartPosition()),o=td(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new KA(i,t,this.textModel);return Ik(r,Ps,r.length,n,o,a),i}}function E_(s,e,t,i,n,o,r=0){if(s.kind===4)for(const a of s.children)t=yt(e,a.length),tr(e,n)&&ed(t,i)&&E_(a,e,t,i,n,o,r),e=t;else if(s.kind===2){r++;{const a=s.openingBracket;if(t=yt(e,a.length),tr(e,n)&&ed(t,i)){const l=ir(e,t);o.push(new Jh(l,r-1,!s.closingBracket))}e=t}if(s.child){const a=s.child;t=yt(e,a.length),tr(e,n)&&ed(t,i)&&E_(a,e,t,i,n,o,r),e=t}if(s.closingBracket){const a=s.closingBracket;if(t=yt(e,a.length),tr(e,n)&&ed(t,i)){const l=ir(e,t);o.push(new Jh(l,r-1,!1))}e=t}}else if(s.kind===3){const a=ir(e,t);o.push(new Jh(a,r-1,!0))}else if(s.kind===1){const a=ir(e,t);o.push(new Jh(a,r-1,!1))}}class KA{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function Ik(s,e,t,i,n,o,r=0){var a;if(s.kind===2){const c=yt(e,s.openingBracket.length);let h=-1;o.includeMinIndentation&&(h=s.computeMinIndentation(e,o.textModel)),o.result.push(new yA(ir(e,t),ir(e,c),s.closingBracket?ir(yt(c,((a=s.child)===null||a===void 0?void 0:a.length)||Ps),t):void 0,r,h)),r++}let l=e;for(const c of s.children){const h=l;l=yt(l,c.length),tr(h,n)&&tr(i,l)&&Ik(c,h,l,i,n,o,r)}}class qA extends W{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new ly),this.onDidChangeEmitter=new M,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get isDocumentSupported(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.isDocumentSupported){if(!this.bracketPairsTree.value){const e=new se;this.bracketPairsTree.value=GA(e.add(new jA(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=e.toLowerCase(),o=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(o.lineNumber,o.column),a=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!a)return null;const l=a.textIsBracket[n];return l?id(this._findMatchingBracketUp(l,o,hm(i))):null}matchBracket(e,t){const i=hm(t);return this._matchBracket(this.textModel.validatePosition(e),i)}_establishBracketSearchOffsets(e,t,i,n){const o=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const h=t.getEndOffset(c);if(h<=a)break;if(On(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=h;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(On(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=h;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.getLineTokens(i),o=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!On(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),h=null;for(;;){const d=Ui.findNextBracketInRange(a.forwardRegex,i,o,l,c);if(!d)break;if(d.startColumn<=e.column&&e.column<=d.endColumn){const u=o.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),f=this._matchFoundBracket(d,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(f){if(f instanceof vs)return null;h=f}}l=d.endColumn-1}if(h)return h}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!On(n.getStandardTokenType(l))){const{searchStartOffset:h,searchEndOffset:d}=this._establishBracketSearchOffsets(e,n,c,l),u=Ui.findPrevBracketInRange(c.reversedRegex,i,o,h,d);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const f=o.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),m=this._matchFoundBracket(u,c.textIsBracket[f],c.textIsOpenBracket[f],t);if(m)return m instanceof vs?null:m}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof vs?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let r=-1,a=0;const l=(c,h,d,u)=>{for(;;){if(i&&++a%100===0&&!i())return vs.INSTANCE;const f=Ui.findPrevBracketInRange(o,c,h,d,u);if(!f)break;const m=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(m)?r++:e.isClose(m)&&r--,r===0)return f;u=f.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const h=this.textModel.getLineTokens(c),d=h.getCount(),u=this.textModel.getLineContent(c);let f=d-1,m=u.length,_=u.length;c===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),m=t.column-1,_=t.column-1);let b=!0;for(;f>=0;f--){const w=h.getLanguageId(f)===n&&!On(h.getStandardTokenType(f));if(w)b?m=h.getStartOffset(f):(m=h.getStartOffset(f),_=h.getEndOffset(f));else if(b&&m!==_){const C=l(c,u,m,_);if(C)return C}b=w}if(b&&m!==_){const w=l(c,u,m,_);if(w)return w}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let r=1,a=0;const l=(h,d,u,f)=>{for(;;){if(i&&++a%100===0&&!i())return vs.INSTANCE;const m=Ui.findNextBracketInRange(o,h,d,u,f);if(!m)break;const _=d.substring(m.startColumn-1,m.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return m;u=m.endColumn-1}return null},c=this.textModel.getLineCount();for(let h=t.lineNumber;h<=c;h++){const d=this.textModel.getLineTokens(h),u=d.getCount(),f=this.textModel.getLineContent(h);let m=0,_=0,b=0;h===t.lineNumber&&(m=d.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let w=!0;for(;m=1;o--){const r=this.textModel.getLineTokens(o),a=r.getCount(),l=this.textModel.getLineContent(o);let c=a-1,h=l.length,d=l.length;if(o===t.lineNumber){c=r.findTokenIndexAtOffset(t.column-1),h=t.column-1,d=t.column-1;const f=r.getLanguageId(c);i!==f&&(i=f,n=this.languageConfigurationService.getLanguageConfiguration(i).brackets)}let u=!0;for(;c>=0;c--){const f=r.getLanguageId(c);if(i!==f){if(n&&u&&h!==d){const _=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(_)return this._toFoundBracket(n,_);u=!1}i=f,n=this.languageConfigurationService.getLanguageConfiguration(i).brackets}const m=!!n&&!On(r.getStandardTokenType(c));if(m)u?h=r.getStartOffset(c):(h=r.getStartOffset(c),d=r.getEndOffset(c));else if(n&&u&&h!==d){const _=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(_)return this._toFoundBracket(n,_)}u=m}if(n&&u&&h!==d){const f=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(f)return this._toFoundBracket(n,f)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e),i=this.textModel.getLineCount();let n=null,o=null;for(let r=t.lineNumber;r<=i;r++){const a=this.textModel.getLineTokens(r),l=a.getCount(),c=this.textModel.getLineContent(r);let h=0,d=0,u=0;if(r===t.lineNumber){h=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,u=t.column-1;const m=a.getLanguageId(h);n!==m&&(n=m,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets)}let f=!0;for(;h{if(!r.has(f)){const _=[];for(let b=0,w=m?m.brackets.length:0;b{for(;;){if(i&&++c%100===0&&!i())return vs.INSTANCE;const C=Ui.findNextBracketInRange(f.forwardRegex,m,_,b,w);if(!C)break;const v=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=f.textIsBracket[v];if(S&&(S.isOpen(v)?a[S.index]++:S.isClose(v)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,i);b=C.endColumn-1}return null};let d=null,u=null;for(let f=n.lineNumber;f<=o;f++){const m=this.textModel.getLineTokens(f),_=m.getCount(),b=this.textModel.getLineContent(f);let w=0,C=0,v=0;if(f===n.lineNumber){w=m.findTokenIndexAtOffset(n.column-1),C=n.column-1,v=n.column-1;const k=m.getLanguageId(w);d!==k&&(d=k,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,u))}let S=!0;for(;w<_;w++){const k=m.getLanguageId(w);if(d!==k){if(u&&S&&C!==v){const L=h(u,f,b,C,v);if(L)return id(L);S=!1}d=k,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,u)}const x=!!u&&!On(m.getStandardTokenType(w));if(x)S||(C=m.getStartOffset(w)),v=m.getEndOffset(w);else if(u&&S&&C!==v){const L=h(u,f,b,C,v);if(L)return id(L)}S=x}if(u&&S&&C!==v){const k=h(u,f,b,C,v);if(k)return id(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.textIsBracket[i];return n?{range:t,open:n.open,close:n.close,isOpen:e.textIsOpenBracket[i]}:null}}function GA(s,e){return{object:s,dispose:()=>e==null?void 0:e.dispose()}}function hm(s){if(typeof s=="undefined")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=s}}class vs{constructor(){this._searchCanceledBrand=void 0}}vs.INSTANCE=new vs;function id(s){return s instanceof vs?null:s}class ZA extends W{constructor(e){super(),this.textModel=e,this.colorProvider=new Ek,this.onDidChangeEmitter=new M,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,o=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of o)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new D(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Ek{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}ni((s,e)=>{const t=[nk,sk,ok,rk,ak,lk],i=new Ek;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${s.getColor(mM)}; }`);const n=t.map(o=>s.getColor(o)).filter(o=>!!o).filter(o=>!o.isTransparent());for(let o=0;o<30;o++){const r=n[o%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(o)} { color: ${r}; }`)}});function nd(s){return s.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class wt{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${nd(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${nd(this.oldText)}")`:`(replace@${this.oldPosition} "${nd(this.oldText)}" with "${nd(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;un(e,n,i),i+=4;for(let o=0;os.length)return!1;if(t){if(!e0(s,e))return!1;if(e.length===s.length)return!0;let o=e.length;return e.charAt(e.length-1)===i&&o--,s.charAt(o)===i}return e.charAt(e.length-1)!==i&&(e+=i),s.indexOf(e)===0}function QA(s){return s>=65&&s<=90||s>=97&&s<=122}function hs(s){return lu(s,!0)}class Z0{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Wp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Ce.file)return D_(hs(e),hs(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(Bw(e.authority,t.authority))return D_(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return we.joinPath(e,...t)}basenameOrAuthority(e){return Nk(e)||e.authority}basename(e){return tt.basename(e.path)}extname(e){return tt.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Ce.file?t=we.file(xE(hs(e))).path:(t=tt.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Ce.file?t=we.file(fy(hs(e))).path:t=tt.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Bw(e.authority,t.authority))return;if(e.scheme===Ce.file){const o=kE(hs(e),hs(t));return li?Dk(o):o}let i=e.path||"/",n=t.path||"/";if(this._ignorePathCasing(e)){let o=0;for(const r=Math.min(i.length,n.length);oFw(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=rr){return Vw(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=rr){let i=!1;if(e.scheme===Ce.file){const n=hs(e);i=n!==void 0&&n.length===Fw(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!Vw(e,t)?e.with({path:e.path+"/"}):e}}const Re=new Z0(()=>!1);new Z0(s=>s.scheme===Ce.file?!qt:!0);new Z0(s=>!0);Re.isEqual.bind(Re);Re.isEqualOrParent.bind(Re);Re.getComparisonKey.bind(Re);Re.basenameOrAuthority.bind(Re);const Nk=Re.basename.bind(Re);Re.extname.bind(Re);Re.dirname.bind(Re);Re.joinPath.bind(Re);const JA=Re.normalizePath.bind(Re);Re.relativePath.bind(Re);Re.resolvePath.bind(Re);Re.isAbsolutePath.bind(Re);const Bw=Re.isEqualAuthority.bind(Re),Vw=Re.hasTrailingPathSeparator.bind(Re);Re.removeTrailingPathSeparator.bind(Re);Re.addTrailingPathSeparator.bind(Re);var $u;(function(s){s.META_DATA_LABEL="label",s.META_DATA_DESCRIPTION="description",s.META_DATA_SIZE="size",s.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const o=t.path.substring(0,t.path.indexOf(";"));return o&&i.set(s.META_DATA_MIME,o),i}s.parseMetaData=e})($u||($u={}));function Qr(s){return s.toString()}class ht{constructor(e,t,i,n,o,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=N_(e);return new ht(i,i,n,n,t,t,[])}append(e,t,i,n,o){t.length>0&&(this.changes=YA(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(un(e,t?t.length:0,i),i+=4,t)for(const n of t)un(e,n.selectionStartLineNumber,i),i+=4,un(e,n.selectionStartColumn,i),i+=4,un(e,n.positionLineNumber,i),i+=4,un(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=dn(e,t);t+=4;for(let o=0;ot.toString()).join(", ")}matchesResource(e){return(we.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof ht}append(e,t,i,n,o){this._data instanceof ht&&this._data.append(e,t,i,n,o)}close(){this._data instanceof ht&&(this._data=this._data.serialize())}open(){this._data instanceof ht||(this._data=ht.deserialize(this._data))}undo(){if(we.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof ht&&(this._data=this._data.serialize());const e=ht.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(we.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof ht&&(this._data=this._data.serialize());const e=ht.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof ht&&(this._data=this._data.serialize()),this._data.byteLength+168}}class e7{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const n=Qr(i.resource);this._editStackElementsMap.set(n,i)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Qr(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Qr(we.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Qr(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,o){const r=Qr(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Qr(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${Nk(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function N_(s){return s.getEOL()===` -`?0:1}function Ss(s){return s?s instanceof Tk||s instanceof e7:!1}class Y0{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Ss(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Ss(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(Ss(t)&&t.canAppend(this._model))return t;const i=new Tk(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],N_(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),r=Y0._computeCursorState(i,o),a=o.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),N_(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Ze(i),null}}}class t7{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function i7(s,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let o;for(o=0;o0&&a>0||l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(r-l);if(h===0){n.spacesDiff=d,d>0&&0<=l-1&&l-10?n++:S>1&&o++,i7(r,a,b,v,d),d.looksLikeAlignment&&!(t&&e===d.spacesDiff)))continue;const x=d.spacesDiff;x<=c&&h[x]++,r=b,a=v}let u=t;n!==o&&(u=n{const b=h[_];b>m&&(m=b,f=_)}),f===4&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(f=2)}return{insertSpaces:u,tabSize:f}}function Zt(s){return(s.metadata&1)>>>0}function Le(s,e){s.metadata=s.metadata&254|e<<0}function Lt(s){return(s.metadata&2)>>>1===1}function ye(s,e){s.metadata=s.metadata&253|(e?1:0)<<1}function Mk(s){return(s.metadata&4)>>>2===1}function Hw(s,e){s.metadata=s.metadata&251|(e?1:0)<<2}function n7(s){return(s.metadata&24)>>>3}function zw(s,e){s.metadata=s.metadata&231|e<<3}function s7(s){return(s.metadata&32)>>>5===1}function Uw(s,e){s.metadata=s.metadata&223|(e?1:0)<<5}class Rk{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Le(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,Hw(this,!1),zw(this,1),Uw(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ye(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;Hw(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),zw(this,this.options.stickiness),Uw(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const te=new Rk(null,0,0);te.parent=te;te.left=te;te.right=te;Le(te,0);class dm{constructor(){this.root=te,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o){return this.root===te?[]:u7(this,e,t,i,n,o)}search(e,t,i){return this.root===te?[]:d7(this,e,t,i)}collectNodesFromOwner(e){return c7(this,e)}collectNodesPostOrder(){return h7(this)}insert(e){$w(this,e),this._normalizeDeltaIfNecessary()}delete(e){jw(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,r=i.end+n;i.setCachedOffsets(o,r,t)}acceptReplace(e,t,i,n){const o=a7(this,e,e+t);for(let r=0,a=o.length;rt||i===1?!1:i===2?!0:e}function r7(s,e,t,i,n){const o=n7(s),r=o===0||o===2,a=o===1||o===2,l=t-e,c=i,h=Math.min(l,c),d=s.start;let u=!1;const f=s.end;let m=!1;e<=d&&f<=t&&s7(s)&&(s.start=e,u=!0,s.end=e,m=!0);{const b=n?1:l>0?2:0;!u&&Jr(d,r,e,b)&&(u=!0),!m&&Jr(f,a,e,b)&&(m=!0)}if(h>0&&!n){const b=l>c?2:0;!u&&Jr(d,r,e+h,b)&&(u=!0),!m&&Jr(f,a,e+h,b)&&(m=!0)}{const b=n?1:0;!u&&Jr(d,r,t,b)&&(s.start=e+c,u=!0),!m&&Jr(f,a,t,b)&&(s.end=e+c,m=!0)}const _=c-l;u||(s.start=Math.max(0,d+_)),m||(s.end=Math.max(0,f+_)),s.start>s.end&&(s.end=s.start)}function a7(s,e,t){let i=s.root,n=0,o=0,r=0,a=0;const l=[];let c=0;for(;i!==te;){if(Lt(i)){ye(i.left,!1),ye(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Lt(i.left)){if(o=n+i.maxEnd,ot){ye(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),ye(i,!0),i.right!==te&&!Lt(i.right)){n+=i.delta,i=i.right;continue}}return ye(s.root,!1),l}function l7(s,e,t,i){let n=s.root,o=0,r=0,a=0;const l=i-(t-e);for(;n!==te;){if(Lt(n)){ye(n.left,!1),ye(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),Lo(n),n=n.parent;continue}if(!Lt(n.left)){if(r=o+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(s.requestNormalizeDelta=!0),ye(n,!0);continue}if(ye(n,!0),n.right!==te&&!Lt(n.right)){o+=n.delta,n=n.right;continue}}ye(s.root,!1)}function c7(s,e){let t=s.root;const i=[];let n=0;for(;t!==te;){if(Lt(t)){ye(t.left,!1),ye(t.right,!1),t=t.parent;continue}if(t.left!==te&&!Lt(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),ye(t,!0),t.right!==te&&!Lt(t.right)){t=t.right;continue}}return ye(s.root,!1),i}function h7(s){let e=s.root;const t=[];let i=0;for(;e!==te;){if(Lt(e)){ye(e.left,!1),ye(e.right,!1),e=e.parent;continue}if(e.left!==te&&!Lt(e.left)){e=e.left;continue}if(e.right!==te&&!Lt(e.right)){e=e.right;continue}t[i++]=e,ye(e,!0)}return ye(s.root,!1),t}function d7(s,e,t,i){let n=s.root,o=0,r=0,a=0;const l=[];let c=0;for(;n!==te;){if(Lt(n)){ye(n.left,!1),ye(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;continue}if(n.left!==te&&!Lt(n.left)){n=n.left;continue}r=o+n.start,a=o+n.end,n.setCachedOffsets(r,a,i);let h=!0;if(e&&n.ownerId&&n.ownerId!==e&&(h=!1),t&&Mk(n)&&(h=!1),h&&(l[c++]=n),ye(n,!0),n.right!==te&&!Lt(n.right)){o+=n.delta,n=n.right;continue}}return ye(s.root,!1),l}function u7(s,e,t,i,n,o){let r=s.root,a=0,l=0,c=0,h=0;const d=[];let u=0;for(;r!==te;){if(Lt(r)){ye(r.left,!1),ye(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Lt(r.left)){if(l=a+r.maxEnd,lt){ye(r,!0);continue}if(h=a+r.end,h>=e){r.setCachedOffsets(c,h,o);let f=!0;i&&r.ownerId&&r.ownerId!==i&&(f=!1),n&&Mk(r)&&(f=!1),f&&(d[u++]=r)}if(ye(r,!0),r.right!==te&&!Lt(r.right)){a+=r.delta,r=r.right;continue}}return ye(s.root,!1),d}function $w(s,e){if(s.root===te)return e.parent=te,e.left=te,e.right=te,Le(e,0),s.root=e,s.root;f7(s,e),Zs(e.parent);let t=e;for(;t!==s.root&&Zt(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Zt(i)===1?(Le(t.parent,0),Le(i,0),Le(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,fc(s,t)),Le(t.parent,0),Le(t.parent.parent,1),gc(s,t.parent.parent))}else{const i=t.parent.parent.left;Zt(i)===1?(Le(t.parent,0),Le(i,0),Le(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,gc(s,t)),Le(t.parent,0),Le(t.parent.parent,1),fc(s,t.parent.parent))}return Le(s.root,0),e}function f7(s,e){let t=0,i=s.root;const n=e.start,o=e.end;for(;;)if(m7(n,o,i.start+t,i.end+t)<0)if(i.left===te){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===te){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=te,e.right=te,Le(e,1)}function jw(s,e){let t,i;if(e.left===te?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===te?(t=e.left,i=e):(i=g7(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(s.requestNormalizeDelta=!0)),i===s.root){s.root=t,Le(t,0),e.detach(),um(),Lo(t),s.root.parent=te;return}const n=Zt(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Le(i,Zt(e)),e===s.root?s.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==te&&(i.left.parent=i),i.right!==te&&(i.right.parent=i)),e.detach(),n){Zs(t.parent),i!==e&&(Zs(i),Zs(i.parent)),um();return}Zs(t),Zs(t.parent),i!==e&&(Zs(i),Zs(i.parent));let o;for(;t!==s.root&&Zt(t)===0;)t===t.parent.left?(o=t.parent.right,Zt(o)===1&&(Le(o,0),Le(t.parent,1),fc(s,t.parent),o=t.parent.right),Zt(o.left)===0&&Zt(o.right)===0?(Le(o,1),t=t.parent):(Zt(o.right)===0&&(Le(o.left,0),Le(o,1),gc(s,o),o=t.parent.right),Le(o,Zt(t.parent)),Le(t.parent,0),Le(o.right,0),fc(s,t.parent),t=s.root)):(o=t.parent.left,Zt(o)===1&&(Le(o,0),Le(t.parent,1),gc(s,t.parent),o=t.parent.left),Zt(o.left)===0&&Zt(o.right)===0?(Le(o,1),t=t.parent):(Zt(o.left)===0&&(Le(o.right,0),Le(o,1),fc(s,o),o=t.parent.left),Le(o,Zt(t.parent)),Le(t.parent,0),Le(o.left,0),gc(s,t.parent),t=s.root));Le(t,0),um()}function g7(s){for(;s.left!==te;)s=s.left;return s}function um(){te.parent=te,te.delta=0,te.start=0,te.end=0}function fc(s,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==te&&(t.left.parent=e),t.parent=e.parent,e.parent===te?s.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,Lo(e),Lo(t)}function gc(s,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(s.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==te&&(t.right.parent=e),t.parent=e.parent,e.parent===te?s.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,Lo(e),Lo(t)}function Ak(s){let e=s.end;if(s.left!==te){const t=s.left.maxEnd;t>e&&(e=t)}if(s.right!==te){const t=s.right.maxEnd+s.delta;t>e&&(e=t)}return e}function Lo(s){s.maxEnd=Ak(s)}function Zs(s){for(;s!==te;){const e=Ak(s);if(s.maxEnd===e)return;s.maxEnd=e,s=s.parent}}function m7(s,e,t,i){return s===t?e-i:s-t}class T_{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Z)return X0(this.right);let e=this;for(;e.parent!==Z&&e.parent.left!==e;)e=e.parent;return e.parent===Z?Z:e.parent}prev(){if(this.left!==Z)return Ok(this.left);let e=this;for(;e.parent!==Z&&e.parent.right!==e;)e=e.parent;return e.parent===Z?Z:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Z=new T_(null,0);Z.parent=Z;Z.left=Z;Z.right=Z;Z.color=0;function X0(s){for(;s.left!==Z;)s=s.left;return s}function Ok(s){for(;s.right!==Z;)s=s.right;return s}function Q0(s){return s===Z?0:s.size_left+s.piece.length+Q0(s.right)}function J0(s){return s===Z?0:s.lf_left+s.piece.lineFeedCnt+J0(s.right)}function fm(){Z.parent=Z}function mc(s,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Z&&(t.left.parent=e),t.parent=e.parent,e.parent===Z?s.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function pc(s,e){const t=e.left;e.left=t.right,t.right!==Z&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Z?s.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function sd(s,e){let t,i;if(e.left===Z?(i=e,t=i.right):e.right===Z?(i=e,t=i.left):(i=X0(e.right),t=i.right),i===s.root){s.root=t,t.color=0,e.detach(),fm(),s.root.parent=Z;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zl(s,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zl(s,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===s.root?s.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Z&&(i.left.parent=i),i.right!==Z&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zl(s,i)),e.detach(),t.parent.left===t){const r=Q0(t),a=J0(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ms(s,t.parent,l,c)}}if(Zl(s,t.parent),n){fm();return}let o;for(;t!==s.root&&t.color===0;)t===t.parent.left?(o=t.parent.right,o.color===1&&(o.color=0,t.parent.color=1,mc(s,t.parent),o=t.parent.right),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.right.color===0&&(o.left.color=0,o.color=1,pc(s,o),o=t.parent.right),o.color=t.parent.color,t.parent.color=0,o.right.color=0,mc(s,t.parent),t=s.root)):(o=t.parent.left,o.color===1&&(o.color=0,t.parent.color=1,pc(s,t.parent),o=t.parent.left),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.left.color===0&&(o.right.color=0,o.color=1,mc(s,o),o=t.parent.left),o.color=t.parent.color,t.parent.color=0,o.left.color=0,pc(s,t.parent),t=s.root));t.color=0,fm()}function Kw(s,e){for(Zl(s,e);e!==s.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,mc(s,e)),e.parent.color=0,e.parent.parent.color=1,pc(s,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,pc(s,e)),e.parent.color=0,e.parent.parent.color=1,mc(s,e.parent.parent))}s.root.color=0}function ms(s,e,t,i){for(;e!==s.root&&e!==Z;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zl(s,e){let t=0,i=0;if(e!==s.root){for(;e!==s.root&&e===e.parent.right;)e=e.parent;if(e!==s.root)for(e=e.parent,t=Q0(e.left)-e.size_left,i=J0(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==s.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ds=65535;function Pk(s){let e;return s[s.length-1]<65536?e=new Uint16Array(s.length):e=new Uint32Array(s.length),e.set(s,0),e}class p7{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function _s(s,e=!0){const t=[0];let i=1;for(let n=0,o=s.length;n126)&&(r=!1)}const a=new p7(Pk(s),i,n,o,r);return s.length=0,a}class si{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class Go{constructor(e,t){this.buffer=e,this.lineStarts=t}}class b7{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Z&&e.iterate(e.root,i=>(i!==Z&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class C7{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const o of i)o!==null&&n.push(o);this._cache=n}}}class w7{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Go("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Z,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let o=0,r=e.length;o0){e[o].lineStarts||(e[o].lineStarts=_s(e[o].buffer));const a=new si(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),n=this.rbInsertRight(n,a)}this._searchCache=new C7(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ds,i=t-Math.floor(t/3),n=i*2;let o="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),h=c.length;if(r<=i||r+h0){const l=o.replace(/\r\n|\r|\n/g,e);a.push(new Go(l,_s(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new b7(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Z;)if(n.left!==Z&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+=this.getAccumulatedValue(n,e-n.lf_left-2)+t-1;e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Z;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,o.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new A(i+1,a+1)}return new A(i+1,o.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Z){const o=this.getOffsetAt(i+1,1),r=n-e-o;return new A(i+1,r+1)}else t=t.right;return new A(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?o.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==Z;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,o=>{if(o===Z)return!0;const r=o.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,h=r.start.line,d=r.end.line;let u=c[h]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(h===d)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[h+1]-this._EOLLength)):l.substring(u,c[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let f=h+1;fS+m,t.reset(0)):(C=u.buffer,v=S=>S,t.reset(m));do if(b=t.next(C),b){if(v(b.index)>=_)return h;this.positionInBuffer(e,v(b.index)-f,w);const S=this.getLineFeedCnt(e.piece.bufferIndex,o,w),k=w.line===o.line?w.column-o.column+n:w.column+1,x=k+b[0].length;if(d[h++]=Uo(new D(i+S,k,i+S,x),b,l),v(b.index)+b[0].length>=_||h>=c)return h}while(b);return h}findMatchesLineByLine(e,t,i,n){const o=[];let r=0;const a=new ca(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let h=this.positionInBuffer(l.node,l.remainder);const d=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,h,d,t,i,n,r,o),o;let u=e.startLineNumber,f=l.node;for(;f!==c.node;){const _=this.getLineFeedCnt(f.piece.bufferIndex,h,f.piece.end);if(_>=1){const w=this._buffers[f.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(f.piece.bufferIndex,f.piece.start),v=w[h.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(f,a,u,S,h,this.positionInBuffer(f,v-C),t,i,n,r,o),r>=n)return o;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const w=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,w,e.endLineNumber,b,r,o,i,n),o}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,o,i,n),r>=n)return o;u++,l=this.nodeAt2(u,1),f=l.node,h=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,o,i,n),o}const m=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,m,h,d,t,i,n,r,o),o}_findMatchesInLine(e,t,i,n,o,r,a,l,c){const h=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,f=u.length,m=i.length;let _=-f;for(;(_=i.indexOf(u,_+f))!==-1;)if((!h||p0(h,i,m,_,f))&&(a[r++]=new Nc(new D(n,_+1+o,n,_+1+f+o),null),r>=c))return r;return r}let d;t.reset(0);do if(d=t.next(i),d&&(a[r++]=Uo(new D(n,d.index+1+o,n,d.index+1+d[0].length+o),d,l),r>=c))return r;while(d);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Z){const{node:n,remainder:o,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,o);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const h=[];let d=new si(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,o)===10){const _={line:d.start.line+1,column:0};d=new si(d.bufferIndex,_,d.end,this.getLineFeedCnt(d.bufferIndex,_,d.end),d.length-1),t+=` +`)a++,l=m+1;else{if(c!==m){let b;if(h===a){const w=m-c;if(wFA(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"g"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e)}findClosingTokenText(e){for(const[t,i]of this.map)if(i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function FA(s){const e=Qn(s);return/^[\w ]+$/.test(s)?`\\b${e}\\b`:e}class BA{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){const t=this.languageIdToBracketTokens.get(e);if(!t)return!1;const i=Uu.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider).getRegExpStr();return t.getRegExpStr()!==i}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=Uu.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function VA(s){if(s.length===0)return null;if(s.length===1)return s[0];let e=0;function t(){if(e>=s.length)return null;const r=e,a=s[r].listHeight;for(e++;e=2?xk(r===0&&e===s.length?s:s.slice(r,e),!1):s[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())Ow(i,n)<=Ow(n,r)?(i=lm(i,n),n=r):n=lm(n,r);return lm(i,n)}function xk(s,e=!1){if(s.length===0)return null;if(s.length===1)return s[0];let t=s.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?s[2]:null,e)}function Ow(s,e){return Math.abs(s.listHeight-e.listHeight)}function lm(s,e){return s.listHeight===e.listHeight?ts.create23(s,e,null,!1):s.listHeight>e.listHeight?WA(s,e):HA(e,s)}function WA(s,e){s=s.toMutable();let t=s;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let o=i.length-1;o>=0;o--){const r=i[o];n?r.childrenLength>=3?n=ts.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?ts.create23(s,n,null,!1):s}function HA(s,e){s=s.toMutable();let t=s;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let o=i.length-1;o>=0;o--){const r=i[o];n?r.childrenLength>=3?n=ts.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?ts.create23(n,s,null,!1):s}class zA{constructor(e){this.lastOffset=Ps,this.nextNodes=[e],this.offsets=[Ps],this.idxs=[]}readLongestNodeAt(e,t){if(Ud(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Bl(this.nextNodes);if(!i)return;const n=Bl(this.offsets);if(Ud(e,n))return;if(Ud(n,e))if(yt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const o=cm(i);o!==-1?(this.nextNodes.push(i.getChild(o)),this.offsets.push(n),this.idxs.push(o)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const o=cm(i);if(o===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(o)),this.offsets.push(n),this.idxs.push(o)}}}}nextNodeAfterCurrent(){for(;;){const e=Bl(this.offsets),t=Bl(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Bl(this.nextNodes),n=cm(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(yt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function cm(s,e=-1){for(;;){if(e++,e>=s.childrenLength)return-1;if(s.getChild(e))return e}}function Bl(s){return s.length>0?s[s.length-1]:void 0}function Pw(s,e,t,i){return new UA(s,e,t,i).parseDocument()}class UA{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new zA(i):void 0,this.positionMapper=new EA(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Je.getEmpty());return e||(e=ts.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const o=this.parseChild(e);o.kind===4&&o.childrenLength===0||t.push(o)}return this.oldNodeReader?VA(t):xk(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!LA(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),o=>Ud(o.length,i)?o.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new RA(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),o=this.tokenizer.peek();return o&&o.kind===2&&(o.bracketId===t.bracketId||o.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),Zc.create(t.astNode,n,o.astNode)):Zc.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class $A extends W{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new M,this.denseKeyProvider=new DA,this.brackets=new BA(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new PA(this.textModel.getValue(),i);this.initialAstWithoutTokens=Pw(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new Rw(Ke(i.fromLineNumber-1,0),Ke(i.toLineNumber,0),Ke(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=D.lift(i.range);return new Rw(td(n.getStartPosition()),td(n.getEndPosition()),IA(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,o=new AA(this.textModel,this.brackets);return Pw(o,e,n,i)}getBracketsInRange(e){const t=Ke(e.startLineNumber-1,e.startColumn-1),i=Ke(e.endLineNumber-1,e.endColumn-1),n=new Array,o=this.initialAstWithoutTokens||this.astWithTokens;return E_(o,Ps,o.length,t,i,n),n}getBracketPairsInRange(e,t){const i=new Array,n=td(e.getStartPosition()),o=td(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new jA(i,t,this.textModel);return Ik(r,Ps,r.length,n,o,a),i}}function E_(s,e,t,i,n,o,r=0){if(s.kind===4)for(const a of s.children)t=yt(e,a.length),tr(e,n)&&ed(t,i)&&E_(a,e,t,i,n,o,r),e=t;else if(s.kind===2){r++;{const a=s.openingBracket;if(t=yt(e,a.length),tr(e,n)&&ed(t,i)){const l=ir(e,t);o.push(new Jh(l,r-1,!s.closingBracket))}e=t}if(s.child){const a=s.child;t=yt(e,a.length),tr(e,n)&&ed(t,i)&&E_(a,e,t,i,n,o,r),e=t}if(s.closingBracket){const a=s.closingBracket;if(t=yt(e,a.length),tr(e,n)&&ed(t,i)){const l=ir(e,t);o.push(new Jh(l,r-1,!1))}e=t}}else if(s.kind===3){const a=ir(e,t);o.push(new Jh(a,r-1,!0))}else if(s.kind===1){const a=ir(e,t);o.push(new Jh(a,r-1,!1))}}class jA{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function Ik(s,e,t,i,n,o,r=0){var a;if(s.kind===2){const c=yt(e,s.openingBracket.length);let h=-1;o.includeMinIndentation&&(h=s.computeMinIndentation(e,o.textModel)),o.result.push(new SA(ir(e,t),ir(e,c),s.closingBracket?ir(yt(c,((a=s.child)===null||a===void 0?void 0:a.length)||Ps),t):void 0,r,h)),r++}let l=e;for(const c of s.children){const h=l;l=yt(l,c.length),tr(h,n)&&tr(i,l)&&Ik(c,h,l,i,n,o,r)}}class KA extends W{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new ly),this.onDidChangeEmitter=new M,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get isDocumentSupported(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.isDocumentSupported){if(!this.bracketPairsTree.value){const e=new se;this.bracketPairsTree.value=qA(e.add(new $A(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=e.toLowerCase(),o=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(o.lineNumber,o.column),a=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!a)return null;const l=a.textIsBracket[n];return l?id(this._findMatchingBracketUp(l,o,hm(i))):null}matchBracket(e,t){const i=hm(t);return this._matchBracket(this.textModel.validatePosition(e),i)}_establishBracketSearchOffsets(e,t,i,n){const o=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const h=t.getEndOffset(c);if(h<=a)break;if(On(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=h;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(On(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=h;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.getLineTokens(i),o=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!On(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),h=null;for(;;){const d=Ui.findNextBracketInRange(a.forwardRegex,i,o,l,c);if(!d)break;if(d.startColumn<=e.column&&e.column<=d.endColumn){const u=o.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),f=this._matchFoundBracket(d,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(f){if(f instanceof vs)return null;h=f}}l=d.endColumn-1}if(h)return h}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!On(n.getStandardTokenType(l))){const{searchStartOffset:h,searchEndOffset:d}=this._establishBracketSearchOffsets(e,n,c,l),u=Ui.findPrevBracketInRange(c.reversedRegex,i,o,h,d);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const f=o.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),m=this._matchFoundBracket(u,c.textIsBracket[f],c.textIsOpenBracket[f],t);if(m)return m instanceof vs?null:m}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof vs?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let r=-1,a=0;const l=(c,h,d,u)=>{for(;;){if(i&&++a%100===0&&!i())return vs.INSTANCE;const f=Ui.findPrevBracketInRange(o,c,h,d,u);if(!f)break;const m=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(m)?r++:e.isClose(m)&&r--,r===0)return f;u=f.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const h=this.textModel.getLineTokens(c),d=h.getCount(),u=this.textModel.getLineContent(c);let f=d-1,m=u.length,_=u.length;c===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),m=t.column-1,_=t.column-1);let b=!0;for(;f>=0;f--){const w=h.getLanguageId(f)===n&&!On(h.getStandardTokenType(f));if(w)b?m=h.getStartOffset(f):(m=h.getStartOffset(f),_=h.getEndOffset(f));else if(b&&m!==_){const C=l(c,u,m,_);if(C)return C}b=w}if(b&&m!==_){const w=l(c,u,m,_);if(w)return w}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let r=1,a=0;const l=(h,d,u,f)=>{for(;;){if(i&&++a%100===0&&!i())return vs.INSTANCE;const m=Ui.findNextBracketInRange(o,h,d,u,f);if(!m)break;const _=d.substring(m.startColumn-1,m.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return m;u=m.endColumn-1}return null},c=this.textModel.getLineCount();for(let h=t.lineNumber;h<=c;h++){const d=this.textModel.getLineTokens(h),u=d.getCount(),f=this.textModel.getLineContent(h);let m=0,_=0,b=0;h===t.lineNumber&&(m=d.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let w=!0;for(;m=1;o--){const r=this.textModel.getLineTokens(o),a=r.getCount(),l=this.textModel.getLineContent(o);let c=a-1,h=l.length,d=l.length;if(o===t.lineNumber){c=r.findTokenIndexAtOffset(t.column-1),h=t.column-1,d=t.column-1;const f=r.getLanguageId(c);i!==f&&(i=f,n=this.languageConfigurationService.getLanguageConfiguration(i).brackets)}let u=!0;for(;c>=0;c--){const f=r.getLanguageId(c);if(i!==f){if(n&&u&&h!==d){const _=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(_)return this._toFoundBracket(n,_);u=!1}i=f,n=this.languageConfigurationService.getLanguageConfiguration(i).brackets}const m=!!n&&!On(r.getStandardTokenType(c));if(m)u?h=r.getStartOffset(c):(h=r.getStartOffset(c),d=r.getEndOffset(c));else if(n&&u&&h!==d){const _=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(_)return this._toFoundBracket(n,_)}u=m}if(n&&u&&h!==d){const f=Ui.findPrevBracketInRange(n.reversedRegex,o,l,h,d);if(f)return this._toFoundBracket(n,f)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e),i=this.textModel.getLineCount();let n=null,o=null;for(let r=t.lineNumber;r<=i;r++){const a=this.textModel.getLineTokens(r),l=a.getCount(),c=this.textModel.getLineContent(r);let h=0,d=0,u=0;if(r===t.lineNumber){h=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,u=t.column-1;const m=a.getLanguageId(h);n!==m&&(n=m,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets)}let f=!0;for(;h{if(!r.has(f)){const _=[];for(let b=0,w=m?m.brackets.length:0;b{for(;;){if(i&&++c%100===0&&!i())return vs.INSTANCE;const C=Ui.findNextBracketInRange(f.forwardRegex,m,_,b,w);if(!C)break;const v=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=f.textIsBracket[v];if(S&&(S.isOpen(v)?a[S.index]++:S.isClose(v)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,i);b=C.endColumn-1}return null};let d=null,u=null;for(let f=n.lineNumber;f<=o;f++){const m=this.textModel.getLineTokens(f),_=m.getCount(),b=this.textModel.getLineContent(f);let w=0,C=0,v=0;if(f===n.lineNumber){w=m.findTokenIndexAtOffset(n.column-1),C=n.column-1,v=n.column-1;const k=m.getLanguageId(w);d!==k&&(d=k,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,u))}let S=!0;for(;w<_;w++){const k=m.getLanguageId(w);if(d!==k){if(u&&S&&C!==v){const L=h(u,f,b,C,v);if(L)return id(L);S=!1}d=k,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,u)}const x=!!u&&!On(m.getStandardTokenType(w));if(x)S||(C=m.getStartOffset(w)),v=m.getEndOffset(w);else if(u&&S&&C!==v){const L=h(u,f,b,C,v);if(L)return id(L)}S=x}if(u&&S&&C!==v){const k=h(u,f,b,C,v);if(k)return id(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.textIsBracket[i];return n?{range:t,open:n.open,close:n.close,isOpen:e.textIsOpenBracket[i]}:null}}function qA(s,e){return{object:s,dispose:()=>e==null?void 0:e.dispose()}}function hm(s){if(typeof s=="undefined")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=s}}class vs{constructor(){this._searchCanceledBrand=void 0}}vs.INSTANCE=new vs;function id(s){return s instanceof vs?null:s}class GA extends W{constructor(e){super(),this.textModel=e,this.colorProvider=new Ek,this.onDidChangeEmitter=new M,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,o=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of o)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new D(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Ek{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}ni((s,e)=>{const t=[nk,sk,ok,rk,ak,lk],i=new Ek;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${s.getColor(gM)}; }`);const n=t.map(o=>s.getColor(o)).filter(o=>!!o).filter(o=>!o.isTransparent());for(let o=0;o<30;o++){const r=n[o%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(o)} { color: ${r}; }`)}});function nd(s){return s.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class wt{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${nd(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${nd(this.oldText)}")`:`(replace@${this.oldPosition} "${nd(this.oldText)}" with "${nd(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;un(e,n,i),i+=4;for(let o=0;os.length)return!1;if(t){if(!e0(s,e))return!1;if(e.length===s.length)return!0;let o=e.length;return e.charAt(e.length-1)===i&&o--,s.charAt(o)===i}return e.charAt(e.length-1)!==i&&(e+=i),s.indexOf(e)===0}function XA(s){return s>=65&&s<=90||s>=97&&s<=122}function hs(s){return lu(s,!0)}class Z0{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Wp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Ce.file)return D_(hs(e),hs(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(Bw(e.authority,t.authority))return D_(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return we.joinPath(e,...t)}basenameOrAuthority(e){return Nk(e)||e.authority}basename(e){return tt.basename(e.path)}extname(e){return tt.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Ce.file?t=we.file(kE(hs(e))).path:(t=tt.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Ce.file?t=we.file(fy(hs(e))).path:t=tt.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Bw(e.authority,t.authority))return;if(e.scheme===Ce.file){const o=LE(hs(e),hs(t));return li?Dk(o):o}let i=e.path||"/",n=t.path||"/";if(this._ignorePathCasing(e)){let o=0;for(const r=Math.min(i.length,n.length);oFw(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=rr){return Vw(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=rr){let i=!1;if(e.scheme===Ce.file){const n=hs(e);i=n!==void 0&&n.length===Fw(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!Vw(e,t)?e.with({path:e.path+"/"}):e}}const Re=new Z0(()=>!1);new Z0(s=>s.scheme===Ce.file?!qt:!0);new Z0(s=>!0);Re.isEqual.bind(Re);Re.isEqualOrParent.bind(Re);Re.getComparisonKey.bind(Re);Re.basenameOrAuthority.bind(Re);const Nk=Re.basename.bind(Re);Re.extname.bind(Re);Re.dirname.bind(Re);Re.joinPath.bind(Re);const QA=Re.normalizePath.bind(Re);Re.relativePath.bind(Re);Re.resolvePath.bind(Re);Re.isAbsolutePath.bind(Re);const Bw=Re.isEqualAuthority.bind(Re),Vw=Re.hasTrailingPathSeparator.bind(Re);Re.removeTrailingPathSeparator.bind(Re);Re.addTrailingPathSeparator.bind(Re);var $u;(function(s){s.META_DATA_LABEL="label",s.META_DATA_DESCRIPTION="description",s.META_DATA_SIZE="size",s.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const o=t.path.substring(0,t.path.indexOf(";"));return o&&i.set(s.META_DATA_MIME,o),i}s.parseMetaData=e})($u||($u={}));function Qr(s){return s.toString()}class ht{constructor(e,t,i,n,o,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=N_(e);return new ht(i,i,n,n,t,t,[])}append(e,t,i,n,o){t.length>0&&(this.changes=ZA(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(un(e,t?t.length:0,i),i+=4,t)for(const n of t)un(e,n.selectionStartLineNumber,i),i+=4,un(e,n.selectionStartColumn,i),i+=4,un(e,n.positionLineNumber,i),i+=4,un(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=dn(e,t);t+=4;for(let o=0;ot.toString()).join(", ")}matchesResource(e){return(we.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof ht}append(e,t,i,n,o){this._data instanceof ht&&this._data.append(e,t,i,n,o)}close(){this._data instanceof ht&&(this._data=this._data.serialize())}open(){this._data instanceof ht||(this._data=ht.deserialize(this._data))}undo(){if(we.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof ht&&(this._data=this._data.serialize());const e=ht.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(we.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof ht&&(this._data=this._data.serialize());const e=ht.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof ht&&(this._data=this._data.serialize()),this._data.byteLength+168}}class JA{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const n=Qr(i.resource);this._editStackElementsMap.set(n,i)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Qr(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Qr(we.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Qr(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,o){const r=Qr(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Qr(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${Nk(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function N_(s){return s.getEOL()===` +`?0:1}function Ss(s){return s?s instanceof Tk||s instanceof JA:!1}class Y0{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Ss(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Ss(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(Ss(t)&&t.canAppend(this._model))return t;const i=new Tk(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],N_(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),r=Y0._computeCursorState(i,o),a=o.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),N_(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Ze(i),null}}}class e7{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function t7(s,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let o;for(o=0;o0&&a>0||l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(r-l);if(h===0){n.spacesDiff=d,d>0&&0<=l-1&&l-10?n++:S>1&&o++,t7(r,a,b,v,d),d.looksLikeAlignment&&!(t&&e===d.spacesDiff)))continue;const x=d.spacesDiff;x<=c&&h[x]++,r=b,a=v}let u=t;n!==o&&(u=n{const b=h[_];b>m&&(m=b,f=_)}),f===4&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(f=2)}return{insertSpaces:u,tabSize:f}}function Zt(s){return(s.metadata&1)>>>0}function Le(s,e){s.metadata=s.metadata&254|e<<0}function Lt(s){return(s.metadata&2)>>>1===1}function ye(s,e){s.metadata=s.metadata&253|(e?1:0)<<1}function Mk(s){return(s.metadata&4)>>>2===1}function Hw(s,e){s.metadata=s.metadata&251|(e?1:0)<<2}function i7(s){return(s.metadata&24)>>>3}function zw(s,e){s.metadata=s.metadata&231|e<<3}function n7(s){return(s.metadata&32)>>>5===1}function Uw(s,e){s.metadata=s.metadata&223|(e?1:0)<<5}class Rk{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Le(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,Hw(this,!1),zw(this,1),Uw(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ye(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;Hw(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),zw(this,this.options.stickiness),Uw(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const te=new Rk(null,0,0);te.parent=te;te.left=te;te.right=te;Le(te,0);class dm{constructor(){this.root=te,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o){return this.root===te?[]:d7(this,e,t,i,n,o)}search(e,t,i){return this.root===te?[]:h7(this,e,t,i)}collectNodesFromOwner(e){return l7(this,e)}collectNodesPostOrder(){return c7(this)}insert(e){$w(this,e),this._normalizeDeltaIfNecessary()}delete(e){jw(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,r=i.end+n;i.setCachedOffsets(o,r,t)}acceptReplace(e,t,i,n){const o=r7(this,e,e+t);for(let r=0,a=o.length;rt||i===1?!1:i===2?!0:e}function o7(s,e,t,i,n){const o=i7(s),r=o===0||o===2,a=o===1||o===2,l=t-e,c=i,h=Math.min(l,c),d=s.start;let u=!1;const f=s.end;let m=!1;e<=d&&f<=t&&n7(s)&&(s.start=e,u=!0,s.end=e,m=!0);{const b=n?1:l>0?2:0;!u&&Jr(d,r,e,b)&&(u=!0),!m&&Jr(f,a,e,b)&&(m=!0)}if(h>0&&!n){const b=l>c?2:0;!u&&Jr(d,r,e+h,b)&&(u=!0),!m&&Jr(f,a,e+h,b)&&(m=!0)}{const b=n?1:0;!u&&Jr(d,r,t,b)&&(s.start=e+c,u=!0),!m&&Jr(f,a,t,b)&&(s.end=e+c,m=!0)}const _=c-l;u||(s.start=Math.max(0,d+_)),m||(s.end=Math.max(0,f+_)),s.start>s.end&&(s.end=s.start)}function r7(s,e,t){let i=s.root,n=0,o=0,r=0,a=0;const l=[];let c=0;for(;i!==te;){if(Lt(i)){ye(i.left,!1),ye(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Lt(i.left)){if(o=n+i.maxEnd,ot){ye(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),ye(i,!0),i.right!==te&&!Lt(i.right)){n+=i.delta,i=i.right;continue}}return ye(s.root,!1),l}function a7(s,e,t,i){let n=s.root,o=0,r=0,a=0;const l=i-(t-e);for(;n!==te;){if(Lt(n)){ye(n.left,!1),ye(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),Lo(n),n=n.parent;continue}if(!Lt(n.left)){if(r=o+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(s.requestNormalizeDelta=!0),ye(n,!0);continue}if(ye(n,!0),n.right!==te&&!Lt(n.right)){o+=n.delta,n=n.right;continue}}ye(s.root,!1)}function l7(s,e){let t=s.root;const i=[];let n=0;for(;t!==te;){if(Lt(t)){ye(t.left,!1),ye(t.right,!1),t=t.parent;continue}if(t.left!==te&&!Lt(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),ye(t,!0),t.right!==te&&!Lt(t.right)){t=t.right;continue}}return ye(s.root,!1),i}function c7(s){let e=s.root;const t=[];let i=0;for(;e!==te;){if(Lt(e)){ye(e.left,!1),ye(e.right,!1),e=e.parent;continue}if(e.left!==te&&!Lt(e.left)){e=e.left;continue}if(e.right!==te&&!Lt(e.right)){e=e.right;continue}t[i++]=e,ye(e,!0)}return ye(s.root,!1),t}function h7(s,e,t,i){let n=s.root,o=0,r=0,a=0;const l=[];let c=0;for(;n!==te;){if(Lt(n)){ye(n.left,!1),ye(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;continue}if(n.left!==te&&!Lt(n.left)){n=n.left;continue}r=o+n.start,a=o+n.end,n.setCachedOffsets(r,a,i);let h=!0;if(e&&n.ownerId&&n.ownerId!==e&&(h=!1),t&&Mk(n)&&(h=!1),h&&(l[c++]=n),ye(n,!0),n.right!==te&&!Lt(n.right)){o+=n.delta,n=n.right;continue}}return ye(s.root,!1),l}function d7(s,e,t,i,n,o){let r=s.root,a=0,l=0,c=0,h=0;const d=[];let u=0;for(;r!==te;){if(Lt(r)){ye(r.left,!1),ye(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Lt(r.left)){if(l=a+r.maxEnd,lt){ye(r,!0);continue}if(h=a+r.end,h>=e){r.setCachedOffsets(c,h,o);let f=!0;i&&r.ownerId&&r.ownerId!==i&&(f=!1),n&&Mk(r)&&(f=!1),f&&(d[u++]=r)}if(ye(r,!0),r.right!==te&&!Lt(r.right)){a+=r.delta,r=r.right;continue}}return ye(s.root,!1),d}function $w(s,e){if(s.root===te)return e.parent=te,e.left=te,e.right=te,Le(e,0),s.root=e,s.root;u7(s,e),Zs(e.parent);let t=e;for(;t!==s.root&&Zt(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Zt(i)===1?(Le(t.parent,0),Le(i,0),Le(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,fc(s,t)),Le(t.parent,0),Le(t.parent.parent,1),gc(s,t.parent.parent))}else{const i=t.parent.parent.left;Zt(i)===1?(Le(t.parent,0),Le(i,0),Le(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,gc(s,t)),Le(t.parent,0),Le(t.parent.parent,1),fc(s,t.parent.parent))}return Le(s.root,0),e}function u7(s,e){let t=0,i=s.root;const n=e.start,o=e.end;for(;;)if(g7(n,o,i.start+t,i.end+t)<0)if(i.left===te){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===te){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=te,e.right=te,Le(e,1)}function jw(s,e){let t,i;if(e.left===te?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===te?(t=e.left,i=e):(i=f7(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(s.requestNormalizeDelta=!0)),i===s.root){s.root=t,Le(t,0),e.detach(),um(),Lo(t),s.root.parent=te;return}const n=Zt(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Le(i,Zt(e)),e===s.root?s.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==te&&(i.left.parent=i),i.right!==te&&(i.right.parent=i)),e.detach(),n){Zs(t.parent),i!==e&&(Zs(i),Zs(i.parent)),um();return}Zs(t),Zs(t.parent),i!==e&&(Zs(i),Zs(i.parent));let o;for(;t!==s.root&&Zt(t)===0;)t===t.parent.left?(o=t.parent.right,Zt(o)===1&&(Le(o,0),Le(t.parent,1),fc(s,t.parent),o=t.parent.right),Zt(o.left)===0&&Zt(o.right)===0?(Le(o,1),t=t.parent):(Zt(o.right)===0&&(Le(o.left,0),Le(o,1),gc(s,o),o=t.parent.right),Le(o,Zt(t.parent)),Le(t.parent,0),Le(o.right,0),fc(s,t.parent),t=s.root)):(o=t.parent.left,Zt(o)===1&&(Le(o,0),Le(t.parent,1),gc(s,t.parent),o=t.parent.left),Zt(o.left)===0&&Zt(o.right)===0?(Le(o,1),t=t.parent):(Zt(o.left)===0&&(Le(o.right,0),Le(o,1),fc(s,o),o=t.parent.left),Le(o,Zt(t.parent)),Le(t.parent,0),Le(o.left,0),gc(s,t.parent),t=s.root));Le(t,0),um()}function f7(s){for(;s.left!==te;)s=s.left;return s}function um(){te.parent=te,te.delta=0,te.start=0,te.end=0}function fc(s,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(s.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==te&&(t.left.parent=e),t.parent=e.parent,e.parent===te?s.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,Lo(e),Lo(t)}function gc(s,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(s.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==te&&(t.right.parent=e),t.parent=e.parent,e.parent===te?s.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,Lo(e),Lo(t)}function Ak(s){let e=s.end;if(s.left!==te){const t=s.left.maxEnd;t>e&&(e=t)}if(s.right!==te){const t=s.right.maxEnd+s.delta;t>e&&(e=t)}return e}function Lo(s){s.maxEnd=Ak(s)}function Zs(s){for(;s!==te;){const e=Ak(s);if(s.maxEnd===e)return;s.maxEnd=e,s=s.parent}}function g7(s,e,t,i){return s===t?e-i:s-t}class T_{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Z)return X0(this.right);let e=this;for(;e.parent!==Z&&e.parent.left!==e;)e=e.parent;return e.parent===Z?Z:e.parent}prev(){if(this.left!==Z)return Ok(this.left);let e=this;for(;e.parent!==Z&&e.parent.right!==e;)e=e.parent;return e.parent===Z?Z:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Z=new T_(null,0);Z.parent=Z;Z.left=Z;Z.right=Z;Z.color=0;function X0(s){for(;s.left!==Z;)s=s.left;return s}function Ok(s){for(;s.right!==Z;)s=s.right;return s}function Q0(s){return s===Z?0:s.size_left+s.piece.length+Q0(s.right)}function J0(s){return s===Z?0:s.lf_left+s.piece.lineFeedCnt+J0(s.right)}function fm(){Z.parent=Z}function mc(s,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Z&&(t.left.parent=e),t.parent=e.parent,e.parent===Z?s.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function pc(s,e){const t=e.left;e.left=t.right,t.right!==Z&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Z?s.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function sd(s,e){let t,i;if(e.left===Z?(i=e,t=i.right):e.right===Z?(i=e,t=i.left):(i=X0(e.right),t=i.right),i===s.root){s.root=t,t.color=0,e.detach(),fm(),s.root.parent=Z;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zl(s,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zl(s,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===s.root?s.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Z&&(i.left.parent=i),i.right!==Z&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zl(s,i)),e.detach(),t.parent.left===t){const r=Q0(t),a=J0(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ms(s,t.parent,l,c)}}if(Zl(s,t.parent),n){fm();return}let o;for(;t!==s.root&&t.color===0;)t===t.parent.left?(o=t.parent.right,o.color===1&&(o.color=0,t.parent.color=1,mc(s,t.parent),o=t.parent.right),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.right.color===0&&(o.left.color=0,o.color=1,pc(s,o),o=t.parent.right),o.color=t.parent.color,t.parent.color=0,o.right.color=0,mc(s,t.parent),t=s.root)):(o=t.parent.left,o.color===1&&(o.color=0,t.parent.color=1,pc(s,t.parent),o=t.parent.left),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.left.color===0&&(o.right.color=0,o.color=1,mc(s,o),o=t.parent.left),o.color=t.parent.color,t.parent.color=0,o.left.color=0,pc(s,t.parent),t=s.root));t.color=0,fm()}function Kw(s,e){for(Zl(s,e);e!==s.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,mc(s,e)),e.parent.color=0,e.parent.parent.color=1,pc(s,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,pc(s,e)),e.parent.color=0,e.parent.parent.color=1,mc(s,e.parent.parent))}s.root.color=0}function ms(s,e,t,i){for(;e!==s.root&&e!==Z;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zl(s,e){let t=0,i=0;if(e!==s.root){for(;e!==s.root&&e===e.parent.right;)e=e.parent;if(e!==s.root)for(e=e.parent,t=Q0(e.left)-e.size_left,i=J0(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==s.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ds=65535;function Pk(s){let e;return s[s.length-1]<65536?e=new Uint16Array(s.length):e=new Uint32Array(s.length),e.set(s,0),e}class m7{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function _s(s,e=!0){const t=[0];let i=1;for(let n=0,o=s.length;n126)&&(r=!1)}const a=new m7(Pk(s),i,n,o,r);return s.length=0,a}class si{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class Go{constructor(e,t){this.buffer=e,this.lineStarts=t}}class _7{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Z&&e.iterate(e.root,i=>(i!==Z&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class b7{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const o of i)o!==null&&n.push(o);this._cache=n}}}class C7{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Go("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Z,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let o=0,r=e.length;o0){e[o].lineStarts||(e[o].lineStarts=_s(e[o].buffer));const a=new si(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),n=this.rbInsertRight(n,a)}this._searchCache=new b7(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ds,i=t-Math.floor(t/3),n=i*2;let o="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),h=c.length;if(r<=i||r+h0){const l=o.replace(/\r\n|\r|\n/g,e);a.push(new Go(l,_s(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new _7(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Z;)if(n.left!==Z&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+=this.getAccumulatedValue(n,e-n.lf_left-2)+t-1;e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Z;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,o.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new A(i+1,a+1)}return new A(i+1,o.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Z){const o=this.getOffsetAt(i+1,1),r=n-e-o;return new A(i+1,r+1)}else t=t.right;return new A(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?o.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==Z;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,o=>{if(o===Z)return!0;const r=o.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,h=r.start.line,d=r.end.line;let u=c[h]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(h===d)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[h+1]-this._EOLLength)):l.substring(u,c[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let f=h+1;fS+m,t.reset(0)):(C=u.buffer,v=S=>S,t.reset(m));do if(b=t.next(C),b){if(v(b.index)>=_)return h;this.positionInBuffer(e,v(b.index)-f,w);const S=this.getLineFeedCnt(e.piece.bufferIndex,o,w),k=w.line===o.line?w.column-o.column+n:w.column+1,x=k+b[0].length;if(d[h++]=Uo(new D(i+S,k,i+S,x),b,l),v(b.index)+b[0].length>=_||h>=c)return h}while(b);return h}findMatchesLineByLine(e,t,i,n){const o=[];let r=0;const a=new ca(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let h=this.positionInBuffer(l.node,l.remainder);const d=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,h,d,t,i,n,r,o),o;let u=e.startLineNumber,f=l.node;for(;f!==c.node;){const _=this.getLineFeedCnt(f.piece.bufferIndex,h,f.piece.end);if(_>=1){const w=this._buffers[f.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(f.piece.bufferIndex,f.piece.start),v=w[h.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(f,a,u,S,h,this.positionInBuffer(f,v-C),t,i,n,r,o),r>=n)return o;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const w=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,w,e.endLineNumber,b,r,o,i,n),o}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,o,i,n),r>=n)return o;u++,l=this.nodeAt2(u,1),f=l.node,h=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,o,i,n),o}const m=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,m,h,d,t,i,n,r,o),o}_findMatchesInLine(e,t,i,n,o,r,a,l,c){const h=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,f=u.length,m=i.length;let _=-f;for(;(_=i.indexOf(u,_+f))!==-1;)if((!h||p0(h,i,m,_,f))&&(a[r++]=new Nc(new D(n,_+1+o,n,_+1+f+o),null),r>=c))return r;return r}let d;t.reset(0);do if(d=t.next(i),d&&(a[r++]=Uo(new D(n,d.index+1+o,n,d.index+1+d[0].length+o),d,l),r>=c))return r;while(d);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Z){const{node:n,remainder:o,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,o);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const h=[];let d=new si(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,o)===10){const _={line:d.start.line+1,column:0};d=new si(d.bufferIndex,_,d.end,this.getLineFeedCnt(d.bufferIndex,_,d.end),d.length-1),t+=` `}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(n,o-1)===13){const _=this.positionInBuffer(n,o-1);this.deleteNodeTail(n,_),t="\r"+t,n.piece.length===0&&h.push(n)}else this.deleteNodeTail(n,c);else this.deleteNodeTail(n,c);const u=this.createNewPieces(t);d.length>0&&this.rbInsertRight(n,d);let f=n;for(let m=0;m=0;r--)o=this.rbInsertLeft(o,n[r]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` `);const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let o=n;for(let r=1;r=u)c=d+1;else break;return i?(i.line=d,i.column=l-f,null):{line:d,column:l-f}}getLineFeedCnt(e,t,i){if(i.column===0)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const o=n[i.line+1],r=n[i.line]+i.column;if(o>r+1)return i.line-t.line;const a=r-1;return this._buffers[e].buffer.charCodeAt(a)===13?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tds){const h=[];for(;e.length>ds;){const u=e.charCodeAt(ds-1);let f;u===13||u>=55296&&u<=56319?(f=e.substring(0,ds-1),e=e.substring(ds-1)):(f=e.substring(0,ds),e=e.substring(ds));const m=_s(f);h.push(new si(this._buffers.length,{line:0,column:0},{line:m.length-1,column:f.length-m[m.length-1]},m.length-1,f.length)),this._buffers.push(new Go(f,m))}const d=_s(e);return h.push(new si(this._buffers.length,{line:0,column:0},{line:d.length-1,column:e.length-d[d.length-1]},d.length-1,e.length)),this._buffers.push(new Go(e,d)),h}let t=this._buffers[0].buffer.length;const i=_s(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let h=0;h=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this.getAccumulatedValue(i,e-i.lf_left-1),h=this._buffers[i.piece.bufferIndex].buffer,d=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:a-(e-1-i.lf_left)}),h.substring(d+l,d+c-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this._buffers[i.piece.bufferIndex].buffer,h=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=c.substring(h+l,h+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==Z;){const r=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const a=this.getAccumulatedValue(i,0),l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=r.substring(l,l+a-t),n}else{const a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=r.substr(a,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==Z;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const r=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),r=t,a=this.offsetInBuffer(i.bufferIndex,r),l=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=l-n,h=a-o,d=i.length+h;e.piece=new si(i.bufferIndex,i.start,r,l,d),ms(this,e,h,c)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),r=t,a=this.getLineFeedCnt(i.bufferIndex,r,i.end),l=this.offsetInBuffer(i.bufferIndex,r),c=a-n,h=o-l,d=i.length+h;e.piece=new si(i.bufferIndex,r,i.end,a,d),ms(this,e,h,c)}shrinkNode(e,t,i){const n=e.piece,o=n.start,r=n.end,a=n.length,l=n.lineFeedCnt,c=t,h=this.getLineFeedCnt(n.bufferIndex,n.start,c),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new si(n.bufferIndex,n.start,c,h,d),ms(this,e,d-a,h-l);const u=new si(n.bufferIndex,i,r,this.getLineFeedCnt(n.bufferIndex,i,r),this.offsetInBuffer(n.bufferIndex,r)-this.offsetInBuffer(n.bufferIndex,i)),f=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(f)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` `);const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=_s(t,!1);for(let f=0;fe)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;const o={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(o),o}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==Z;)if(i.left!==Z&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,r),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==Z;){if(i.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(i,0),r=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,o),nodeStartOffset:r}}else if(i.piece.length>=t-1){const o=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:o}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` `)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===Z||e.piece.lineFeedCnt===0)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n===i.length-1||i[n+1]>o+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(o)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===Z||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let o;e.piece.end.column===0?o={line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:o={line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new si(e.piece.bufferIndex,e.piece.start,o,a,r),ms(this,e,-1,-1),e.piece.length===0&&i.push(e);const l={line:t.piece.start.line+1,column:0},c=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new si(t.piece.bufferIndex,l,t.piece.end,h,c),ms(this,t,-1,-1),t.piece.length===0&&i.push(t);const d=this.createNewPieces(`\r `);this.rbInsertRight(e,d[0]);for(let u=0;ub.sortIndex-w.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=r;const f=this._doApplyEdits(l);let m=null;if(t&&d.length>0){d.sort((_,b)=>b.lineNumber-_.lineNumber),m=[];for(let _=0,b=d.length;_0&&d[_-1].lineNumber===w)continue;const C=d[_].oldContent,v=this.getLineContent(w);v.length===0||v===C||Ci(v)!==-1||m.push(w)}}return this._onDidChangeContent.fire(),new mD(u,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new D(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let f=0,m=e.length;f0&&l.push(_.text),r=b.endLineNumber,a=b.endColumn}const c=l.join(""),[h,d,u]=nl(c);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:c,eolCount:h,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Fa._sortOpsDescending);const t=[];for(let i=0;i0){const u=l.eolCount+1;u===1?d=new D(c,h,c,h+l.firstLineLength):d=new D(c,h,c+u-1,l.lastLineLength+1)}else d=new D(c,h,c,h);i=d.endLineNumber,n=d.endColumn,t.push(d),o=l}return t}static _sortOpsAscending(e,t){const i=D.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=D.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class v7{constructor(e,t,i,n,o,r,a,l,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` +`?2:1)?C=b.text:C=b.text.replace(/\r\n|\r|\n/g,L)}l[_]={sortIndex:_,identifier:b.identifier||null,range:w,rangeOffset:this.getOffsetAt(w.startLineNumber,w.startColumn),rangeLength:this.getValueLengthInRange(w),text:C,eolCount:v,firstLineLength:S,lastLineLength:k,forceMoveMarkers:Boolean(b.forceMoveMarkers),isAutoWhitespaceEdit:b.isAutoWhitespaceEdit||!1}}l.sort(Fa._sortOpsAscending);let c=!1;for(let _=0,b=l.length-1;_b.sortIndex-w.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=r;const f=this._doApplyEdits(l);let m=null;if(t&&d.length>0){d.sort((_,b)=>b.lineNumber-_.lineNumber),m=[];for(let _=0,b=d.length;_0&&d[_-1].lineNumber===w)continue;const C=d[_].oldContent,v=this.getLineContent(w);v.length===0||v===C||Ci(v)!==-1||m.push(w)}}return this._onDidChangeContent.fire(),new gD(u,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new D(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let f=0,m=e.length;f0&&l.push(_.text),r=b.endLineNumber,a=b.endColumn}const c=l.join(""),[h,d,u]=nl(c);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:c,eolCount:h,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Fa._sortOpsDescending);const t=[];for(let i=0;i0){const u=l.eolCount+1;u===1?d=new D(c,h,c,h+l.firstLineLength):d=new D(c,h,c+u-1,l.lastLineLength+1)}else d=new D(c,h,c,h);i=d.endLineNumber,n=d.endColumn,t.push(d),o=l}return t}static _sortOpsAscending(e,t){const i=D.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=D.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class w7{constructor(e,t,i,n,o,r,a,l,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` `:`\r `:i>t/2?`\r `:` `}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&(t===`\r `&&(this._cr>0||this._lf>0)||t===` -`&&(this._cr>0||this._crlf>0)))for(let o=0,r=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=_7(this._tmpLineStarts,e);this.chunks.push(new Go(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=s0(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=ky(e))}finish(e=!0){return this._finish(),new v7(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=_s(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class y7{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class gm{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new y7(e,[t]))}finalize(){return this._tokens}}class qw{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const n=this._textModel.getLanguageId();i.changedLanguages.indexOf(n)!==-1&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}tokenizeViewport(e,t){const i=new gm;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.finalize(),!this._hasLinesToTokenize())}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new gm;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),r=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=Vl(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new vt(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,o=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,o-1)+i+a.substring(o-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),h=Vl(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new vt(h.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e1&&c>=1;c--){const h=this._textModel.getLineFirstNonWhitespaceColumn(c);if(h!==0&&h=0;c--)l=Vl(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,o[c],!1,l).endState;for(let c=t;c<=i;c++){const h=this._textModel.getLineContent(c),d=Vl(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,h,!0,l);e.add(c,d.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=d.endState}}}function x7(s){if(s.isTooLargeForTokenization())return[null,null];const e=et.get(s.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return Ze(i),[null,null]}return[e,t]}function Vl(s,e,t,i,n,o){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,o.clone())}catch(a){Ze(a)}return r||(r=HD(s.encodeLanguageId(e),o)),vt.convertToEndOffset(r.tokens,i.length),r}const bs=new Uint32Array(0).buffer;class Bn{static deleteBeginning(e,t){return e===null||e===bs?e:Bn.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===bs)return e;const i=Is(e),n=i[i.length-2];return Bn.delete(e,t,n)}static delete(e,t,i){if(e===null||e===bs||t===i)return e;const n=Is(e),o=n.length>>>1;if(t===0&&n[n.length-2]===i)return bs;const r=vt.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(ih&&(n[c++]=m,n[c++]=n[(f<<1)+1],h=m)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===bs)return e;if(e===bs)return t;if(e===null)return e;if(t===null)return null;const i=Is(e),n=Is(t),o=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=vt.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(o=pi.getLanguageId(n[1])!==e),!o)return bs}if(!n||n.length===0){const o=new Uint32Array(2);return o[0]=t,o[1]=Gw(e),o.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Bn.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Bn.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Bn.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Bn.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Bn.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function Gw(s){return(s<<0|0<<8|0<<10|1<<14|2<<23)>>>0}class eb{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const o=t[0].getRange(),r=t[t.length-1].getRange();if(!o||!r)return e;i=e.plusRange(o).plusRange(r)}let n=null;for(let o=0,r=this._pieces.length;oi.endLineNumber){n=n||{index:o};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(o,1),o--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:o};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:o};continue}c.isEmpty()||(this._pieces.splice(o,1,l,c),o++,r++,n=n||{index:o})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=pf(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){const i=this._pieces;if(i.length===0)return t;const n=eb._findFirstPieceWithLine(i,e),o=i[n].getLineTokens(e);if(!o)return t;const r=t.getCount(),a=o.getCount();let l=0;const c=[];let h=0,d=0;const u=(f,m)=>{f!==d&&(d=f,c[h++]=f,c[h++]=m)};for(let f=0;f>>0,C=~w>>>0;for(;lt)n=o-1;else{for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}}return i}acceptEdit(e,t,i,n,o){for(const r of this._pieces)r.acceptEdit(e,t,i,n,o)}}const tb=pe("undoRedoService");class Fk{constructor(e,t){this.resource=e,this.elements=t}}class sl{constructor(){this.id=sl._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}sl._ID=0;sl.None=new sl;class $n{constructor(){this.id=$n._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}$n._ID=0;$n.None=new $n;var I7=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mm=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function E7(){return new S7}function D7(s){const e=E7();return e.acceptChunk(s),e.finish()}function Zw(s,e){return(typeof s=="string"?D7(s):s).create(e)}let od=0;const N7=999,T7=1e4;class M7{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const Wl=()=>{throw new Error("Invalid change accessor")};let Ir=class Wo extends W{constructor(e,t,i,n=null,o,r,a){super(),this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new M),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new P7(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new M),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new M),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new M),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new M),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new M),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new M),this._eventEmitter=this._register(new F7),this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new M),od++,this.id="$model"+od,this.isForSimpleWidget=i.isForSimpleWidget,typeof n=="undefined"||n===null?this._associatedResource=we.parse("inmemory://model/"+od):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=Zw(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Wo.resolveOptions(this._buffer,i);const h=this._buffer.getLineCount(),d=this._buffer.getValueLengthInRange(new D(1,1,h,this._buffer.getLineLength(h)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=d>Wo.LARGE_FILE_SIZE_THRESHOLD||h>Wo.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=d>Wo.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageId=t,this._languageRegistryListener=this._languageConfigurationService.onDidChange(u=>{u.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=xy(od),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Yw,this._commandManager=new Y0(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new ju(this._languageService.languageIdCodec),this._semanticTokens=new eb(this._languageService.languageIdCodec),this._tokenization=new k7(this,this._languageService.languageIdCodec),this._bracketPairColorizer=this._register(new qA(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new dR(this,this._languageConfigurationService)),this._decorationProvider=this._register(new ZA(this)),this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=Ww(e,t.tabSize,t.insertSpaces);return new Ad({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new Ad({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return or(this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent)),this._onDidChangeInjectedText.event(t=>e(t)))}get bracketPairs(){return this._bracketPairColorizer}get guides(){return this._guidesTextModelPart}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this._bracketPairColorizer.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const e=new Fa([],"",` -`,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=W.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||(this._bracketPairColorizer.handleDidChangeContent(t),this._tokenization.handleDidChangeContent(t),this._eventEmitter.fire(new Vu(e,t)))}setValue(e){if(this._assertNotDisposed(),e===null)return;const{textBuffer:t,disposable:i}=Zw(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._semanticTokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new Yw,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new fr([new HR],this._versionId,!1,!1),this._createContentChanged2(new D(1,1,o,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r +`&&(this._cr>0||this._crlf>0)))for(let o=0,r=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=p7(this._tmpLineStarts,e);this.chunks.push(new Go(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=s0(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=ky(e))}finish(e=!0){return this._finish(),new w7(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=_s(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class S7{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class gm{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new S7(e,[t]))}finalize(){return this._tokens}}class qw{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const n=this._textModel.getLanguageId();i.changedLanguages.indexOf(n)!==-1&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}tokenizeViewport(e,t){const i=new gm;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.finalize(),!this._hasLinesToTokenize())}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new gm;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),r=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=Vl(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new vt(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,o=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,o-1)+i+a.substring(o-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),h=Vl(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new vt(h.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e1&&c>=1;c--){const h=this._textModel.getLineFirstNonWhitespaceColumn(c);if(h!==0&&h=0;c--)l=Vl(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,o[c],!1,l).endState;for(let c=t;c<=i;c++){const h=this._textModel.getLineContent(c),d=Vl(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,h,!0,l);e.add(c,d.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=d.endState}}}function k7(s){if(s.isTooLargeForTokenization())return[null,null];const e=et.get(s.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return Ze(i),[null,null]}return[e,t]}function Vl(s,e,t,i,n,o){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,o.clone())}catch(a){Ze(a)}return r||(r=WD(s.encodeLanguageId(e),o)),vt.convertToEndOffset(r.tokens,i.length),r}const bs=new Uint32Array(0).buffer;class Bn{static deleteBeginning(e,t){return e===null||e===bs?e:Bn.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===bs)return e;const i=Is(e),n=i[i.length-2];return Bn.delete(e,t,n)}static delete(e,t,i){if(e===null||e===bs||t===i)return e;const n=Is(e),o=n.length>>>1;if(t===0&&n[n.length-2]===i)return bs;const r=vt.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(ih&&(n[c++]=m,n[c++]=n[(f<<1)+1],h=m)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===bs)return e;if(e===bs)return t;if(e===null)return e;if(t===null)return null;const i=Is(e),n=Is(t),o=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=vt.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(o=pi.getLanguageId(n[1])!==e),!o)return bs}if(!n||n.length===0){const o=new Uint32Array(2);return o[0]=t,o[1]=Gw(e),o.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Bn.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Bn.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Bn.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Bn.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Bn.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function Gw(s){return(s<<0|0<<8|0<<10|1<<14|2<<23)>>>0}class eb{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const o=t[0].getRange(),r=t[t.length-1].getRange();if(!o||!r)return e;i=e.plusRange(o).plusRange(r)}let n=null;for(let o=0,r=this._pieces.length;oi.endLineNumber){n=n||{index:o};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(o,1),o--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:o};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:o};continue}c.isEmpty()||(this._pieces.splice(o,1,l,c),o++,r++,n=n||{index:o})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=pf(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){const i=this._pieces;if(i.length===0)return t;const n=eb._findFirstPieceWithLine(i,e),o=i[n].getLineTokens(e);if(!o)return t;const r=t.getCount(),a=o.getCount();let l=0;const c=[];let h=0,d=0;const u=(f,m)=>{f!==d&&(d=f,c[h++]=f,c[h++]=m)};for(let f=0;f>>0,C=~w>>>0;for(;lt)n=o-1;else{for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}}return i}acceptEdit(e,t,i,n,o){for(const r of this._pieces)r.acceptEdit(e,t,i,n,o)}}const tb=pe("undoRedoService");class Fk{constructor(e,t){this.resource=e,this.elements=t}}class sl{constructor(){this.id=sl._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}sl._ID=0;sl.None=new sl;class $n{constructor(){this.id=$n._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}$n._ID=0;$n.None=new $n;var x7=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mm=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function I7(){return new v7}function E7(s){const e=I7();return e.acceptChunk(s),e.finish()}function Zw(s,e){return(typeof s=="string"?E7(s):s).create(e)}let od=0;const D7=999,N7=1e4;class T7{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const Wl=()=>{throw new Error("Invalid change accessor")};let Ir=class Wo extends W{constructor(e,t,i,n=null,o,r,a){super(),this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new M),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new O7(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new M),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new M),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new M),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new M),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new M),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new M),this._eventEmitter=this._register(new P7),this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new M),od++,this.id="$model"+od,this.isForSimpleWidget=i.isForSimpleWidget,typeof n=="undefined"||n===null?this._associatedResource=we.parse("inmemory://model/"+od):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=Zw(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Wo.resolveOptions(this._buffer,i);const h=this._buffer.getLineCount(),d=this._buffer.getValueLengthInRange(new D(1,1,h,this._buffer.getLineLength(h)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=d>Wo.LARGE_FILE_SIZE_THRESHOLD||h>Wo.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=d>Wo.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageId=t,this._languageRegistryListener=this._languageConfigurationService.onDidChange(u=>{u.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=xy(od),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Yw,this._commandManager=new Y0(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new ju(this._languageService.languageIdCodec),this._semanticTokens=new eb(this._languageService.languageIdCodec),this._tokenization=new L7(this,this._languageService.languageIdCodec),this._bracketPairColorizer=this._register(new KA(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new hR(this,this._languageConfigurationService)),this._decorationProvider=this._register(new GA(this)),this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=Ww(e,t.tabSize,t.insertSpaces);return new Ad({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new Ad({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return or(this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent)),this._onDidChangeInjectedText.event(t=>e(t)))}get bracketPairs(){return this._bracketPairColorizer}get guides(){return this._guidesTextModelPart}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this._bracketPairColorizer.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const e=new Fa([],"",` +`,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=W.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||(this._bracketPairColorizer.handleDidChangeContent(t),this._tokenization.handleDidChangeContent(t),this._eventEmitter.fire(new Vu(e,t)))}setValue(e){if(this._assertNotDisposed(),e===null)return;const{textBuffer:t,disposable:i}=Zw(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._semanticTokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new Yw,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new fr([new WR],this._versionId,!1,!1),this._createContentChanged2(new D(1,1,o,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r `:` -`;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new fr([new $R],this._versionId,!1,!1),this._createContentChanged2(new D(1,1,o,r),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const o=this._buffer.getLineLength(n);o>=T7?t+=o:e+=o}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize!="undefined"?e.tabSize:this._options.tabSize,i=typeof e.indentSize!="undefined"?e.indentSize:this._options.indentSize,n=typeof e.insertSpaces!="undefined"?e.insertSpaces:this._options.insertSpaces,o=typeof e.trimAutoWhitespace!="undefined"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions!="undefined"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new Ad({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairColorizer.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=Ww(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),ck(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(Ly.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new M7(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` -`?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),r=Math.floor(typeof n=="number"&&!isNaN(n)?n:1);if(o<1)o=1,r=1;else if(o>t)o=t,r=this.getLineMaxColumn(o);else if(r<=1)r=1;else{const d=this.getLineMaxColumn(o);r>=d&&(r=d)}const a=e.endLineNumber,l=e.endColumn;let c=Math.floor(typeof a=="number"&&!isNaN(a)?a:1),h=Math.floor(typeof l=="number"&&!isNaN(l)?l:1);if(c<1)c=1,h=1;else if(c>t)c=t,h=this.getLineMaxColumn(c);else if(h<=1)h=1;else{const d=this.getLineMaxColumn(c);h>=d&&(h=d)}return i===o&&n===r&&a===c&&l===h&&e instanceof D&&!(e instanceof ce)?e:new D(o,r,c,h)}_isValidPosition(e,t,i){if(typeof e!="number"||typeof t!="number"||isNaN(e)||isNaN(t)||e<1||t<1||(e|0)!==e||(t|0)!==t)return!1;const n=this._buffer.getLineCount();if(e>n)return!1;if(t===1)return!0;const o=this.getLineMaxColumn(e);if(t>o)return!1;if(i===1){const r=this._buffer.getLineCharCode(e,t-2);if(gt(r))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor(typeof e=="number"&&!isNaN(e)?e:1),o=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),r=this._buffer.getLineCount();if(n<1)return new A(1,1);if(n>r)return new A(r,this.getLineMaxColumn(r));if(o<=1)return new A(n,1);const a=this.getLineMaxColumn(n);if(o>=a)return new A(n,a);if(i===1){const l=this._buffer.getLineCharCode(n,o-2);if(gt(l))return new A(n,o-1)}return new A(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof A&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,n,0)||!this._isValidPosition(o,r,0))return!1;if(t===1){const a=n>1?this._buffer.getLineCharCode(i,n-2):0,l=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,c=gt(a),h=gt(l);return!c&&!h}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof D&&!(e instanceof ce)&&this._isValidRange(e,1))return e;const i=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),o=i.lineNumber,r=i.column,a=n.lineNumber,l=n.column;{const c=r>1?this._buffer.getLineCharCode(o,r-2):0,h=l>1&&l<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,l-2):0,d=gt(c),u=gt(h);return!d&&!u?new D(o,r,a,l):o===a&&r===l?new D(o,r-1,a,l-1):d&&u?new D(o,r-1,a,l+1):d?new D(o,r-1,a,l):new D(o,r,a,l+1)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new D(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,r,a=N7){this._assertNotDisposed();let l=null;t!==null&&(Array.isArray(t)||(t=[t]),t.every(d=>D.isIRange(d))&&(l=t.map(d=>this.validateRange(d)))),l===null&&(l=[this.getFullModelRange()]),l=l.sort((d,u)=>d.startLineNumber-u.startLineNumber||d.startColumn-u.startColumn);const c=[];c.push(l.reduce((d,u)=>D.areIntersecting(d,u)?d.plusRange(u):(c.push(d),u)));let h;if(!i&&e.indexOf(` +`;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new fr([new UR],this._versionId,!1,!1),this._createContentChanged2(new D(1,1,o,r),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const o=this._buffer.getLineLength(n);o>=N7?t+=o:e+=o}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize!="undefined"?e.tabSize:this._options.tabSize,i=typeof e.indentSize!="undefined"?e.indentSize:this._options.indentSize,n=typeof e.insertSpaces!="undefined"?e.insertSpaces:this._options.insertSpaces,o=typeof e.trimAutoWhitespace!="undefined"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions!="undefined"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new Ad({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairColorizer.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=Ww(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),ck(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(Ly.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new T7(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` +`?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),r=Math.floor(typeof n=="number"&&!isNaN(n)?n:1);if(o<1)o=1,r=1;else if(o>t)o=t,r=this.getLineMaxColumn(o);else if(r<=1)r=1;else{const d=this.getLineMaxColumn(o);r>=d&&(r=d)}const a=e.endLineNumber,l=e.endColumn;let c=Math.floor(typeof a=="number"&&!isNaN(a)?a:1),h=Math.floor(typeof l=="number"&&!isNaN(l)?l:1);if(c<1)c=1,h=1;else if(c>t)c=t,h=this.getLineMaxColumn(c);else if(h<=1)h=1;else{const d=this.getLineMaxColumn(c);h>=d&&(h=d)}return i===o&&n===r&&a===c&&l===h&&e instanceof D&&!(e instanceof ce)?e:new D(o,r,c,h)}_isValidPosition(e,t,i){if(typeof e!="number"||typeof t!="number"||isNaN(e)||isNaN(t)||e<1||t<1||(e|0)!==e||(t|0)!==t)return!1;const n=this._buffer.getLineCount();if(e>n)return!1;if(t===1)return!0;const o=this.getLineMaxColumn(e);if(t>o)return!1;if(i===1){const r=this._buffer.getLineCharCode(e,t-2);if(gt(r))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor(typeof e=="number"&&!isNaN(e)?e:1),o=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),r=this._buffer.getLineCount();if(n<1)return new A(1,1);if(n>r)return new A(r,this.getLineMaxColumn(r));if(o<=1)return new A(n,1);const a=this.getLineMaxColumn(n);if(o>=a)return new A(n,a);if(i===1){const l=this._buffer.getLineCharCode(n,o-2);if(gt(l))return new A(n,o-1)}return new A(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof A&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,n,0)||!this._isValidPosition(o,r,0))return!1;if(t===1){const a=n>1?this._buffer.getLineCharCode(i,n-2):0,l=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,c=gt(a),h=gt(l);return!c&&!h}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof D&&!(e instanceof ce)&&this._isValidRange(e,1))return e;const i=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),o=i.lineNumber,r=i.column,a=n.lineNumber,l=n.column;{const c=r>1?this._buffer.getLineCharCode(o,r-2):0,h=l>1&&l<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,l-2):0,d=gt(c),u=gt(h);return!d&&!u?new D(o,r,a,l):o===a&&r===l?new D(o,r-1,a,l-1):d&&u?new D(o,r-1,a,l+1):d?new D(o,r-1,a,l):new D(o,r,a,l+1)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new D(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,r,a=D7){this._assertNotDisposed();let l=null;t!==null&&(Array.isArray(t)||(t=[t]),t.every(d=>D.isIRange(d))&&(l=t.map(d=>this.validateRange(d)))),l===null&&(l=[this.getFullModelRange()]),l=l.sort((d,u)=>d.startLineNumber-u.startLineNumber||d.startColumn-u.startColumn);const c=[];c.push(l.reduce((d,u)=>D.areIntersecting(d,u)?d.plusRange(u):(c.push(d),u)));let h;if(!i&&e.indexOf(` `)<0){const u=new Bo(e,i,n,o).parseSearchRequest();if(!u)return[];h=f=>this.findMatchesLineByLine(f,u,r,a)}else h=d=>Uh.findMatches(this,new Bo(e,i,n,o),d,r,a);return c.map(h).reduce((d,u)=>d.concat(u),[])}findNextMatch(e,t,i,n,o,r){this._assertNotDisposed();const a=this.validatePosition(t);if(!i&&e.indexOf(` `)<0){const c=new Bo(e,i,n,o).parseSearchRequest();if(!c)return null;const h=this.getLineCount();let d=new D(a.lineNumber,a.column,h,this.getLineMaxColumn(h)),u=this.findMatchesLineByLine(d,c,r,1);return Uh.findNextMatch(this,new Bo(e,i,n,o),a,r),u.length>0||(d=new D(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),u=this.findMatchesLineByLine(d,c,r,1),u.length>0)?u[0]:null}return Uh.findNextMatch(this,new Bo(e,i,n,o),a,r)}findPreviousMatch(e,t,i,n,o,r){this._assertNotDisposed();const a=this.validatePosition(t);return Uh.findPreviousMatch(this,new Bo(e,i,n,o),a,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` `?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof xg?e:new xg(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(r.range),text:r.text}));let o=!0;if(e)for(let r=0,a=e.length;rl.endLineNumber,m=l.startLineNumber>u.endLineNumber;if(!f&&!m){c=!0;break}}if(!c){o=!1;break}}if(o)for(let r=0,a=this._trimAutoWhitespaceLines.length;rf.endLineNumber)&&!(l===f.startLineNumber&&f.startColumn===c&&f.isEmpty()&&m&&m.length>0&&m.charAt(0)===` `)&&!(l===f.startLineNumber&&f.startColumn===1&&f.isEmpty()&&m&&m.length>0&&m.charAt(m.length-1)===` -`)){h=!1;break}}if(h){const d=new D(l,1,l,c);t.push(new xg(null,d,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){const o=e.map(r=>{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new D(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new D(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,h=r.length;c0?d.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(d.rangeOffset,d.rangeLength,d.text.length,d.forceMoveMarkers)}const a=[];this._increaseVersionId();let l=i;for(let c=0,h=r.length;c=0;I--){const R=f+I,T=v+I;y.takeFromEndWhile(F=>F.lineNumber>T);const P=y.takeFromEndWhile(F=>F.lineNumber===T);a.push(new Ew(R,this.getLineContent(T),P))}if(w<_){const I=f+w;a.push(new zR(I+1,m))}if(wie.lineNumberie.lineNumber===Q)}a.push(new UR(R+1,f+b,j,F))}l+=C}this._emitContentChangedEvent(new fr(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=[...e].map(n=>new Ew(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new Ck(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(o,r)=>this._deltaDecorationsImpl(e,[],[{range:o,options:r}])[0],changeDecoration:(o,r)=>{this._changeDecorationImpl(o,r)},changeDecorationOptions:(o,r)=>{this._changeDecorationOptionsImpl(o,Qw(r))},removeDecoration:o=>{this._deltaDecorationsImpl(e,[o],[])},deltaDecorations:(o,r)=>o.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,o,r)};let n=null;try{n=t(i)}catch(o){Ze(o)}return i.addDecoration=Wl,i.changeDecoration=Wl,i.changeDecorationOptions=Wl,i.removeDecoration=Wl,i.deltaDecorations=Wl,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Xw[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,o),n.setOptions(Xw[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),a=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new D(r,1,a,l),h=this._getDecorationsInRange(c,i,n);return h.push(...this._decorationProvider.getDecorationsInRange(c,i,n)),h}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),o=this._getDecorationsInRange(n,t,i);return o.push(...this._decorationProvider.getDecorationsInRange(n,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return In.fromDecorations(n).filter(o=>o.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,o,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),o=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;r0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||(this._bracketPairColorizer.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getLanguageId(){return this._languageId}setMode(e){if(this._languageId===e)return;const t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this._bracketPairColorizer.handleDidChangeLanguage(t),this._tokenization.handleDidChangeLanguage(t),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const i=this.validatePosition(new A(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}getTokenTypeIfInsertingCharacter(e,t,i){const n=this.validatePosition(new A(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[r,a]=Wo._findLanguageBoundaries(n,o),l=Ic(t.column,this.getLanguageConfiguration(n.getLanguageId(o)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&r===t.column-1){const[c,h]=Wo._findLanguageBoundaries(n,o-1),d=Ic(t.column,this.getLanguageConfiguration(n.getLanguageId(o-1)).getWordDefinition(),i.substring(c,h),c);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn)return d}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let o=e.getLineContent().length;for(let r=t,a=e.getCount();ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(o=>o.options.showIfCollapsed||!o.range.isEmpty())}getAll(e,t,i,n){const o=e.getVersionId(),r=this._search(t,i,n,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const o=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return o.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){_m(e)?this._injectedTextDecorationsTree.insert(e):pm(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){_m(e)?this._injectedTextDecorationsTree.delete(e):pm(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){_m(e)?this._injectedTextDecorationsTree.resolveNode(e,t):pm(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function zs(s){return s.replace(/[^a-z0-9\-_]/gi," ")}class Bk{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class A7 extends Bk{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Cr.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class O7 extends Bk{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?O.fromHex(e):t.getColor(e.id)}}class Xc{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof Xc?e:new Xc(e)}}class qe{constructor(e){var t,i;this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?zs(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new A7(e.overviewRuler):null,this.minimap=e.minimap?new O7(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?zs(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?zs(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?zs(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?zs(e.marginClassName):null,this.inlineClassName=e.inlineClassName?zs(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?zs(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?zs(e.afterContentClassName):null,this.after=e.after?Xc.from(e.after):null,this.before=e.before?Xc.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new qe(e)}static createDynamic(e){return new qe(e)}}qe.EMPTY=qe.register({description:"empty"});const Xw=[qe.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),qe.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),qe.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),qe.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Qw(s){return s instanceof qe?s:qe.createDynamic(s)}class P7 extends W{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new M),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class F7 extends W{constructor(){super(),this._fastEmitter=this._register(new M),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new M),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}function bm(s,e){return s===null?e?Ku.INSTANCE:qu.INSTANCE:new B7(s,e)}class B7{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,h)=>new In(0,0,c+1,this._projectionData.injectionOptions[h],0));r=In.applyInjectedText(e.getLineContent(t),a).substring(n,o)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(r=Jw(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,o,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,h=l.injectionOptions;let d=null;if(c){d=[];let f=0,m=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;mC)break;if(w0?l.wrappedTextIndentLength:0,y=L+Math.max(S-w,0),I=L+Math.min(k-w,C);y!==I&&b.push(new QN(y,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)f+=v,m++;else break}}}let u;c?u=e.getLineTokens(t).withInserted(c.map((f,m)=>({offset:f,text:h[m].content,tokenMetadata:vt.defaultTokenMetadata}))):u=e.getLineTokens(t);for(let f=i;f0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,o);let c=l.getLineContent();i>0&&(c=Jw(n.wrappedTextIndentLength)+c);const h=this._projectionData.getMinOutputOffset(i)+1,d=c.length+1,u=i+1=Cm.length)for(let e=1;e<=s;e++)Cm[e]=V7(e);return Cm[s]}function V7(s){return new Array(s+1).join(" ")}class W7{constructor(e,t,i,n,o,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new z7(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,r=this.createLineBreaksComputer(),a=new za(In.fromDecorations(n));for(let _=0;_w.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],h=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(D.compareRangesUsingStarts);let d=1,u=0,f=-1,m=f+1=d&&b<=u,C=bm(l[_],!w);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new gN(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=H7(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(D.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let f=0;f({range:u,options:qe.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,o);const r=i;let a=1,l=0,c=-1,h=c+1=a&&f<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),m=!0):(d=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),m=!0)),m){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(o&&r&&a&&l)return!1;const c=o&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let h=null;if(c){h=[];for(let d=0,u=this.modelLineProjections.length;d2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let h=0,d=n.length;hl?(h=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=h+l-1,m=d+1,_=m+(o-l)-1,c=!0):ot?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,o.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new ev(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new A(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new A(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const h=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,d=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=h;uu.horizontalLine?new ma(u.visibleColumn,u.className,new L_(u.horizontalLine.top,this.convertModelPositionToViewPosition(h.modelLineNumber,u.horizontalLine.endColumn).column)):u),r.push(d)}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let h=null;for(let m=l;m<=c;m++){const _=this.modelLineProjections[m];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,m===l?i.column:1),w=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(m+1)),C=w-b+1;let v=0;C>1&&_.getViewLineMinColumn(this.model,m+1,w)===1&&(v=b===0?1:2),r.push(C),a.push(v),h===null&&(h=new A(m+1,0))}else h!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,m)),h=null)}h!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,n.lineNumber)),h=null);const d=t-e+1,u=new Array(d);let f=0;for(let m=0,_=o.length;m<_;m++){let b=o[m];const w=Math.min(d-f,r[m]),C=a[m];let v;C===2?v=0:C===1?v=1:v=w;for(let S=0;St&&(m=!0,f=t-o+1),d.getViewLinesData(this.model,c+1,u,f,o-e,i,l),o+=f,m)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),o=n.index,r=n.remainder,a=this.modelLineProjections[o],l=a.getViewLineMinColumn(this.model,o+1,r),c=a.getViewLineMaxColumn(this.model,o+1,r);tc&&(t=c);const h=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new A(o+1,h)).equals(i)?new A(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new D(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new A(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new D(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new A(e,t)),o=n.lineNumber,r=n.column;let a=o-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new A(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let h;return l?h=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):h=this.modelLineProjections[o-1].getViewPositionOfModelPosition(c,r,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return D.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new D(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const o=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(o,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new D(n.lineNumber,1,o.lineNumber,o.column),t,i);let r=[];const a=n.lineNumber-1,l=o.lineNumber-1;let c=null;for(let f=a;f<=l;f++)if(this.modelLineProjections[f].isVisible())c===null&&(c=new A(f+1,f===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(f);r=r.concat(this.model.getDecorationsInRange(new D(c.lineNumber,c.column,f,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new D(c.lineNumber,c.column,o.lineNumber,o.column),t,i)),c=null),r.sort((f,m)=>{const _=D.compareRangesUsingStarts(f.range,m.range);return _===0?f.idm.id?1:0:_});let h=[],d=0,u=null;for(const f of r){const m=f.id;u!==m&&(u=m,h[d++]=f)}return h}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function H7(s){if(s.length===0)return[];const e=s.slice();e.sort(D.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let o=1,r=e.length;on+1?(t.push(new D(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new D(i,1,n,1)),t}class ev{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}get isWrappedLineContinuation(){return this.modelLineWrappedLineIdx>0}}class tv{constructor(e,t){this.modelRange=e,this.viewLines=t}}class z7{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class U7{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new $7(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new k_(t,i)}onModelLinesInserted(e,t,i,n){return new x_(t,i)}onModelLineChanged(e,t,i){return[!1,new wk(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let o=0;ot)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class j7 extends W{constructor(e,t,i,n,o,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new iA,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new Tt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new Tt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new U7(this.model);else{const c=this._configuration.options,h=c.get(44),d=c.get(125),u=c.get(132),f=c.get(124);this._lines=new W7(this._editorId,this.model,n,o,h,this.model.getOptions().tabSize,d,u.wrappingColumn,f)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new tl(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new _A(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new XR(c)),this._eventDispatcher.emitOutgoingEvent(new j0(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new bA(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const h=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(h,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(Dh.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new eA)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new QR(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new D(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new ZR(e)),this._eventDispatcher.emitOutgoingEvent(new $0(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new jR)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new KR)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStartLine!==-1){const h=new A(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(h)}let n=!1;const o=this._configuration.options,r=o.get(44),a=o.get(125),l=o.get(132),c=o.get(124);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new Yh),e.emitViewEvent(new Xh),e.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(81)&&(this._decorations.reset(),e.emitViewEvent(new Xr(null))),e.emitViewEvent(new qR(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const h=this.coordinatesConverter.convertModelPositionToViewPosition(i),d=this.viewLayout.getVerticalOffsetForLineNumber(h.lineNumber);this.viewLayout.setScrollPosition({scrollTop:d+this._viewportStartLineDelta},1)}Yr.shouldRecreate(t)&&(this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e.changes,r=e instanceof fr?e.versionId:null,a=this._lines.createLineBreaksComputer();for(const h of o)switch(h.changeType){case 4:{for(let d=0;d!m.ownerId||m.ownerId===this._editorId)),a.addRequest(u,f,null)}break}case 2:{let d=null;h.injectedText&&(d=h.injectedText.filter(u=>!u.ownerId||u.ownerId===this._editorId)),a.addRequest(h.detail,d,null);break}}const l=a.finalize(),c=new za(l);for(const h of o)switch(h.changeType){case 1:{this._lines.onModelFlushed(),t.emitViewEvent(new Yh),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break}case 3:{const d=this._lines.onModelLinesDeleted(r,h.fromLineNumber,h.toLineNumber);d!==null&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber)),i=!0;break}case 4:{const d=c.takeCount(h.detail.length),u=this._lines.onModelLinesInserted(r,h.fromLineNumber,h.toLineNumber,d);u!==null&&(t.emitViewEvent(u),this.viewLayout.onLinesInserted(u.fromLineNumber,u.toLineNumber)),i=!0;break}case 2:{const d=c.dequeue(),[u,f,m,_]=this._lines.onModelLineChanged(r,h.lineNumber,d);n=u,f&&t.emitViewEvent(f),m&&(t.emitViewEvent(m),this.viewLayout.onLinesInserted(m.fromLineNumber,m.toLineNumber)),_&&(t.emitViewEvent(_),this.viewLayout.onLinesDeleted(_.fromLineNumber,_.toLineNumber));break}case 5:break}r!==null&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Xh),t.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const t=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(t){const i=this.coordinatesConverter.convertModelPositionToViewPosition(t.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new YR),this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new Yh),t.emitViewEvent(new Xh),t.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Xr(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new Yh),i.emitViewEvent(new Xh),i.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new Dw)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(131),t=this._configuration.options.get(59),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new D(o,this.getLineMinColumn(o),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let o=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let h=0,d=i.length;hl||(rc.toInlineDecoration(t))]),new vi(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,l,o,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new XN(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,su(this._configuration.options)),i=new K7;for(const n of t){const o=n.options,r=o.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),h=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,o.zIndex,c,h,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r -`:this.model.getEOL();e=e.slice(0),e.sort(D.compareRangesUsingStarts);let o=!1,r=!1;for(const l of e)l.isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";const l=e.map(h=>h.startLineNumber);let c="";for(let h=0;h0&&l[h-1]===l[h]||(c+=this.model.getLineContent(l[h])+n);return c}if(o&&t){const l=[];let c=0;for(const h of e){const d=h.startLineNumber;h.isEmpty()?d!==c&&l.push(this.model.getLineContent(d)):l.push(this.model.getValueInRange(h,i?2:0)),c=d}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Vr||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const h=n.startLineNumber;n=new D(h,this.model.getLineMinColumn(h),h,this.model.getLineMaxColumn(h))}const o=this._configuration.options.get(44),r=this._getColorMap(),l=/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===bi.fontFamily;let c;return l?c=bi.fontFamily:(c=o.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${bi.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=o;c++){const h=this.model.getLineTokens(c),d=h.getLineContent(),u=c===i?n-1:0,f=c===o?r-1:d.length;d===""?l+="
":l+=uA(d,h.inflate(),t,u,f,a,li)}return l}_getColorMap(){const e=et.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new sA);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,o){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,o))}paste(e,t,i,n){this._executeCursorEdit(o=>this._cursor.paste(o,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new D(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new zd(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new D(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new zd(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,o){this._withViewEventsCollector(r=>r.emitViewEvent(new zd(e,!1,i,null,n,t,o)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new tA),this._eventDispatcher.emitOutgoingEvent(new Dw))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class K7{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===o&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(o,i,n)}else{const a=new eL(e,t,[o,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class Zf{constructor(...e){this._entries=new Map;for(let[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var Qc;(function(s){s[s.Ignore=0]="Ignore",s[s.Info=1]="Info",s[s.Warning=2]="Warning",s[s.Error=3]="Error"})(Qc||(Qc={}));(function(s){const e="error",t="warning",i="warn",n="info",o="ignore";function r(l){return l?aa(e,l)?s.Error:aa(t,l)||aa(i,l)?s.Warning:aa(n,l)?s.Info:s.Ignore:s.Ignore}s.fromValue=r;function a(l){switch(l){case s.Error:return e;case s.Warning:return t;case s.Info:return n;default:return o}}s.toString=a})(Qc||(Qc={}));var at=Qc;const Dn=pe("notificationService");class q7{}class _c{constructor(e,t,i,n,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let o=0;othis.injectionOffsets[o];o++)n0?this.breakOffsets[o-1]:0,t===0)if(e<=r)n=o-1;else if(e>l)i=o+1;else break;else if(e=l)i=o+1;else break}let a=e-r;return o>0&&(a+=this.wrappedTextIndentLength),new rd(o,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new rd(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&iv(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(nv(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let o=i.injectedTextIndex-1;for(;o>=0&&this.injectionOffsets[o]===this.injectionOffsets[i.injectedTextIndex]&&!(iv(this.injectionOptions[o].cursorStops)||(n-=this.injectionOptions[o].content.length,nv(this.injectionOptions[o].cursorStops)));)o--;return n}}else if(t===1){let n=i.offsetInInputWithInjections+i.length,o=i.injectedTextIndex;for(;o+1=0&&this.injectionOffsets[o-1]===this.injectionOffsets[o];)n-=this.injectionOptions[o-1].content.length,o--;return n}K1()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let o=0;oe)break;if(e<=l)return{injectedTextIndex:o,offsetInInputWithInjections:a,length:r};n+=r}}}}function iv(s){return s==null?!0:s===$a.Right||s===$a.Both}function nv(s){return s==null?!0:s===$a.Left||s===$a.Both}class rd{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new A(e+this.outputLineIndex,this.outputOffset+1)}}class ib{constructor(e,t){this.classifier=new G7(e,t)}static create(e){return new ib(e.get(120),e.get(119))}createLineBreaksComputer(e,t,i,n){const o=[],r=[],a=[];return{addRequest:(l,c,h)=>{o.push(l),r.push(c),a.push(h)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let h=0,d=o.length;h=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let M_=[],R_=[];function Z7(s,e,t,i,n,o,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,h=Vk(t,i,n,o,r),d=n-h,u=M_,f=R_;let m=0,_=0,b=0,w=n;const C=l.length;let v=0;if(v>=0){let S=Math.abs(c[v]-w);for(;v+1=S)break;S=k,v++}}for(;vS&&(S=_,k=b);let x=0,L=0,y=0,I=0;if(k<=w){let T=k,P=S===0?0:t.charCodeAt(S-1),F=S===0?0:s.get(P),j=!0;for(let z=S;z_&&A_(P,F,ie,ee)&&(x=Q,L=T),T+=ae,T>w){Q>_?(y=Q,I=T-ae):(y=z+1,I=T),T-L>d&&(x=0),j=!1;break}P=ie,F=ee}if(j){m>0&&(u[m]=l[l.length-1],f[m]=c[l.length-1],m++);break}}if(x===0){let T=k,P=t.charCodeAt(S),F=s.get(P),j=!1;for(let z=S-1;z>=_;z--){const Q=z+1,ie=t.charCodeAt(z);if(ie===9){j=!0;break}let ee,ae;if(Ua(ie)?(z--,ee=0,ae=2):(ee=s.get(ie),ae=vo(ie)?o:1),T<=w){if(y===0&&(y=Q,I=T),T<=w-d)break;if(A_(ie,ee,P,F)){x=Q,L=T;break}}T-=ae,P=ie,F=ee}if(x!==0){const z=d-(I-L);if(z<=i){const Q=t.charCodeAt(y);let ie;gt(Q)?ie=2:ie=bc(Q,I,i,o),z-ie<0&&(x=0)}}if(j){v--;continue}}if(x===0&&(x=y,L=I),x<=_){const T=t.charCodeAt(_);gt(T)?(x=_+2,L=b+2):(x=_+1,L=b+bc(T,b,i,o))}for(_=x,u[m]=x,b=L,f[m]=L,m++,w=L+d;v<0||v=R)break;R=T,v++}}return m===0?null:(u.length=m,f.length=m,M_=e.breakOffsets,R_=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=f,e.wrappedTextIndentLength=h,e)}function Y7(s,e,t,i,n,o,r){const a=In.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(L=>L.options),c=t.map(L=>L.column-1)):(l=null,c=null),n===-1)return l?new _c(c,l,[a.length],[],0):null;const h=a.length;if(h<=1)return l?new _c(c,l,[a.length],[],0):null;const d=Vk(a,i,n,o,r),u=n-d,f=[],m=[];let _=0,b=0,w=0,C=n,v=a.charCodeAt(0),S=s.get(v),k=bc(v,0,i,o),x=1;gt(v)&&(k+=1,v=a.charCodeAt(1),S=s.get(v),x++);for(let L=x;LC&&((b===0||k-w>u)&&(b=y,w=k-T),f[_]=b,m[_]=w,_++,C=w+u,b=0),v=I,S=R}return _===0&&(!t||t.length===0)?null:(f[_]=h,m[_]=k,new _c(c,l,f,m,d))}function bc(s,e,t,i){return s===9?t-e%t:vo(s)||s<32?i:1}function sv(s,e){return e-s%e}function A_(s,e,t,i){return t!==32&&(e===2||e===3&&i!==2||i===1||i===3&&e!==1)}function Vk(s,e,t,i,n){let o=0;if(n!==0){const r=Ci(s);if(r!==-1){for(let l=0;lt&&(o=0)}}return o}var wm;const vm=(wm=window.trustedTypes)===null||wm===void 0?void 0:wm.createPolicy("domLineBreaksComputer",{createHTML:s=>s});class nb{static create(){return new nb}constructor(){}createLineBreaksComputer(e,t,i,n){const o=[],r=[];return{addRequest:(a,l,c)=>{o.push(a),r.push(l)},finalize:()=>X7(o,e,t,i,n,r)}}}function X7(s,e,t,i,n,o){var r;function a(y){const I=o[y];if(I){const R=In.applyInjectedText(s[y],I),T=I.map(F=>F.options),P=I.map(F=>F.column-1);return new _c(P,T,[R.length],[],0)}else return null}if(i===-1){const y=[];for(let I=0,R=s.length;Il?(R=0,T=0):P=l-z}const F=I.substr(R),j=Q7(F,T,t,P,f,d);m[y]=R,_[y]=T,b[y]=F,w[y]=j[0],C[y]=j[1]}const v=f.build(),S=(r=vm==null?void 0:vm.createHTML(v))!==null&&r!==void 0?r:v;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),L=[];for(let y=0;yee.options),Q=ie.map(ee=>ee.column-1)):(z=null,Q=null),L[y]=new _c(Q,z,R,j,P)}return document.body.removeChild(u),L}function Q7(s,e,t,i,n,o){if(o!==0){const u=String(o);n.appendASCIIString('
');const r=s.length;let a=e,l=0;const c=[],h=[];let d=0");for(let u=0;u"),c[u]=l,h[u]=a;const f=d;d=u+1"),c[s.length]=l,h[s.length]=a,n.appendASCIIString("
"),[c,h]}function J7(s,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),o=[];try{O_(s,n,i,0,null,t.length-1,null,o)}catch(r){return console.log(r),null}return o.length===0?null:(o.push(t.length),o)}function O_(s,e,t,i,n,o,r,a){if(i===o||(n=n||Sm(s,e,t[i],t[i+1]),r=r||Sm(s,e,t[o],t[o+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===o){a.push(o);return}const l=i+(o-i)/2|0,c=Sm(s,e,t[l],t[l+1]);O_(s,e,t,i,n,l,c,a),O_(s,e,t,l,c,o,r,a)}function Sm(s,e,t,i){return s.setStart(e[t/16384|0].firstChild,t%16384),s.setEnd(e[i/16384|0].firstChild,i%16384),s.getClientRects()}var e9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},us=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let t9=0;class i9{constructor(e,t,i,n,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o}dispose(){Me(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let Gu=class jd extends W{constructor(e,t,i,n,o,r,a,l,c,h,d,u){super(),this.languageConfigurationService=d,this._onDidDispose=this._register(new M),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new M),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new M),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new M),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new M),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new M),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new M),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new M),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new M),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new M),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new M),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new M),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new ov),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new ov),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new M),this.onWillType=this._onWillType.event,this._onDidType=this._register(new M),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new M),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new M),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new M),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new M),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new M),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new M),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new M),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new M),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new M),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new M),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new M),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new M),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new M),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new M),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new M),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new M),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new M),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null;const f=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++t9,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,f,h)),this._register(this._configuration.onDidChange(_=>{this._onDidChangeConfiguration.fire(_);const b=this._configuration.options;if(_.hasChanged(131)){const w=b.get(131);this._onDidLayoutChange.fire(w)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=o,this._commandService=r,this._themeService=l,this._register(new n9(this,this._contextKeyService)),this._register(new s9(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new Zf([Ne,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new o9(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let m;Array.isArray(i.contributions)?m=i.contributions:m=Ia.getEditorContributions();for(const _ of m){if(this._contributions[_.id]){Ze(new Error(`Cannot have two contributions with the same id ${_.id}`));continue}try{const b=this._instantiationService.createInstance(_.ctor,this);this._contributions[_.id]=b}catch(b){Ze(b)}}Ia.getEditorActions().forEach(_=>{if(this._actions[_.id]){Ze(new Error(`Cannot have two actions with the same id ${_.id}`));return}const b=new vk(_.id,_.label,_.alias,Qo(_.precondition),()=>this._instantiationService.invokeFunction(w=>Promise.resolve(_.runEditorCommand(w,this,null))),this._contextKeyService);this._actions[b.id]=b}),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new f_(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return d0.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;t{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new D(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new D(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,h=r.length;c0?d.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(d.rangeOffset,d.rangeLength,d.text.length,d.forceMoveMarkers)}const a=[];this._increaseVersionId();let l=i;for(let c=0,h=r.length;c=0;I--){const R=f+I,T=v+I;y.takeFromEndWhile(F=>F.lineNumber>T);const P=y.takeFromEndWhile(F=>F.lineNumber===T);a.push(new Ew(R,this.getLineContent(T),P))}if(w<_){const I=f+w;a.push(new HR(I+1,m))}if(wie.lineNumberie.lineNumber===Q)}a.push(new zR(R+1,f+b,j,F))}l+=C}this._emitContentChangedEvent(new fr(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=[...e].map(n=>new Ew(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new Ck(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(o,r)=>this._deltaDecorationsImpl(e,[],[{range:o,options:r}])[0],changeDecoration:(o,r)=>{this._changeDecorationImpl(o,r)},changeDecorationOptions:(o,r)=>{this._changeDecorationOptionsImpl(o,Qw(r))},removeDecoration:o=>{this._deltaDecorationsImpl(e,[o],[])},deltaDecorations:(o,r)=>o.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,o,r)};let n=null;try{n=t(i)}catch(o){Ze(o)}return i.addDecoration=Wl,i.changeDecoration=Wl,i.changeDecorationOptions=Wl,i.removeDecoration=Wl,i.deltaDecorations=Wl,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Xw[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,o),n.setOptions(Xw[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),a=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new D(r,1,a,l),h=this._getDecorationsInRange(c,i,n);return h.push(...this._decorationProvider.getDecorationsInRange(c,i,n)),h}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),o=this._getDecorationsInRange(n,t,i);return o.push(...this._decorationProvider.getDecorationsInRange(n,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return In.fromDecorations(n).filter(o=>o.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,o,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),o=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;r0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||(this._bracketPairColorizer.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getLanguageId(){return this._languageId}setMode(e){if(this._languageId===e)return;const t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this._bracketPairColorizer.handleDidChangeLanguage(t),this._tokenization.handleDidChangeLanguage(t),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const i=this.validatePosition(new A(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}getTokenTypeIfInsertingCharacter(e,t,i){const n=this.validatePosition(new A(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[r,a]=Wo._findLanguageBoundaries(n,o),l=Ic(t.column,this.getLanguageConfiguration(n.getLanguageId(o)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&r===t.column-1){const[c,h]=Wo._findLanguageBoundaries(n,o-1),d=Ic(t.column,this.getLanguageConfiguration(n.getLanguageId(o-1)).getWordDefinition(),i.substring(c,h),c);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn)return d}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let o=e.getLineContent().length;for(let r=t,a=e.getCount();ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(o=>o.options.showIfCollapsed||!o.range.isEmpty())}getAll(e,t,i,n){const o=e.getVersionId(),r=this._search(t,i,n,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const o=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return o.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){_m(e)?this._injectedTextDecorationsTree.insert(e):pm(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){_m(e)?this._injectedTextDecorationsTree.delete(e):pm(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){_m(e)?this._injectedTextDecorationsTree.resolveNode(e,t):pm(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function zs(s){return s.replace(/[^a-z0-9\-_]/gi," ")}class Bk{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class R7 extends Bk{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Cr.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class A7 extends Bk{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?O.fromHex(e):t.getColor(e.id)}}class Xc{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof Xc?e:new Xc(e)}}class qe{constructor(e){var t,i;this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?zs(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new R7(e.overviewRuler):null,this.minimap=e.minimap?new A7(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?zs(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?zs(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?zs(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?zs(e.marginClassName):null,this.inlineClassName=e.inlineClassName?zs(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?zs(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?zs(e.afterContentClassName):null,this.after=e.after?Xc.from(e.after):null,this.before=e.before?Xc.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new qe(e)}static createDynamic(e){return new qe(e)}}qe.EMPTY=qe.register({description:"empty"});const Xw=[qe.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),qe.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),qe.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),qe.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Qw(s){return s instanceof qe?s:qe.createDynamic(s)}class O7 extends W{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new M),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class P7 extends W{constructor(){super(),this._fastEmitter=this._register(new M),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new M),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}function bm(s,e){return s===null?e?Ku.INSTANCE:qu.INSTANCE:new F7(s,e)}class F7{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,h)=>new In(0,0,c+1,this._projectionData.injectionOptions[h],0));r=In.applyInjectedText(e.getLineContent(t),a).substring(n,o)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(r=Jw(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,o,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,h=l.injectionOptions;let d=null;if(c){d=[];let f=0,m=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;mC)break;if(w0?l.wrappedTextIndentLength:0,y=L+Math.max(S-w,0),I=L+Math.min(k-w,C);y!==I&&b.push(new XN(y,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)f+=v,m++;else break}}}let u;c?u=e.getLineTokens(t).withInserted(c.map((f,m)=>({offset:f,text:h[m].content,tokenMetadata:vt.defaultTokenMetadata}))):u=e.getLineTokens(t);for(let f=i;f0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,o);let c=l.getLineContent();i>0&&(c=Jw(n.wrappedTextIndentLength)+c);const h=this._projectionData.getMinOutputOffset(i)+1,d=c.length+1,u=i+1=Cm.length)for(let e=1;e<=s;e++)Cm[e]=B7(e);return Cm[s]}function B7(s){return new Array(s+1).join(" ")}class V7{constructor(e,t,i,n,o,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new H7(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,r=this.createLineBreaksComputer(),a=new za(In.fromDecorations(n));for(let _=0;_w.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],h=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(D.compareRangesUsingStarts);let d=1,u=0,f=-1,m=f+1=d&&b<=u,C=bm(l[_],!w);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new fN(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=W7(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(D.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let f=0;f({range:u,options:qe.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,o);const r=i;let a=1,l=0,c=-1,h=c+1=a&&f<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),m=!0):(d=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),m=!0)),m){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(o&&r&&a&&l)return!1;const c=o&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let h=null;if(c){h=[];for(let d=0,u=this.modelLineProjections.length;d2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let h=0,d=n.length;hl?(h=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=h+l-1,m=d+1,_=m+(o-l)-1,c=!0):ot?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,o.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new ev(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new A(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new A(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const h=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,d=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=h;uu.horizontalLine?new ma(u.visibleColumn,u.className,new L_(u.horizontalLine.top,this.convertModelPositionToViewPosition(h.modelLineNumber,u.horizontalLine.endColumn).column)):u),r.push(d)}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let h=null;for(let m=l;m<=c;m++){const _=this.modelLineProjections[m];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,m===l?i.column:1),w=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(m+1)),C=w-b+1;let v=0;C>1&&_.getViewLineMinColumn(this.model,m+1,w)===1&&(v=b===0?1:2),r.push(C),a.push(v),h===null&&(h=new A(m+1,0))}else h!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,m)),h=null)}h!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(h.lineNumber,n.lineNumber)),h=null);const d=t-e+1,u=new Array(d);let f=0;for(let m=0,_=o.length;m<_;m++){let b=o[m];const w=Math.min(d-f,r[m]),C=a[m];let v;C===2?v=0:C===1?v=1:v=w;for(let S=0;St&&(m=!0,f=t-o+1),d.getViewLinesData(this.model,c+1,u,f,o-e,i,l),o+=f,m)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),o=n.index,r=n.remainder,a=this.modelLineProjections[o],l=a.getViewLineMinColumn(this.model,o+1,r),c=a.getViewLineMaxColumn(this.model,o+1,r);tc&&(t=c);const h=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new A(o+1,h)).equals(i)?new A(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new D(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new A(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new D(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new A(e,t)),o=n.lineNumber,r=n.column;let a=o-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new A(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let h;return l?h=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):h=this.modelLineProjections[o-1].getViewPositionOfModelPosition(c,r,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return D.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new D(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const o=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(o,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new D(n.lineNumber,1,o.lineNumber,o.column),t,i);let r=[];const a=n.lineNumber-1,l=o.lineNumber-1;let c=null;for(let f=a;f<=l;f++)if(this.modelLineProjections[f].isVisible())c===null&&(c=new A(f+1,f===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(f);r=r.concat(this.model.getDecorationsInRange(new D(c.lineNumber,c.column,f,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new D(c.lineNumber,c.column,o.lineNumber,o.column),t,i)),c=null),r.sort((f,m)=>{const _=D.compareRangesUsingStarts(f.range,m.range);return _===0?f.idm.id?1:0:_});let h=[],d=0,u=null;for(const f of r){const m=f.id;u!==m&&(u=m,h[d++]=f)}return h}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function W7(s){if(s.length===0)return[];const e=s.slice();e.sort(D.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let o=1,r=e.length;on+1?(t.push(new D(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new D(i,1,n,1)),t}class ev{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}get isWrappedLineContinuation(){return this.modelLineWrappedLineIdx>0}}class tv{constructor(e,t){this.modelRange=e,this.viewLines=t}}class H7{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class z7{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new U7(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new k_(t,i)}onModelLinesInserted(e,t,i,n){return new x_(t,i)}onModelLineChanged(e,t,i){return[!1,new wk(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let o=0;ot)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class $7 extends W{constructor(e,t,i,n,o,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new tA,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new Tt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new Tt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new z7(this.model);else{const c=this._configuration.options,h=c.get(44),d=c.get(125),u=c.get(132),f=c.get(124);this._lines=new V7(this._editorId,this.model,n,o,h,this.model.getOptions().tabSize,d,u.wrappingColumn,f)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new tl(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new pA(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new YR(c)),this._eventDispatcher.emitOutgoingEvent(new j0(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new _A(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const h=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(h,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(Dh.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new JR)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new XR(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new D(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new GR(e)),this._eventDispatcher.emitOutgoingEvent(new $0(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new $R)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new jR)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStartLine!==-1){const h=new A(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(h)}let n=!1;const o=this._configuration.options,r=o.get(44),a=o.get(125),l=o.get(132),c=o.get(124);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new Yh),e.emitViewEvent(new Xh),e.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(81)&&(this._decorations.reset(),e.emitViewEvent(new Xr(null))),e.emitViewEvent(new KR(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const h=this.coordinatesConverter.convertModelPositionToViewPosition(i),d=this.viewLayout.getVerticalOffsetForLineNumber(h.lineNumber);this.viewLayout.setScrollPosition({scrollTop:d+this._viewportStartLineDelta},1)}Yr.shouldRecreate(t)&&(this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e.changes,r=e instanceof fr?e.versionId:null,a=this._lines.createLineBreaksComputer();for(const h of o)switch(h.changeType){case 4:{for(let d=0;d!m.ownerId||m.ownerId===this._editorId)),a.addRequest(u,f,null)}break}case 2:{let d=null;h.injectedText&&(d=h.injectedText.filter(u=>!u.ownerId||u.ownerId===this._editorId)),a.addRequest(h.detail,d,null);break}}const l=a.finalize(),c=new za(l);for(const h of o)switch(h.changeType){case 1:{this._lines.onModelFlushed(),t.emitViewEvent(new Yh),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break}case 3:{const d=this._lines.onModelLinesDeleted(r,h.fromLineNumber,h.toLineNumber);d!==null&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber)),i=!0;break}case 4:{const d=c.takeCount(h.detail.length),u=this._lines.onModelLinesInserted(r,h.fromLineNumber,h.toLineNumber,d);u!==null&&(t.emitViewEvent(u),this.viewLayout.onLinesInserted(u.fromLineNumber,u.toLineNumber)),i=!0;break}case 2:{const d=c.dequeue(),[u,f,m,_]=this._lines.onModelLineChanged(r,h.lineNumber,d);n=u,f&&t.emitViewEvent(f),m&&(t.emitViewEvent(m),this.viewLayout.onLinesInserted(m.fromLineNumber,m.toLineNumber)),_&&(t.emitViewEvent(_),this.viewLayout.onLinesDeleted(_.fromLineNumber,_.toLineNumber));break}case 5:break}r!==null&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Xh),t.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const t=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(t){const i=this.coordinatesConverter.convertModelPositionToViewPosition(t.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new ZR),this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new Yh),t.emitViewEvent(new Xh),t.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Yr(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Xr(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new Yh),i.emitViewEvent(new Xh),i.emitViewEvent(new Xr(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new Dw)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(131),t=this._configuration.options.get(59),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new D(o,this.getLineMinColumn(o),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let o=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let h=0,d=i.length;hl||(rc.toInlineDecoration(t))]),new vi(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,l,o,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new YN(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,su(this._configuration.options)),i=new j7;for(const n of t){const o=n.options,r=o.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),h=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,o.zIndex,c,h,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(D.compareRangesUsingStarts);let o=!1,r=!1;for(const l of e)l.isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";const l=e.map(h=>h.startLineNumber);let c="";for(let h=0;h0&&l[h-1]===l[h]||(c+=this.model.getLineContent(l[h])+n);return c}if(o&&t){const l=[];let c=0;for(const h of e){const d=h.startLineNumber;h.isEmpty()?d!==c&&l.push(this.model.getLineContent(d)):l.push(this.model.getValueInRange(h,i?2:0)),c=d}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Vr||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const h=n.startLineNumber;n=new D(h,this.model.getLineMinColumn(h),h,this.model.getLineMaxColumn(h))}const o=this._configuration.options.get(44),r=this._getColorMap(),l=/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===bi.fontFamily;let c;return l?c=bi.fontFamily:(c=o.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${bi.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=o;c++){const h=this.model.getLineTokens(c),d=h.getLineContent(),u=c===i?n-1:0,f=c===o?r-1:d.length;d===""?l+="
":l+=dA(d,h.inflate(),t,u,f,a,li)}return l}_getColorMap(){const e=et.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new nA);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,o){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,o))}paste(e,t,i,n){this._executeCursorEdit(o=>this._cursor.paste(o,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new D(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new zd(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new D(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new zd(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,o){this._withViewEventsCollector(r=>r.emitViewEvent(new zd(e,!1,i,null,n,t,o)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new eA),this._eventDispatcher.emitOutgoingEvent(new Dw))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class j7{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===o&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(o,i,n)}else{const a=new eL(e,t,[o,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class Zf{constructor(...e){this._entries=new Map;for(let[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var Qc;(function(s){s[s.Ignore=0]="Ignore",s[s.Info=1]="Info",s[s.Warning=2]="Warning",s[s.Error=3]="Error"})(Qc||(Qc={}));(function(s){const e="error",t="warning",i="warn",n="info",o="ignore";function r(l){return l?aa(e,l)?s.Error:aa(t,l)||aa(i,l)?s.Warning:aa(n,l)?s.Info:s.Ignore:s.Ignore}s.fromValue=r;function a(l){switch(l){case s.Error:return e;case s.Warning:return t;case s.Info:return n;default:return o}}s.toString=a})(Qc||(Qc={}));var at=Qc;const Dn=pe("notificationService");class K7{}class _c{constructor(e,t,i,n,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let o=0;othis.injectionOffsets[o];o++)n0?this.breakOffsets[o-1]:0,t===0)if(e<=r)n=o-1;else if(e>l)i=o+1;else break;else if(e=l)i=o+1;else break}let a=e-r;return o>0&&(a+=this.wrappedTextIndentLength),new rd(o,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new rd(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&iv(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(nv(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let o=i.injectedTextIndex-1;for(;o>=0&&this.injectionOffsets[o]===this.injectionOffsets[i.injectedTextIndex]&&!(iv(this.injectionOptions[o].cursorStops)||(n-=this.injectionOptions[o].content.length,nv(this.injectionOptions[o].cursorStops)));)o--;return n}}else if(t===1){let n=i.offsetInInputWithInjections+i.length,o=i.injectedTextIndex;for(;o+1=0&&this.injectionOffsets[o-1]===this.injectionOffsets[o];)n-=this.injectionOptions[o-1].content.length,o--;return n}K1()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let o=0;oe)break;if(e<=l)return{injectedTextIndex:o,offsetInInputWithInjections:a,length:r};n+=r}}}}function iv(s){return s==null?!0:s===$a.Right||s===$a.Both}function nv(s){return s==null?!0:s===$a.Left||s===$a.Both}class rd{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new A(e+this.outputLineIndex,this.outputOffset+1)}}class ib{constructor(e,t){this.classifier=new q7(e,t)}static create(e){return new ib(e.get(120),e.get(119))}createLineBreaksComputer(e,t,i,n){const o=[],r=[],a=[];return{addRequest:(l,c,h)=>{o.push(l),r.push(c),a.push(h)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let h=0,d=o.length;h=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let M_=[],R_=[];function G7(s,e,t,i,n,o,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,h=Vk(t,i,n,o,r),d=n-h,u=M_,f=R_;let m=0,_=0,b=0,w=n;const C=l.length;let v=0;if(v>=0){let S=Math.abs(c[v]-w);for(;v+1=S)break;S=k,v++}}for(;vS&&(S=_,k=b);let x=0,L=0,y=0,I=0;if(k<=w){let T=k,P=S===0?0:t.charCodeAt(S-1),F=S===0?0:s.get(P),j=!0;for(let z=S;z_&&A_(P,F,ie,ee)&&(x=Q,L=T),T+=ae,T>w){Q>_?(y=Q,I=T-ae):(y=z+1,I=T),T-L>d&&(x=0),j=!1;break}P=ie,F=ee}if(j){m>0&&(u[m]=l[l.length-1],f[m]=c[l.length-1],m++);break}}if(x===0){let T=k,P=t.charCodeAt(S),F=s.get(P),j=!1;for(let z=S-1;z>=_;z--){const Q=z+1,ie=t.charCodeAt(z);if(ie===9){j=!0;break}let ee,ae;if(Ua(ie)?(z--,ee=0,ae=2):(ee=s.get(ie),ae=vo(ie)?o:1),T<=w){if(y===0&&(y=Q,I=T),T<=w-d)break;if(A_(ie,ee,P,F)){x=Q,L=T;break}}T-=ae,P=ie,F=ee}if(x!==0){const z=d-(I-L);if(z<=i){const Q=t.charCodeAt(y);let ie;gt(Q)?ie=2:ie=bc(Q,I,i,o),z-ie<0&&(x=0)}}if(j){v--;continue}}if(x===0&&(x=y,L=I),x<=_){const T=t.charCodeAt(_);gt(T)?(x=_+2,L=b+2):(x=_+1,L=b+bc(T,b,i,o))}for(_=x,u[m]=x,b=L,f[m]=L,m++,w=L+d;v<0||v=R)break;R=T,v++}}return m===0?null:(u.length=m,f.length=m,M_=e.breakOffsets,R_=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=f,e.wrappedTextIndentLength=h,e)}function Z7(s,e,t,i,n,o,r){const a=In.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(L=>L.options),c=t.map(L=>L.column-1)):(l=null,c=null),n===-1)return l?new _c(c,l,[a.length],[],0):null;const h=a.length;if(h<=1)return l?new _c(c,l,[a.length],[],0):null;const d=Vk(a,i,n,o,r),u=n-d,f=[],m=[];let _=0,b=0,w=0,C=n,v=a.charCodeAt(0),S=s.get(v),k=bc(v,0,i,o),x=1;gt(v)&&(k+=1,v=a.charCodeAt(1),S=s.get(v),x++);for(let L=x;LC&&((b===0||k-w>u)&&(b=y,w=k-T),f[_]=b,m[_]=w,_++,C=w+u,b=0),v=I,S=R}return _===0&&(!t||t.length===0)?null:(f[_]=h,m[_]=k,new _c(c,l,f,m,d))}function bc(s,e,t,i){return s===9?t-e%t:vo(s)||s<32?i:1}function sv(s,e){return e-s%e}function A_(s,e,t,i){return t!==32&&(e===2||e===3&&i!==2||i===1||i===3&&e!==1)}function Vk(s,e,t,i,n){let o=0;if(n!==0){const r=Ci(s);if(r!==-1){for(let l=0;lt&&(o=0)}}return o}var wm;const vm=(wm=window.trustedTypes)===null||wm===void 0?void 0:wm.createPolicy("domLineBreaksComputer",{createHTML:s=>s});class nb{static create(){return new nb}constructor(){}createLineBreaksComputer(e,t,i,n){const o=[],r=[];return{addRequest:(a,l,c)=>{o.push(a),r.push(l)},finalize:()=>Y7(o,e,t,i,n,r)}}}function Y7(s,e,t,i,n,o){var r;function a(y){const I=o[y];if(I){const R=In.applyInjectedText(s[y],I),T=I.map(F=>F.options),P=I.map(F=>F.column-1);return new _c(P,T,[R.length],[],0)}else return null}if(i===-1){const y=[];for(let I=0,R=s.length;Il?(R=0,T=0):P=l-z}const F=I.substr(R),j=X7(F,T,t,P,f,d);m[y]=R,_[y]=T,b[y]=F,w[y]=j[0],C[y]=j[1]}const v=f.build(),S=(r=vm==null?void 0:vm.createHTML(v))!==null&&r!==void 0?r:v;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),L=[];for(let y=0;yee.options),Q=ie.map(ee=>ee.column-1)):(z=null,Q=null),L[y]=new _c(Q,z,R,j,P)}return document.body.removeChild(u),L}function X7(s,e,t,i,n,o){if(o!==0){const u=String(o);n.appendASCIIString('
');const r=s.length;let a=e,l=0;const c=[],h=[];let d=0");for(let u=0;u"),c[u]=l,h[u]=a;const f=d;d=u+1"),c[s.length]=l,h[s.length]=a,n.appendASCIIString("
"),[c,h]}function Q7(s,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),o=[];try{O_(s,n,i,0,null,t.length-1,null,o)}catch(r){return console.log(r),null}return o.length===0?null:(o.push(t.length),o)}function O_(s,e,t,i,n,o,r,a){if(i===o||(n=n||Sm(s,e,t[i],t[i+1]),r=r||Sm(s,e,t[o],t[o+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===o){a.push(o);return}const l=i+(o-i)/2|0,c=Sm(s,e,t[l],t[l+1]);O_(s,e,t,i,n,l,c,a),O_(s,e,t,l,c,o,r,a)}function Sm(s,e,t,i){return s.setStart(e[t/16384|0].firstChild,t%16384),s.setEnd(e[i/16384|0].firstChild,i%16384),s.getClientRects()}var J7=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},us=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let e9=0;class t9{constructor(e,t,i,n,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o}dispose(){Me(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let Gu=class jd extends W{constructor(e,t,i,n,o,r,a,l,c,h,d,u){super(),this.languageConfigurationService=d,this._onDidDispose=this._register(new M),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new M),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new M),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new M),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new M),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new M),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new M),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new M),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new M),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new M),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new M),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new M),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new ov),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new ov),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new M),this.onWillType=this._onWillType.event,this._onDidType=this._register(new M),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new M),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new M),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new M),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new M),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new M),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new M),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new M),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new M),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new M),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new M),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new M),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new M),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new M),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new M),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new M),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new M),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new M),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null;const f=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++e9,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,f,h)),this._register(this._configuration.onDidChange(_=>{this._onDidChangeConfiguration.fire(_);const b=this._configuration.options;if(_.hasChanged(131)){const w=b.get(131);this._onDidLayoutChange.fire(w)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=o,this._commandService=r,this._themeService=l,this._register(new i9(this,this._contextKeyService)),this._register(new n9(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new Zf([Ne,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new s9(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let m;Array.isArray(i.contributions)?m=i.contributions:m=Ia.getEditorContributions();for(const _ of m){if(this._contributions[_.id]){Ze(new Error(`Cannot have two contributions with the same id ${_.id}`));continue}try{const b=this._instantiationService.createInstance(_.ctor,this);this._contributions[_.id]=b}catch(b){Ze(b)}}Ia.getEditorActions().forEach(_=>{if(this._actions[_.id]){Ze(new Error(`Cannot have two actions with the same id ${_.id}`));return}const b=new vk(_.id,_.label,_.alias,Qo(_.precondition),()=>this._instantiationService.invokeFunction(w=>Promise.resolve(_.runEditorCommand(w,this,null))),this._contextKeyService);this._actions[b.id]=b}),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new f_(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return d0.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tD.lift(t)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return ft.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!A.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!D.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new D(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!A.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new D(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=ce.isISelection(e),n=D.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const o={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(o,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new ce(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new D(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!D.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(D.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,o=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},o=Object.keys(this._contributions);for(let a=0,l=o.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const o=i;this._type(e,o.text||"");return}case"replacePreviousChar":{const o=i;this._compositionType(e,o.text||"",o.replaceCharCnt||0,0,0);return}case"compositionType":{const o=i;this._compositionType(e,o.text||"",o.replacePrevCharCnt||0,o.replaceNextCharCnt||0,o.positionDelta||0);return}case"paste":{const o=i;this._paste(e,o.text||"",o.pasteOnNewLine||!1,o.multicursorText||null,o.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Ze);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,i,n,e);const a=this._modelData.viewModel.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new D(r.lineNumber,r.column,a.lineNumber,a.column),languageId:o})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=Ia.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(o=>{Promise.resolve(n.runEditorCommand(o,this,i)).then(void 0,Ze)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(81))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,su(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,su(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(131)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarMouseDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(131),o=jd._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:o,left:r,height:i.get(59)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){ii(e,this._configuration.options.get(44))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new j7(this._id,this._configuration,e,nb.create(),ib.create(this._configuration.options),r=>kn(r),this.languageConfigurationService,this._themeService);t.push(e.onDidChangeDecorations(r=>this._onDidChangeModelDecorations.fire(r))),t.push(e.onDidChangeLanguage(r=>{this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(r)})),t.push(e.onDidChangeLanguageConfiguration(r=>this._onDidChangeModelLanguageConfiguration.fire(r))),t.push(e.onDidChangeContent(r=>this._onDidChangeModelContent.fire(r))),t.push(e.onDidChangeOptions(r=>this._onDidChangeModelOptions.fire(r))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",tl.MAX_CURSOR_COUNT));const a=[];for(let h=0,d=r.selections.length;h{this._paste("keyboard",o,r,a,l)},type:o=>{this._type("keyboard",o)},compositionType:(o,r,a,l)=>{this._compositionType("keyboard",o,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(o,r,a,l)=>{const c={text:o,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:o=>{const r={text:o};this._commandService.executeCommand("type",r)},compositionType:(o,r,a,l)=>{if(a||l){const c={text:o,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:o,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new qf(e.coordinatesConverter);return i.onKeyDown=o=>this._onKeyDown.fire(o),i.onKeyUp=o=>this._onKeyUp.fire(o),i.onContextMenu=o=>this._onContextMenu.fire(o),i.onMouseMove=o=>this._onMouseMove.fire(o),i.onMouseLeave=o=>this._onMouseLeave.fire(o),i.onMouseDown=o=>this._onMouseDown.fire(o),i.onMouseUp=o=>this._onMouseUp.fire(o),i.onMouseDrag=o=>this._onMouseDrag.fire(o),i.onMouseDrop=o=>this._onMouseDrop.fire(o),i.onMouseDropCanceled=o=>this._onMouseDropCanceled.fire(o),i.onMouseWheel=o=>this._onMouseWheel.fire(o),[new VR(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}};Gu=e9([us(3,rn),us(4,kt),us(5,Bi),us(6,Ne),us(7,ot),us(8,Dn),us(9,Vi),us(10,Eo),us(11,be)],Gu);class ov extends W{constructor(){super(),this._onDidChangeToTrue=this._register(new M),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new M),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class n9 extends W{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=H.editorSimpleInput.bindTo(t),this._editorFocus=H.focus.bindTo(t),this._textInputFocus=H.textInputFocus.bindTo(t),this._editorTextFocus=H.editorTextFocus.bindTo(t),this._editorTabMovesFocus=H.tabMovesFocus.bindTo(t),this._editorReadonly=H.readOnly.bindTo(t),this._inDiffEditor=H.inDiffEditor.bindTo(t),this._editorColumnSelection=H.columnSelection.bindTo(t),this._hasMultipleSelections=H.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=H.hasNonEmptySelection.bindTo(t),this._canUndo=H.canUndo.bindTo(t),this._canRedo=H.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(130)),this._editorReadonly.set(e.get(81)),this._inDiffEditor.set(e.get(54)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class s9 extends W{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=H.languageId.bindTo(t),this._hasCompletionItemProvider=H.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=H.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=H.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=H.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=H.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=H.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=H.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=H.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=H.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=H.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=H.hasReferenceProvider.bindTo(t),this._hasRenameProvider=H.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=H.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=H.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=H.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=H.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=H.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=H.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=H.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Ce.walkThroughSnippet)})}}class o9 extends W{constructor(e){super(),this._onChange=this._register(new M),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Ga(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const r9=encodeURIComponent("");function ym(s){return r9+encodeURIComponent(s.toString())+a9}const l9=encodeURIComponent('');function h9(s){return l9+encodeURIComponent(s.toString())+c9}ni((s,e)=>{const t=s.getColor(bT);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=s.getColor(cr);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ym(i)}") repeat-x bottom left; }`);const n=s.getColor(_T);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const o=s.getColor(R0);o&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${o}; }`);const r=s.getColor(yn);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ym(r)}") repeat-x bottom left; }`);const a=s.getColor(CT);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=s.getColor(UL);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=s.getColor(As);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ym(c)}") repeat-x bottom left; }`);const h=s.getColor(wT);h&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${h}; }`);const d=s.getColor(ST);d&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${d}; }`);const u=s.getColor(vT);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${h9(u)}") no-repeat bottom left; }`);const f=s.getColor(dM);f&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${f.rgba.a}; }`);const m=s.getColor(hM);m&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${m}; }`);const _=s.getColor(xh)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class Te{constructor(e,t,i){const n=o=>this.emitter.fire(o);this.emitter=new M({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function rv(s){return s.preventDefault(),s.stopPropagation(),s}var xl=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let d9=!1;var av;(function(s){s.North="north",s.South="south",s.East="east",s.West="west"})(av||(av={}));let u9=4;const f9=new M;let g9=300;const m9=new M;class sb{constructor(){this.disposables=new se}get onPointerMove(){return this.disposables.add(new Te(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new Te(window,"mouseup")).event}dispose(){this.disposables.dispose()}}xl([rt],sb.prototype,"onPointerMove",null);xl([rt],sb.prototype,"onPointerUp",null);class ob{constructor(e){this.el=e,this.disposables=new se}get onPointerMove(){return this.disposables.add(new Te(this.el,Ae.Change)).event}get onPointerUp(){return this.disposables.add(new Te(this.el,Ae.End)).event}dispose(){this.disposables.dispose()}}xl([rt],ob.prototype,"onPointerMove",null);xl([rt],ob.prototype,"onPointerUp",null);class Zu{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}xl([rt],Zu.prototype,"onPointerMove",null);xl([rt],Zu.prototype,"onPointerUp",null);const lv="pointer-events-disabled";class gi extends W{constructor(e,t,i){super(),this.hoverDelay=g9,this.hoverDelayer=this._register(new bl(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new M),this._onDidStart=this._register(new M),this._onDidChange=this._register(new M),this._onDidReset=this._register(new M),this._onDidEnd=this._register(new M),this.orthogonalStartSashDisposables=this._register(new se),this.orthogonalStartDragHandleDisposables=this._register(new se),this.orthogonalEndSashDisposables=this._register(new se),this.orthogonalEndDragHandleDisposables=this._register(new se),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=U(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),me&&this.el.classList.add("mac");const n=this._register(new Te(this.el,"mousedown")).event;this._register(n(d=>this.onPointerStart(d,new sb),this));const o=this._register(new Te(this.el,"dblclick")).event;this._register(o(this.onPointerDoublePress,this));const r=this._register(new Te(this.el,"mouseenter")).event;this._register(r(()=>gi.onMouseEnter(this)));const a=this._register(new Te(this.el,"mouseleave")).event;this._register(a(()=>gi.onMouseLeave(this))),this._register(Se.addTarget(this.el));const l=K.map(this._register(new Te(this.el,Ae.Start)).event,d=>{var u;return Object.assign(Object.assign({},d),{target:(u=d.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(d=>this.onPointerStart(d,new ob(this.el)),this));const c=this._register(new Te(this.el,Ae.Tap)).event,h=K.map(K.filter(K.debounce(c,(d,u)=>{var f;return{event:u,count:((f=d==null?void 0:d.count)!==null&&f!==void 0?f:0)+1}},250),({count:d})=>d===2),({event:d})=>{var u;return Object.assign(Object.assign({},d),{target:(u=d.initialTarget)!==null&&u!==void 0?u:null})});this._register(h(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=u9,this._register(f9.event(d=>{this.size=d,this.layout()}))),this._register(m9.event(d=>this.hoverDelay=d)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",d9),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=U(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Pe(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new Te(this._orthogonalStartDragHandle,"mouseenter")).event(()=>gi.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new Te(this._orthogonalStartDragHandle,"mouseleave")).event(()=>gi.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=U(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Pe(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new Te(this._orthogonalEndDragHandle,"mouseenter")).event(()=>gi.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new Te(this._orthogonalEndDragHandle,"mouseleave")).event(()=>gi.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){Ie.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const m=this.getOrthogonalSash(e);m&&(i=!0,e.__orthogonalSashEvent=!0,m.onPointerStart(e,new Zu(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Zu(t))),!this.state)return;const n=T4("iframe");for(const m of n)m.classList.add(lv);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=xn(this.el),h=()=>{let m="";i?m="all-scroll":this.orientation===1?this.state===1?m="s-resize":this.state===2?m="n-resize":m=me?"row-resize":"ns-resize":this.state===1?m="e-resize":this.state===2?m="w-resize":m=me?"col-resize":"ew-resize",c.textContent=`* { cursor: ${m} !important; }`},d=new se;h(),i||this.onDidEnablementChange.event(h,null,d);const u=m=>{Ie.stop(m,!1);const _={startX:o,currentX:m.pageX,startY:r,currentY:m.pageY,altKey:a};this._onDidChange.fire(_)},f=m=>{Ie.stop(m,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),d.dispose();for(const _ of n)_.classList.remove(lv)};t.onPointerMove(u,null,d),t.onPointerUp(f,null,d),d.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&gi.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&gi.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){gi.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class rb{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}}return new rb(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const Wk={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:bn.text,TERMINALS:"Terminals"};class p9{constructor(e){this.data=e}update(){}getData(){return this.data}}const Cs={CurrentDragAndDropData:void 0};class Qs extends W{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof qn&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new x0)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(Se.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Oi&&this._register(V(e,Y.DRAG_START,n=>{var o;return(o=n.dataTransfer)===null||o===void 0?void 0:o.setData(Wk.TEXT,this._action.label)}))),this._register(V(t,Ae.Tap,n=>this.onClick(n,!0))),this._register(V(t,Y.MOUSE_DOWN,n=>{i||Ie.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),me&&this._register(V(t,Y.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(V(t,Y.CLICK,n=>{Ie.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(V(t,Y.DBLCLICK,n=>{Ie.stop(n,!0)})),[Y.MOUSE_UP,Y.MOUSE_OUT].forEach(n=>{this._register(V(t,n,o=>{Ie.stop(o),t.classList.remove("active")}))})}onClick(e,t=!1){var i;Ie.stop(e,!0);const n=Gi(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class Hk extends Qs{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=U(this.element,J("a.action-label"))),this.label&&(this._action.id===Or.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(U(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var _9=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class ol extends W{constructor(e,t={}){var i,n,o,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new M),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new M({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new M),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new M),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(o=this.options.triggerKeys)===null||o===void 0?void 0:o.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new x0,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(d=>this._onDidRun.fire(d))),this._register(this._actionRunner.onBeforeRun(d=>this._onBeforeRun.fire(d))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,h;switch(this._orientation){case 0:c=[15],h=[17];break;case 1:c=[16],h=[18],this.domNode.className+=" vertical";break}this._register(V(this.domNode,Y.KEY_DOWN,d=>{const u=new He(d);let f=!0;const m=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?f=this.focusPrevious():h&&(u.equals(h[0])||u.equals(h[1]))?f=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?f=this.focusFirst():u.equals(13)?f=this.focusLast():u.equals(2)&&m instanceof Qs&&m.trapsArrowNavigation?f=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:f=!1,f&&(u.preventDefault(),u.stopPropagation())})),this._register(V(this.domNode,Y.KEY_UP,d=>{const u=new He(d);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Ga(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(ka()===this.domNode||!Rs(ka(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role","toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Qs&&i.isEnabled());t instanceof Qs&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Qs&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=mh(t.index)?t.index:null;i.forEach(o=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(V(r,Y.CONTEXT_MENU,l=>{Ie.stop(l,!0)}));let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(o)),a||(a=new Hk(this.context,o,t)),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Qs&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(o.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,o.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){Me(this.viewItems),this.viewItems=[],this._actionIds=[],Pi(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem=="undefined"){const n=this.viewItems.findIndex(o=>o.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(typeof this.focusedItem=="undefined")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem=="undefined")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const o=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(o){let r=!0;nu(o.focus)||(r=!1),this.options.focusOnlyEnabledItems&&nu(o.isEnabled)&&!o.isEnabled()&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem=="undefined")return;const t=this.viewItems[this.focusedItem];if(t instanceof Qs){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return _9(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){Me(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const b9={IconContribution:"base.contributions.icons"};var cv;(function(s){function e(t,i){let n=t.defaults;for(;St.isThemeIcon(n);){const o=Wr.getIcon(n.id);if(!o)return;n=o.defaults}return n}s.getDefinition=e})(cv||(cv={}));class C9{constructor(){this._onDidChange=new M,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${ei.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return o}let r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;let a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(o,r)=>o.id.localeCompare(r.id),t=o=>{for(;St.isThemeIcon(o.defaults);)o=this.iconsById[o.defaults.id];return`codicon codicon-${o?o.id:""}`};let i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(o=>this.iconsById[o]);for(const o of n.filter(r=>!!r.description).sort(e))i.push(`||${o.id}|${St.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter(r=>!St.isThemeIcon(r.defaults)).sort(e))i.push(`||${o.id}|`);return i.join(` -`)}}const Wr=new C9;xt.add(b9.IconContribution,Wr);function hi(s,e,t,i){return Wr.registerIcon(s,e,t,i)}function zk(){return Wr}function w9(){for(const s of g.getAll())Wr.registerIcon(s.id,s.definition,s.description)}w9();const Uk="vscode://schemas/icons";let $k=xt.as(Hf.JSONContribution);$k.registerSchema(Uk,Wr.getIconSchema());const hv=new Tt(()=>$k.notifySchemaChanged(Uk),200);Wr.onDidChange(()=>{hv.isScheduled()||hv.schedule()});const v9=hi("widget-close",g.close,p("widgetClose","Icon for the close action in widgets."));hi("goto-previous-location",g.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));hi("goto-next-location",g.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));St.modify(g.sync,"spin");St.modify(g.loading,"spin");var S9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},y9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},L9=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},Lm;const ad=3;class Hl{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class km{constructor(e){this.entries=e}}const k9=hi("diff-review-insert",g.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),x9=hi("diff-review-remove",g.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),I9=hi("diff-review-close",g.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Yu=class Ho extends W{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=ue(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=ue(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new ol(this.actionBarContainer.domNode)),this._actionBar.push(new qn("diffreview.close",p("label.close","Close"),"close-diff-review "+St.asClassName(I9),!0,()=>L9(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=ue(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=ue(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new _k(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(wi(this.domNode.domNode,"click",i=>{i.preventDefault();const n=cL(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(wi(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,o=this._diffs.length;n0){const y=e[c-1];y.originalEndLineNumber===0?S=y.originalStartLineNumber+1:S=y.originalEndLineNumber+1,y.modifiedEndLineNumber===0?k=y.modifiedStartLineNumber+1:k=y.modifiedEndLineNumber+1}let x=C-ad+1,L=v-ad+1;if(xS){const y=S-x;x=x+y,L=L+y}if(L>k){const y=k-L;x=x+y,L=L+y}b[w++]=new Hl(C,x,v,L)}n[o++]=new km(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,h=n.length;cd)&&(d=T),P!==0&&(u===0||Pf)&&(f=F)}const m=document.createElement("div");m.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=d-h+1,w=f-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${h},${b} +${u},${w} @@`)),m.setAttribute("data-line",String(u));const C=L=>L===0?p("no_lines_changed","no lines changed"):L===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",L),v=C(b),S=C(w);m.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,h,v,u,S)),m.appendChild(_),m.setAttribute("role","listitem"),c.appendChild(m);const k=t.get(59);let x=u;for(let L=0,y=l.length;Ls});Yu=S9([y9(1,Wt)],Yu);ni((s,e)=>{const t=s.getColor(ik);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=s.getColor(vl);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class E9 extends Fs{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Oe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=jk(e);i&&i.diffReviewNext()}}class D9 extends Fs{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Oe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=jk(e);i&&i.diffReviewPrev()}}function jk(s){const e=s.get(kt),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,o=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=new D(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let d=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new qn("diff.clipboard.copyDeletedLineContent",h?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+d);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` +`&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){!this._modelData||this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(this._modelData===null&&t===null||this._modelData&&this._modelData.model===t)return;const i=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),i&&this.hasModel()&&this.focus();const o={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(n)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(let i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(e,t,i){const n=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}getTopForLineNumber(e){return this._modelData?jd._getVerticalOffsetForPosition(this._modelData,e,1):-1}getTopForPosition(e,t){return this._modelData?jd._getVerticalOffsetForPosition(this._modelData,e,t):-1}setHiddenAreas(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(t=>D.lift(t)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return ft.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!A.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!D.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new D(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!A.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new D(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=ce.isISelection(e),n=D.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const o={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(o,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new ce(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new D(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!D.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(D.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,o=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},o=Object.keys(this._contributions);for(let a=0,l=o.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const o=i;this._type(e,o.text||"");return}case"replacePreviousChar":{const o=i;this._compositionType(e,o.text||"",o.replaceCharCnt||0,0,0);return}case"compositionType":{const o=i;this._compositionType(e,o.text||"",o.replacePrevCharCnt||0,o.replaceNextCharCnt||0,o.positionDelta||0);return}case"paste":{const o=i;this._paste(e,o.text||"",o.pasteOnNewLine||!1,o.multicursorText||null,o.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Ze);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,i,n,e);const a=this._modelData.viewModel.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new D(r.lineNumber,r.column,a.lineNumber,a.column),languageId:o})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=Ia.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(o=>{Promise.resolve(n.runEditorCommand(o,this,i)).then(void 0,Ze)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(81))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,su(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,su(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(131)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarMouseDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(131),o=jd._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:o,left:r,height:i.get(59)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){ii(e,this._configuration.options.get(44))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new $7(this._id,this._configuration,e,nb.create(),ib.create(this._configuration.options),r=>kn(r),this.languageConfigurationService,this._themeService);t.push(e.onDidChangeDecorations(r=>this._onDidChangeModelDecorations.fire(r))),t.push(e.onDidChangeLanguage(r=>{this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(r)})),t.push(e.onDidChangeLanguageConfiguration(r=>this._onDidChangeModelLanguageConfiguration.fire(r))),t.push(e.onDidChangeContent(r=>this._onDidChangeModelContent.fire(r))),t.push(e.onDidChangeOptions(r=>this._onDidChangeModelOptions.fire(r))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",tl.MAX_CURSOR_COUNT));const a=[];for(let h=0,d=r.selections.length;h{this._paste("keyboard",o,r,a,l)},type:o=>{this._type("keyboard",o)},compositionType:(o,r,a,l)=>{this._compositionType("keyboard",o,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(o,r,a,l)=>{const c={text:o,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:o=>{const r={text:o};this._commandService.executeCommand("type",r)},compositionType:(o,r,a,l)=>{if(a||l){const c={text:o,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:o,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new qf(e.coordinatesConverter);return i.onKeyDown=o=>this._onKeyDown.fire(o),i.onKeyUp=o=>this._onKeyUp.fire(o),i.onContextMenu=o=>this._onContextMenu.fire(o),i.onMouseMove=o=>this._onMouseMove.fire(o),i.onMouseLeave=o=>this._onMouseLeave.fire(o),i.onMouseDown=o=>this._onMouseDown.fire(o),i.onMouseUp=o=>this._onMouseUp.fire(o),i.onMouseDrag=o=>this._onMouseDrag.fire(o),i.onMouseDrop=o=>this._onMouseDrop.fire(o),i.onMouseDropCanceled=o=>this._onMouseDropCanceled.fire(o),i.onMouseWheel=o=>this._onMouseWheel.fire(o),[new BR(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}};Gu=J7([us(3,rn),us(4,kt),us(5,Bi),us(6,Ne),us(7,ot),us(8,Dn),us(9,Vi),us(10,Eo),us(11,be)],Gu);class ov extends W{constructor(){super(),this._onDidChangeToTrue=this._register(new M),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new M),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class i9 extends W{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=H.editorSimpleInput.bindTo(t),this._editorFocus=H.focus.bindTo(t),this._textInputFocus=H.textInputFocus.bindTo(t),this._editorTextFocus=H.editorTextFocus.bindTo(t),this._editorTabMovesFocus=H.tabMovesFocus.bindTo(t),this._editorReadonly=H.readOnly.bindTo(t),this._inDiffEditor=H.inDiffEditor.bindTo(t),this._editorColumnSelection=H.columnSelection.bindTo(t),this._hasMultipleSelections=H.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=H.hasNonEmptySelection.bindTo(t),this._canUndo=H.canUndo.bindTo(t),this._canRedo=H.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(130)),this._editorReadonly.set(e.get(81)),this._inDiffEditor.set(e.get(54)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class n9 extends W{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=H.languageId.bindTo(t),this._hasCompletionItemProvider=H.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=H.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=H.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=H.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=H.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=H.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=H.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=H.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=H.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=H.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=H.hasReferenceProvider.bindTo(t),this._hasRenameProvider=H.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=H.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=H.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=H.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=H.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=H.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=H.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=H.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Ce.walkThroughSnippet)})}}class s9 extends W{constructor(e){super(),this._onChange=this._register(new M),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Ga(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const o9=encodeURIComponent("");function ym(s){return o9+encodeURIComponent(s.toString())+r9}const a9=encodeURIComponent('');function c9(s){return a9+encodeURIComponent(s.toString())+l9}ni((s,e)=>{const t=s.getColor(_T);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=s.getColor(cr);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ym(i)}") repeat-x bottom left; }`);const n=s.getColor(pT);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const o=s.getColor(R0);o&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${o}; }`);const r=s.getColor(yn);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ym(r)}") repeat-x bottom left; }`);const a=s.getColor(bT);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=s.getColor(UL);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=s.getColor(As);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ym(c)}") repeat-x bottom left; }`);const h=s.getColor(CT);h&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${h}; }`);const d=s.getColor(vT);d&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${d}; }`);const u=s.getColor(wT);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${c9(u)}") no-repeat bottom left; }`);const f=s.getColor(hM);f&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${f.rgba.a}; }`);const m=s.getColor(cM);m&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${m}; }`);const _=s.getColor(xh)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class Te{constructor(e,t,i){const n=o=>this.emitter.fire(o);this.emitter=new M({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function rv(s){return s.preventDefault(),s.stopPropagation(),s}var xl=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let h9=!1;var av;(function(s){s.North="north",s.South="south",s.East="east",s.West="west"})(av||(av={}));let d9=4;const u9=new M;let f9=300;const g9=new M;class sb{constructor(){this.disposables=new se}get onPointerMove(){return this.disposables.add(new Te(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new Te(window,"mouseup")).event}dispose(){this.disposables.dispose()}}xl([rt],sb.prototype,"onPointerMove",null);xl([rt],sb.prototype,"onPointerUp",null);class ob{constructor(e){this.el=e,this.disposables=new se}get onPointerMove(){return this.disposables.add(new Te(this.el,Ae.Change)).event}get onPointerUp(){return this.disposables.add(new Te(this.el,Ae.End)).event}dispose(){this.disposables.dispose()}}xl([rt],ob.prototype,"onPointerMove",null);xl([rt],ob.prototype,"onPointerUp",null);class Zu{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}xl([rt],Zu.prototype,"onPointerMove",null);xl([rt],Zu.prototype,"onPointerUp",null);const lv="pointer-events-disabled";class gi extends W{constructor(e,t,i){super(),this.hoverDelay=f9,this.hoverDelayer=this._register(new bl(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new M),this._onDidStart=this._register(new M),this._onDidChange=this._register(new M),this._onDidReset=this._register(new M),this._onDidEnd=this._register(new M),this.orthogonalStartSashDisposables=this._register(new se),this.orthogonalStartDragHandleDisposables=this._register(new se),this.orthogonalEndSashDisposables=this._register(new se),this.orthogonalEndDragHandleDisposables=this._register(new se),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=U(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),me&&this.el.classList.add("mac");const n=this._register(new Te(this.el,"mousedown")).event;this._register(n(d=>this.onPointerStart(d,new sb),this));const o=this._register(new Te(this.el,"dblclick")).event;this._register(o(this.onPointerDoublePress,this));const r=this._register(new Te(this.el,"mouseenter")).event;this._register(r(()=>gi.onMouseEnter(this)));const a=this._register(new Te(this.el,"mouseleave")).event;this._register(a(()=>gi.onMouseLeave(this))),this._register(Se.addTarget(this.el));const l=K.map(this._register(new Te(this.el,Ae.Start)).event,d=>{var u;return Object.assign(Object.assign({},d),{target:(u=d.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(d=>this.onPointerStart(d,new ob(this.el)),this));const c=this._register(new Te(this.el,Ae.Tap)).event,h=K.map(K.filter(K.debounce(c,(d,u)=>{var f;return{event:u,count:((f=d==null?void 0:d.count)!==null&&f!==void 0?f:0)+1}},250),({count:d})=>d===2),({event:d})=>{var u;return Object.assign(Object.assign({},d),{target:(u=d.initialTarget)!==null&&u!==void 0?u:null})});this._register(h(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=d9,this._register(u9.event(d=>{this.size=d,this.layout()}))),this._register(g9.event(d=>this.hoverDelay=d)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",h9),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=U(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Pe(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new Te(this._orthogonalStartDragHandle,"mouseenter")).event(()=>gi.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new Te(this._orthogonalStartDragHandle,"mouseleave")).event(()=>gi.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=U(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Pe(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new Te(this._orthogonalEndDragHandle,"mouseenter")).event(()=>gi.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new Te(this._orthogonalEndDragHandle,"mouseleave")).event(()=>gi.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){Ie.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const m=this.getOrthogonalSash(e);m&&(i=!0,e.__orthogonalSashEvent=!0,m.onPointerStart(e,new Zu(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Zu(t))),!this.state)return;const n=N4("iframe");for(const m of n)m.classList.add(lv);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=xn(this.el),h=()=>{let m="";i?m="all-scroll":this.orientation===1?this.state===1?m="s-resize":this.state===2?m="n-resize":m=me?"row-resize":"ns-resize":this.state===1?m="e-resize":this.state===2?m="w-resize":m=me?"col-resize":"ew-resize",c.textContent=`* { cursor: ${m} !important; }`},d=new se;h(),i||this.onDidEnablementChange.event(h,null,d);const u=m=>{Ie.stop(m,!1);const _={startX:o,currentX:m.pageX,startY:r,currentY:m.pageY,altKey:a};this._onDidChange.fire(_)},f=m=>{Ie.stop(m,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),d.dispose();for(const _ of n)_.classList.remove(lv)};t.onPointerMove(u,null,d),t.onPointerUp(f,null,d),d.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&gi.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&gi.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){gi.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class rb{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}}return new rb(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const Wk={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:bn.text,TERMINALS:"Terminals"};class m9{constructor(e){this.data=e}update(){}getData(){return this.data}}const Cs={CurrentDragAndDropData:void 0};class Qs extends W{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof qn&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new x0)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(Se.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Oi&&this._register(V(e,Y.DRAG_START,n=>{var o;return(o=n.dataTransfer)===null||o===void 0?void 0:o.setData(Wk.TEXT,this._action.label)}))),this._register(V(t,Ae.Tap,n=>this.onClick(n,!0))),this._register(V(t,Y.MOUSE_DOWN,n=>{i||Ie.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),me&&this._register(V(t,Y.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(V(t,Y.CLICK,n=>{Ie.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(V(t,Y.DBLCLICK,n=>{Ie.stop(n,!0)})),[Y.MOUSE_UP,Y.MOUSE_OUT].forEach(n=>{this._register(V(t,n,o=>{Ie.stop(o),t.classList.remove("active")}))})}onClick(e,t=!1){var i;Ie.stop(e,!0);const n=Gi(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class Hk extends Qs{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=U(this.element,J("a.action-label"))),this.label&&(this._action.id===Or.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(U(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var p9=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class ol extends W{constructor(e,t={}){var i,n,o,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new M),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new M({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new M),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new M),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(o=this.options.triggerKeys)===null||o===void 0?void 0:o.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new x0,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(d=>this._onDidRun.fire(d))),this._register(this._actionRunner.onBeforeRun(d=>this._onBeforeRun.fire(d))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,h;switch(this._orientation){case 0:c=[15],h=[17];break;case 1:c=[16],h=[18],this.domNode.className+=" vertical";break}this._register(V(this.domNode,Y.KEY_DOWN,d=>{const u=new He(d);let f=!0;const m=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?f=this.focusPrevious():h&&(u.equals(h[0])||u.equals(h[1]))?f=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?f=this.focusFirst():u.equals(13)?f=this.focusLast():u.equals(2)&&m instanceof Qs&&m.trapsArrowNavigation?f=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:f=!1,f&&(u.preventDefault(),u.stopPropagation())})),this._register(V(this.domNode,Y.KEY_UP,d=>{const u=new He(d);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Ga(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(ka()===this.domNode||!Rs(ka(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role","toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Qs&&i.isEnabled());t instanceof Qs&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Qs&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=mh(t.index)?t.index:null;i.forEach(o=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(V(r,Y.CONTEXT_MENU,l=>{Ie.stop(l,!0)}));let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(o)),a||(a=new Hk(this.context,o,t)),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Qs&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(o.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,o.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){Me(this.viewItems),this.viewItems=[],this._actionIds=[],Pi(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem=="undefined"){const n=this.viewItems.findIndex(o=>o.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(typeof this.focusedItem=="undefined")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem=="undefined")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const o=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(o){let r=!0;nu(o.focus)||(r=!1),this.options.focusOnlyEnabledItems&&nu(o.isEnabled)&&!o.isEnabled()&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem=="undefined")return;const t=this.viewItems[this.focusedItem];if(t instanceof Qs){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return p9(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){Me(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const _9={IconContribution:"base.contributions.icons"};var cv;(function(s){function e(t,i){let n=t.defaults;for(;St.isThemeIcon(n);){const o=Wr.getIcon(n.id);if(!o)return;n=o.defaults}return n}s.getDefinition=e})(cv||(cv={}));class b9{constructor(){this._onDidChange=new M,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${ei.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return o}let r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;let a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(o,r)=>o.id.localeCompare(r.id),t=o=>{for(;St.isThemeIcon(o.defaults);)o=this.iconsById[o.defaults.id];return`codicon codicon-${o?o.id:""}`};let i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(o=>this.iconsById[o]);for(const o of n.filter(r=>!!r.description).sort(e))i.push(`||${o.id}|${St.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter(r=>!St.isThemeIcon(r.defaults)).sort(e))i.push(`||${o.id}|`);return i.join(` +`)}}const Wr=new b9;xt.add(_9.IconContribution,Wr);function hi(s,e,t,i){return Wr.registerIcon(s,e,t,i)}function zk(){return Wr}function C9(){for(const s of g.getAll())Wr.registerIcon(s.id,s.definition,s.description)}C9();const Uk="vscode://schemas/icons";let $k=xt.as(Hf.JSONContribution);$k.registerSchema(Uk,Wr.getIconSchema());const hv=new Tt(()=>$k.notifySchemaChanged(Uk),200);Wr.onDidChange(()=>{hv.isScheduled()||hv.schedule()});const w9=hi("widget-close",g.close,p("widgetClose","Icon for the close action in widgets."));hi("goto-previous-location",g.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));hi("goto-next-location",g.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));St.modify(g.sync,"spin");St.modify(g.loading,"spin");var v9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},S9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},y9=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},Lm;const ad=3;class Hl{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class km{constructor(e){this.entries=e}}const L9=hi("diff-review-insert",g.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),k9=hi("diff-review-remove",g.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),x9=hi("diff-review-close",g.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Yu=class Ho extends W{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=ue(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=ue(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new ol(this.actionBarContainer.domNode)),this._actionBar.push(new qn("diffreview.close",p("label.close","Close"),"close-diff-review "+St.asClassName(x9),!0,()=>y9(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=ue(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=ue(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new _k(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(wi(this.domNode.domNode,"click",i=>{i.preventDefault();const n=cL(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(wi(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,o=this._diffs.length;n0){const y=e[c-1];y.originalEndLineNumber===0?S=y.originalStartLineNumber+1:S=y.originalEndLineNumber+1,y.modifiedEndLineNumber===0?k=y.modifiedStartLineNumber+1:k=y.modifiedEndLineNumber+1}let x=C-ad+1,L=v-ad+1;if(xS){const y=S-x;x=x+y,L=L+y}if(L>k){const y=k-L;x=x+y,L=L+y}b[w++]=new Hl(C,x,v,L)}n[o++]=new km(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,h=n.length;cd)&&(d=T),P!==0&&(u===0||Pf)&&(f=F)}const m=document.createElement("div");m.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=d-h+1,w=f-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${h},${b} +${u},${w} @@`)),m.setAttribute("data-line",String(u));const C=L=>L===0?p("no_lines_changed","no lines changed"):L===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",L),v=C(b),S=C(w);m.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,h,v,u,S)),m.appendChild(_),m.setAttribute("role","listitem"),c.appendChild(m);const k=t.get(59);let x=u;for(let L=0,y=l.length;Ls});Yu=v9([S9(1,Wt)],Yu);ni((s,e)=>{const t=s.getColor(ik);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=s.getColor(vl);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class I9 extends Fs{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Oe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=jk(e);i&&i.diffReviewNext()}}class E9 extends Fs{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Oe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=jk(e);i&&i.diffReviewPrev()}}function jk(s){const e=s.get(kt),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,o=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=new D(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let d=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new qn("diff.clipboard.copyDeletedLineContent",h?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+d);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` `:`\r -`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(81)||c.push(new qn("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=new D(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const w=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new D(n.modifiedStartLineNumber,w,n.modifiedStartLineNumber,w),text:l+b}])}else{const w=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new D(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,w),text:b}])}})));const m=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=h?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+d):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+d)),c),autoSelectFirstItem:!0})};this._register(wi(this._diffActions,"mousedown",_=>{const{top:b,height:w}=en(this._diffActions),C=Math.floor(a/3);_.preventDefault(),m(_.posx,b+w+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,d=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),m(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=en(e),o=t-n,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fs=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Im;class dv{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,n){const o=n?rb.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;ls});let ko=class It extends W{constructor(e,t,i,n,o,r,a,l,c,h,d,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new M),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new M),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new M),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=o,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new Zf([Ne,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=h,this._id=++R9,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=mv(t,{enableSplitViewResizing:!0,renderSideBySide:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor!="undefined"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new Tt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=ue(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(wi(this._overviewDomElement,"mousedown",m=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(m)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new dv(d,n),this._modifiedEditorState=new dv(d,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new DL(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Yu,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Es(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new gv(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(m=>{this._strategy&&this._strategy.applyColors(m)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const f=Ia.getDiffEditorContributions();for(const m of f)try{this._register(a.createInstance(m.ctor,this))}catch(_){Ze(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=Iu(e.type),i}_recreateOverviewRulers(){!this._options.renderOverviewRuler||(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{!i.getModel()||(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+It.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{!i.getModel()||(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(o=>{o.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+It.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createInnerEditor(e,t,i,n){return e.createInstance(Gu,t,i,n)}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return d0.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(e){const t=mv(e,this._options),i=B9(this._options,t);this._options=t;const n=i.ignoreTrimWhitespace||i.renderIndicators,o=this._isVisible&&(i.maxComputationTime||i.maxFileSize);n?this._beginUpdateDecorations():o&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),i.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new Es(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new gv(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),i.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getContainerDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e,t="api"){this._modifiedEditor.setPosition(e,t)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e,t="api"){this._modifiedEditor.setSelection(e,t)}setSelections(e,t="api"){this._modifiedEditor.setSelections(e,t)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._modifiedEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){const e=this._originalEditor.saveViewState(),t=this._modifiedEditor.saveViewState();return{original:e,modified:t}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),i=It.ENTIRE_DIFF_OVERVIEW_WIDTH-2*It.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:It.ONE_OVERVIEW_WIDTH,right:i+It.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:It.ONE_OVERVIEW_WIDTH,height:e-t}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),It.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,o=r=>{const a=r.getValueLength();return n===0||a<=n};if(!o(e)||!o(t)){(!It._equals(e.uri,this._lastOriginalWarning)||!It._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=Mr.revealHorizontalRightPadding.defaultValue+It.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=It.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-It.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(It.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?It.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),o=Math.max(0,n-2*0),r=i>0?o/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,o=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=o?n+Math.min(a,r):n+r-o+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,o):i+o-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};ko.ONE_OVERVIEW_WIDTH=15;ko.ENTIRE_DIFF_OVERVIEW_WIDTH=30;ko.UPDATE_DIFF_DECORATIONS_DELAY=200;ko=M9([fs(3,Nh),fs(4,Il),fs(5,Ne),fs(6,rn),fs(7,kt),fs(8,ot),fs(9,Dn),fs(10,ab),fs(11,lb)],ko);class qk extends W{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(HT)||(e.getColor(jL)||b_).transparent(2),i=e.getColor(zT)||(e.getColor(KL)||C_).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,o){o=o.sort((c,h)=>c.afterLineNumber-h.afterLineNumber),n=n.sort((c,h)=>c.afterLineNumber-h.afterLineNumber);const r=this._getViewZones(e,n,o,i),a=this._getOriginalEditorDecorations(r,e,t,i),l=this._getModifiedEditorDecorations(r,e,t,i);return{original:{decorations:a.decorations,overviewZones:a.overviewZones,zones:r.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:r.modified}}}}class fv{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-L.afterLineNumber,w=(x,L)=>{if(L.domNode===null&&x.length>0){const y=x[x.length-1];if(y.afterLineNumber===L.afterLineNumber&&y.domNode===null){y.heightInLines+=L.heightInLines;return}}x.push(L)},C=new fv(this._modifiedForeignVZ),v=new fv(this._originalForeignVZ);let S=1,k=1;for(let x=0,L=this._lineChanges.length;x<=L;x++){const y=x0?-1:0),f=y.modifiedStartLineNumber+(y.modifiedEndLineNumber>0?-1:0),d=y.originalEndLineNumber>0?nr._getViewLineCount(this._originalEditor,y.originalStartLineNumber,y.originalEndLineNumber):0,h=y.modifiedEndLineNumber>0?nr._getViewLineCount(this._modifiedEditor,y.modifiedStartLineNumber,y.modifiedEndLineNumber):0,m=Math.max(y.originalStartLineNumber,y.originalEndLineNumber),_=Math.max(y.modifiedStartLineNumber,y.modifiedEndLineNumber)):(u+=1e7+d,f+=1e7+h,m=u,_=f);let I=[],R=[];if(o){let F;y?y.originalEndLineNumber>0?F=y.originalStartLineNumber-S:F=y.modifiedStartLineNumber-k:F=r.getLineCount()-S+1;for(let j=0;jee&&R.push({afterLineNumber:Q,heightInLines:ie-ee,domNode:null,marginDomNode:null})}y&&(S=(y.originalEndLineNumber>0?y.originalEndLineNumber:y.originalStartLineNumber)+1,k=(y.modifiedEndLineNumber>0?y.modifiedEndLineNumber:y.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let F;C.current.afterLineNumber<=f?F=u-f+C.current.afterLineNumber:F=m;let j=null;y&&y.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=y.modifiedEndLineNumber&&(j=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:F,heightInLines:C.current.height/t,domNode:null,marginDomNode:j}),C.advance()}for(;v.current&&v.current.afterLineNumber<=m;){let F;v.current.afterLineNumber<=u?F=f-u+v.current.afterLineNumber:F=_,R.push({afterLineNumber:F,heightInLines:v.current.height/e,domNode:null}),v.advance()}if(y!==null&&Ba(y)){const F=this._produceOriginalFromDiff(y,d,h);F&&I.push(F)}if(y!==null&&Va(y)){const F=this._produceModifiedFromDiff(y,d,h);F&&R.push(F)}let T=0,P=0;for(I=I.sort(b),R=R.sort(b);T=j.heightInLines?(F.heightInLines-=j.heightInLines,P++):(j.heightInLines-=F.heightInLines,T++)}for(;T(t.domNode||(t.domNode=Gk()),t))}}function ys(s,e,t,i,n){return{range:new D(s,e,t,i),options:n}}const Xt={charDelete:qe.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:qe.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:qe.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:qe.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:qe.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:qe.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+St.asClassName(A9),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:qe.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:qe.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+St.asClassName(Kk),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:qe.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Es extends qk{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new gi(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ko.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const o=Math.floor(.5*i);return n=this._disableSash?o:n||o,i>Es.MINIMUM_EDITOR_WIDTH*2?(ni-Es.MINIMUM_EDITOR_WIDTH&&(n=i-Es.MINIMUM_EDITOR_WIDTH)):n=o,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ko.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new O9(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const h of t)if(Va(h)){a.decorations.push({range:new D(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:n?Xt.lineDeleteWithSign:Xt.lineDelete}),(!Ba(h)||!h.charChanges)&&a.decorations.push(ys(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824,Xt.charDeleteWholeLine));const d=Jc(l,c,h.originalStartLineNumber,h.originalEndLineNumber);if(a.overviewZones.push(new jc(d.startLineNumber,d.endLineNumber,0,r)),h.charChanges){for(const u of h.charChanges)if(Va(u))if(i)for(let f=u.originalStartLineNumber;f<=u.originalEndLineNumber;f++){let m,_;f===u.originalStartLineNumber?m=u.originalStartColumn:m=l.getLineFirstNonWhitespaceColumn(f),f===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(ys(f,m,f,_,Xt.charDelete))}else a.decorations.push(ys(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,Xt.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n){const o=this._dataSource.getModifiedEditor(),r=String(this._insertColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const h of t)if(Ba(h)){a.decorations.push({range:new D(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?Xt.lineInsertWithSign:Xt.lineInsert}),(!Va(h)||!h.charChanges)&&a.decorations.push(ys(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,Xt.charInsertWholeLine));const d=Jc(l,c,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(a.overviewZones.push(new jc(d.startLineNumber,d.endLineNumber,0,r)),h.charChanges){for(const u of h.charChanges)if(Ba(u))if(i)for(let f=u.modifiedStartLineNumber;f<=u.modifiedEndLineNumber;f++){let m,_;f===u.modifiedStartLineNumber?m=u.modifiedStartColumn:m=l.getLineFirstNonWhitespaceColumn(f),f===u.modifiedEndLineNumber?_=u.modifiedEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(ys(f,m,f,_,Xt.charInsert))}else a.decorations.push(ys(u.modifiedStartLineNumber,u.modifiedStartColumn,u.modifiedEndLineNumber,u.modifiedEndColumn,Xt.charInsert))}}return a}}Es.MINIMUM_EDITOR_WIDTH=100;class O9 extends nr{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class gv extends qk{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const o=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new P9(e,t,i,o,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let h=0;for(const d of t)if(Va(d)){for(r.decorations.push({range:new D(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:Xt.lineDeleteMargin});h=d.originalStartLineNumber)break;h++}let u=0;if(h0,R=ja(1e4);let T=0,P=0,F=null;for(let Q=S.originalStartLineNumber;Q<=S.originalEndLineNumber;Q++){const ie=Q-S.originalStartLineNumber,ee=this._originalModel.getLineTokens(Q),ae=ee.getLineContent(),nt=w[C++],Xe=Qi.filter(y,Q,1,ae.length+1);if(nt){let ln=0;for(const zt of nt.breakOffsets){const cs=ee.sliceAndInflate(ln,zt,0),Fh=ae.substring(ln,zt);T=Math.max(T,this._renderOriginalLine(P++,Fh,cs,Qi.extractWrapped(Xe,ln,zt),I,l,c,n,o,h,u,f,m,_,b,i,R,L)),ln=zt}for(F||(F=[]);F.lengthv.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C){w.appendASCIIString('
');const v=vi.isBasicASCII(t,r),S=vi.containsRTL(t,v,a),k=C0(new Cl(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,v,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,f,m,_!==Ii.OFF,null),w);if(w.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${St.asClassName(Kk)}`,x.setAttribute("style",`position:absolute;top:${e*h}px;width:${d}px;height:${h}px;right:0;`),C.appendChild(x)}return k.characterMapping.getAbsoluteOffset(k.characterMapping.length)}}function F9(s,e){return Jt(s,e,["off","on","inherit"])}function Ba(s){return s.modifiedEndLineNumber>0}function Va(s){return s.originalEndLineNumber>0}function Gk(){const s=document.createElement("div");return s.className="diagonal-fill",s}function Jc(s,e,t,i){const n=s.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new D(t,s.getLineMinColumn(t),i,s.getLineMaxColumn(i)))}function mv(s,e){return{enableSplitViewResizing:$(s.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:$(s.renderSideBySide,e.renderSideBySide),maxComputationTime:Zm(s.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:Zm(s.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:$(s.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:$(s.renderIndicators,e.renderIndicators),originalEditable:$(s.originalEditable,e.originalEditable),diffCodeLens:$(s.diffCodeLens,e.diffCodeLens),renderOverviewRuler:$(s.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:F9(s.diffWordWrap,e.diffWordWrap)}}function B9(s,e){return{enableSplitViewResizing:s.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:s.renderSideBySide!==e.renderSideBySide,maxComputationTime:s.maxComputationTime!==e.maxComputationTime,maxFileSize:s.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:s.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:s.renderIndicators!==e.renderIndicators,originalEditable:s.originalEditable!==e.originalEditable,diffCodeLens:s.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:s.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:s.diffWordWrap!==e.diffWordWrap}}ni((s,e)=>{const t=s.getColor(jL);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=s.getColor(FT)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=s.getColor(VT)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const o=s.getColor(KL);o&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${o}; }`);const r=s.getColor(BT)||o;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=s.getColor(WT)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=s.getColor(UT);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${s.type==="hc"?"dashed":"solid"} ${l}; }`);const c=s.getColor($T);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${s.type==="hc"?"dashed":"solid"} ${c}; }`);const h=s.getColor(vl);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${h}; }`);const d=s.getColor(jT);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${d}; }`);const u=s.getColor(Ea);u&&e.addRule(` +`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(81)||c.push(new qn("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>xm(this,void 0,void 0,function*(){const _=new D(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const w=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new D(n.modifiedStartLineNumber,w,n.modifiedStartLineNumber,w),text:l+b}])}else{const w=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new D(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,w),text:b}])}})));const m=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=h?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+d):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+d)),c),autoSelectFirstItem:!0})};this._register(wi(this._diffActions,"mousedown",_=>{const{top:b,height:w}=en(this._diffActions),C=Math.floor(a/3);_.preventDefault(),m(_.posx,b+w+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,d=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),m(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=en(e),o=t-n,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fs=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Im;class dv{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,n){const o=n?rb.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;ls});let ko=class It extends W{constructor(e,t,i,n,o,r,a,l,c,h,d,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new M),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new M),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new M),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=o,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new Zf([Ne,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=h,this._id=++M9,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=mv(t,{enableSplitViewResizing:!0,renderSideBySide:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor!="undefined"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new Tt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=ue(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(wi(this._overviewDomElement,"mousedown",m=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(m)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new dv(d,n),this._modifiedEditorState=new dv(d,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new DL(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Yu,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Es(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new gv(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(m=>{this._strategy&&this._strategy.applyColors(m)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const f=Ia.getDiffEditorContributions();for(const m of f)try{this._register(a.createInstance(m.ctor,this))}catch(_){Ze(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=Iu(e.type),i}_recreateOverviewRulers(){!this._options.renderOverviewRuler||(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{!i.getModel()||(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+It.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{!i.getModel()||(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(o=>{o.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+It.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createInnerEditor(e,t,i,n){return e.createInstance(Gu,t,i,n)}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return d0.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(e){const t=mv(e,this._options),i=F9(this._options,t);this._options=t;const n=i.ignoreTrimWhitespace||i.renderIndicators,o=this._isVisible&&(i.maxComputationTime||i.maxFileSize);n?this._beginUpdateDecorations():o&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),i.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new Es(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new gv(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=It._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),i.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getContainerDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e,t="api"){this._modifiedEditor.setPosition(e,t)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e,t="api"){this._modifiedEditor.setSelection(e,t)}setSelections(e,t="api"){this._modifiedEditor.setSelections(e,t)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._modifiedEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){const e=this._originalEditor.saveViewState(),t=this._modifiedEditor.saveViewState();return{original:e,modified:t}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),i=It.ENTIRE_DIFF_OVERVIEW_WIDTH-2*It.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:It.ONE_OVERVIEW_WIDTH,right:i+It.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:It.ONE_OVERVIEW_WIDTH,height:e-t}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),It.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,o=r=>{const a=r.getValueLength();return n===0||a<=n};if(!o(e)||!o(t)){(!It._equals(e.uri,this._lastOriginalWarning)||!It._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=Mr.revealHorizontalRightPadding.defaultValue+It.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=It.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-It.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(It.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?It.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),o=Math.max(0,n-2*0),r=i>0?o/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,o=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=o?n+Math.min(a,r):n+r-o+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,o):i+o-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};ko.ONE_OVERVIEW_WIDTH=15;ko.ENTIRE_DIFF_OVERVIEW_WIDTH=30;ko.UPDATE_DIFF_DECORATIONS_DELAY=200;ko=T9([fs(3,Nh),fs(4,Il),fs(5,Ne),fs(6,rn),fs(7,kt),fs(8,ot),fs(9,Dn),fs(10,ab),fs(11,lb)],ko);class qk extends W{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(WT)||(e.getColor(jL)||b_).transparent(2),i=e.getColor(HT)||(e.getColor(KL)||C_).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,o){o=o.sort((c,h)=>c.afterLineNumber-h.afterLineNumber),n=n.sort((c,h)=>c.afterLineNumber-h.afterLineNumber);const r=this._getViewZones(e,n,o,i),a=this._getOriginalEditorDecorations(r,e,t,i),l=this._getModifiedEditorDecorations(r,e,t,i);return{original:{decorations:a.decorations,overviewZones:a.overviewZones,zones:r.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:r.modified}}}}class fv{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-L.afterLineNumber,w=(x,L)=>{if(L.domNode===null&&x.length>0){const y=x[x.length-1];if(y.afterLineNumber===L.afterLineNumber&&y.domNode===null){y.heightInLines+=L.heightInLines;return}}x.push(L)},C=new fv(this._modifiedForeignVZ),v=new fv(this._originalForeignVZ);let S=1,k=1;for(let x=0,L=this._lineChanges.length;x<=L;x++){const y=x0?-1:0),f=y.modifiedStartLineNumber+(y.modifiedEndLineNumber>0?-1:0),d=y.originalEndLineNumber>0?nr._getViewLineCount(this._originalEditor,y.originalStartLineNumber,y.originalEndLineNumber):0,h=y.modifiedEndLineNumber>0?nr._getViewLineCount(this._modifiedEditor,y.modifiedStartLineNumber,y.modifiedEndLineNumber):0,m=Math.max(y.originalStartLineNumber,y.originalEndLineNumber),_=Math.max(y.modifiedStartLineNumber,y.modifiedEndLineNumber)):(u+=1e7+d,f+=1e7+h,m=u,_=f);let I=[],R=[];if(o){let F;y?y.originalEndLineNumber>0?F=y.originalStartLineNumber-S:F=y.modifiedStartLineNumber-k:F=r.getLineCount()-S+1;for(let j=0;jee&&R.push({afterLineNumber:Q,heightInLines:ie-ee,domNode:null,marginDomNode:null})}y&&(S=(y.originalEndLineNumber>0?y.originalEndLineNumber:y.originalStartLineNumber)+1,k=(y.modifiedEndLineNumber>0?y.modifiedEndLineNumber:y.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let F;C.current.afterLineNumber<=f?F=u-f+C.current.afterLineNumber:F=m;let j=null;y&&y.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=y.modifiedEndLineNumber&&(j=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:F,heightInLines:C.current.height/t,domNode:null,marginDomNode:j}),C.advance()}for(;v.current&&v.current.afterLineNumber<=m;){let F;v.current.afterLineNumber<=u?F=f-u+v.current.afterLineNumber:F=_,R.push({afterLineNumber:F,heightInLines:v.current.height/e,domNode:null}),v.advance()}if(y!==null&&Ba(y)){const F=this._produceOriginalFromDiff(y,d,h);F&&I.push(F)}if(y!==null&&Va(y)){const F=this._produceModifiedFromDiff(y,d,h);F&&R.push(F)}let T=0,P=0;for(I=I.sort(b),R=R.sort(b);T=j.heightInLines?(F.heightInLines-=j.heightInLines,P++):(j.heightInLines-=F.heightInLines,T++)}for(;T(t.domNode||(t.domNode=Gk()),t))}}function ys(s,e,t,i,n){return{range:new D(s,e,t,i),options:n}}const Xt={charDelete:qe.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:qe.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:qe.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:qe.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:qe.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:qe.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+St.asClassName(R9),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:qe.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:qe.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+St.asClassName(Kk),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:qe.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Es extends qk{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new gi(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ko.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const o=Math.floor(.5*i);return n=this._disableSash?o:n||o,i>Es.MINIMUM_EDITOR_WIDTH*2?(ni-Es.MINIMUM_EDITOR_WIDTH&&(n=i-Es.MINIMUM_EDITOR_WIDTH)):n=o,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ko.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new A9(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const h of t)if(Va(h)){a.decorations.push({range:new D(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:n?Xt.lineDeleteWithSign:Xt.lineDelete}),(!Ba(h)||!h.charChanges)&&a.decorations.push(ys(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824,Xt.charDeleteWholeLine));const d=Jc(l,c,h.originalStartLineNumber,h.originalEndLineNumber);if(a.overviewZones.push(new jc(d.startLineNumber,d.endLineNumber,0,r)),h.charChanges){for(const u of h.charChanges)if(Va(u))if(i)for(let f=u.originalStartLineNumber;f<=u.originalEndLineNumber;f++){let m,_;f===u.originalStartLineNumber?m=u.originalStartColumn:m=l.getLineFirstNonWhitespaceColumn(f),f===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(ys(f,m,f,_,Xt.charDelete))}else a.decorations.push(ys(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,Xt.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n){const o=this._dataSource.getModifiedEditor(),r=String(this._insertColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const h of t)if(Ba(h)){a.decorations.push({range:new D(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?Xt.lineInsertWithSign:Xt.lineInsert}),(!Va(h)||!h.charChanges)&&a.decorations.push(ys(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,Xt.charInsertWholeLine));const d=Jc(l,c,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(a.overviewZones.push(new jc(d.startLineNumber,d.endLineNumber,0,r)),h.charChanges){for(const u of h.charChanges)if(Ba(u))if(i)for(let f=u.modifiedStartLineNumber;f<=u.modifiedEndLineNumber;f++){let m,_;f===u.modifiedStartLineNumber?m=u.modifiedStartColumn:m=l.getLineFirstNonWhitespaceColumn(f),f===u.modifiedEndLineNumber?_=u.modifiedEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(ys(f,m,f,_,Xt.charInsert))}else a.decorations.push(ys(u.modifiedStartLineNumber,u.modifiedStartColumn,u.modifiedEndLineNumber,u.modifiedEndColumn,Xt.charInsert))}}return a}}Es.MINIMUM_EDITOR_WIDTH=100;class A9 extends nr{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class gv extends qk{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const o=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new O9(e,t,i,o,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let h=0;for(const d of t)if(Va(d)){for(r.decorations.push({range:new D(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:Xt.lineDeleteMargin});h=d.originalStartLineNumber)break;h++}let u=0;if(h0,R=ja(1e4);let T=0,P=0,F=null;for(let Q=S.originalStartLineNumber;Q<=S.originalEndLineNumber;Q++){const ie=Q-S.originalStartLineNumber,ee=this._originalModel.getLineTokens(Q),ae=ee.getLineContent(),nt=w[C++],Xe=Qi.filter(y,Q,1,ae.length+1);if(nt){let ln=0;for(const zt of nt.breakOffsets){const cs=ee.sliceAndInflate(ln,zt,0),Fh=ae.substring(ln,zt);T=Math.max(T,this._renderOriginalLine(P++,Fh,cs,Qi.extractWrapped(Xe,ln,zt),I,l,c,n,o,h,u,f,m,_,b,i,R,L)),ln=zt}for(F||(F=[]);F.lengthv.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_,b,w,C){w.appendASCIIString('
');const v=vi.isBasicASCII(t,r),S=vi.containsRTL(t,v,a),k=C0(new Cl(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,v,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,f,m,_!==Ii.OFF,null),w);if(w.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${St.asClassName(Kk)}`,x.setAttribute("style",`position:absolute;top:${e*h}px;width:${d}px;height:${h}px;right:0;`),C.appendChild(x)}return k.characterMapping.getAbsoluteOffset(k.characterMapping.length)}}function P9(s,e){return Jt(s,e,["off","on","inherit"])}function Ba(s){return s.modifiedEndLineNumber>0}function Va(s){return s.originalEndLineNumber>0}function Gk(){const s=document.createElement("div");return s.className="diagonal-fill",s}function Jc(s,e,t,i){const n=s.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new D(t,s.getLineMinColumn(t),i,s.getLineMaxColumn(i)))}function mv(s,e){return{enableSplitViewResizing:$(s.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:$(s.renderSideBySide,e.renderSideBySide),maxComputationTime:Zm(s.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:Zm(s.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:$(s.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:$(s.renderIndicators,e.renderIndicators),originalEditable:$(s.originalEditable,e.originalEditable),diffCodeLens:$(s.diffCodeLens,e.diffCodeLens),renderOverviewRuler:$(s.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:P9(s.diffWordWrap,e.diffWordWrap)}}function F9(s,e){return{enableSplitViewResizing:s.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:s.renderSideBySide!==e.renderSideBySide,maxComputationTime:s.maxComputationTime!==e.maxComputationTime,maxFileSize:s.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:s.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:s.renderIndicators!==e.renderIndicators,originalEditable:s.originalEditable!==e.originalEditable,diffCodeLens:s.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:s.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:s.diffWordWrap!==e.diffWordWrap}}ni((s,e)=>{const t=s.getColor(jL);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=s.getColor(PT)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=s.getColor(BT)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const o=s.getColor(KL);o&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${o}; }`);const r=s.getColor(FT)||o;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=s.getColor(VT)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=s.getColor(zT);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${s.type==="hc"?"dashed":"solid"} ${l}; }`);const c=s.getColor(UT);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${s.type==="hc"?"dashed":"solid"} ${c}; }`);const h=s.getColor(vl);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${h}; }`);const d=s.getColor($T);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${d}; }`);const u=s.getColor(Ea);u&&e.addRule(` .monaco-diff-editor .diffViewport { background: ${u}; } @@ -116,7 +116,7 @@ var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,config .monaco-diff-editor .diffViewport:active { background: ${m}; } - `);const _=s.getColor(KT);e.addRule(` + `);const _=s.getColor(jT);e.addRule(` .monaco-editor .diagonal-fill { background-image: linear-gradient( -45deg, @@ -127,10 +127,10 @@ var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,config ); background-size: 8px 8px; } - `)});var V9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},W9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let P_=class extends W{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new M),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new M),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new M),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new M),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorations(e))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}};P_=V9([W9(0,ot)],P_);var H9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},pv=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Xu=class extends P_{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,i){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const o=t.resource.scheme;if(o===Ce.http||o===Ce.https)return gL(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const o={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Xu=H9([pv(0,Ne),pv(1,ot)],Xu);ve(kt,Xu);const Th=pe("layoutService");var Zk=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yk=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Qu=class{constructor(e){this._codeEditorService=e,this.onDidLayout=K.None}get dimension(){return this._dimension||(this._dimension=aL(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};Qu=Zk([Yk(0,kt)],Qu);let F_=class extends Qu{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};F_=Zk([Yk(1,kt)],F_);ve(Th,Qu);const Xk=pe("dialogService");var z9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_v=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ld=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function cd(s){return s.scheme===Ce.file?s.fsPath:s.path}let Qk=0;class hd{constructor(e,t,i,n,o,r,a){this.id=++Qk,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class bv{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Cv{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);let i=[];return e.length>0&&i.push(p({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` -`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class U9{constructor(e,t,i,n,o,r,a){this.id=++Qk,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new Cv),this.removedResources.has(t)||this.removedResources.set(t,new bv(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Cv),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new bv(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Jk{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` + `)});var B9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let P_=class extends W{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new M),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new M),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new M),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new M),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorations(e))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}};P_=B9([V9(0,ot)],P_);var W9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},pv=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Xu=class extends P_{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,i){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const o=t.resource.scheme;if(o===Ce.http||o===Ce.https)return gL(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const o={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Xu=W9([pv(0,Ne),pv(1,ot)],Xu);ve(kt,Xu);const Th=pe("layoutService");var Zk=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yk=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Qu=class{constructor(e){this._codeEditorService=e,this.onDidLayout=K.None}get dimension(){return this._dimension||(this._dimension=aL(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};Qu=Zk([Yk(0,kt)],Qu);let F_=class extends Qu{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};F_=Zk([Yk(1,kt)],F_);ve(Th,Qu);const Xk=pe("dialogService");var H9=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_v=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ld=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function cd(s){return s.scheme===Ce.file?s.fsPath:s.path}let Qk=0;class hd{constructor(e,t,i,n,o,r,a){this.id=++Qk,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class bv{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Cv{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);let i=[];return e.length>0&&i.push(p({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` +`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class z9{constructor(e,t,i,n,o,r,a){this.id=++Qk,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new Cv),this.removedResources.has(t)||this.removedResources.set(t,new bv(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Cv),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new bv(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Jk{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` `)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new Fk(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[n])&&(i=!1,o=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}o!==-1&&(this._past=this._past.slice(0,o)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Em{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof $n){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Ze(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),o()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),o())}_invokeWorkspacePrepare(e){return ld(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo=="undefined")return W.None;const t=e.actual.prepareUndoRedo();return typeof t=="undefined"?W.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo=="undefined")return t(W.None);const i=e.actual.prepareUndoRedo();return i?aE(i)?t(i):i.then(n=>t(n)):t(W.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||e2);return new Em(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new dd(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new dd}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(!!i){if(i===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return ld(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(at.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,o,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new Em([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestPastElement();!r||r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof $n){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(!o)return;if(o.groupId){const[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return o.type===1?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}_confirmAndContinueUndo(e,t,i){return ld(this,void 0,void 0,function*(){if((yield this._dialogService.show(at.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return ld(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=p({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new Em([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrder=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1){return new Cc(new q9(e))}static forStrings(){return new Cc(new $9)}static forConfigKeys(){return new Cc(new j9)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new ud,this._root.segment=i.value());const o=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new ud,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new ud,n.right.segment=i.value()),o.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new ud,n.mid.segment=i.value()),o.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const h=o[a][0],d=o[a+1][0];if(h===1&&d===1)o[a][1]=l.rotateLeft();else if(h===-1&&d===-1)o[a][1]=l.rotateRight();else if(h===1&&d===-1)l.right=o[a+1][1]=o[a+1][1].rotateRight(),o[a][1]=l.rotateLeft();else if(h===-1&&d===1)l.left=o[a+1][1]=o[a+1][1].rotateLeft(),o[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)o.push([-1,r]),r=r.left;else if(a<0)o.push([1,r]),r=r.right;else if(n.hasNext())n.next(),o.push([0,r]),r=r.mid;else break}if(!!r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right),{key:l,value:c,segment:h}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=h}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(o.length>0){const[l,c]=o[o.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),o[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),o[a][1]=l.rotateRight()),a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const o=t.cmp(i.segment);if(o>0)i=i.left;else if(o<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){!e||(e.left&&(yield*this._entries(e.left)),e.value&&(yield[e.key,e.value]),e.mid&&(yield*this._entries(e.mid)),e.right&&(yield*this._entries(e.right)))}}class G9{constructor(e,t){this.uri=e,this.value=t}}class ti{constructor(e,t){this[wv]="ResourceMap",e instanceof ti?(this.map=new Map(e.map),this.toKey=t!=null?t:ti.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:ti.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new G9(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t!="undefined"&&(e=e.bind(t));for(let[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(wv=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}ti.defaultToKey=s=>s.toString();class Z9{constructor(){this[vv]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}[(vv=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class cb extends Z9{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}function mi(s,e,t){return Math.min(Math.max(s,e),t)}class t2{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class Y9{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Q9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const Xf=pe("ILanguageFeatureDebounceService");var Ju;(function(s){const e=new WeakMap;let t=0;function i(n){let o=e.get(n);return o===void 0&&(o=++t,e.set(n,o)),o}s.of=i})(Ju||(Ju={}));class J9{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new cb(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>g0(Ju.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?mi(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new Y9(6),this._cache.set(i,n));const o=mi(n.update(t),this._min,this._max);return this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new t2;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return mi(e,this._min,this._max)}}let V_=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,o,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(o=i==null?void 0:i.max)!==null&&o!==void 0?o:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,h=`${Ju.of(e)},${a}${c?","+c:""}`;let d=this._data.get(h);return d||(d=new J9(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(h,d)),d}_overallAverage(){let e=new t2;for(let t of this._data.values())e.update(t.default());return e.value}};V_=X9([Q9(0,Do)],V_);ve(Xf,V_,!0);const eO=pe("IWorkspaceEditService");function tO(s){return Ti(s)&&(Boolean(s.newUri)||Boolean(s.oldUri))}function iO(s){return Ti(s)&&we.isUri(s.resource)&&Ti(s.edit)}class i2{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(iO(t))return new n2(t.resource,t.edit,t.modelVersionId,t.metadata);if(tO(t))return new nO(t.oldUri,t.newUri,t.options,t.metadata);throw new Error("Unsupported edit")})}}class n2 extends i2{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class nO extends i2{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}const sO=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),ef=Object.assign(Object.assign({},sO),{properties:{"editor.tabSize":{type:"number",default:Bt.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:Bt.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:Bt.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:Bt.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:Bt.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:"array",default:!1,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function oO(s){return typeof s.type!="undefined"||typeof s.anyOf!="undefined"}for(const s of oa){const e=s.schema;if(typeof e!="undefined")if(oO(e))ef.properties[`editor.${s.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(ef.properties[t]=e[t])}let fd=null;function s2(){return fd===null&&(fd=Object.create(null),Object.keys(ef.properties).forEach(s=>{fd[s]=!0})),fd}function rO(s){return s2()[`editor.${s}`]||!1}function aO(s){return s2()[`diffEditor.${s}`]||!1}const lO=xt.as(kl.Configuration);lO.registerConfiguration(ef);class cO{static insert(e,t){return{range:new D(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class xi{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.isFrozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?mC(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?mC(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=Ys(this.contents),i=Ys(this.overrides),n=[...this.keys];for(const o of e){this.mergeContents(t,o.contents);for(const r of o.overrides){const[a]=i.filter(l=>Kn(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=wo(a.keys)):i.push(Ys(r))}for(const r of o.keys)n.indexOf(r)===-1&&n.push(r)}return new xi(t,n,i)}freeze(){return this.isFrozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;let i={};for(const n of wo([...Object.keys(this.contents),...Object.keys(t)])){let o=this.contents[n],r=t[n];r&&(typeof o=="object"&&typeof r=="object"?(o=Ys(o),this.mergeContents(o,r)):o=r),i[n]=o}return new xi(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Ti(e[i])&&Ti(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=Ys(t[i])}}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?bI(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=o=>{o&&(i?this.mergeContents(i,o):i=Ys(o))};for(const o of this.overrides)Kn(o.identifiers,[e])?t=o.contents:o.identifiers.includes(e)&&n(o.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),f0(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&AD(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iconsole.error(`Conflict in default settings: ${c}`))}for(const r of Object.keys(n))qc.test(r)&&o.push({identifiers:yk(r),keys:Object.keys(n[r]),contents:Fy(n[r],a=>console.error(`Conflict in default settings file: ${a}`))});super(n,i,o)}}class Qf{constructor(e,t,i=new xi,n=new xi,o=new ti,r=new xi,a=new ti,l=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=i,this._workspaceConfiguration=n,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=a,this._freeze=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ti,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidateConfigurationModel(t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new xi,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,t===void 0?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidateConfigurationModel(t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),c=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),h=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),d=i?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,u=o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,f=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),m=n.getValue(e),_=wo(lI(n.overrides.map(b=>b.identifiers))).filter(b=>n.getOverrideValue(e,b)!==void 0);return{defaultValue:a,userValue:l,userLocalValue:c,userRemoteValue:h,workspaceValue:d,workspaceFolderValue:u,memoryValue:f,value:m,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:l!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:c!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:h!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:d!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:u!==void 0?{value:o==null?void 0:o.freeze().getValue(e),override:t.overrideIdentifier?o==null?void 0:o.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:f!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:_.length?_:void 0}}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidateConfigurationModel(e,t){let i=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?i.override(e.overrideIdentifier):i}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),n=this.parseConfigurationModel(e.workspace),o=e.folders.reduce((r,a)=>(r.set(we.revive(a[0]),this.parseConfigurationModel(a[1])),r),new ti);return new Qf(t,i,new xi,n,o,new xi,new ti,!1)}static parseConfigurationModel(e){return new xi(e.contents,e.keys,e.overrides).freeze()}}class dO{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const o=new Set;e.keys.forEach(a=>o.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>o.add(l))),this.affectedKeys=[...o.values()];const r=new xi;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Qf.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!Ri(n,o)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=Fy({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const uO=/^(cursor|delete)/;class fO extends W{constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new M),this._currentChord=null,this._currentChordChecker=new vh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new os,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:K.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(!!i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return null;const o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getParts();return this._ignoreSingleModifiers=new pa(o),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let o=null,r=null;if(i){const[h]=e.getSingleModifierDispatchParts();o=h,r=h}else[o]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(o===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,o);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(o,l),n):(this._currentChord&&(!c||!c.commandId)&&(this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),typeof c.commandArgs=="undefined"?this._commandService.executeCommand(c.commandId).then(void 0,h=>this._notificationService.warn(h)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,h=>this._notificationService.warn(h)),uO.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class pa{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}pa.EMPTY=new pa(null);const Li=pe("keybindingService");class wc{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const o=n.command;o&&o.charAt(0)!=="-"&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=wc.handleRemovals([].concat(e).concat(t));for(let n=0,o=this._keybindings.length;n=0;n--){let o=i[n];if(o.command===t.command)continue;const r=o.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&o.keypressParts[1]!==t.keypressParts[1]||wc.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t=="undefined"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(typeof t!="undefined"){for(let i=0,n=t.length;i=0;n--){const o=i[n];if(t.contextMatchesRules(o.when))return o}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r=="undefined")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a1&&o.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${Sv(o.when)}, source: ${yv(o)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${o.command}, when: ${Sv(o.when)}, source: ${yv(o)}.`),{enterChord:!1,leaveChord:o.keypressParts.length>1,commandId:o.command,commandArgs:o.commandArgs,bubble:o.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){let n=t[i];if(!!wc._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function Sv(s){return s?`${s.serialize()}`:"no when condition"}function yv(s){return s.extensionId?s.isBuiltinExtension?`built-in extension ${s.extensionId}`:`user extension ${s.extensionId}`:s.isDefault?"built-in":"user"}class Lv{constructor(e,t,i,n,o,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?W_(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=W_(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=r,this.isBuiltinExtension=a}}function W_(s){let e=[];for(let t=0,i=s.length;tthis._getLabel(e))}getAriaLabel(){return gO.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:mO.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new l4(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class eh extends _O{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Jo.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Jo.toString(e.keyCode)}_getElectronAccelerator(e){return Jo.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return eh.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Jo.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=X1[e];if(t!==-1)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Oc)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Oc(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=W_(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new eh(new vu(i),t)]:[]}}const bO=pe("labelService"),CO=pe("contextService");class wO{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const vO="code-workspace";p("codeWorkspace","Code Workspace");var kv;(function(s){s.noSelection=p("noSelection","No selection"),s.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=p("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=p("multiSelection","{0} selections"),s.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),s.editableEditor=p("editableEditor"," in a code editor"),s.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),s.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),s.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),s.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(kv||(kv={}));var xv;(function(s){s.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(xv||(xv={}));var Iv;(function(s){s.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(Iv||(Iv={}));var Ev;(function(s){s.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(Ev||(Ev={}));var Dv;(function(s){s.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),s.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Dv||(Dv={}));var Nv;(function(s){s.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),s.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(Nv||(Nv={}));var tf;(function(s){s.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(tf||(tf={}));var Tv;(function(s){s.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})(Tv||(Tv={}));var H_;(function(s){s.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(H_||(H_={}));const SO=pe("workspaceTrustManagementService");var Dt;(function(s){function e(o,r){if(o.start>=r.end||r.start>=o.end)return{start:0,end:0};const a=Math.max(o.start,r.start),l=Math.min(o.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}s.intersect=e;function t(o){return o.end-o.start<=0}s.isEmpty=t;function i(o,r){return!t(e(o,r))}s.intersects=i;function n(o,r){const a=[],l={start:o.start,end:Math.min(r.start,o.end)},c={start:Math.max(r.end,o.start),end:o.end};return t(l)||a.push(l),t(c)||a.push(c),a}s.relativeComplement=n})(Dt||(Dt={}));var ro;(function(s){s[s.AVOID=0]="AVOID",s[s.ALIGN=1]="ALIGN"})(ro||(ro={}));function _a(s,e,t){const i=t.mode===ro.ALIGN?t.offset:t.offset+t.size,n=t.mode===ro.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=s-i?i:e<=n?n-e:Math.max(s-e,0):e<=n?n-e:e<=s-i?i:0}class rl extends W{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=W.None,this.toDisposeOnSetContainer=W.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,zC(this.view),this.setContainer(e,t),this._register(Pe(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const o=document.createElement("style");o.textContent=yO,this.shadowRoot.appendChild(o),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new se;rl.BUBBLE_UP_EVENTS.forEach(o=>{n.add(wi(this.container,o,r=>{this.onDOMEvent(r,!1)}))}),rl.BUBBLE_DOWN_EVENTS.forEach(o=>{n.add(wi(this.container,o,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),Pi(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",fL(this.view),this.toDisposeOnClean=e.render(this.view)||W.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(pr&&nL.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;let e=this.delegate.getAnchor(),t;if(dL(e)){let d=en(e);t={top:d.top,left:d.left,width:d.width,height:d.height}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=ji(this.view),n=o_(this.view),o=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const d={offset:t.top-window.pageYOffset,size:t.height,position:o===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:ro.ALIGN};l=_a(window.innerHeight,n,d)+window.pageYOffset,Dt.intersects({start:l,end:l+n},{start:d.offset,end:d.offset+d.size})&&(u.mode=ro.AVOID),c=_a(window.innerWidth,i,u)}else{const d={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:o===0?0:1,mode:ro.ALIGN};c=_a(window.innerWidth,i,d),Dt.intersects({start:c,end:c+i},{start:d.offset,end:d.offset+d.size})&&(u.mode=ro.AVOID),l=_a(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(o===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=en(this.container);this.view.style.top=`${l-(this.useFixedPosition?en(this.view).top:h.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?en(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),zC(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Rs(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}rl.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];rl.BUBBLE_DOWN_EVENTS=["click"];let yO=` +`))}pushElement(e,t=sl.None,i=$n.None){if(e.type===0){const n=cd(e.resource),o=this.getUriComparisonKey(e.resource);this._pushElement(new hd(e,n,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const n=new Set,o=[],r=[];for(const a of e.resources){const l=cd(a),c=this.getUriComparisonKey(a);n.has(c)||(n.add(c),o.push(l),r.push(c))}o.length===1?this._pushElement(new hd(e,o[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new z9(e,o,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;tt.sourceOrder)&&(t=r,i=n)}return[t,i]}canUndo(e){if(e instanceof $n){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Ze(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),o()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),o())}_invokeWorkspacePrepare(e){return ld(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo=="undefined")return W.None;const t=e.actual.prepareUndoRedo();return typeof t=="undefined"?W.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo=="undefined")return t(W.None);const i=e.actual.prepareUndoRedo();return i?aE(i)?t(i):i.then(n=>t(n)):t(W.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||e2);return new Em(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new dd(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new dd}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,p({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,p({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(!!i){if(i===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return ld(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(at.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,o,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new Em([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestPastElement();!r||r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof $n){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(!o)return;if(o.groupId){const[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return o.type===1?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}_confirmAndContinueUndo(e,t,i){return ld(this,void 0,void 0,function*(){if((yield this._dialogService.show(at.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,p({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return ld(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=p({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new Em([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const r=o.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrder=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1){return new Cc(new K9(e))}static forStrings(){return new Cc(new U9)}static forConfigKeys(){return new Cc(new $9)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new ud,this._root.segment=i.value());const o=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new ud,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new ud,n.right.segment=i.value()),o.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new ud,n.mid.segment=i.value()),o.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const h=o[a][0],d=o[a+1][0];if(h===1&&d===1)o[a][1]=l.rotateLeft();else if(h===-1&&d===-1)o[a][1]=l.rotateRight();else if(h===1&&d===-1)l.right=o[a+1][1]=o[a+1][1].rotateRight(),o[a][1]=l.rotateLeft();else if(h===-1&&d===1)l.left=o[a+1][1]=o[a+1][1].rotateLeft(),o[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)o.push([-1,r]),r=r.left;else if(a<0)o.push([1,r]),r=r.right;else if(n.hasNext())n.next(),o.push([0,r]),r=r.mid;else break}if(!!r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right),{key:l,value:c,segment:h}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=h}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(o.length>0){const[l,c]=o[o.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),o[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),o[a][1]=l.rotateRight()),a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const o=t.cmp(i.segment);if(o>0)i=i.left;else if(o<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){!e||(e.left&&(yield*this._entries(e.left)),e.value&&(yield[e.key,e.value]),e.mid&&(yield*this._entries(e.mid)),e.right&&(yield*this._entries(e.right)))}}class q9{constructor(e,t){this.uri=e,this.value=t}}class ti{constructor(e,t){this[wv]="ResourceMap",e instanceof ti?(this.map=new Map(e.map),this.toKey=t!=null?t:ti.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:ti.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new q9(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t!="undefined"&&(e=e.bind(t));for(let[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(wv=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}ti.defaultToKey=s=>s.toString();class G9{constructor(){this[vv]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return n}[(vv=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class cb extends G9{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}function mi(s,e,t){return Math.min(Math.max(s,e),t)}class t2{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class Z9{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},X9=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const Xf=pe("ILanguageFeatureDebounceService");var Ju;(function(s){const e=new WeakMap;let t=0;function i(n){let o=e.get(n);return o===void 0&&(o=++t,e.set(n,o)),o}s.of=i})(Ju||(Ju={}));class Q9{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new cb(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>g0(Ju.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?mi(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new Z9(6),this._cache.set(i,n));const o=mi(n.update(t),this._min,this._max);return this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new t2;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return mi(e,this._min,this._max)}}let V_=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,o,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(o=i==null?void 0:i.max)!==null&&o!==void 0?o:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,h=`${Ju.of(e)},${a}${c?","+c:""}`;let d=this._data.get(h);return d||(d=new Q9(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(h,d)),d}_overallAverage(){let e=new t2;for(let t of this._data.values())e.update(t.default());return e.value}};V_=Y9([X9(0,Do)],V_);ve(Xf,V_,!0);const J9=pe("IWorkspaceEditService");function eO(s){return Ti(s)&&(Boolean(s.newUri)||Boolean(s.oldUri))}function tO(s){return Ti(s)&&we.isUri(s.resource)&&Ti(s.edit)}class i2{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(tO(t))return new n2(t.resource,t.edit,t.modelVersionId,t.metadata);if(eO(t))return new iO(t.oldUri,t.newUri,t.options,t.metadata);throw new Error("Unsupported edit")})}}class n2 extends i2{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class iO extends i2{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}const nO=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),ef=Object.assign(Object.assign({},nO),{properties:{"editor.tabSize":{type:"number",default:Bt.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:Bt.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:Bt.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:Bt.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:Bt.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:"array",default:!1,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function sO(s){return typeof s.type!="undefined"||typeof s.anyOf!="undefined"}for(const s of oa){const e=s.schema;if(typeof e!="undefined")if(sO(e))ef.properties[`editor.${s.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(ef.properties[t]=e[t])}let fd=null;function s2(){return fd===null&&(fd=Object.create(null),Object.keys(ef.properties).forEach(s=>{fd[s]=!0})),fd}function oO(s){return s2()[`editor.${s}`]||!1}function rO(s){return s2()[`diffEditor.${s}`]||!1}const aO=xt.as(kl.Configuration);aO.registerConfiguration(ef);class lO{static insert(e,t){return{range:new D(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class xi{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.isFrozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?mC(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?mC(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=Ys(this.contents),i=Ys(this.overrides),n=[...this.keys];for(const o of e){this.mergeContents(t,o.contents);for(const r of o.overrides){const[a]=i.filter(l=>Kn(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=wo(a.keys)):i.push(Ys(r))}for(const r of o.keys)n.indexOf(r)===-1&&n.push(r)}return new xi(t,n,i)}freeze(){return this.isFrozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;let i={};for(const n of wo([...Object.keys(this.contents),...Object.keys(t)])){let o=this.contents[n],r=t[n];r&&(typeof o=="object"&&typeof r=="object"?(o=Ys(o),this.mergeContents(o,r)):o=r),i[n]=o}return new xi(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Ti(e[i])&&Ti(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=Ys(t[i])}}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?bI(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=o=>{o&&(i?this.mergeContents(i,o):i=Ys(o))};for(const o of this.overrides)Kn(o.identifiers,[e])?t=o.contents:o.identifiers.includes(e)&&n(o.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),f0(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&RD(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iconsole.error(`Conflict in default settings: ${c}`))}for(const r of Object.keys(n))qc.test(r)&&o.push({identifiers:yk(r),keys:Object.keys(n[r]),contents:Fy(n[r],a=>console.error(`Conflict in default settings file: ${a}`))});super(n,i,o)}}class Qf{constructor(e,t,i=new xi,n=new xi,o=new ti,r=new xi,a=new ti,l=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=i,this._workspaceConfiguration=n,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=a,this._freeze=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ti,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidateConfigurationModel(t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new xi,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,t===void 0?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidateConfigurationModel(t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),c=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),h=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),d=i?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,u=o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,f=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),m=n.getValue(e),_=wo(lI(n.overrides.map(b=>b.identifiers))).filter(b=>n.getOverrideValue(e,b)!==void 0);return{defaultValue:a,userValue:l,userLocalValue:c,userRemoteValue:h,workspaceValue:d,workspaceFolderValue:u,memoryValue:f,value:m,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:l!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:c!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:h!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:d!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:u!==void 0?{value:o==null?void 0:o.freeze().getValue(e),override:t.overrideIdentifier?o==null?void 0:o.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:f!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:_.length?_:void 0}}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidateConfigurationModel(e,t){let i=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?i.override(e.overrideIdentifier):i}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),n=this.parseConfigurationModel(e.workspace),o=e.folders.reduce((r,a)=>(r.set(we.revive(a[0]),this.parseConfigurationModel(a[1])),r),new ti);return new Qf(t,i,new xi,n,o,new xi,new ti,!1)}static parseConfigurationModel(e){return new xi(e.contents,e.keys,e.overrides).freeze()}}class hO{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const o=new Set;e.keys.forEach(a=>o.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>o.add(l))),this.affectedKeys=[...o.values()];const r=new xi;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Qf.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!Ri(n,o)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=Fy({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const dO=/^(cursor|delete)/;class uO extends W{constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new M),this._currentChord=null,this._currentChordChecker=new vh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new os,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:K.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(!!i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return null;const o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=pa.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getParts();return this._ignoreSingleModifiers=new pa(o),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let o=null,r=null;if(i){const[h]=e.getSingleModifierDispatchParts();o=h,r=h}else[o]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(o===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,o);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(o,l),n):(this._currentChord&&(!c||!c.commandId)&&(this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),typeof c.commandArgs=="undefined"?this._commandService.executeCommand(c.commandId).then(void 0,h=>this._notificationService.warn(h)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,h=>this._notificationService.warn(h)),dO.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class pa{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}pa.EMPTY=new pa(null);const Li=pe("keybindingService");class wc{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const o=n.command;o&&o.charAt(0)!=="-"&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=wc.handleRemovals([].concat(e).concat(t));for(let n=0,o=this._keybindings.length;n=0;n--){let o=i[n];if(o.command===t.command)continue;const r=o.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&o.keypressParts[1]!==t.keypressParts[1]||wc.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t=="undefined"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(typeof t!="undefined"){for(let i=0,n=t.length;i=0;n--){const o=i[n];if(t.contextMatchesRules(o.when))return o}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r=="undefined")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a1&&o.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${Sv(o.when)}, source: ${yv(o)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${o.command}, when: ${Sv(o.when)}, source: ${yv(o)}.`),{enterChord:!1,leaveChord:o.keypressParts.length>1,commandId:o.command,commandArgs:o.commandArgs,bubble:o.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){let n=t[i];if(!!wc._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function Sv(s){return s?`${s.serialize()}`:"no when condition"}function yv(s){return s.extensionId?s.isBuiltinExtension?`built-in extension ${s.extensionId}`:`user extension ${s.extensionId}`:s.isDefault?"built-in":"user"}class Lv{constructor(e,t,i,n,o,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?W_(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=W_(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=r,this.isBuiltinExtension=a}}function W_(s){let e=[];for(let t=0,i=s.length;tthis._getLabel(e))}getAriaLabel(){return fO.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:gO.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new a4(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class eh extends pO{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Jo.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Jo.toString(e.keyCode)}_getElectronAccelerator(e){return Jo.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return eh.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Jo.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=X1[e];if(t!==-1)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Oc)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Oc(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=W_(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new eh(new vu(i),t)]:[]}}const _O=pe("labelService"),bO=pe("contextService");class CO{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const wO="code-workspace";p("codeWorkspace","Code Workspace");var kv;(function(s){s.noSelection=p("noSelection","No selection"),s.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=p("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=p("multiSelection","{0} selections"),s.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),s.editableEditor=p("editableEditor"," in a code editor"),s.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),s.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),s.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),s.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(kv||(kv={}));var xv;(function(s){s.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(xv||(xv={}));var Iv;(function(s){s.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(Iv||(Iv={}));var Ev;(function(s){s.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(Ev||(Ev={}));var Dv;(function(s){s.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),s.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Dv||(Dv={}));var Nv;(function(s){s.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),s.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(Nv||(Nv={}));var tf;(function(s){s.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(tf||(tf={}));var Tv;(function(s){s.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})(Tv||(Tv={}));var H_;(function(s){s.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(H_||(H_={}));const vO=pe("workspaceTrustManagementService");var Dt;(function(s){function e(o,r){if(o.start>=r.end||r.start>=o.end)return{start:0,end:0};const a=Math.max(o.start,r.start),l=Math.min(o.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}s.intersect=e;function t(o){return o.end-o.start<=0}s.isEmpty=t;function i(o,r){return!t(e(o,r))}s.intersects=i;function n(o,r){const a=[],l={start:o.start,end:Math.min(r.start,o.end)},c={start:Math.max(r.end,o.start),end:o.end};return t(l)||a.push(l),t(c)||a.push(c),a}s.relativeComplement=n})(Dt||(Dt={}));var ro;(function(s){s[s.AVOID=0]="AVOID",s[s.ALIGN=1]="ALIGN"})(ro||(ro={}));function _a(s,e,t){const i=t.mode===ro.ALIGN?t.offset:t.offset+t.size,n=t.mode===ro.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=s-i?i:e<=n?n-e:Math.max(s-e,0):e<=n?n-e:e<=s-i?i:0}class rl extends W{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=W.None,this.toDisposeOnSetContainer=W.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,zC(this.view),this.setContainer(e,t),this._register(Pe(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const o=document.createElement("style");o.textContent=SO,this.shadowRoot.appendChild(o),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new se;rl.BUBBLE_UP_EVENTS.forEach(o=>{n.add(wi(this.container,o,r=>{this.onDOMEvent(r,!1)}))}),rl.BUBBLE_DOWN_EVENTS.forEach(o=>{n.add(wi(this.container,o,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),Pi(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",fL(this.view),this.toDisposeOnClean=e.render(this.view)||W.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(pr&&nL.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;let e=this.delegate.getAnchor(),t;if(dL(e)){let d=en(e);t={top:d.top,left:d.left,width:d.width,height:d.height}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=ji(this.view),n=o_(this.view),o=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const d={offset:t.top-window.pageYOffset,size:t.height,position:o===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:ro.ALIGN};l=_a(window.innerHeight,n,d)+window.pageYOffset,Dt.intersects({start:l,end:l+n},{start:d.offset,end:d.offset+d.size})&&(u.mode=ro.AVOID),c=_a(window.innerWidth,i,u)}else{const d={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:o===0?0:1,mode:ro.ALIGN};c=_a(window.innerWidth,i,d),Dt.intersects({start:c,end:c+i},{start:d.offset,end:d.offset+d.size})&&(u.mode=ro.AVOID),l=_a(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(o===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=en(this.container);this.view.style.top=`${l-(this.useFixedPosition?en(this.view).top:h.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?en(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),zC(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Rs(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}rl.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];rl.BUBBLE_DOWN_EVENTS=["click"];let SO=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } @@ -175,7 +175,7 @@ var Ax=Object.defineProperty;var Ox=(s,e,t)=>e in s?Ax(s,e,{enumerable:!0,config :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } -`;var LO=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},kO=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let z_=class extends W{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=W.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new rl(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t!==this.container&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const n=Pe(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};z_=LO([kO(0,Th)],z_);const Dm="**",Mv="/",Kd="[/\\\\]",qd="[^/\\\\]",xO=/\//g;function Rv(s){switch(s){case 0:return"";case 1:return`${qd}*?`;default:return`(?:${Kd}|${qd}+${Kd}|${Kd}${qd}+)*?`}}function Av(s,e){if(!s)return[];const t=[];let i=!1,n=!1,o="";for(const r of s){switch(r){case e:if(!i&&!n){t.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}o+=r}return o&&t.push(o),t}function r2(s){if(!s)return"";let e="";const t=Av(s,Mv);if(t.every(i=>i===Dm))e=".*";else{let i=!1;t.forEach((n,o)=>{if(n===Dm){i||(e+=Rv(2),i=!0);return}let r=!1,a="",l=!1,c="";for(const h of n){if(h!=="}"&&r){a+=h;continue}if(l&&(h!=="]"||!c)){let d;h==="-"?d=h:(h==="^"||h==="!")&&!c?d="^":h===Mv?d="":d=Qn(h),c+=d;continue}switch(h){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{e+=`(?:${Av(a,",").map(f=>r2(f)).join("|")})`,r=!1,a="";break}case"]":e+="["+c+"]",l=!1,c="";break;case"?":e+=qd;continue;case"*":e+=Rv(1);continue;default:e+=Qn(h)}}ohb(a,e)).filter(a=>a!==Yn),s),i=t.length;if(!i)return Yn;if(i===1)return t[0];const n=function(a,l){for(let c=0,h=t.length;c!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function Bv(s,e,t){const i=rr===tt.sep,n=i?s:s.replace(xO,rr),o=rr+n,r=tt.sep+s,a=t?function(l,c){return typeof l=="string"&&(l===n||l.endsWith(o)||!i&&(l===s||l.endsWith(r)))?e:null}:function(l,c){return typeof l=="string"&&(l===n||!i&&l===s)?e:null};return a.allPaths=[(t?"*/":"./")+s],a}function OO(s){try{const e=new RegExp(`^${r2(s)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?s:null}}catch{return Yn}}function PO(s,e,t){return!s||typeof e!="string"?!1:a2(s)(e,void 0,t)}function a2(s,e={}){if(!s)return Pv;if(typeof s=="string"||FO(s)){const t=hb(s,e);if(t===Yn)return Pv;const i=function(n,o){return!!t(n,o)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return BO(s,e)}function FO(s){const e=s;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function BO(s,e){const t=l2(Object.getOwnPropertyNames(s).map(a=>VO(a,s[a],e)).filter(a=>a!==Yn)),i=t.length;if(!i)return Yn;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(h,d){for(let u=0,f=t.length;u!!h.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((h,d)=>d.allPaths?h.concat(d.allPaths):h,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let h;for(let d=0,u=t.length;d!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function VO(s,e,t){if(e===!1)return Yn;const i=hb(s,t);if(i===Yn)return Yn;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const o=(r,a,l,c)=>{if(!c||!i(r,a))return null;const h=n.replace("$(basename)",l),d=c(h);return zD(d)?d.then(u=>u?s:null):d?s:null};return o.requiresSiblings=!0,o}}return i}function l2(s,e){const t=s.filter(a=>!!a.basenames);if(t.length<2)return s;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const o=function(a,l){if(typeof a!="string")return null;if(!l){let h;for(h=a.length;h>0;h--){const d=a.charCodeAt(h-1);if(d===47||d===92)break}l=a.substr(h)}const c=i.indexOf(l);return c!==-1?n[c]:null};o.basenames=i,o.patterns=n,o.allBasenames=i;const r=s.filter(a=>!a.basenames);return r.push(o),r}let al=[],db=[],c2=[];function gd(s,e=!1){WO(s,!1,e)}function WO(s,e,t){const i=HO(s,e);al.push(i),i.userConfigured?c2.push(i):db.push(i),t&&!i.userConfigured&&al.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function HO(s,e){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:e,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?a2(s.filepattern.toLowerCase()):void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(tt.sep)>=0:!1}}function zO(){al=al.filter(s=>s.userConfigured),db=[]}function UO(s,e){let t;if(s)switch(s.scheme){case Ce.file:t=s.fsPath;break;case Ce.data:{t=$u.parseMetaData(s).get($u.META_DATA_LABEL);break}default:t=s.path}if(!t)return[bn.unknown];t=t.toLowerCase();const i=gy(t),n=Vv(t,i,c2);if(n)return[n,bn.text];const o=Vv(t,i,db);if(o)return[o,bn.text];if(e){const r=$O(e);if(r)return[r,bn.text]}return[bn.unknown]}function Vv(s,e,t){var i;let n,o,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const c=l.filepatternOnPath?s:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n.mime;if(o)return o.mime;if(r)return r.mime}function $O(s){if(a0(s)&&(s=s.substr(1)),s.length>0)for(let e=al.length-1;e>=0;e--){const t=al[e];if(!t.firstline)continue;const i=s.match(t.firstline);if(i&&i.length>0)return t.mime}}const md=Object.prototype.hasOwnProperty,U_="vs.editor.nullLanguage";Ki.register(U_,{});class jO{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(U_,0),this._register(Vr,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||U_}}class th extends W{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,th.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new jO,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(il.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){th.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},zO();const e=[].concat(il.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),xt.as(kl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;md.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let a of t.extensions)gd({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let a of t.filenames)gd({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(let a of t.filenamePatterns)gd({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);$E(l)||gd({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Ze(l)}}e.aliases.push(i);let o=null;if(typeof t.aliases!="undefined"&&Array.isArray(t.aliases)&&(t.aliases.length===0?o=[null]:o=t.aliases),o!==null)for(const a of o)!a||a.length===0||e.aliases.push(a);const r=o!==null&&o.length>0;if(!(r&&o[0]===null)){const a=(r?o[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?md.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return md.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&md.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){if(!e&&!t)return[];const i=UO(e,t);return ty(i.map(n=>this.getLanguageIdByMimeType(n)))}}th.instanceCount=0;class ih extends W{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new M),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new M({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,ih.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new th(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){ih.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return iy(i,null)}createById(e){return new Wv(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new Wv(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Vr),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),et.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}ih.instanceCount=0;class Wv{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new M({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){const e=this._selector();e!==this.languageId&&(this.languageId=e,this._emitter&&this._emitter.fire(this.languageId))}}function Hv(s){let e=s.definition;for(;e instanceof g;)e=e.definition;return`.codicon-${s.id}:before { content: '${e.fontCharacter}'; }`}function h2(...s){return function(e,t){for(let i=0,n=s.length;i0?[{start:0,end:e.length}]:[]:null}function KO(s,e){const t=e.toLowerCase().indexOf(s.toLowerCase());return t===-1?null:[{start:t,end:t+s.length}]}function qO(s,e){return $_(s.toLowerCase(),e.toLowerCase(),0,0)}function $_(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]===e[i]){let n=null;return(n=$_(s,e,t+1,i+1))?f2({start:i,end:i+1},n):null}return $_(s,e,t,i+1)}function fb(s){return 97<=s&&s<=122}function eg(s){return 65<=s&&s<=90}function gb(s){return 48<=s&&s<=57}function GO(s){return s===32||s===9||s===10||s===13}const ZO=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(s=>ZO.add(s.charCodeAt(0)));function u2(s){return fb(s)||eg(s)||gb(s)}function f2(s,e){return e.length===0?e=[s]:s.end===e[0].start?e[0].start=s.start:e.unshift(s),e}function g2(s,e){for(let t=e;t0&&!u2(s.charCodeAt(t-1)))return t}return s.length}function j_(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]!==e[i].toLowerCase())return null;{let n=null,o=i+1;for(n=j_(s,e,t+1,i+1);!n&&(o=g2(e,o)).6}function QO(s){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=s;return t>.2&&e<.8&&i>.6&&n<.2}function JO(s){let e=0,t=0,i=0,n=0;for(let o=0;o60)return null;const t=YO(e);if(!QO(t)){if(!XO(t))return null;e=e.toLowerCase()}let i=null,n=0;for(s=s.toLowerCase();n=s.length)return!1;const t=s.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!r0(t)}}function $v(s,e){if(e<0||e>=s.length)return!1;switch(s.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function Gd(s,e,t){return e[s]!==t[s]}function iP(s,e,t,i,n,o,r=!1){for(;eao?ao:s.length,l=i.length>ao?ao:i.length;if(t>=a||o>=l||a-t>l-o||!iP(e,t,a,n,o,l,!0))return;sP(a,l,t,o,e,n);let c=1,h=1,d=t,u=o;const f=[!1];for(c=1,d=t;dC,I=y?Po[c][h-1]+(gs[c][h-1]>0?-5:0):0,R=u>C+1&&gs[c][h-1]>0,T=R?Po[c][h-2]+(gs[c][h-2]>0?-5:0):0;if(R&&(!y||T>=I)&&(!x||T>=L))Po[c][h]=T,pd[c][h]=3,gs[c][h]=0;else if(y&&(!x||I>=L))Po[c][h]=I,pd[c][h]=2,gs[c][h]=0;else if(x)Po[c][h]=L,pd[c][h]=1,gs[c][h]=gs[c-1][h-1]+1;else throw new Error("not possible")}}if(!f[0]&&!r)return;c--,h--;const m=[Po[c][h],o];let _=0,b=0;for(;c>=1;){let C=h;do{const v=pd[c][C];if(v===3)C=C-2;else if(v===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[o+h-1]&&!Gd(C+o-1,i,n)&&_+1>gs[c][C]&&(C=h),C===h?_++:_=1,b||(b=C),c--,h=C-1,m.push(h)}l===a&&(m[0]+=2);const w=b-a;return m[0]-=w,m}function sP(s,e,t,i,n,o){let r=s-1,a=e-1;for(;r>=t&&a>=i;)n[r]===o[a]&&(K_[r]=a,r--),a--}function oP(s,e,t,i,n,o,r,a,l,c,h){if(e[t]!==o[r])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return r===t-i?d=s[t]===n[r]?7:5:Gd(r,n,o)&&(r===0||!Gd(r-1,n,o))?(d=s[t]===n[r]?7:5,u=!0):_d(o,r)&&(r===0||!_d(o,r-1))?d=5:(_d(o,r-1)||$v(o,r-1))&&(d=5,u=!0),d>1&&t===i&&(h[0]=!0),u||(u=Gd(r,n,o)||_d(o,r-1)||$v(o,r-1)),t===i?r>l&&(d-=u?3:5):c?d+=u?2:0:d+=u?0:1,r+1===a&&(d-=u?3:5),d}const vc="$(",pb=new RegExp(`\\$\\(${ei.iconNameExpression}(?:${ei.iconModifierExpression})?\\)`,"g"),rP=new RegExp(ei.iconNameCharacter),aP=new RegExp(`(\\\\)?${pb.source}`,"g");function lP(s){return s.replace(aP,(e,t)=>t?e:`\\${e}`)}new RegExp(`\\\\${pb.source}`,"g");const cP=new RegExp(`(\\s)?(\\\\)?${pb.source}(\\s)?`,"g");function b2(s){return s.indexOf(vc)===-1?s:s.replace(cP,(e,t,i,n)=>i?e:t||n||"")}function bd(s){const e=s.indexOf(vc);return e===-1?{text:s}:hP(s,e)}function hP(s,e){const t=[];let i="";function n(u){if(u){i+=u;for(const f of u)t.push(a)}}let o=-1,r="",a=0,l,c,h=e;const d=s.length;for(n(s.substr(0,e));hthis.doGetActionViewItem(a,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...me||qt?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new se),this.initializeOrUpdateStyleSheet(e,{}),this._register(Se.addTarget(n)),V(n,Y.KEY_DOWN,a=>{new He(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(V(n,Y.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){Ie.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof jv&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const h=c.shift();h&&h.container&&(this.focusItemByElement(h.container),c.push(h)),this.mnemonics.set(l,c)}}})),qt&&this._register(V(n,Y.KEY_DOWN,a=>{const l=new He(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Ie.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Ie.stop(a,!0))})),this._register(V(this.domNode,Y.MOUSE_OUT,a=>{let l=a.relatedTarget;Rs(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(V(this.actionsList,Y.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Rs(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(Se.addTarget(this.actionsList)),this._register(V(this.actionsList,Ae.Tap,a=>{let l=a.initialTarget;if(!(!l||!Rs(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new _k(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(V(n,Ae.Change,a=>{Ie.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(V(r,Y.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof Mm)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(r_(e)?this.styleSheet=xn(e):(Wa.globalStyleSheet||(Wa.globalStyleSheet=xn()),this.styleSheet=Wa.globalStyleSheet)),this.styleSheet.textContent=uP(t,r_(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",o=e.borderColor?`1px solid ${e.borderColor}`:"",r=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach(a=>{(a instanceof G_||a instanceof Mm)&&a.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{!this.element||(this._register(V(this.element,Y.MOUSE_UP,n=>{if(Ie.stop(n,!0),Oi){if(new Ji(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(V(this.element,Y.CONTEXT_MENU,n=>{Ie.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=U(this.element,J("a.action-menu-item")),this._action.id===Or.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=U(this.item,J("span.menu-item-check"+g.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=U(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(U(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(!!this.label&&this.options.label){Pi(this.label);let e=b2(this.getAction().label);if(e){const t=dP(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=q_.exec(e);if(i){e=HE(e),Tm.lastIndex=0;let n=Tm.exec(e);for(;n&&n[1];)n=Tm.exec(e);const o=r=>r.replace(/&&/g,"&");n?this.label.append(vy(o(e.substr(0,n.index))," "),J("u",{"aria-hidden":"true"},n[3]),zE(o(e.substr(n.index+n[0].length))," ")):this.label.innerText=o(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=n)}style(e){this.menuStyle=e,this.applyStyle()}}class jv extends G_{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new se),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:nf.Right,this.showScheduler=new Tt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Tt(()=>{this.element&&!Rs(ka(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=U(this.item,J("span.submenu-indicator"+g.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(V(this.element,Y.KEY_UP,t=>{let i=new He(t);(i.equals(17)||i.equals(3))&&(Ie.stop(t,!0),this.createSubmenu(!0))})),this._register(V(this.element,Y.KEY_DOWN,t=>{let i=new He(t);ka()===this.item&&(i.equals(17)||i.equals(3))&&Ie.stop(t,!0)})),this._register(V(this.element,Y.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(V(this.element,Y.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(V(this.element,Y.FOCUS_OUT,t=>{this.element&&!Rs(ka(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(e){Ie.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=_a(e.width,t.width,{position:n===nf.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new He(c).equals(15)&&(Ie.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(V(this.submenuContainer,Y.KEY_DOWN,c=>{new He(c).equals(15)&&Ie.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?`${t}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Mm extends Hk{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function dP(s){const e=q_,t=e.exec(s);if(!t)return s;const i=!t[1];return s.replace(e,i?"$2$3":"").trim()}function uP(s,e){let t=` +`;var yO=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},LO=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let z_=class extends W{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=W.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new rl(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t!==this.container&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const n=Pe(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};z_=yO([LO(0,Th)],z_);const Dm="**",Mv="/",Kd="[/\\\\]",qd="[^/\\\\]",kO=/\//g;function Rv(s){switch(s){case 0:return"";case 1:return`${qd}*?`;default:return`(?:${Kd}|${qd}+${Kd}|${Kd}${qd}+)*?`}}function Av(s,e){if(!s)return[];const t=[];let i=!1,n=!1,o="";for(const r of s){switch(r){case e:if(!i&&!n){t.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}o+=r}return o&&t.push(o),t}function r2(s){if(!s)return"";let e="";const t=Av(s,Mv);if(t.every(i=>i===Dm))e=".*";else{let i=!1;t.forEach((n,o)=>{if(n===Dm){i||(e+=Rv(2),i=!0);return}let r=!1,a="",l=!1,c="";for(const h of n){if(h!=="}"&&r){a+=h;continue}if(l&&(h!=="]"||!c)){let d;h==="-"?d=h:(h==="^"||h==="!")&&!c?d="^":h===Mv?d="":d=Qn(h),c+=d;continue}switch(h){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{e+=`(?:${Av(a,",").map(f=>r2(f)).join("|")})`,r=!1,a="";break}case"]":e+="["+c+"]",l=!1,c="";break;case"?":e+=qd;continue;case"*":e+=Rv(1);continue;default:e+=Qn(h)}}ohb(a,e)).filter(a=>a!==Yn),s),i=t.length;if(!i)return Yn;if(i===1)return t[0];const n=function(a,l){for(let c=0,h=t.length;c!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function Bv(s,e,t){const i=rr===tt.sep,n=i?s:s.replace(kO,rr),o=rr+n,r=tt.sep+s,a=t?function(l,c){return typeof l=="string"&&(l===n||l.endsWith(o)||!i&&(l===s||l.endsWith(r)))?e:null}:function(l,c){return typeof l=="string"&&(l===n||!i&&l===s)?e:null};return a.allPaths=[(t?"*/":"./")+s],a}function AO(s){try{const e=new RegExp(`^${r2(s)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?s:null}}catch{return Yn}}function OO(s,e,t){return!s||typeof e!="string"?!1:a2(s)(e,void 0,t)}function a2(s,e={}){if(!s)return Pv;if(typeof s=="string"||PO(s)){const t=hb(s,e);if(t===Yn)return Pv;const i=function(n,o){return!!t(n,o)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return FO(s,e)}function PO(s){const e=s;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function FO(s,e){const t=l2(Object.getOwnPropertyNames(s).map(a=>BO(a,s[a],e)).filter(a=>a!==Yn)),i=t.length;if(!i)return Yn;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(h,d){for(let u=0,f=t.length;u!!h.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((h,d)=>d.allPaths?h.concat(d.allPaths):h,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let h;for(let d=0,u=t.length;d!!a.allBasenames);o&&(n.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function BO(s,e,t){if(e===!1)return Yn;const i=hb(s,t);if(i===Yn)return Yn;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const o=(r,a,l,c)=>{if(!c||!i(r,a))return null;const h=n.replace("$(basename)",l),d=c(h);return HD(d)?d.then(u=>u?s:null):d?s:null};return o.requiresSiblings=!0,o}}return i}function l2(s,e){const t=s.filter(a=>!!a.basenames);if(t.length<2)return s;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const o=function(a,l){if(typeof a!="string")return null;if(!l){let h;for(h=a.length;h>0;h--){const d=a.charCodeAt(h-1);if(d===47||d===92)break}l=a.substr(h)}const c=i.indexOf(l);return c!==-1?n[c]:null};o.basenames=i,o.patterns=n,o.allBasenames=i;const r=s.filter(a=>!a.basenames);return r.push(o),r}let al=[],db=[],c2=[];function gd(s,e=!1){VO(s,!1,e)}function VO(s,e,t){const i=WO(s,e);al.push(i),i.userConfigured?c2.push(i):db.push(i),t&&!i.userConfigured&&al.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function WO(s,e){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:e,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?a2(s.filepattern.toLowerCase()):void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(tt.sep)>=0:!1}}function HO(){al=al.filter(s=>s.userConfigured),db=[]}function zO(s,e){let t;if(s)switch(s.scheme){case Ce.file:t=s.fsPath;break;case Ce.data:{t=$u.parseMetaData(s).get($u.META_DATA_LABEL);break}default:t=s.path}if(!t)return[bn.unknown];t=t.toLowerCase();const i=gy(t),n=Vv(t,i,c2);if(n)return[n,bn.text];const o=Vv(t,i,db);if(o)return[o,bn.text];if(e){const r=UO(e);if(r)return[r,bn.text]}return[bn.unknown]}function Vv(s,e,t){var i;let n,o,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const c=l.filepatternOnPath?s:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n.mime;if(o)return o.mime;if(r)return r.mime}function UO(s){if(a0(s)&&(s=s.substr(1)),s.length>0)for(let e=al.length-1;e>=0;e--){const t=al[e];if(!t.firstline)continue;const i=s.match(t.firstline);if(i&&i.length>0)return t.mime}}const md=Object.prototype.hasOwnProperty,U_="vs.editor.nullLanguage";Ki.register(U_,{});class $O{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(U_,0),this._register(Vr,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||U_}}class th extends W{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,th.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new $O,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(il.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){th.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},HO();const e=[].concat(il.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),xt.as(kl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;md.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let a of t.extensions)gd({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let a of t.filenames)gd({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(let a of t.filenamePatterns)gd({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);UE(l)||gd({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Ze(l)}}e.aliases.push(i);let o=null;if(typeof t.aliases!="undefined"&&Array.isArray(t.aliases)&&(t.aliases.length===0?o=[null]:o=t.aliases),o!==null)for(const a of o)!a||a.length===0||e.aliases.push(a);const r=o!==null&&o.length>0;if(!(r&&o[0]===null)){const a=(r?o[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?md.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return md.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&md.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){if(!e&&!t)return[];const i=zO(e,t);return ty(i.map(n=>this.getLanguageIdByMimeType(n)))}}th.instanceCount=0;class ih extends W{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new M),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new M({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,ih.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new th(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){ih.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return iy(i,null)}createById(e){return new Wv(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new Wv(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Vr),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),et.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}ih.instanceCount=0;class Wv{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new M({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){const e=this._selector();e!==this.languageId&&(this.languageId=e,this._emitter&&this._emitter.fire(this.languageId))}}function Hv(s){let e=s.definition;for(;e instanceof g;)e=e.definition;return`.codicon-${s.id}:before { content: '${e.fontCharacter}'; }`}function h2(...s){return function(e,t){for(let i=0,n=s.length;i0?[{start:0,end:e.length}]:[]:null}function jO(s,e){const t=e.toLowerCase().indexOf(s.toLowerCase());return t===-1?null:[{start:t,end:t+s.length}]}function KO(s,e){return $_(s.toLowerCase(),e.toLowerCase(),0,0)}function $_(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]===e[i]){let n=null;return(n=$_(s,e,t+1,i+1))?f2({start:i,end:i+1},n):null}return $_(s,e,t,i+1)}function fb(s){return 97<=s&&s<=122}function eg(s){return 65<=s&&s<=90}function gb(s){return 48<=s&&s<=57}function qO(s){return s===32||s===9||s===10||s===13}const GO=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(s=>GO.add(s.charCodeAt(0)));function u2(s){return fb(s)||eg(s)||gb(s)}function f2(s,e){return e.length===0?e=[s]:s.end===e[0].start?e[0].start=s.start:e.unshift(s),e}function g2(s,e){for(let t=e;t0&&!u2(s.charCodeAt(t-1)))return t}return s.length}function j_(s,e,t,i){if(t===s.length)return[];if(i===e.length)return null;if(s[t]!==e[i].toLowerCase())return null;{let n=null,o=i+1;for(n=j_(s,e,t+1,i+1);!n&&(o=g2(e,o)).6}function XO(s){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=s;return t>.2&&e<.8&&i>.6&&n<.2}function QO(s){let e=0,t=0,i=0,n=0;for(let o=0;o60)return null;const t=ZO(e);if(!XO(t)){if(!YO(t))return null;e=e.toLowerCase()}let i=null,n=0;for(s=s.toLowerCase();n=s.length)return!1;const t=s.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!r0(t)}}function $v(s,e){if(e<0||e>=s.length)return!1;switch(s.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function Gd(s,e,t){return e[s]!==t[s]}function tP(s,e,t,i,n,o,r=!1){for(;eao?ao:s.length,l=i.length>ao?ao:i.length;if(t>=a||o>=l||a-t>l-o||!tP(e,t,a,n,o,l,!0))return;nP(a,l,t,o,e,n);let c=1,h=1,d=t,u=o;const f=[!1];for(c=1,d=t;dC,I=y?Po[c][h-1]+(gs[c][h-1]>0?-5:0):0,R=u>C+1&&gs[c][h-1]>0,T=R?Po[c][h-2]+(gs[c][h-2]>0?-5:0):0;if(R&&(!y||T>=I)&&(!x||T>=L))Po[c][h]=T,pd[c][h]=3,gs[c][h]=0;else if(y&&(!x||I>=L))Po[c][h]=I,pd[c][h]=2,gs[c][h]=0;else if(x)Po[c][h]=L,pd[c][h]=1,gs[c][h]=gs[c-1][h-1]+1;else throw new Error("not possible")}}if(!f[0]&&!r)return;c--,h--;const m=[Po[c][h],o];let _=0,b=0;for(;c>=1;){let C=h;do{const v=pd[c][C];if(v===3)C=C-2;else if(v===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[o+h-1]&&!Gd(C+o-1,i,n)&&_+1>gs[c][C]&&(C=h),C===h?_++:_=1,b||(b=C),c--,h=C-1,m.push(h)}l===a&&(m[0]+=2);const w=b-a;return m[0]-=w,m}function nP(s,e,t,i,n,o){let r=s-1,a=e-1;for(;r>=t&&a>=i;)n[r]===o[a]&&(K_[r]=a,r--),a--}function sP(s,e,t,i,n,o,r,a,l,c,h){if(e[t]!==o[r])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return r===t-i?d=s[t]===n[r]?7:5:Gd(r,n,o)&&(r===0||!Gd(r-1,n,o))?(d=s[t]===n[r]?7:5,u=!0):_d(o,r)&&(r===0||!_d(o,r-1))?d=5:(_d(o,r-1)||$v(o,r-1))&&(d=5,u=!0),d>1&&t===i&&(h[0]=!0),u||(u=Gd(r,n,o)||_d(o,r-1)||$v(o,r-1)),t===i?r>l&&(d-=u?3:5):c?d+=u?2:0:d+=u?0:1,r+1===a&&(d-=u?3:5),d}const vc="$(",pb=new RegExp(`\\$\\(${ei.iconNameExpression}(?:${ei.iconModifierExpression})?\\)`,"g"),oP=new RegExp(ei.iconNameCharacter),rP=new RegExp(`(\\\\)?${pb.source}`,"g");function aP(s){return s.replace(rP,(e,t)=>t?e:`\\${e}`)}new RegExp(`\\\\${pb.source}`,"g");const lP=new RegExp(`(\\s)?(\\\\)?${pb.source}(\\s)?`,"g");function b2(s){return s.indexOf(vc)===-1?s:s.replace(lP,(e,t,i,n)=>i?e:t||n||"")}function bd(s){const e=s.indexOf(vc);return e===-1?{text:s}:cP(s,e)}function cP(s,e){const t=[];let i="";function n(u){if(u){i+=u;for(const f of u)t.push(a)}}let o=-1,r="",a=0,l,c,h=e;const d=s.length;for(n(s.substr(0,e));hthis.doGetActionViewItem(a,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...me||qt?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new se),this.initializeOrUpdateStyleSheet(e,{}),this._register(Se.addTarget(n)),V(n,Y.KEY_DOWN,a=>{new He(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(V(n,Y.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){Ie.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof jv&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const h=c.shift();h&&h.container&&(this.focusItemByElement(h.container),c.push(h)),this.mnemonics.set(l,c)}}})),qt&&this._register(V(n,Y.KEY_DOWN,a=>{const l=new He(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Ie.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Ie.stop(a,!0))})),this._register(V(this.domNode,Y.MOUSE_OUT,a=>{let l=a.relatedTarget;Rs(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(V(this.actionsList,Y.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Rs(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(Se.addTarget(this.actionsList)),this._register(V(this.actionsList,Ae.Tap,a=>{let l=a.initialTarget;if(!(!l||!Rs(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new _k(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(V(n,Ae.Change,a=>{Ie.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(V(r,Y.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof Mm)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(r_(e)?this.styleSheet=xn(e):(Wa.globalStyleSheet||(Wa.globalStyleSheet=xn()),this.styleSheet=Wa.globalStyleSheet)),this.styleSheet.textContent=dP(t,r_(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",o=e.borderColor?`1px solid ${e.borderColor}`:"",r=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach(a=>{(a instanceof G_||a instanceof Mm)&&a.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{!this.element||(this._register(V(this.element,Y.MOUSE_UP,n=>{if(Ie.stop(n,!0),Oi){if(new Ji(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(V(this.element,Y.CONTEXT_MENU,n=>{Ie.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=U(this.element,J("a.action-menu-item")),this._action.id===Or.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=U(this.item,J("span.menu-item-check"+g.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=U(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(U(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(!!this.label&&this.options.label){Pi(this.label);let e=b2(this.getAction().label);if(e){const t=hP(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=q_.exec(e);if(i){e=WE(e),Tm.lastIndex=0;let n=Tm.exec(e);for(;n&&n[1];)n=Tm.exec(e);const o=r=>r.replace(/&&/g,"&");n?this.label.append(vy(o(e.substr(0,n.index))," "),J("u",{"aria-hidden":"true"},n[3]),HE(o(e.substr(n.index+n[0].length))," ")):this.label.innerText=o(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=n)}style(e){this.menuStyle=e,this.applyStyle()}}class jv extends G_{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new se),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:nf.Right,this.showScheduler=new Tt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Tt(()=>{this.element&&!Rs(ka(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=U(this.item,J("span.submenu-indicator"+g.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(V(this.element,Y.KEY_UP,t=>{let i=new He(t);(i.equals(17)||i.equals(3))&&(Ie.stop(t,!0),this.createSubmenu(!0))})),this._register(V(this.element,Y.KEY_DOWN,t=>{let i=new He(t);ka()===this.item&&(i.equals(17)||i.equals(3))&&Ie.stop(t,!0)})),this._register(V(this.element,Y.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(V(this.element,Y.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(V(this.element,Y.FOCUS_OUT,t=>{this.element&&!Rs(ka(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(e){Ie.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=_a(e.width,t.width,{position:n===nf.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new He(c).equals(15)&&(Ie.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(V(this.submenuContainer,Y.KEY_DOWN,c=>{new He(c).equals(15)&&Ie.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?`${t}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Mm extends Hk{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function hP(s){const e=q_,t=e.exec(s);if(!t)return s;const i=!t[1];return s.replace(e,i?"$2$3":"").trim()}function dP(s,e){let t=` .monaco-menu { font-size: 13px; @@ -536,18 +536,18 @@ ${Hv(g.menuSubmenu)} .monaco-scrollable-element > .scrollbar > .slider.active { background: ${r}; } - `)}return t}function gn(s,e){const t=Object.create(null);for(let i in e){const n=e[i];n&&(t[i]=ps(n,s))}return t}function C2(s,e,t){function i(){const n=gn(s.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),s.onDidColorThemeChange(i)}function ll(s,e,t){return C2(e,Object.assign(Object.assign({},tg),t||{}),s)}const tg={listFocusBackground:qT,listFocusForeground:GT,listFocusOutline:ZT,listActiveSelectionBackground:_o,listActiveSelectionForeground:bo,listActiveSelectionIconForeground:Wd,listFocusAndSelectionBackground:_o,listFocusAndSelectionForeground:bo,listInactiveSelectionBackground:YT,listInactiveSelectionIconForeground:QT,listInactiveSelectionForeground:XT,listInactiveFocusBackground:JT,listInactiveFocusOutline:e5,listHoverBackground:t5,listHoverForeground:i5,listDropBackground:n5,listSelectionOutline:yi,listHoverOutline:yi,listFilterWidgetBackground:s5,listFilterWidgetOutline:o5,listFilterWidgetNoMatchesOutline:r5,listMatchesShadow:Ya,treeIndentGuidesStroke:a5,tableColumnsBorder:l5,tableOddRowsBackgroundColor:c5},fP={shadowColor:Ya,borderColor:f5,foregroundColor:g5,backgroundColor:m5,selectionForegroundColor:p5,selectionBackgroundColor:_5,selectionBorderColor:b5,separatorColor:C5,scrollbarShadow:vl,scrollbarSliderBackground:Ea,scrollbarSliderHoverBackground:Da,scrollbarSliderActiveBackground:Na};function gP(s,e,t){return C2(e,Object.assign(Object.assign({},fP),t),s)}class mP{constructor(e,t,i,n,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i,n=dL(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:o=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),this.options.blockMouse&&(this.block=o.appendChild(J(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",V(this.block,Y.MOUSE_DOWN,c=>c.stopPropagation()));const a=new se,l=e.actionRunner||new x0;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new Wa(o,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(gP(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(V(window,Y.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(V(window,Y.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;let h=new Ji(c),d=h.target;if(!h.rightButton){for(;d;){if(d===o)return;d=d.parentElement}this.contextViewService.hideContextView(!0)}})),or(a,i)},focus:()=>{i&&i.focus(!!e.autoSelectFirstItem)},onHide:o=>{e.onHide&&e.onHide(!!o),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ph(e.error)&&this.notificationService.error(e.error)}}var pP=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zl=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Z_=class extends W{constructor(e,t,i,n,o){super(),this._onDidShowContextMenu=new M,this._onDidHideContextMenu=new M,this.contextMenuHandler=new mP(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{e.onHide&&e.onHide(t),this._onDidHideContextMenu.fire()}})),da.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};Z_=pP([zl(0,Lh),zl(1,Dn),zl(2,Yf),zl(3,Li),zl(4,ot)],Z_);function Kv(s){let e=JSON.parse(s);return e=Y_(e),e}function Y_(s,e=0){if(!s||e>200)return s;if(typeof s=="object"){switch(s.$mid){case 1:return we.revive(s);case 2:return new RegExp(s.source,s.flags);case 14:return new Date(s.source)}if(s instanceof Sf||s instanceof Uint8Array)return s;if(Array.isArray(s))for(let t=0;tw2(s,t))}function bP(s){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(s.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},s=s.with({fragment:""})),{selection:e,uri:s}}var _b=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},of=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Zo=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let X_=class{constructor(e){this._commandService=e}open(e,t){return Zo(this,void 0,void 0,function*(){if(!w2(e,Ce.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=we.parse(e));let i=[];try{i=Kv(decodeURIComponent(e.query))}catch{try{i=Kv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};X_=_b([of(0,Bi)],X_);let Q_=class{constructor(e){this._editorService=e}open(e,t){return Zo(this,void 0,void 0,function*(){typeof e=="string"&&(e=we.parse(e));const{selection:i,uri:n}=bP(e);return e=n,e.scheme===Ce.file&&(e=JA(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?sf.USER:sf.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};Q_=_b([of(0,kt)],Q_);let J_=class{constructor(e,t){this._openers=new Xi,this._validators=new Xi,this._resolvers=new Xi,this._resolvedUriTargets=new ti(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Xi,this._defaultExternalOpener={openExternal:i=>Zo(this,void 0,void 0,function*(){return Gv(i,Ce.http,Ce.https)?gL(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>Zo(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||Gv(i,Ce.mailto,Ce.http,Ce.https,Ce.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new X_(t)),this._openers.push(new Q_(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return Zo(this,void 0,void 0,function*(){const n=typeof e=="string"?we.parse(e):e,o=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(o)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return Zo(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return Zo(this,void 0,void 0,function*(){const i=typeof e=="string"?we.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let o;if(typeof e=="string"&&i.toString()===n.toString()?o=e:o=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(o,{sourceUri:i,preferredOpenerId:r},ci.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},ci.None)})}dispose(){this._validators.clear()}};J_=_b([of(0,kt),of(1,Bi)],J_);var Di;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(Di||(Di={}));(function(s){function e(r,a){return a-r}s.compare=e;const t=Object.create(null);t[s.Error]=p("sev.error","Error"),t[s.Warning]=p("sev.warning","Warning"),t[s.Info]=p("sev.info","Info");function i(r){return t[r]||""}s.toString=i;function n(r){switch(r){case at.Error:return s.Error;case at.Warning:return s.Warning;case at.Info:return s.Info;case at.Ignore:return s.Hint}}s.fromSeverity=n;function o(r){switch(r){case s.Error:return at.Error;case s.Warning:return at.Warning;case s.Info:return at.Info;case s.Hint:return at.Ignore}}s.toSeverity=o})(Di||(Di={}));var Zv;(function(s){const e="";function t(n){return i(n,!0)}s.makeKey=t;function i(n,o){let r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Di.toString(n.severity)):r.push(e),n.message&&o?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}s.makeKeyOptionalMessage=i})(Zv||(Zv={}));const El=pe("markerService");var CP=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yv=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};class wP extends W{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Pe(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let o=0;othis._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new wP(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Ce.inMemory||e.uri.scheme===Ce.internal||e.uri.scheme===Ce.vscode)&&this._markerService&&this._markerService.read({resource:e.uri}).map(i=>i.owner).forEach(i=>this._markerService.remove(i,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=D.lift(t);if(t.severity===Di.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const o=e.getWordAtPosition(i.getStartPosition());o&&(i=new D(i.startLineNumber,o.startColumn,i.endLineNumber,o.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){let n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};e1=CP([Yv(0,At),Yv(1,El)],e1);class Sc{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Sc(e,new rf(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new D(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Sc(this._startLineNumber,n),new Sc(this._startLineNumber+r,o)]}applyEdit(e,t){const[i,n,o]=nl(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new A(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const o=i-t;this._startLineNumber-=o;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,o)}}class rf{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&m>=t)&&(ue||m===e&&b>=t){if(mo?_-=o-i:_=i;else if(f===t&&m===i)if(f===n&&_>o)_-=o-i;else{h=!0;continue}else if(fo)f===t?(m=i,_=m+(_-o)):(m=0,_=m+(_-o));else{h=!0;continue}else if(f>n){if(l===0&&!h){c=a;break}f-=l}else if(f===n&&m>=o)e&&f===0&&(m+=e,_+=e),f-=l,m-=o-i,_-=o-i;else throw new Error("Not possible!");const w=4*c;r[w]=f,r[w+1]=m,r[w+2]=_,r[w+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,o,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let h=0;h=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Rm=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let t1=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hashTable=new Ls,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,n);let r;if(o)r=o.metadata,this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${pi.getForeground(r)}, fontStyle ${pi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let d=0;c>0&&d>1;c>0&&this._logService.getLevel()===wn.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const h=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);typeof h=="undefined"?r=2147483647:(r=0,typeof h.italic!="undefined"&&(r|=(h.italic?1:0)<<10|1),typeof h.bold!="undefined"&&(r|=(h.bold?2:0)<<10|2),typeof h.underline!="undefined"&&(r|=(h.underline?4:0)<<10|4),typeof h.strikethrough!="undefined"&&(r|=(h.strikethrough?8:0)<<10|8),h.foreground&&(r|=h.foreground<<14|16),r===0&&(r=2147483647))}else this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${pi.getForeground(r)}, fontStyle ${pi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}};t1=vP([Rm(1,ot),Rm(2,Wt),Rm(3,Do)],t1);function SP(s,e,t){const i=s.data,n=s.data.length/5|0,o=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ah&&i[5*v]===0;)v--;if(v-1===h){let S=d;for(;S+1L&&(e.warnOverlappingSemanticTokens(x,L+1),b=this._growCount){const o=this._elements;this._currentLengthIndex++,this._currentLength=Ls._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function L2(s,e,t,i,n){return xo(this,void 0,void 0,function*(){const o=EP(s,e),r=yield Promise.all(o.map(a=>xo(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(h){c=h,l=null}return(!l||!ig(l)&&!S2(l))&&(l=null),new IP(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function DP(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:null}class NP{constructor(e,t){this.provider=e,this.tokens=t}}function k2(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:[]}function x2(s,e,t,i){return xo(this,void 0,void 0,function*(){const n=k2(s,e),o=yield Promise.all(n.map(r=>xo(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){bf(l),a=null}return(!a||!ig(a))&&(a=null),new NP(r,a)})));for(const r of o)if(r.tokens)return r;return o.length>0?o[0]:null})}Ht.registerCommand("_provideDocumentSemanticTokensLegend",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t]=e;Sn(t instanceof we);const i=s.get(At).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(be),o=DP(n,i);return o?o[0].getLegend():s.get(Bi).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Ht.registerCommand("_provideDocumentSemanticTokens",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t]=e;Sn(t instanceof we);const i=s.get(At).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(be);if(!y2(n,i))return s.get(Bi).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const o=yield L2(n,i,null,null,ci.None);if(!o)return;const{provider:r,tokens:a}=o;if(!a||!ig(a))return;const l=v2({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Ht.registerCommand("_provideDocumentRangeSemanticTokensLegend",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t,i]=e;Sn(t instanceof we);const n=s.get(At).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(be),r=k2(o,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!D.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield x2(o,n,D.lift(i),ci.None);if(!!a)return a.provider.getLegend()}));Ht.registerCommand("_provideDocumentRangeSemanticTokens",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t,i]=e;Sn(t instanceof we),Sn(D.isIRange(i));const n=s.get(At).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(be),r=yield x2(o,n,D.lift(i),ci.None);if(!(!r||!r.tokens))return v2({id:0,type:"full",data:r.tokens.data})}));var bb=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Kt=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function Us(s){return s.toString()}function Qv(s){const e=new If,t=s.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class TP{constructor(e,t,i){this._modelEventListeners=new se,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const MP=qt||me?1:2;class RP{constructor(e,t,i,n,o,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let af=class Yl extends W{constructor(e,t,i,n,o,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new M),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new M),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new M),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new AP(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new i1(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=Bt.tabSize;if(e.editor&&typeof e.editor.tabSize!="undefined"){const f=parseInt(e.editor.tabSize,10);isNaN(f)||(n=f),n<1&&(n=1)}let o=n;if(e.editor&&typeof e.editor.indentSize!="undefined"&&e.editor.indentSize!=="tabSize"){const f=parseInt(e.editor.indentSize,10);isNaN(f)||(o=f),o<1&&(o=1)}let r=Bt.insertSpaces;e.editor&&typeof e.editor.insertSpaces!="undefined"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=MP;const l=e.eol;l===`\r + `)}return t}function gn(s,e){const t=Object.create(null);for(let i in e){const n=e[i];n&&(t[i]=ps(n,s))}return t}function C2(s,e,t){function i(){const n=gn(s.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),s.onDidColorThemeChange(i)}function ll(s,e,t){return C2(e,Object.assign(Object.assign({},tg),t||{}),s)}const tg={listFocusBackground:KT,listFocusForeground:qT,listFocusOutline:GT,listActiveSelectionBackground:_o,listActiveSelectionForeground:bo,listActiveSelectionIconForeground:Wd,listFocusAndSelectionBackground:_o,listFocusAndSelectionForeground:bo,listInactiveSelectionBackground:ZT,listInactiveSelectionIconForeground:XT,listInactiveSelectionForeground:YT,listInactiveFocusBackground:QT,listInactiveFocusOutline:JT,listHoverBackground:e5,listHoverForeground:t5,listDropBackground:i5,listSelectionOutline:yi,listHoverOutline:yi,listFilterWidgetBackground:n5,listFilterWidgetOutline:s5,listFilterWidgetNoMatchesOutline:o5,listMatchesShadow:Ya,treeIndentGuidesStroke:r5,tableColumnsBorder:a5,tableOddRowsBackgroundColor:l5},uP={shadowColor:Ya,borderColor:u5,foregroundColor:f5,backgroundColor:g5,selectionForegroundColor:m5,selectionBackgroundColor:p5,selectionBorderColor:_5,separatorColor:b5,scrollbarShadow:vl,scrollbarSliderBackground:Ea,scrollbarSliderHoverBackground:Da,scrollbarSliderActiveBackground:Na};function fP(s,e,t){return C2(e,Object.assign(Object.assign({},uP),t),s)}class gP{constructor(e,t,i,n,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i,n=dL(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:o=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),this.options.blockMouse&&(this.block=o.appendChild(J(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",V(this.block,Y.MOUSE_DOWN,c=>c.stopPropagation()));const a=new se,l=e.actionRunner||new x0;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new Wa(o,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(fP(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(V(window,Y.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(V(window,Y.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;let h=new Ji(c),d=h.target;if(!h.rightButton){for(;d;){if(d===o)return;d=d.parentElement}this.contextViewService.hideContextView(!0)}})),or(a,i)},focus:()=>{i&&i.focus(!!e.autoSelectFirstItem)},onHide:o=>{e.onHide&&e.onHide(!!o),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ph(e.error)&&this.notificationService.error(e.error)}}var mP=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zl=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Z_=class extends W{constructor(e,t,i,n,o){super(),this._onDidShowContextMenu=new M,this._onDidHideContextMenu=new M,this.contextMenuHandler=new gP(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{e.onHide&&e.onHide(t),this._onDidHideContextMenu.fire()}})),da.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};Z_=mP([zl(0,Lh),zl(1,Dn),zl(2,Yf),zl(3,Li),zl(4,ot)],Z_);function Kv(s){let e=JSON.parse(s);return e=Y_(e),e}function Y_(s,e=0){if(!s||e>200)return s;if(typeof s=="object"){switch(s.$mid){case 1:return we.revive(s);case 2:return new RegExp(s.source,s.flags);case 14:return new Date(s.source)}if(s instanceof Sf||s instanceof Uint8Array)return s;if(Array.isArray(s))for(let t=0;tw2(s,t))}function _P(s){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(s.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},s=s.with({fragment:""})),{selection:e,uri:s}}var _b=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},of=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Zo=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let X_=class{constructor(e){this._commandService=e}open(e,t){return Zo(this,void 0,void 0,function*(){if(!w2(e,Ce.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=we.parse(e));let i=[];try{i=Kv(decodeURIComponent(e.query))}catch{try{i=Kv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};X_=_b([of(0,Bi)],X_);let Q_=class{constructor(e){this._editorService=e}open(e,t){return Zo(this,void 0,void 0,function*(){typeof e=="string"&&(e=we.parse(e));const{selection:i,uri:n}=_P(e);return e=n,e.scheme===Ce.file&&(e=QA(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?sf.USER:sf.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};Q_=_b([of(0,kt)],Q_);let J_=class{constructor(e,t){this._openers=new Xi,this._validators=new Xi,this._resolvers=new Xi,this._resolvedUriTargets=new ti(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Xi,this._defaultExternalOpener={openExternal:i=>Zo(this,void 0,void 0,function*(){return Gv(i,Ce.http,Ce.https)?gL(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>Zo(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||Gv(i,Ce.mailto,Ce.http,Ce.https,Ce.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new X_(t)),this._openers.push(new Q_(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return Zo(this,void 0,void 0,function*(){const n=typeof e=="string"?we.parse(e):e,o=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(o)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return Zo(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return Zo(this,void 0,void 0,function*(){const i=typeof e=="string"?we.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let o;if(typeof e=="string"&&i.toString()===n.toString()?o=e:o=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(o,{sourceUri:i,preferredOpenerId:r},ci.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},ci.None)})}dispose(){this._validators.clear()}};J_=_b([of(0,kt),of(1,Bi)],J_);var Di;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(Di||(Di={}));(function(s){function e(r,a){return a-r}s.compare=e;const t=Object.create(null);t[s.Error]=p("sev.error","Error"),t[s.Warning]=p("sev.warning","Warning"),t[s.Info]=p("sev.info","Info");function i(r){return t[r]||""}s.toString=i;function n(r){switch(r){case at.Error:return s.Error;case at.Warning:return s.Warning;case at.Info:return s.Info;case at.Ignore:return s.Hint}}s.fromSeverity=n;function o(r){switch(r){case s.Error:return at.Error;case s.Warning:return at.Warning;case s.Info:return at.Info;case s.Hint:return at.Ignore}}s.toSeverity=o})(Di||(Di={}));var Zv;(function(s){const e="";function t(n){return i(n,!0)}s.makeKey=t;function i(n,o){let r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Di.toString(n.severity)):r.push(e),n.message&&o?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}s.makeKeyOptionalMessage=i})(Zv||(Zv={}));const El=pe("markerService");var bP=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yv=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};class CP extends W{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Pe(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let o=0;othis._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new CP(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Ce.inMemory||e.uri.scheme===Ce.internal||e.uri.scheme===Ce.vscode)&&this._markerService&&this._markerService.read({resource:e.uri}).map(i=>i.owner).forEach(i=>this._markerService.remove(i,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=D.lift(t);if(t.severity===Di.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const o=e.getWordAtPosition(i.getStartPosition());o&&(i=new D(i.startLineNumber,o.startColumn,i.endLineNumber,o.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){let n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};e1=bP([Yv(0,At),Yv(1,El)],e1);class Sc{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Sc(e,new rf(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new D(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Sc(this._startLineNumber,n),new Sc(this._startLineNumber+r,o)]}applyEdit(e,t){const[i,n,o]=nl(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new A(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const o=i-t;this._startLineNumber-=o;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,o)}}class rf{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&m>=t)&&(ue||m===e&&b>=t){if(mo?_-=o-i:_=i;else if(f===t&&m===i)if(f===n&&_>o)_-=o-i;else{h=!0;continue}else if(fo)f===t?(m=i,_=m+(_-o)):(m=0,_=m+(_-o));else{h=!0;continue}else if(f>n){if(l===0&&!h){c=a;break}f-=l}else if(f===n&&m>=o)e&&f===0&&(m+=e,_+=e),f-=l,m-=o-i,_-=o-i;else throw new Error("Not possible!");const w=4*c;r[w]=f,r[w+1]=m,r[w+2]=_,r[w+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,o,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let h=0;h=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Rm=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let t1=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hashTable=new Ls,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,n);let r;if(o)r=o.metadata,this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${pi.getForeground(r)}, fontStyle ${pi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let d=0;c>0&&d>1;c>0&&this._logService.getLevel()===wn.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const h=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);typeof h=="undefined"?r=2147483647:(r=0,typeof h.italic!="undefined"&&(r|=(h.italic?1:0)<<10|1),typeof h.bold!="undefined"&&(r|=(h.bold?2:0)<<10|2),typeof h.underline!="undefined"&&(r|=(h.underline?4:0)<<10|4),typeof h.strikethrough!="undefined"&&(r|=(h.strikethrough?8:0)<<10|8),h.foreground&&(r|=h.foreground<<14|16),r===0&&(r=2147483647))}else this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===wn.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${pi.getForeground(r)}, fontStyle ${pi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}};t1=wP([Rm(1,ot),Rm(2,Wt),Rm(3,Do)],t1);function vP(s,e,t){const i=s.data,n=s.data.length/5|0,o=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ah&&i[5*v]===0;)v--;if(v-1===h){let S=d;for(;S+1L&&(e.warnOverlappingSemanticTokens(x,L+1),b=this._growCount){const o=this._elements;this._currentLengthIndex++,this._currentLength=Ls._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function L2(s,e,t,i,n){return xo(this,void 0,void 0,function*(){const o=IP(s,e),r=yield Promise.all(o.map(a=>xo(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(h){c=h,l=null}return(!l||!ig(l)&&!S2(l))&&(l=null),new xP(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function EP(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:null}class DP{constructor(e,t){this.provider=e,this.tokens=t}}function k2(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:[]}function x2(s,e,t,i){return xo(this,void 0,void 0,function*(){const n=k2(s,e),o=yield Promise.all(n.map(r=>xo(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){bf(l),a=null}return(!a||!ig(a))&&(a=null),new DP(r,a)})));for(const r of o)if(r.tokens)return r;return o.length>0?o[0]:null})}Ht.registerCommand("_provideDocumentSemanticTokensLegend",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t]=e;Sn(t instanceof we);const i=s.get(At).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(be),o=EP(n,i);return o?o[0].getLegend():s.get(Bi).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Ht.registerCommand("_provideDocumentSemanticTokens",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t]=e;Sn(t instanceof we);const i=s.get(At).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(be);if(!y2(n,i))return s.get(Bi).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const o=yield L2(n,i,null,null,ci.None);if(!o)return;const{provider:r,tokens:a}=o;if(!a||!ig(a))return;const l=v2({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Ht.registerCommand("_provideDocumentRangeSemanticTokensLegend",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t,i]=e;Sn(t instanceof we);const n=s.get(At).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(be),r=k2(o,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!D.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield x2(o,n,D.lift(i),ci.None);if(!!a)return a.provider.getLegend()}));Ht.registerCommand("_provideDocumentRangeSemanticTokens",(s,...e)=>xo(void 0,void 0,void 0,function*(){const[t,i]=e;Sn(t instanceof we),Sn(D.isIRange(i));const n=s.get(At).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(be),r=yield x2(o,n,D.lift(i),ci.None);if(!(!r||!r.tokens))return v2({id:0,type:"full",data:r.tokens.data})}));var bb=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Kt=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};function Us(s){return s.toString()}function Qv(s){const e=new If,t=s.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class NP{constructor(e,t,i){this._modelEventListeners=new se,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const TP=qt||me?1:2;class MP{constructor(e,t,i,n,o,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let af=class Yl extends W{constructor(e,t,i,n,o,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new M),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new M),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new M),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new RP(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new i1(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=Bt.tabSize;if(e.editor&&typeof e.editor.tabSize!="undefined"){const f=parseInt(e.editor.tabSize,10);isNaN(f)||(n=f),n<1&&(n=1)}let o=n;if(e.editor&&typeof e.editor.indentSize!="undefined"&&e.editor.indentSize!=="tabSize"){const f=parseInt(e.editor.indentSize,10);isNaN(f)||(o=f),o<1&&(o=1)}let r=Bt.insertSpaces;e.editor&&typeof e.editor.insertSpaces!="undefined"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=TP;const l=e.eol;l===`\r `?a=2:l===` `&&(a=1);let c=Bt.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace!="undefined"&&(c=e.editor.trimAutoWhitespace==="false"?!1:Boolean(e.editor.trimAutoWhitespace));let h=Bt.detectIndentation;e.editor&&typeof e.editor.detectIndentation!="undefined"&&(h=e.editor.detectIndentation==="false"?!1:Boolean(e.editor.detectIndentation));let d=Bt.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations!="undefined"&&(d=e.editor.largeFileOptimizations==="false"?!1:Boolean(e.editor.largeFileOptimizations));let u=Bt.bracketPairColorizationOptions;return((i=e.editor)===null||i===void 0?void 0:i.bracketPairColorization)&&typeof e.editor.bracketPairColorization=="object"&&(u={enabled:!!e.editor.bracketPairColorization.enabled}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:r,detectIndentation:h,defaultEOL:a,trimAutoWhitespace:c,largeFileOptimizations:d,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&typeof i=="string"&&i!=="auto"?i:qi===3||qi===2?` `:`\r -`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Yl._readModelOptions({editor:o,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),r=new Ir(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Us(i))){const c=this._removeDisposedModel(i),h=this._undoRedoService.getElements(i),d=Qv(r)===c.sha1;if(d||c.sharesUndoRedoStack){for(const u of h.past)Ss(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of h.future)Ss(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>Ss(u)&&u.matchesResource(i)),d&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=Us(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new TP(r,c=>this._onWillDispose(c),(c,h)=>this._onDidChangeLanguage(c,h));return this._models[a]=l,l}createModel(e,t,i,n=!1){let o;return t?(o=this._createModelData(e,t.languageId,i,n),this.setMode(o.model,t)):o=this._createModelData(e,Vr,i,n),this._onModelAdded.fire(o.model),o.model}setMode(e,t){if(!t)return;const i=this._models[Us(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)Ss(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)Ss(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Yl.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(o)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>Ss(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new RP(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,Qv(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Yl._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};af.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;af=bb([Kt(0,Rt),Kt(1,Zy),Kt(2,ot),Kt(3,Do),Kt(4,tb),Kt(5,Wt),Kt(6,Eo),Kt(7,Xf),Kt(8,be)],af);const I2="editor.semanticHighlighting";function Jv(s,e,t){var i;const n=(i=t.getValue(I2,{overrideIdentifier:s.getLanguageId(),resource:s.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let i1=class extends W{constructor(e,t,i,n,o,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=h=>{this._watchers[h.uri.toString()]=new nh(h,this._semanticStyling,i,o,r)},l=(h,d)=>{d.dispose(),delete this._watchers[h.uri.toString()]},c=()=>{for(let h of t.getModels()){const d=this._watchers[h.uri.toString()];Jv(h,i,n)?d||a(h):d&&l(h,d)}};this._register(t.onModelAdded(h=>{Jv(h,i,n)&&a(h)})),this._register(t.onModelRemoved(h=>{const d=this._watchers[h.uri.toString()];d&&l(h,d)})),this._register(n.onDidChangeConfiguration(h=>{h.affectsConfiguration(I2)&&c()})),this._register(i.onDidColorThemeChange(c))}};i1=bb([Kt(1,At),Kt(2,ot),Kt(3,Rt),Kt(4,Xf),Kt(5,be)],i1);class AP extends W{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new t1(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class OP{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let nh=class zo extends W{constructor(e,t,i,n,o){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:zo.REQUEST_MIN_DELAY,max:zo.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new Tt(()=>this._fetchDocumentSemanticTokensNow(),zo.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{Me(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!y2(this._provider,this._model)){this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1);return}const e=new ml,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=L2(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const o=[],r=this._model.onDidChangeContent(l=>{o.push(l)}),a=new Rr(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{const{provider:c,tokens:h}=l,d=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,h||null,d,o)}},l=>{l&&(ph(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Ze(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),o.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,o){for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.setSemanticTokens(null,!1);return}if(!t){this._model.setSemanticTokens(null,!0),r();return}if(S2(t)){if(!o){this._model.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=o.data,c=new Uint32Array(l.length+a);let h=l.length,d=c.length;for(let u=t.edits.length-1;u>=0;u--){const f=t.edits[u],m=h-(f.start+f.deleteCount);m>0&&(zo._copy(l,h-m,c,d-m,m),d-=m),f.data&&(zo._copy(f.data,0,c,d-f.data.length,f.data.length),d-=f.data.length),h=f.start}h>0&&zo._copy(l,0,c,0,h),t={resultId:t.resultId,data:c}}}if(ig(t)){this._currentDocumentResponse=new OP(e,t.resultId,t.data);const a=SP(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const h of l.changes)c.applyEdit(h.range,h.text);this._model.setSemanticTokens(a,!0)}else this._model.setSemanticTokens(null,!0);r()}};nh.REQUEST_MIN_DELAY=300;nh.REQUEST_MAX_DELAY=2e3;nh=bb([Kt(2,ot),Kt(3,Xf),Kt(4,be)],nh);const PP=new RegExp(`(\\\\)?\\$\\((${ei.iconNameExpression}(?:${ei.iconModifierExpression})?)\\)`,"g");function yc(s){const e=new Array;let t,i=0,n=0;for(;(t=PP.exec(s))!==null;){n=t.index||0,e.push(s.substring(i,n)),i=(t.index||0)+t[0].length;const[,o,r]=t;e.push(o?`$(${r})`:FP({id:r}))}return i{this._register(V(this._element,i,n=>{if(!this.enabled){Ie.stop(n);return}this._onDidClick.fire(n)}))}),this._register(V(this._element,Y.KEY_DOWN,i=>{const n=new He(i);let o=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),o=!0):n.equals(9)&&(this._element.blur(),o=!0),o&&Ie.stop(n,!0)})),this._register(V(this._element,Y.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(V(this._element,Y.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Ga(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?Df(this._element,...yc(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}const VP={badgeBackground:O.fromHex("#4D4D4D"),badgeForeground:O.fromHex("#FFFFFF")};class tS{constructor(e,t){this.count=0,this.options=t||Object.create(null),Nr(this.options,VP,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=U(e,J(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=cu(this.countFormat,this.count),this.element.title=cu(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const iS="done",nS="active",Am="infinite",Om="infinite-long-running",sS="discrete",WP={progressBarBackground:O.fromHex("#0E70C0")};class ng extends W{constructor(e,t){super(),this.options=t||Object.create(null),Nr(this.options,WP,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new Tt(()=>fL(this.element),0)),this.longRunningScheduler=this._register(new Tt(()=>this.infiniteLongRunning(),ng.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(nS,Am,Om,sS),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(iS),this.element.classList.contains(Am)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(sS,iS,Om),this.element.classList.add(nS,Am),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Om)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}ng.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class E2{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}new E2("id#");const Pm={},HP=new E2("quick-input-button-icon-");function n1(s){if(!s)return;let e;const t=s.dark.toString();return Pm[t]?e=Pm[t]:(e=HP.nextId(),HC(`.${e}`,`background-image: ${a_(s.light||s.dark)}`),HC(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${a_(s.dark)}`),Pm[t]=e),e}const zP={ctrlCmd:!1,alt:!1};var sh;(function(s){s[s.Blur=1]="Blur",s[s.Gesture=2]="Gesture",s[s.Other=3]="Other"})(sh||(sh={}));var fn;(function(s){s[s.NONE=0]="NONE",s[s.FIRST=1]="FIRST",s[s.SECOND=2]="SECOND",s[s.LAST=3]="LAST"})(fn||(fn={}));function UP(s,e={}){const t=D2(e);return t.textContent=s,t}function $P(s,e={}){const t=D2(e);return N2(t,KP(s,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function D2(s){const e=s.inline?"span":"div",t=document.createElement(e);return s.className&&(t.className=s.className),t}class jP{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function N2(s,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const o=document.createElement("a");t.disposables.add(wi(o,"click",r=>{t.callback(String(e.index),r)})),n=o}else e.type===8?n=document.createElement("br"):e.type===1&&(n=s);n&&s!==n&&s.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(o=>{N2(n,o,t,i)})}function KP(s,e){const t={type:1,children:[]};let i=0,n=t;const o=[],r=new jP(s);for(;!r.eos();){let a=r.next();const l=a==="\\"&&s1(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&qP(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=o.pop());const c=s1(a,e);if(n.type===c||n.type===5&&c===6)n=o.pop();else{const h={type:c,children:[]};c===5&&(h.index=i,i++),n.children.push(h),o.push(n),n=h}}else if(a===` -`)n.type===2&&(n=o.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),o.push(n),n=c}else n.content+=a}return n.type===2&&(n=o.pop()),t}function qP(s,e){return s1(s,e)!==0}function s1(s,e){switch(s){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class GP{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class ZP{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new GP(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const Ul=J,YP={inputBackground:O.fromHex("#3C3C3C"),inputForeground:O.fromHex("#CCCCCC"),inputValidationInfoBorder:O.fromHex("#55AAFF"),inputValidationInfoBackground:O.fromHex("#063B49"),inputValidationWarningBorder:O.fromHex("#B89500"),inputValidationWarningBackground:O.fromHex("#352A05"),inputValidationErrorBorder:O.fromHex("#BE1100"),inputValidationErrorBackground:O.fromHex("#5A1D1D")};class T2 extends rs{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new M),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Nr(this.options,YP,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=U(e,Ul(".monaco-inputbox.idle"));let o=this.options.flexibleHeight?"textarea":"input",r=U(this.element,Ul(".ibwrapper"));if(this.input=U(r,Ul(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=U(r,Ul("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new oR(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),U(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new Te(document,"selectionchange")),l=K.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new ol(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:o_(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return ji(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t=()=>e.style.width=ji(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=U(n,Ul(".monaco-inputbox-container")),t();const o={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?$P(this.message.content,o):UP(this.message.content,o);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",U(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Nf(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=o_(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;i!==null&&n!==null&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class M2 extends T2{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this.history=new ZP(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?o:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(h=>{h.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const h=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=h:this.setPlaceHolder(h),!0}else return!1};l(r)||l(o)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,h_(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,h_(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}const XP=J;class QP extends W{constructor(e){super(),this.parent=e,this.onKeyDown=t=>V(this.inputBox.inputElement,Y.KEY_DOWN,i=>{t(new He(i))}),this.onMouseDown=t=>V(this.inputBox.inputElement,Y.MOUSE_DOWN,i=>{t(new Ji(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=U(this.parent,XP(".quick-input-box")),this.inputBox=this._register(new T2(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===at.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===at.Info?1:e===at.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===at.Info?1:e===at.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class cl{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=U(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=cl.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&Ri(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n=o===`\r -`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class JP{constructor(e="",t=!1){var i,n,o;if(this.value=e,typeof this.value!="string")throw q1("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(i=t.isTrusted)!==null&&i!==void 0?i:void 0,this.supportThemeIcons=(n=t.supportThemeIcons)!==null&&n!==void 0?n:!1,this.supportHtml=(o=t.supportHtml)!==null&&o!==void 0?o:!1)}appendText(e,t=0){return this.value+=t8(this.supportThemeIcons?lP(e):e).replace(/([ \t]+)/g,(i,n)=>" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ +`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Yl._readModelOptions({editor:o,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),r=new Ir(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Us(i))){const c=this._removeDisposedModel(i),h=this._undoRedoService.getElements(i),d=Qv(r)===c.sha1;if(d||c.sharesUndoRedoStack){for(const u of h.past)Ss(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of h.future)Ss(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>Ss(u)&&u.matchesResource(i)),d&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=Us(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new NP(r,c=>this._onWillDispose(c),(c,h)=>this._onDidChangeLanguage(c,h));return this._models[a]=l,l}createModel(e,t,i,n=!1){let o;return t?(o=this._createModelData(e,t.languageId,i,n),this.setMode(o.model,t)):o=this._createModelData(e,Vr,i,n),this._onModelAdded.fire(o.model),o.model}setMode(e,t){if(!t)return;const i=this._models[Us(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)Ss(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)Ss(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Yl.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(o)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>Ss(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new MP(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,Qv(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Yl._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};af.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;af=bb([Kt(0,Rt),Kt(1,Zy),Kt(2,ot),Kt(3,Do),Kt(4,tb),Kt(5,Wt),Kt(6,Eo),Kt(7,Xf),Kt(8,be)],af);const I2="editor.semanticHighlighting";function Jv(s,e,t){var i;const n=(i=t.getValue(I2,{overrideIdentifier:s.getLanguageId(),resource:s.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let i1=class extends W{constructor(e,t,i,n,o,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=h=>{this._watchers[h.uri.toString()]=new nh(h,this._semanticStyling,i,o,r)},l=(h,d)=>{d.dispose(),delete this._watchers[h.uri.toString()]},c=()=>{for(let h of t.getModels()){const d=this._watchers[h.uri.toString()];Jv(h,i,n)?d||a(h):d&&l(h,d)}};this._register(t.onModelAdded(h=>{Jv(h,i,n)&&a(h)})),this._register(t.onModelRemoved(h=>{const d=this._watchers[h.uri.toString()];d&&l(h,d)})),this._register(n.onDidChangeConfiguration(h=>{h.affectsConfiguration(I2)&&c()})),this._register(i.onDidColorThemeChange(c))}};i1=bb([Kt(1,At),Kt(2,ot),Kt(3,Rt),Kt(4,Xf),Kt(5,be)],i1);class RP extends W{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new t1(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class AP{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let nh=class zo extends W{constructor(e,t,i,n,o){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:zo.REQUEST_MIN_DELAY,max:zo.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new Tt(()=>this._fetchDocumentSemanticTokensNow(),zo.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{Me(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!y2(this._provider,this._model)){this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1);return}const e=new ml,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=L2(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const o=[],r=this._model.onDidChangeContent(l=>{o.push(l)}),a=new Rr(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{const{provider:c,tokens:h}=l,d=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,h||null,d,o)}},l=>{l&&(ph(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Ze(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),o.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,o){for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.setSemanticTokens(null,!1);return}if(!t){this._model.setSemanticTokens(null,!0),r();return}if(S2(t)){if(!o){this._model.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=o.data,c=new Uint32Array(l.length+a);let h=l.length,d=c.length;for(let u=t.edits.length-1;u>=0;u--){const f=t.edits[u],m=h-(f.start+f.deleteCount);m>0&&(zo._copy(l,h-m,c,d-m,m),d-=m),f.data&&(zo._copy(f.data,0,c,d-f.data.length,f.data.length),d-=f.data.length),h=f.start}h>0&&zo._copy(l,0,c,0,h),t={resultId:t.resultId,data:c}}}if(ig(t)){this._currentDocumentResponse=new AP(e,t.resultId,t.data);const a=vP(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const h of l.changes)c.applyEdit(h.range,h.text);this._model.setSemanticTokens(a,!0)}else this._model.setSemanticTokens(null,!0);r()}};nh.REQUEST_MIN_DELAY=300;nh.REQUEST_MAX_DELAY=2e3;nh=bb([Kt(2,ot),Kt(3,Xf),Kt(4,be)],nh);const OP=new RegExp(`(\\\\)?\\$\\((${ei.iconNameExpression}(?:${ei.iconModifierExpression})?)\\)`,"g");function yc(s){const e=new Array;let t,i=0,n=0;for(;(t=OP.exec(s))!==null;){n=t.index||0,e.push(s.substring(i,n)),i=(t.index||0)+t[0].length;const[,o,r]=t;e.push(o?`$(${r})`:PP({id:r}))}return i{this._register(V(this._element,i,n=>{if(!this.enabled){Ie.stop(n);return}this._onDidClick.fire(n)}))}),this._register(V(this._element,Y.KEY_DOWN,i=>{const n=new He(i);let o=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),o=!0):n.equals(9)&&(this._element.blur(),o=!0),o&&Ie.stop(n,!0)})),this._register(V(this._element,Y.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(V(this._element,Y.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Ga(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?Df(this._element,...yc(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}const BP={badgeBackground:O.fromHex("#4D4D4D"),badgeForeground:O.fromHex("#FFFFFF")};class tS{constructor(e,t){this.count=0,this.options=t||Object.create(null),Nr(this.options,BP,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=U(e,J(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=cu(this.countFormat,this.count),this.element.title=cu(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const iS="done",nS="active",Am="infinite",Om="infinite-long-running",sS="discrete",VP={progressBarBackground:O.fromHex("#0E70C0")};class ng extends W{constructor(e,t){super(),this.options=t||Object.create(null),Nr(this.options,VP,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new Tt(()=>fL(this.element),0)),this.longRunningScheduler=this._register(new Tt(()=>this.infiniteLongRunning(),ng.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(nS,Am,Om,sS),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(iS),this.element.classList.contains(Am)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(sS,iS,Om),this.element.classList.add(nS,Am),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Om)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}ng.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class E2{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}new E2("id#");const Pm={},WP=new E2("quick-input-button-icon-");function n1(s){if(!s)return;let e;const t=s.dark.toString();return Pm[t]?e=Pm[t]:(e=WP.nextId(),HC(`.${e}`,`background-image: ${a_(s.light||s.dark)}`),HC(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${a_(s.dark)}`),Pm[t]=e),e}const HP={ctrlCmd:!1,alt:!1};var sh;(function(s){s[s.Blur=1]="Blur",s[s.Gesture=2]="Gesture",s[s.Other=3]="Other"})(sh||(sh={}));var fn;(function(s){s[s.NONE=0]="NONE",s[s.FIRST=1]="FIRST",s[s.SECOND=2]="SECOND",s[s.LAST=3]="LAST"})(fn||(fn={}));function zP(s,e={}){const t=D2(e);return t.textContent=s,t}function UP(s,e={}){const t=D2(e);return N2(t,jP(s,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function D2(s){const e=s.inline?"span":"div",t=document.createElement(e);return s.className&&(t.className=s.className),t}class $P{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function N2(s,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const o=document.createElement("a");t.disposables.add(wi(o,"click",r=>{t.callback(String(e.index),r)})),n=o}else e.type===8?n=document.createElement("br"):e.type===1&&(n=s);n&&s!==n&&s.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(o=>{N2(n,o,t,i)})}function jP(s,e){const t={type:1,children:[]};let i=0,n=t;const o=[],r=new $P(s);for(;!r.eos();){let a=r.next();const l=a==="\\"&&s1(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&KP(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=o.pop());const c=s1(a,e);if(n.type===c||n.type===5&&c===6)n=o.pop();else{const h={type:c,children:[]};c===5&&(h.index=i,i++),n.children.push(h),o.push(n),n=h}}else if(a===` +`)n.type===2&&(n=o.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),o.push(n),n=c}else n.content+=a}return n.type===2&&(n=o.pop()),t}function KP(s,e){return s1(s,e)!==0}function s1(s,e){switch(s){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class qP{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class GP{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new qP(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const Ul=J,ZP={inputBackground:O.fromHex("#3C3C3C"),inputForeground:O.fromHex("#CCCCCC"),inputValidationInfoBorder:O.fromHex("#55AAFF"),inputValidationInfoBackground:O.fromHex("#063B49"),inputValidationWarningBorder:O.fromHex("#B89500"),inputValidationWarningBackground:O.fromHex("#352A05"),inputValidationErrorBorder:O.fromHex("#BE1100"),inputValidationErrorBackground:O.fromHex("#5A1D1D")};class T2 extends rs{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new M),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new M),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Nr(this.options,ZP,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=U(e,Ul(".monaco-inputbox.idle"));let o=this.options.flexibleHeight?"textarea":"input",r=U(this.element,Ul(".ibwrapper"));if(this.input=U(r,Ul(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=U(r,Ul("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new sR(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),U(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new Te(document,"selectionchange")),l=K.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new ol(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:o_(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return ji(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t=()=>e.style.width=ji(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=U(n,Ul(".monaco-inputbox-container")),t();const o={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?UP(this.message.content,o):zP(this.message.content,o);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",U(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Nf(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=o_(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;i!==null&&n!==null&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class M2 extends T2{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this.history=new GP(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?o:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(h=>{h.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const h=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=h:this.setPlaceHolder(h),!0}else return!1};l(r)||l(o)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,h_(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,h_(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}const YP=J;class XP extends W{constructor(e){super(),this.parent=e,this.onKeyDown=t=>V(this.inputBox.inputElement,Y.KEY_DOWN,i=>{t(new He(i))}),this.onMouseDown=t=>V(this.inputBox.inputElement,Y.MOUSE_DOWN,i=>{t(new Ji(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=U(this.parent,YP(".quick-input-box")),this.inputBox=this._register(new T2(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===at.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===at.Info?1:e===at.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===at.Info?1:e===at.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class cl{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=U(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=cl.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&Ri(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n=o===`\r +`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class QP{constructor(e="",t=!1){var i,n,o;if(this.value=e,typeof this.value!="string")throw q1("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(i=t.isTrusted)!==null&&i!==void 0?i:void 0,this.supportThemeIcons=(n=t.supportThemeIcons)!==null&&n!==void 0?n:!1,this.supportHtml=(o=t.supportHtml)!==null&&o!==void 0?o:!1)}appendText(e,t=0){return this.value+=e8(this.supportThemeIcons?aP(e):e).replace(/([ \t]+)/g,(i,n)=>" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ `:` `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` -`,this.value+=t,this.value+="\n```\n",this}}function e8(s){return s instanceof JP?!0:s&&typeof s=="object"?typeof s.value=="string"&&(typeof s.isTrusted=="boolean"||s.isTrusted===void 0)&&(typeof s.supportThemeIcons=="boolean"||s.supportThemeIcons===void 0):!1}function t8(s){return s.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}var o1=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function i8(s,e){Ln(e)?s.title=b2(e):e!=null&&e.markdownNotSupportedFallback?s.title=e.markdownNotSupportedFallback:s.removeAttribute("title")}class n8{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return o1(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(e===void 0||Ln(e)||e instanceof HTMLElement)n=e;else if(!nu(e.markdown))n=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new ml;const o=this._cancellationTokenSource.token;if(n=yield e.markdown(o),n===void 0&&(n=e.markdownNotSupportedFallback),this.isDisposed||o.isCancellationRequested)return}this.show(n,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}i==null||i.dispose()}hasContent(e){return e?e8(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function s8(s,e,t){let i,n;const o=(h,d)=>{var u;h&&(n==null||n.dispose(),n=void 0),d&&(i==null||i.dispose(),i=void 0),(u=s.onDidHideHover)===null||u===void 0||u.call(s)},r=(h,d,u)=>new os(()=>o1(this,void 0,void 0,function*(){(!n||n.isDisposed)&&(n=new n8(s,u||e,h>0),yield n.update(t,d))}),h),a=()=>{if(i)return;const h=new se,d=m=>o(!1,m.fromElement===e);h.add(V(e,Y.MOUSE_LEAVE,d,!0));const u=()=>o(!0,!0);h.add(V(e,Y.MOUSE_DOWN,u,!0));const f={targetElements:[e],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const m=_=>f.x=_.x+10;h.add(V(e,Y.MOUSE_MOVE,m,!0))}h.add(r(s.delay,!1,f)),i=h},l=V(e,Y.MOUSE_OVER,a,!0);return{show:h=>{o(!1,!0),r(0,h)},hide:()=>{o(!0,!0)},update:h=>o1(this,void 0,void 0,function*(){t=h,yield n==null?void 0:n.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class Fm{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class oS extends W{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new Fm(U(e,J(".monaco-icon-label")))),this.labelContainer=U(this.domNode.element,J(".monaco-icon-label-container"));const i=U(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new Fm(U(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new a8(i,!!t.supportIcons):this.nameNode=new o8(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new cl(U(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new Fm(U(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof cl?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)i8(e,t);else{const n=s8(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class o8{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ri(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=U(this.container,J("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+n.length},r=t.map(a=>Dt.intersect(o,a)).filter(a=>!Dt.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class a8{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ri(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new cl(U(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=r8(e,i,t==null?void 0:t.matches);for(let o=0;o{const s=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:s,collatorIsNumeric:s.resolvedOptions().numeric}});new kf(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new kf(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function l8(s,e,t=!1){const i=s||"",n=e||"",o=rS.value.collator.compare(i,n);return rS.value.collatorIsNumeric&&o===0&&i!==n?in.length)return 1}return 0}var R2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},d8=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Pn=J;class u8{constructor(e){this.hidden=!1,this._onChecked=new M,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Mh{get templateId(){return Mh.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=U(e,Pn(".quick-input-list-entry"));const i=U(t.entry,Pn("label.quick-input-list-label"));t.toDisposeTemplate.push(wi(i,Y.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=U(i,Pn("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(wi(t.checkbox,Y.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=U(i,Pn(".quick-input-list-rows")),o=U(n,Pn(".quick-input-list-row")),r=U(n,Pn(".quick-input-list-row"));t.label=new oS(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=U(o,Pn(".quick-input-list-entry-keybinding"));t.keybinding=new Cb(a,qi);const l=U(r,Pn(".quick-input-list-label-meta"));return t.detail=new oS(l,{supportHighlights:!0,supportIcons:!0}),t.separator=U(t.entry,Pn(".quick-input-list-separator")),t.actionBar=new ol(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=Me(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,h)=>{let d=c.iconClass||(c.iconPath?n1(c.iconPath):void 0);c.alwaysVisible&&(d=d?`${d} always-visible`:"always-visible");const u=new qn(`id-${h}`,"",d,!0,()=>d8(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=Me(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Me(e.toDisposeElement),e.toDisposeTemplate=Me(e.toDisposeTemplate)}}Mh.ID="listelement";class f8{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Mh.ID}}var Ye;(function(s){s[s.First=1]="First",s[s.Second=2]="Second",s[s.Last=3]="Last",s[s.Next=4]="Next",s[s.Previous=5]="Previous",s[s.NextPage=6]="NextPage",s[s.PreviousPage=7]="PreviousPage"})(Ye||(Ye={}));class wb{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new M,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new M,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new M,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new M,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new M,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new M,this.onKeyDown=this._onKeyDown.event,this._onLeave=new M,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=U(this.parent,Pn(".quick-input-list"));const n=new f8,o=new m8;this.list=i.createList("QuickInput",this.container,n,[new Mh],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new He(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(me?r.metaKey:r.ctrlKey)&&this.list.setFocus($t(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(V(this.container,Y.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return K.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return K.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Me(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if(n.type!=="separator"){const c=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),d=n.meta&&n.meta.replace(/\r?\n/g," "),u=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),m=n.ariaLabel||[h,u,f].map(b=>FE(b)).filter(b=>!!b).join(", "),_=this.parent.classList.contains("show-checkboxes");i.push(new u8({hasCheckbox:_,index:o,item:n,saneLabel:h,saneMeta:d,saneAriaLabel:m,saneDescription:u,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===Ye.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=Ye.First),e===Ye.Previous&&this.list.getFocus()[0]===0&&(e=Ye.Last),e===Ye.Second&&this.list.length<2&&(e=Ye.First),e){case Ye.First:this.list.focusFirst();break;case Ye.Second:this.list.focusNth(1);break;case Ye.Last:this.list.focusLast();break;case Ye.Next:this.list.focusNext();break;case Ye.Previous:this.list.focusPrevious();break;case Ye.NextPage:this.list.focusNextPage();break;case Ye.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const n=i.index&&this.inputElements[i.index-1];i.separator=n&&n.type==="separator"?n:void 0});else{let i;this.elements.forEach(n=>{const o=this.matchOnLabel?Qo(Cd(e,bd(n.saneLabel))):void 0,r=this.matchOnDescription?Qo(Cd(e,bd(n.saneDescription||""))):void 0,a=this.matchOnDetail?Qo(Cd(e,bd(n.saneDetail||""))):void 0,l=this.matchOnMeta?Qo(Cd(e,bd(n.saneMeta||""))):void 0;if(o||r||a||l?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const c=n.index&&this.inputElements[n.index-1];i=c&&c.type==="separator"?c:i,i&&!n.hidden&&(n.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((n,o)=>g8(n,o,i))}return this.elementsToIndexes=t.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=Me(this.elementDisposables),this.disposables=Me(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}R2([rt],wb.prototype,"onDidChangeFocus",null);R2([rt],wb.prototype,"onDidChangeSelection",null);function g8(s,e,t){const i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:c8(s.saneLabel,e.saneLabel,t)}class m8{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!!e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var aS=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const di=J,r1={iconClass:g.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class sg extends W{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=sg.noPromptMessage,this._severity=at.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new M),this.onDidHideEmitter=this._register(new M),this.onDisposeEmitter=this._register(new M),this.visibleDisposables=this._register(new se),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!pr;this._ignoreFocusOut=e&&!pr,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){!this.visible||this.ui.hide()}didHide(e=sh.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new os,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===r1);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new qn(`id-${a}`,"",r.iconClass||n1(r.iconPath),!0,()=>aS(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==r1);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new qn(`id-${a}`,"",r.iconClass||n1(r.iconPath),!0,()=>aS(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,Df(this.ui.message,...yc(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==at.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}sg.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class oh extends sg{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new M),this.onWillAcceptEmitter=this._register(new M),this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?fn.NONE:fn.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new M),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new M),this.onDidTriggerItemButtonEmitter=this._register(new M),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?zP:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Ye.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(Ye.Next),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Ye.Previous):this.ui.list.focus(Ye.Last),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 12:this.ui.list.focus(Ye.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 11:this.ui.list.focus(Ye.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Ye.First),Ie.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Ye.Last),Ie.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Kn(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Kn(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Kn(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return V(this.ui.container,Y.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new He(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||oh.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case fn.NONE:this._itemActivation=fn.FIRST;break;case fn.SECOND:this.ui.list.focus(Ye.Second),this._itemActivation=fn.FIRST;break;case fn.LAST:this.ui.list.focus(Ye.Last),this._itemActivation=fn.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Ye.First)),this.keepScrollPosition&&(this.scrollTop=e)}}oh.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class og extends W{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this.onDidTriggerButtonEmitter=this._register(new M),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new M),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new M),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(V(window,Y.KEY_DOWN,e,!0)),this._register(V(window,Y.KEY_UP,e,!0)),this._register(V(window,Y.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=U(this.parentElement,di(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=xn(e),i=U(e,di(".quick-input-titlebar")),n=this._register(new ol(i));n.domNode.classList.add("quick-input-left-action-bar");const o=U(i,di(".quick-input-title")),r=this._register(new ol(i));r.domNode.classList.add("quick-input-right-action-bar");const a=U(e,di(".quick-input-description")),l=U(e,di(".quick-input-header")),c=U(l,di("input.quick-input-check-all"));c.type="checkbox",this._register(wi(c,Y.CHANGE,R=>{const T=c.checked;L.setAllVisibleChecked(T)})),this._register(V(c,Y.CLICK,R=>{(R.x||R.y)&&f.setFocus()}));const h=U(l,di(".quick-input-description")),d=U(l,di(".quick-input-and-message")),u=U(d,di(".quick-input-filter")),f=this._register(new QP(u));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const m=U(u,di(".quick-input-visible-count"));m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true");const _=new tS(m,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),b=U(u,di(".quick-input-count"));b.setAttribute("aria-live","polite");const w=new tS(b,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),C=U(l,di(".quick-input-action")),v=new eS(C);v.label=p("ok","OK"),this._register(v.onDidClick(R=>{this.onDidAcceptEmitter.fire()}));const S=U(l,di(".quick-input-action")),k=new eS(S);k.label=p("custom","Custom"),this._register(k.onDidClick(R=>{this.onDidCustomEmitter.fire()}));const x=U(d,di(`#${this.idPrefix}message.quick-input-message`)),L=this._register(new wb(e,this.idPrefix+"list",this.options));this._register(L.onChangedAllVisibleChecked(R=>{c.checked=R})),this._register(L.onChangedVisibleCount(R=>{_.setCount(R)})),this._register(L.onChangedCheckedCount(R=>{w.setCount(R)})),this._register(L.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof oh&&this.controller.canSelectMany&&L.clearFocus()},0)})),this._register(L.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const y=new ng(e);y.getContainer().classList.add("quick-input-progress");const I=Ga(e);return this._register(I),this._register(V(e,Y.FOCUS,R=>{this.previousFocusElement=R.relatedTarget instanceof HTMLElement?R.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(sh.Blur),this.previousFocusElement=void 0})),this._register(V(e,Y.FOCUS,R=>{f.setFocus()})),this._register(V(e,Y.KEY_DOWN,R=>{const T=new He(R);switch(T.keyCode){case 3:Ie.stop(R,!0),this.onDidAcceptEmitter.fire();break;case 9:Ie.stop(R,!0),this.hide(sh.Gesture);break;case 2:if(!T.altKey&&!T.ctrlKey&&!T.metaKey){const P=[".action-label.codicon"];e.classList.contains("show-checkboxes")?P.push("input"):P.push("input[type=text]"),this.getUI().list.isDisplayed()&&P.push(".monaco-list");const F=e.querySelectorAll(P.join(", "));T.shiftKey&&T.target===F[0]?(Ie.stop(R,!0),F[F.length-1].focus()):!T.shiftKey&&T.target===F[F.length-1]&&(Ie.stop(R,!0),F[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:a,description2:h,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:f,visibleCountContainer:m,visibleCount:_,countContainer:b,count:w,okContainer:C,ok:v,message:x,customButtonContainer:S,customButton:k,list:L,progressBar:y,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:R=>this.show(R),hide:()=>this.hide(),setVisibilities:R=>this.setVisibilities(R),setComboboxAccessibility:R=>this.setComboboxAccessibility(R),setEnabled:R=>this.setEnabled(R),setContextKey:R=>this.options.setContextKey(R)},this.updateStyles(),this.ui}pick(e,t={},i=ci.None){return new Promise((n,o)=>{let r=h=>{r=n,t.onKeyMods&&t.onKeyMods(a.keyMods),n(h)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const h=a.activeItems[0];h&&(r(h),a.hide())}}),a.onDidChangeActive(h=>{const d=h[0];d&&t.onDidFocus&&t.onDidFocus(d)}),a.onDidChangeSelection(h=>{if(!a.canSelectMany){const d=h[0];d&&(r(d),a.hide())}}),a.onDidTriggerItemButton(h=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},h),{removeItem:()=>{const d=a.items.indexOf(h.item);if(d!==-1){const u=a.items.slice(),f=u.splice(d,1),m=a.activeItems.filter(b=>b!==f[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,m&&(a.activeItems=m),a.keepScrollPosition=_}}}))),a.onDidChangeValue(h=>{l&&!h&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{Me(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([h,d])=>{l=d,a.busy=!1,a.items=h,a.canSelectMany&&(a.selectedItems=h.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,h=>{o(h),a.hide()})})}createQuickPick(){const e=this.getUI();return new oh(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(at.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Df(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();r1.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let o=this.previousFocusElement;for(;o&&!o.offsetParent;)o=Qo(o.parentElement);o!=null&&o.offsetParent?(o.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,og.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` -`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}og.MAX_WIDTH=600;class p8{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Fo extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function lS(s,e){const t=[];for(let i of e){if(s.start>=i.range.end)continue;if(s.ende.concat(t),[]))}class cS{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,o=lS({start:0,end:e},this.groups),r=lS({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:a1(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=b8(o,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(let n of this.groups){const o=n.range.end-n.range.start,r=i+o*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var Hr=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Rn={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(s){return[s]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class Rh{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class v8{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class S8{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Nn{constructor(e,t,i,n=Rn){if(this.virtualDelegate=t,this.domId=`list_id_${++Nn.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new bl(50),this.splicing=!1,this.dragOverAnimationStopDisposable=W.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=W.None,this.onDragLeaveTimeout=W.None,this.disposables=new se,this._onDidChangeContentHeight=new M,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new cS;for(const r of i)this.renderers.set(r.templateId,r);this.cache=this.disposables.add(new w8(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=Mn(n,r=>r.horizontalScrolling,Rn.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight=="undefined"?0:n.additionalScrollHeight,this.accessibilityProvider=new L8(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Mn(n,r=>r.transformOptimization,Rn.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(Se.addTarget(this.rowsContainer)),this.scrollable=new Eh({forceIntegerValues:!0,smoothScrollDuration:Mn(n,r=>r.smoothScrolling,!1)?125:0,scheduleAtNextAnimationFrame:r=>kn(r)}),this.scrollableElement=this.disposables.add(new W0(this.rowsContainer,{alwaysConsumeMouseWheel:Mn(n,r=>r.alwaysConsumeMouseWheel,Rn.alwaysConsumeMouseWheel),horizontal:1,vertical:Mn(n,r=>r.verticalScrollMode,Rn.verticalScrollMode),useShadows:Mn(n,r=>r.useShadows,Rn.useShadows),mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(V(this.rowsContainer,Ae.Change,r=>this.onTouchChange(r))),this.disposables.add(V(this.scrollableElement.getDomNode(),"scroll",r=>r.target.scrollTop=0)),this.disposables.add(V(this.domNode,"dragover",r=>this.onDragOver(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"drop",r=>this.onDrop(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"dragleave",r=>this.onDragLeave(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"dragend",r=>this.onDragEnd(r))),this.setRowLineHeight=Mn(n,r=>r.setRowLineHeight,Rn.setRowLineHeight),this.setRowHeight=Mn(n,r=>r.setRowHeight,Rn.setRowHeight),this.supportDynamicHeights=Mn(n,r=>r.supportDynamicHeights,Rn.supportDynamicHeights),this.dnd=Mn(n,r=>r.dnd,Rn.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:zg(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},r=Dt.intersect(n,o),a=new Map;for(let x=r.end-1;x>=r.start;x--){const L=this.items[x];if(L.dragStartDisposable.dispose(),L.row){let y=a.get(L.templateId);y||(y=[],a.set(L.templateId,y));const I=this.renderers.get(L.templateId);I&&I.disposeElement&&I.disposeElement(L.element,x,L.row.templateData,L.size),y.push(L.row)}L.row=null}const l={start:e+t,end:this.items.length},c=Dt.intersect(l,n),h=Dt.relativeComplement(l,n),d=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:W.None,checkedDisposable:W.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new cS,this.rangeMap.splice(0,0,d),u=this.items,this.items=d):(this.rangeMap.splice(e,t,d),u=this.items.splice(e,t,...d));const f=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=a1(c,f),b=Dt.intersect(m,_);for(let x=b.start;xa1(x,f)),S=[{start:e,end:e+i.length},...C].map(x=>Dt.intersect(m,x)),k=this.getNextToLastElement(S);for(const x of S)for(let L=x.start;Lx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=kn(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width!="undefined"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}rerender(){if(!!this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:typeof e=="number"?e:x4(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t!="undefined"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:zg(this.domNode)})}render(e,t,i,n,o,r=!1){const a=this.getRenderRange(t,i),l=Dt.relativeComplement(a,e),c=Dt.relativeComplement(e,a),h=this.getNextToLastElement(l);if(r){const d=Dt.intersect(e,a);for(let u=d.start;un.row.domNode.setAttribute("aria-checked",String(!!h));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a&&a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=V(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Oi?"-moz-fit-content":"fit-content",e.width=zg(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return K.map(this.disposables.add(new Te(this.domNode,"click")).event,e=>this.toMouseEvent(e))}get onMouseDblClick(){return K.map(this.disposables.add(new Te(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return K.filter(K.map(this.disposables.add(new Te(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e)),e=>e.browserEvent.button===1)}get onMouseDown(){return K.map(this.disposables.add(new Te(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e))}get onContextMenu(){return K.any(K.map(this.disposables.add(new Te(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e)),K.map(this.disposables.add(new Te(this.domNode,Ae.Contextmenu)).event,e=>this.toGestureEvent(e)))}get onTouchStart(){return K.map(this.disposables.add(new Te(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e))}get onTap(){return K.map(this.disposables.add(new Te(this.rowsContainer,Ae.Tap)).event,e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const n=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(Wk.TEXT,t),i.dataTransfer.setDragImage){let o;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(n,i)),typeof o=="undefined"&&(o=String(n.length));const r=J(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),i.dataTransfer.setDragImage(r,-10,-10),setTimeout(()=>document.body.removeChild(r),0)}this.currentDragData=new Rh(n),Cs.CurrentDragAndDropData=new v8(n),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Cs.CurrentDragAndDropData&&Cs.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Cs.CurrentDragAndDropData)this.currentDragData=Cs.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new S8}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof t=="boolean"?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof t!="boolean"&&t.effect===0?"copy":"move";let i;if(typeof t!="boolean"&&t.feedback?i=t.feedback:typeof e.index=="undefined"?i=[-1]:i=[e.index],i=wo(i).filter(n=>n>=-1&&nn-o),i=i[0]===-1?[-1]:i,y8(this.currentDragFeedback,i))return!0;if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),i[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Pe(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const n of i){const o=this.items[n];o.dropTarget=!0,o.row&&o.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Pe(()=>{for(const n of i){const o=this.items[n];o.dropTarget=!1,o.row&&o.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=qp(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Cs.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Cs.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=W.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=lL(this.domNode).top;this.dragOverAnimationDisposable=M4(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=qp(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const o=Number(n);if(!isNaN(o))return o}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,r;e===this.elementTop(n.start)?(o=n.start,r=0):n.end-n.start>1&&(o=n.start+1,r=this.elementTop(o)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let h=l.start;h=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hS=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class k8{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex(o=>o.templateData===i);if(n>=0){const o=this.renderedElements[n];this.trait.unrender(i),o.index=t}else{const o={index:t,templateData:i};this.renderedElements.push(o)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class lf{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new M,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new k8(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?h+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+o)],l=this.length+o;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(h=>h>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(uS),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=l1(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return nI(this.sortedIndexes,e,uS)>=0}dispose(){Me(this._onChange)}}zr([rt],lf.prototype,"renderer",null);class x8 extends lf{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class Bm{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),o=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,o)}}function Io(s){return s.tagName==="INPUT"||s.tagName==="TEXTAREA"}function ba(s){return s.classList.contains("monaco-editor")?!0:s.classList.contains("monaco-list")||!s.parentElement?!1:ba(s.parentElement)}class A2{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new se,this.multipleSelectionDisposables=new se,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(me?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return K.chain(this.disposables.add(new Te(this.view.domNode,"keydown")).event).filter(e=>!Io(e.target)).map(e=>new He(e))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(me?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection($t(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}zr([rt],A2.prototype,"onKeyDown",null);var Ca;(function(s){s[s.Idle=0]="Idle",s[s.Typing=1]="Typing"})(Ca||(Ca={}));const O2=new class{mightProducePrintableCharacter(s){return s.ctrlKey||s.metaKey||s.altKey?!1:s.keyCode>=31&&s.keyCode<=56||s.keyCode>=21&&s.keyCode<=30||s.keyCode>=93&&s.keyCode<=102||s.keyCode>=80&&s.keyCode<=90}};class I8{constructor(e,t,i,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=n,this.enabled=!1,this.state=Ca.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new se,this.disposables=new se,this.updateOptions(e.options)}updateOptions(e){(typeof e.enableKeyboardNavigation=="undefined"?!0:!!e.enableKeyboardNavigation)?this.enable():this.disable(),typeof e.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=K.chain(this.enabledDisposables.add(new Te(this.view.domNode,"keydown")).event).filter(n=>!Io(n.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(n=>new He(n)).filter(n=>this.delegate.mightProducePrintableCharacter(n)).forEach(n=>n.preventDefault()).map(n=>n.browserEvent.key).event,t=K.debounce(e,()=>null,800);K.reduce(K.any(e,t),(n,o)=>o===null?null:(n||"")+o)(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Nf(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Ca.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Ca.Idle?1:0;this.state=Ca.Typing;for(let o=0;o!Io(n.target)).map(n=>new He(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const o=window.getComputedStyle(n);o.visibility==="hidden"||o.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function P2(s){return me?s.browserEvent.metaKey:s.browserEvent.ctrlKey}function F2(s){return s.browserEvent.shiftKey}function D8(s){return s instanceof MouseEvent&&s.button===2}const dS={isSelectionSingleChangeEvent:P2,isSelectionRangeChangeEvent:F2};class B2{constructor(e){this.list=e,this.disposables=new se,this._onPointer=new M,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||dS),this.mouseSupport=typeof e.options.mouseSupport=="undefined"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Se.addTarget(e.getHTMLElement()))),K.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||dS))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){ba(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(ba(e.browserEvent.target))return;const t=typeof e.index=="undefined"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||Io(e.browserEvent.target)||ba(e.browserEvent.target))return;const t=e.index;if(typeof t=="undefined"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),D8(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(Io(e.browserEvent.target)||ba(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i=="undefined"){const h=this.list.getFocus()[0];i=h!=null?h:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),r=$t(n,o+1),a=this.list.getSelection(),l=M8(l1(a,[i]),i);if(l.length===0)return;const c=l1(r,R8(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),o=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===o.length?this.list.setSelection([...o,t],e.browserEvent):this.list.setSelection(o,e.browserEvent)}}dispose(){this.disposables.dispose()}}class V2{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):me||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(` +`,this.value+=t,this.value+="\n```\n",this}}function JP(s){return s instanceof QP?!0:s&&typeof s=="object"?typeof s.value=="string"&&(typeof s.isTrusted=="boolean"||s.isTrusted===void 0)&&(typeof s.supportThemeIcons=="boolean"||s.supportThemeIcons===void 0):!1}function e8(s){return s.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}var o1=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function t8(s,e){Ln(e)?s.title=b2(e):e!=null&&e.markdownNotSupportedFallback?s.title=e.markdownNotSupportedFallback:s.removeAttribute("title")}class i8{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return o1(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(e===void 0||Ln(e)||e instanceof HTMLElement)n=e;else if(!nu(e.markdown))n=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new ml;const o=this._cancellationTokenSource.token;if(n=yield e.markdown(o),n===void 0&&(n=e.markdownNotSupportedFallback),this.isDisposed||o.isCancellationRequested)return}this.show(n,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}i==null||i.dispose()}hasContent(e){return e?JP(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function n8(s,e,t){let i,n;const o=(h,d)=>{var u;h&&(n==null||n.dispose(),n=void 0),d&&(i==null||i.dispose(),i=void 0),(u=s.onDidHideHover)===null||u===void 0||u.call(s)},r=(h,d,u)=>new os(()=>o1(this,void 0,void 0,function*(){(!n||n.isDisposed)&&(n=new i8(s,u||e,h>0),yield n.update(t,d))}),h),a=()=>{if(i)return;const h=new se,d=m=>o(!1,m.fromElement===e);h.add(V(e,Y.MOUSE_LEAVE,d,!0));const u=()=>o(!0,!0);h.add(V(e,Y.MOUSE_DOWN,u,!0));const f={targetElements:[e],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const m=_=>f.x=_.x+10;h.add(V(e,Y.MOUSE_MOVE,m,!0))}h.add(r(s.delay,!1,f)),i=h},l=V(e,Y.MOUSE_OVER,a,!0);return{show:h=>{o(!1,!0),r(0,h)},hide:()=>{o(!0,!0)},update:h=>o1(this,void 0,void 0,function*(){t=h,yield n==null?void 0:n.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class Fm{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class oS extends W{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new Fm(U(e,J(".monaco-icon-label")))),this.labelContainer=U(this.domNode.element,J(".monaco-icon-label-container"));const i=U(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new Fm(U(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new r8(i,!!t.supportIcons):this.nameNode=new s8(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new cl(U(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new Fm(U(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof cl?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)t8(e,t);else{const n=n8(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class s8{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ri(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=U(this.container,J("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+n.length},r=t.map(a=>Dt.intersect(o,a)).filter(a=>!Dt.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class r8{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ri(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new cl(U(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=o8(e,i,t==null?void 0:t.matches);for(let o=0;o{const s=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:s,collatorIsNumeric:s.resolvedOptions().numeric}});new kf(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new kf(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function a8(s,e,t=!1){const i=s||"",n=e||"",o=rS.value.collator.compare(i,n);return rS.value.collatorIsNumeric&&o===0&&i!==n?in.length)return 1}return 0}var R2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},h8=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Pn=J;class d8{constructor(e){this.hidden=!1,this._onChecked=new M,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Mh{get templateId(){return Mh.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=U(e,Pn(".quick-input-list-entry"));const i=U(t.entry,Pn("label.quick-input-list-label"));t.toDisposeTemplate.push(wi(i,Y.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=U(i,Pn("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(wi(t.checkbox,Y.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=U(i,Pn(".quick-input-list-rows")),o=U(n,Pn(".quick-input-list-row")),r=U(n,Pn(".quick-input-list-row"));t.label=new oS(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=U(o,Pn(".quick-input-list-entry-keybinding"));t.keybinding=new Cb(a,qi);const l=U(r,Pn(".quick-input-list-label-meta"));return t.detail=new oS(l,{supportHighlights:!0,supportIcons:!0}),t.separator=U(t.entry,Pn(".quick-input-list-separator")),t.actionBar=new ol(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=Me(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,h)=>{let d=c.iconClass||(c.iconPath?n1(c.iconPath):void 0);c.alwaysVisible&&(d=d?`${d} always-visible`:"always-visible");const u=new qn(`id-${h}`,"",d,!0,()=>h8(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=Me(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Me(e.toDisposeElement),e.toDisposeTemplate=Me(e.toDisposeTemplate)}}Mh.ID="listelement";class u8{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Mh.ID}}var Ye;(function(s){s[s.First=1]="First",s[s.Second=2]="Second",s[s.Last=3]="Last",s[s.Next=4]="Next",s[s.Previous=5]="Previous",s[s.NextPage=6]="NextPage",s[s.PreviousPage=7]="PreviousPage"})(Ye||(Ye={}));class wb{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new M,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new M,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new M,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new M,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new M,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new M,this.onKeyDown=this._onKeyDown.event,this._onLeave=new M,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=U(this.parent,Pn(".quick-input-list"));const n=new u8,o=new g8;this.list=i.createList("QuickInput",this.container,n,[new Mh],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new He(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(me?r.metaKey:r.ctrlKey)&&this.list.setFocus($t(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(V(this.container,Y.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return K.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return K.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Me(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if(n.type!=="separator"){const c=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),d=n.meta&&n.meta.replace(/\r?\n/g," "),u=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),m=n.ariaLabel||[h,u,f].map(b=>PE(b)).filter(b=>!!b).join(", "),_=this.parent.classList.contains("show-checkboxes");i.push(new d8({hasCheckbox:_,index:o,item:n,saneLabel:h,saneMeta:d,saneAriaLabel:m,saneDescription:u,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===Ye.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=Ye.First),e===Ye.Previous&&this.list.getFocus()[0]===0&&(e=Ye.Last),e===Ye.Second&&this.list.length<2&&(e=Ye.First),e){case Ye.First:this.list.focusFirst();break;case Ye.Second:this.list.focusNth(1);break;case Ye.Last:this.list.focusLast();break;case Ye.Next:this.list.focusNext();break;case Ye.Previous:this.list.focusPrevious();break;case Ye.NextPage:this.list.focusNextPage();break;case Ye.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const n=i.index&&this.inputElements[i.index-1];i.separator=n&&n.type==="separator"?n:void 0});else{let i;this.elements.forEach(n=>{const o=this.matchOnLabel?Qo(Cd(e,bd(n.saneLabel))):void 0,r=this.matchOnDescription?Qo(Cd(e,bd(n.saneDescription||""))):void 0,a=this.matchOnDetail?Qo(Cd(e,bd(n.saneDetail||""))):void 0,l=this.matchOnMeta?Qo(Cd(e,bd(n.saneMeta||""))):void 0;if(o||r||a||l?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const c=n.index&&this.inputElements[n.index-1];i=c&&c.type==="separator"?c:i,i&&!n.hidden&&(n.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((n,o)=>f8(n,o,i))}return this.elementsToIndexes=t.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=Me(this.elementDisposables),this.disposables=Me(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}R2([rt],wb.prototype,"onDidChangeFocus",null);R2([rt],wb.prototype,"onDidChangeSelection",null);function f8(s,e,t){const i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:l8(s.saneLabel,e.saneLabel,t)}class g8{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(!!e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var aS=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const di=J,r1={iconClass:g.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class sg extends W{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=sg.noPromptMessage,this._severity=at.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new M),this.onDidHideEmitter=this._register(new M),this.onDisposeEmitter=this._register(new M),this.visibleDisposables=this._register(new se),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!pr;this._ignoreFocusOut=e&&!pr,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){!this.visible||this.ui.hide()}didHide(e=sh.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new os,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===r1);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new qn(`id-${a}`,"",r.iconClass||n1(r.iconPath),!0,()=>aS(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==r1);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new qn(`id-${a}`,"",r.iconClass||n1(r.iconPath),!0,()=>aS(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,Df(this.ui.message,...yc(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==at.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}sg.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class oh extends sg{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new M),this.onWillAcceptEmitter=this._register(new M),this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?fn.NONE:fn.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new M),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new M),this.onDidTriggerItemButtonEmitter=this._register(new M),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?HP:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Ye.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(Ye.Next),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Ye.Previous):this.ui.list.focus(Ye.Last),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 12:this.ui.list.focus(Ye.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 11:this.ui.list.focus(Ye.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Ie.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Ye.First),Ie.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Ye.Last),Ie.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Kn(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Kn(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Kn(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return V(this.ui.container,Y.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new He(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||oh.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case fn.NONE:this._itemActivation=fn.FIRST;break;case fn.SECOND:this.ui.list.focus(Ye.Second),this._itemActivation=fn.FIRST;break;case fn.LAST:this.ui.list.focus(Ye.Last),this._itemActivation=fn.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Ye.First)),this.keepScrollPosition&&(this.scrollTop=e)}}oh.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class og extends W{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this.onDidTriggerButtonEmitter=this._register(new M),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new M),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new M),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(V(window,Y.KEY_DOWN,e,!0)),this._register(V(window,Y.KEY_UP,e,!0)),this._register(V(window,Y.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=U(this.parentElement,di(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=xn(e),i=U(e,di(".quick-input-titlebar")),n=this._register(new ol(i));n.domNode.classList.add("quick-input-left-action-bar");const o=U(i,di(".quick-input-title")),r=this._register(new ol(i));r.domNode.classList.add("quick-input-right-action-bar");const a=U(e,di(".quick-input-description")),l=U(e,di(".quick-input-header")),c=U(l,di("input.quick-input-check-all"));c.type="checkbox",this._register(wi(c,Y.CHANGE,R=>{const T=c.checked;L.setAllVisibleChecked(T)})),this._register(V(c,Y.CLICK,R=>{(R.x||R.y)&&f.setFocus()}));const h=U(l,di(".quick-input-description")),d=U(l,di(".quick-input-and-message")),u=U(d,di(".quick-input-filter")),f=this._register(new XP(u));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const m=U(u,di(".quick-input-visible-count"));m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true");const _=new tS(m,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),b=U(u,di(".quick-input-count"));b.setAttribute("aria-live","polite");const w=new tS(b,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),C=U(l,di(".quick-input-action")),v=new eS(C);v.label=p("ok","OK"),this._register(v.onDidClick(R=>{this.onDidAcceptEmitter.fire()}));const S=U(l,di(".quick-input-action")),k=new eS(S);k.label=p("custom","Custom"),this._register(k.onDidClick(R=>{this.onDidCustomEmitter.fire()}));const x=U(d,di(`#${this.idPrefix}message.quick-input-message`)),L=this._register(new wb(e,this.idPrefix+"list",this.options));this._register(L.onChangedAllVisibleChecked(R=>{c.checked=R})),this._register(L.onChangedVisibleCount(R=>{_.setCount(R)})),this._register(L.onChangedCheckedCount(R=>{w.setCount(R)})),this._register(L.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof oh&&this.controller.canSelectMany&&L.clearFocus()},0)})),this._register(L.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const y=new ng(e);y.getContainer().classList.add("quick-input-progress");const I=Ga(e);return this._register(I),this._register(V(e,Y.FOCUS,R=>{this.previousFocusElement=R.relatedTarget instanceof HTMLElement?R.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(sh.Blur),this.previousFocusElement=void 0})),this._register(V(e,Y.FOCUS,R=>{f.setFocus()})),this._register(V(e,Y.KEY_DOWN,R=>{const T=new He(R);switch(T.keyCode){case 3:Ie.stop(R,!0),this.onDidAcceptEmitter.fire();break;case 9:Ie.stop(R,!0),this.hide(sh.Gesture);break;case 2:if(!T.altKey&&!T.ctrlKey&&!T.metaKey){const P=[".action-label.codicon"];e.classList.contains("show-checkboxes")?P.push("input"):P.push("input[type=text]"),this.getUI().list.isDisplayed()&&P.push(".monaco-list");const F=e.querySelectorAll(P.join(", "));T.shiftKey&&T.target===F[0]?(Ie.stop(R,!0),F[F.length-1].focus()):!T.shiftKey&&T.target===F[F.length-1]&&(Ie.stop(R,!0),F[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:a,description2:h,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:f,visibleCountContainer:m,visibleCount:_,countContainer:b,count:w,okContainer:C,ok:v,message:x,customButtonContainer:S,customButton:k,list:L,progressBar:y,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:R=>this.show(R),hide:()=>this.hide(),setVisibilities:R=>this.setVisibilities(R),setComboboxAccessibility:R=>this.setComboboxAccessibility(R),setEnabled:R=>this.setEnabled(R),setContextKey:R=>this.options.setContextKey(R)},this.updateStyles(),this.ui}pick(e,t={},i=ci.None){return new Promise((n,o)=>{let r=h=>{r=n,t.onKeyMods&&t.onKeyMods(a.keyMods),n(h)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const h=a.activeItems[0];h&&(r(h),a.hide())}}),a.onDidChangeActive(h=>{const d=h[0];d&&t.onDidFocus&&t.onDidFocus(d)}),a.onDidChangeSelection(h=>{if(!a.canSelectMany){const d=h[0];d&&(r(d),a.hide())}}),a.onDidTriggerItemButton(h=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},h),{removeItem:()=>{const d=a.items.indexOf(h.item);if(d!==-1){const u=a.items.slice(),f=u.splice(d,1),m=a.activeItems.filter(b=>b!==f[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,m&&(a.activeItems=m),a.keepScrollPosition=_}}}))),a.onDidChangeValue(h=>{l&&!h&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{Me(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([h,d])=>{l=d,a.busy=!1,a.items=h,a.canSelectMany&&(a.selectedItems=h.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,h=>{o(h),a.hide()})})}createQuickPick(){const e=this.getUI();return new oh(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(at.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Df(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();r1.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let o=this.previousFocusElement;for(;o&&!o.offsetParent;)o=Qo(o.parentElement);o!=null&&o.offsetParent?(o.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,og.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` +`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}og.MAX_WIDTH=600;class m8{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Fo extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function lS(s,e){const t=[];for(let i of e){if(s.start>=i.range.end)continue;if(s.ende.concat(t),[]))}class cS{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,o=lS({start:0,end:e},this.groups),r=lS({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:a1(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=_8(o,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(let n of this.groups){const o=n.range.end-n.range.start,r=i+o*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var Hr=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Rn={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(s){return[s]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class Rh{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class w8{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class v8{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Nn{constructor(e,t,i,n=Rn){if(this.virtualDelegate=t,this.domId=`list_id_${++Nn.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new bl(50),this.splicing=!1,this.dragOverAnimationStopDisposable=W.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=W.None,this.onDragLeaveTimeout=W.None,this.disposables=new se,this._onDidChangeContentHeight=new M,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new cS;for(const r of i)this.renderers.set(r.templateId,r);this.cache=this.disposables.add(new C8(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=Mn(n,r=>r.horizontalScrolling,Rn.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight=="undefined"?0:n.additionalScrollHeight,this.accessibilityProvider=new y8(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Mn(n,r=>r.transformOptimization,Rn.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(Se.addTarget(this.rowsContainer)),this.scrollable=new Eh({forceIntegerValues:!0,smoothScrollDuration:Mn(n,r=>r.smoothScrolling,!1)?125:0,scheduleAtNextAnimationFrame:r=>kn(r)}),this.scrollableElement=this.disposables.add(new W0(this.rowsContainer,{alwaysConsumeMouseWheel:Mn(n,r=>r.alwaysConsumeMouseWheel,Rn.alwaysConsumeMouseWheel),horizontal:1,vertical:Mn(n,r=>r.verticalScrollMode,Rn.verticalScrollMode),useShadows:Mn(n,r=>r.useShadows,Rn.useShadows),mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(V(this.rowsContainer,Ae.Change,r=>this.onTouchChange(r))),this.disposables.add(V(this.scrollableElement.getDomNode(),"scroll",r=>r.target.scrollTop=0)),this.disposables.add(V(this.domNode,"dragover",r=>this.onDragOver(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"drop",r=>this.onDrop(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"dragleave",r=>this.onDragLeave(this.toDragEvent(r)))),this.disposables.add(V(this.domNode,"dragend",r=>this.onDragEnd(r))),this.setRowLineHeight=Mn(n,r=>r.setRowLineHeight,Rn.setRowLineHeight),this.setRowHeight=Mn(n,r=>r.setRowHeight,Rn.setRowHeight),this.supportDynamicHeights=Mn(n,r=>r.supportDynamicHeights,Rn.supportDynamicHeights),this.dnd=Mn(n,r=>r.dnd,Rn.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:zg(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},r=Dt.intersect(n,o),a=new Map;for(let x=r.end-1;x>=r.start;x--){const L=this.items[x];if(L.dragStartDisposable.dispose(),L.row){let y=a.get(L.templateId);y||(y=[],a.set(L.templateId,y));const I=this.renderers.get(L.templateId);I&&I.disposeElement&&I.disposeElement(L.element,x,L.row.templateData,L.size),y.push(L.row)}L.row=null}const l={start:e+t,end:this.items.length},c=Dt.intersect(l,n),h=Dt.relativeComplement(l,n),d=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:W.None,checkedDisposable:W.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new cS,this.rangeMap.splice(0,0,d),u=this.items,this.items=d):(this.rangeMap.splice(e,t,d),u=this.items.splice(e,t,...d));const f=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=a1(c,f),b=Dt.intersect(m,_);for(let x=b.start;xa1(x,f)),S=[{start:e,end:e+i.length},...C].map(x=>Dt.intersect(m,x)),k=this.getNextToLastElement(S);for(const x of S)for(let L=x.start;Lx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=kn(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width!="undefined"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}rerender(){if(!!this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:typeof e=="number"?e:k4(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t!="undefined"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:zg(this.domNode)})}render(e,t,i,n,o,r=!1){const a=this.getRenderRange(t,i),l=Dt.relativeComplement(a,e),c=Dt.relativeComplement(e,a),h=this.getNextToLastElement(l);if(r){const d=Dt.intersect(e,a);for(let u=d.start;un.row.domNode.setAttribute("aria-checked",String(!!h));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a&&a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=V(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Oi?"-moz-fit-content":"fit-content",e.width=zg(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return K.map(this.disposables.add(new Te(this.domNode,"click")).event,e=>this.toMouseEvent(e))}get onMouseDblClick(){return K.map(this.disposables.add(new Te(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return K.filter(K.map(this.disposables.add(new Te(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e)),e=>e.browserEvent.button===1)}get onMouseDown(){return K.map(this.disposables.add(new Te(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e))}get onContextMenu(){return K.any(K.map(this.disposables.add(new Te(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e)),K.map(this.disposables.add(new Te(this.domNode,Ae.Contextmenu)).event,e=>this.toGestureEvent(e)))}get onTouchStart(){return K.map(this.disposables.add(new Te(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e))}get onTap(){return K.map(this.disposables.add(new Te(this.rowsContainer,Ae.Tap)).event,e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t=="undefined"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const n=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(Wk.TEXT,t),i.dataTransfer.setDragImage){let o;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(n,i)),typeof o=="undefined"&&(o=String(n.length));const r=J(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),i.dataTransfer.setDragImage(r,-10,-10),setTimeout(()=>document.body.removeChild(r),0)}this.currentDragData=new Rh(n),Cs.CurrentDragAndDropData=new w8(n),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Cs.CurrentDragAndDropData&&Cs.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Cs.CurrentDragAndDropData)this.currentDragData=Cs.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new v8}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof t=="boolean"?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof t!="boolean"&&t.effect===0?"copy":"move";let i;if(typeof t!="boolean"&&t.feedback?i=t.feedback:typeof e.index=="undefined"?i=[-1]:i=[e.index],i=wo(i).filter(n=>n>=-1&&nn-o),i=i[0]===-1?[-1]:i,S8(this.currentDragFeedback,i))return!0;if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),i[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Pe(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const n of i){const o=this.items[n];o.dropTarget=!0,o.row&&o.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Pe(()=>{for(const n of i){const o=this.items[n];o.dropTarget=!1,o.row&&o.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=qp(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Cs.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Cs.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=W.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=lL(this.domNode).top;this.dragOverAnimationDisposable=T4(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=qp(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const o=Number(n);if(!isNaN(o))return o}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,r;e===this.elementTop(n.start)?(o=n.start,r=0):n.end-n.start>1&&(o=n.start+1,r=this.elementTop(o)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let h=l.start;h=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hS=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class L8{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex(o=>o.templateData===i);if(n>=0){const o=this.renderedElements[n];this.trait.unrender(i),o.index=t}else{const o={index:t,templateData:i};this.renderedElements.push(o)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class lf{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new M,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new L8(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?h+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+o)],l=this.length+o;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(h=>h>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(uS),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=l1(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return nI(this.sortedIndexes,e,uS)>=0}dispose(){Me(this._onChange)}}zr([rt],lf.prototype,"renderer",null);class k8 extends lf{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class Bm{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),o=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,o)}}function Io(s){return s.tagName==="INPUT"||s.tagName==="TEXTAREA"}function ba(s){return s.classList.contains("monaco-editor")?!0:s.classList.contains("monaco-list")||!s.parentElement?!1:ba(s.parentElement)}class A2{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new se,this.multipleSelectionDisposables=new se,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(me?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return K.chain(this.disposables.add(new Te(this.view.domNode,"keydown")).event).filter(e=>!Io(e.target)).map(e=>new He(e))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(me?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection($t(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}zr([rt],A2.prototype,"onKeyDown",null);var Ca;(function(s){s[s.Idle=0]="Idle",s[s.Typing=1]="Typing"})(Ca||(Ca={}));const O2=new class{mightProducePrintableCharacter(s){return s.ctrlKey||s.metaKey||s.altKey?!1:s.keyCode>=31&&s.keyCode<=56||s.keyCode>=21&&s.keyCode<=30||s.keyCode>=93&&s.keyCode<=102||s.keyCode>=80&&s.keyCode<=90}};class x8{constructor(e,t,i,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=n,this.enabled=!1,this.state=Ca.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new se,this.disposables=new se,this.updateOptions(e.options)}updateOptions(e){(typeof e.enableKeyboardNavigation=="undefined"?!0:!!e.enableKeyboardNavigation)?this.enable():this.disable(),typeof e.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=K.chain(this.enabledDisposables.add(new Te(this.view.domNode,"keydown")).event).filter(n=>!Io(n.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(n=>new He(n)).filter(n=>this.delegate.mightProducePrintableCharacter(n)).forEach(n=>n.preventDefault()).map(n=>n.browserEvent.key).event,t=K.debounce(e,()=>null,800);K.reduce(K.any(e,t),(n,o)=>o===null?null:(n||"")+o)(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Nf(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Ca.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Ca.Idle?1:0;this.state=Ca.Typing;for(let o=0;o!Io(n.target)).map(n=>new He(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const o=window.getComputedStyle(n);o.visibility==="hidden"||o.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function P2(s){return me?s.browserEvent.metaKey:s.browserEvent.ctrlKey}function F2(s){return s.browserEvent.shiftKey}function E8(s){return s instanceof MouseEvent&&s.button===2}const dS={isSelectionSingleChangeEvent:P2,isSelectionRangeChangeEvent:F2};class B2{constructor(e){this.list=e,this.disposables=new se,this._onPointer=new M,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||dS),this.mouseSupport=typeof e.options.mouseSupport=="undefined"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Se.addTarget(e.getHTMLElement()))),K.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||dS))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){ba(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(ba(e.browserEvent.target))return;const t=typeof e.index=="undefined"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||Io(e.browserEvent.target)||ba(e.browserEvent.target))return;const t=e.index;if(typeof t=="undefined"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),E8(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(Io(e.browserEvent.target)||ba(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i=="undefined"){const h=this.list.getFocus()[0];i=h!=null?h:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),r=$t(n,o+1),a=this.list.getSelection(),l=T8(l1(a,[i]),i);if(l.length===0)return;const c=l1(r,M8(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),o=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===o.length?this.list.setSelection([...o,t],e.browserEvent):this.list.setSelection(o,e.browserEvent)}}dispose(){this.disposables.dispose()}}class V2{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):me||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(` .monaco-drag-image, .monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } `),e.listFocusAndSelectionForeground&&i.push(` @@ -572,41 +572,41 @@ ${Hv(g.menuSubmenu)} background-color: ${e.tableOddRowsBackgroundColor}; } `),this.styleElement.textContent=i.join(` -`)}}const N8={listFocusBackground:O.fromHex("#7FB0D0"),listActiveSelectionBackground:O.fromHex("#0E639C"),listActiveSelectionForeground:O.fromHex("#FFFFFF"),listActiveSelectionIconForeground:O.fromHex("#FFFFFF"),listFocusAndSelectionBackground:O.fromHex("#094771"),listFocusAndSelectionForeground:O.fromHex("#FFFFFF"),listInactiveSelectionBackground:O.fromHex("#3F3F46"),listInactiveSelectionIconForeground:O.fromHex("#FFFFFF"),listHoverBackground:O.fromHex("#2A2D2E"),listDropBackground:O.fromHex("#383B3D"),treeIndentGuidesStroke:O.fromHex("#a9a9a9"),tableColumnsBorder:O.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:O.fromHex("#cccccc").transparent(.04)},T8={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function M8(s,e){const t=s.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&s[n]===e-(t-n);)i.push(s[n--]);for(i.reverse(),n=t;n=s.length)t.push(e[n++]);else if(n>=e.length)t.push(s[i++]);else if(s[i]===e[n]){t.push(s[i]),i++,n++;continue}else s[i]=s.length)t.push(e[n++]);else if(n>=e.length)t.push(s[i++]);else if(s[i]===e[n]){i++,n++;continue}else s[i]s-e;class A8{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let o=0;for(const r of this.renderers)r.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){let o=0;for(const r of this.renderers)r.disposeElement&&r.disposeElement(e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class O8{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof o=="number"?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class P8{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,r;(r=(o=this.dnd).onDragLeave)===null||r===void 0||r.call(o,e,t,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class Bs{constructor(e,t,i,n,o=T8){var r;this.user=e,this._options=o,this.focus=new lf("focused"),this.anchor=new lf("anchor"),this.eventBufferer=new Z1,this._ariaLabel="",this.disposables=new se,this._onDidDispose=new M,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new x8(a!=="listbox"),Nr(o,N8,!1);const l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(l.push(new O8(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(h=>new A8(h.templateId,[...l,h]));const c=Object.assign(Object.assign({},o),{dnd:o.dnd&&new P8(this,o.dnd)});if(this.view=new Nn(t,i,n,c),this.view.domNode.setAttribute("role",a),o.styleController)this.styleController=o.styleController(this.view.domId);else{const h=xn(this.view.domNode);this.styleController=new V2(h,this.view.domId)}if(this.spliceable=new p8([new Bm(this.focus,this.view,o.identityProvider),new Bm(this.selection,this.view,o.identityProvider),new Bm(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new E8(this,this.view)),(typeof o.keyboardSupport!="boolean"||o.keyboardSupport)&&(this.keyboardController=new A2(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const h=o.keyboardNavigationDelegate||O2;this.typeLabelController=new I8(this,this.view,o.keyboardNavigationLabelProvider,h),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return K.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return K.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=K.chain(this.disposables.add(new Te(this.view.domNode,"keydown")).event).map(o=>new He(o)).filter(o=>e=o.keyCode===58||o.shiftKey&&o.keyCode===68).map(rv).filter(()=>!1).event,i=K.chain(this.disposables.add(new Te(this.view.domNode,"keyup")).event).forEach(()=>e=!1).map(o=>new He(o)).filter(o=>o.keyCode===58||o.shiftKey&&o.keyCode===68).map(rv).map(({browserEvent:o})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a!="undefined"?this.view.element(a):void 0,c=typeof a!="undefined"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:o}}).event,n=K.chain(this.view.onContextMenu).filter(o=>!e).map(({element:o,index:r,browserEvent:a})=>({element:o,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return K.any(t,i,n)}get onKeyDown(){return this.disposables.add(new Te(this.view.domNode,"keydown")).event}get onDidFocus(){return K.signal(this.disposables.add(new Te(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new B2(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(t=this.keyboardController)===null||t===void 0||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new Fo(this.user,`Invalid start index: ${e}`);if(t<0)throw new Fo(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new Fo(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e=="undefined"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return iy(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e=="undefined"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Fo(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return hS(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.view.element(i),o=this.getFocusedElements()[0];if(o!==n){const r=this.findPreviousIndex(i,!1,t);r>-1&&o!==this.view.element(r)?this.setFocus([r],e):this.setFocus([i],e)}else{const r=this.view.getScrollTop();this.view.setScrollTop(r+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==r&&(this.setFocus([]),yield Mc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return hS(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){const a=this.findNextIndex(i,!1,t);a>-1&&r!==this.view.element(a)?this.setFocus([a],e):this.setFocus([i],e)}else{const a=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==a&&(this.setFocus([]),yield Mc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(mh(t)){const r=o-this.view.renderHeight;this.view.setScrollTop(r*mi(t,0,1)+n)}else{const r=n+o,a=i+this.view.renderHeight;n=a||(n=a&&o>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;const o=n-this.view.renderHeight;return Math.abs((t-i)/o)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}zr([rt],Bs.prototype,"onDidChangeFocus",null);zr([rt],Bs.prototype,"onDidChangeSelection",null);zr([rt],Bs.prototype,"onContextMenu",null);zr([rt],Bs.prototype,"onKeyDown",null);zr([rt],Bs.prototype,"onDidFocus",null);class F8{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:W.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,i.data,n);const r=new ml,a=o.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class B8{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function V8(s,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new B8(s,e.accessibilityProvider)})}class W8{constructor(e,t,i,n,o={}){const r=()=>this.model,a=n.map(l=>new F8(l,r));this.list=new Bs(e,t,i,a,V8(r,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return K.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return K.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return K.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,$t(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const H8={separatorBorder:O.transparent};class W2{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(e,t){e!==this.visible&&(e?(this.size=mi(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class z8 extends W2{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class U8 extends W2{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var ws;(function(s){s[s.Idle=0]="Idle",s[s.Busy=1]="Busy"})(ws||(ws={}));var fS;(function(s){s.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}s.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}s.Invisible=t})(fS||(fS={}));class $8 extends W{constructor(e,t={}){var i,n,o,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=ws.Idle,this._onDidSashChange=this._register(new M),this._onDidSashReset=this._register(new M),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(o=t.proportionalLayout)!==null&&o!==void 0?o:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=U(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new Eh({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:kn}),this.scrollableElement=this._register(new W0(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),U(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||H8),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const h=vn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},d=l.view;this.doAddView(d,h,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),o=or(V(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),V(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(m=>m.size);let h=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];h=(_.minimumSize-_.size)/2,d=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];h=(_.size-_.maximumSize)/2,d=(_.size-_.minimumSize)/2}let u,f;if(!l){const m=$t(n,-1),_=$t(n+1,this.viewItems.length),b=m.reduce((y,I)=>y+(this.viewItems[I].minimumSize-c[I]),0),w=m.reduce((y,I)=>y+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((y,I)=>y+(c[I]-this.viewItems[I].minimumSize),0),v=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((y,I)=>y+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,v),k=Math.min(C,w),x=this.findFirstSnapIndex(m),L=this.findFirstSnapIndex(_);if(typeof x=="number"){const y=this.viewItems[x],I=Math.floor(y.viewMinimumSize/2);u={index:x,limitDelta:y.visible?S-I:S+I,size:y.size}}if(typeof L=="number"){const y=this.viewItems[L],I=Math.floor(y.viewMinimumSize/2);f={index:L,limitDelta:y.visible?k+I:k-I,size:y.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:h,maxDelta:d,alt:l,snapBefore:u,snapAfter:f,disposable:o}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const h=e-i,d=this.resize(t,h,n,void 0,void 0,r,a,l,c);if(o){const u=t===this.sashItems.length-1,f=this.viewItems.map(v=>v.size),m=u?t:t+1,_=this.viewItems[m],b=_.size-_.maximumSize,w=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-d,f,void 0,void 0,b,w)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=mi(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==ws.Idle)throw new Error("Cant modify splitview");if(this.state=ws.Busy,e<0||e>=this.viewItems.length)return;const i=$t(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],o=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=mi(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,o),this.state=ws.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=mi(i,a.minimumSize,a.maximumSize);const n=$t(this.viewItems.length),o=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(o,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==ws.Idle)throw new Error("Cant modify splitview");this.state=ws.Busy;const o=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(h,u)),a=Pe(()=>this.viewContainer.removeChild(o)),l=or(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const h=this.orientation===0?new z8(o,e,c,l):new U8(o,e,c,l);if(this.viewItems.splice(i,0,h),this.viewItems.length>1){let u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const f=this.orientation===0?new gi(this.sashContainer,{getHorizontalSashTop:y=>this.getSashPosition(y),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new gi(this.sashContainer,{getVerticalSashLeft:y=>this.getSashPosition(y),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),m=this.orientation===0?y=>({sash:f,start:y.startY,current:y.currentY,alt:y.altKey}):y=>({sash:f,start:y.startX,current:y.currentX,alt:y.altKey}),b=K.map(f.onDidStart,m)(this.onSashStart,this),C=K.map(f.onDidChange,m)(this.onSashChange,this),S=K.map(f.onDidEnd,()=>this.sashItems.findIndex(y=>y.sash===f))(this.onSashEnd,this),k=f.onDidReset(()=>{const y=this.sashItems.findIndex(F=>F.sash===f),I=$t(y,-1),R=$t(y+1,this.viewItems.length),T=this.findFirstSnapIndex(I),P=this.findFirstSnapIndex(R);typeof T=="number"&&!this.viewItems[T].visible||typeof P=="number"&&!this.viewItems[P].visible||this._onDidSashReset.fire(y)}),x=or(b,C,S,k,f),L={sash:f,disposable:x};this.sashItems.splice(i-1,0,L)}o.appendChild(e.element);let d;typeof t!="number"&&t.type==="split"&&(d=[t.index]),n||this.relayout([i],d),this.state=ws.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,o)=>n+o.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(h=>h.size),n,o,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const h=$t(e,-1),d=$t(e+1,this.viewItems.length);if(o)for(const L of o)Sg(h,L),Sg(d,L);if(n)for(const L of n)Vh(h,L),Vh(d,L);const u=h.map(L=>this.viewItems[L]),f=h.map(L=>i[L]),m=d.map(L=>this.viewItems[L]),_=d.map(L=>i[L]),b=h.reduce((L,y)=>L+(this.viewItems[y].minimumSize-i[y]),0),w=h.reduce((L,y)=>L+(this.viewItems[y].maximumSize-i[y]),0),C=d.length===0?Number.POSITIVE_INFINITY:d.reduce((L,y)=>L+(i[y]-this.viewItems[y].minimumSize),0),v=d.length===0?Number.NEGATIVE_INFINITY:d.reduce((L,y)=>L+(i[y]-this.viewItems[y].maximumSize),0),S=Math.max(b,v,r),k=Math.min(C,w,a);let x=!1;if(l){const L=this.viewItems[l.index],y=t>=l.limitDelta;x=y!==L.visible,L.setVisible(y,l.size)}if(!x&&c){const L=this.viewItems[c.index],y=ta+l.size,0);let i=this.size-t;const n=$t(this.viewItems.length-1,-1),o=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Sg(n,a);for(const a of o)Vh(n,a);typeof e=="number"&&Vh(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const o=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),Me(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class Ah{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=Ah.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(o=>[o.templateId,o]));this.renderers=[];for(const o of e){const r=n.get(o.templateId);if(!r)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=U(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew K8(h,d)),l={size:a.reduce((h,d)=>h+d.column.weight,0),views:a.map(h=>({size:h.column.weight,view:h}))};this.splitview=this.disposables.add(new $8(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new Ah(n,o,h=>this.splitview.getViewSize(h));this.list=this.disposables.add(new Bs(e,this.domNode,j8(i),[c],r)),K.any(...a.map(h=>h.onDidLayout))(([h,d])=>c.layoutColumn(h,d),null,this.disposables),this.splitview.onDidSashReset(h=>{const d=n.reduce((f,m)=>f+m.weight,0),u=n[h].weight/d*this.cachedWidth;this.splitview.resizeView(h,u)},null,this.disposables),this.styleElement=xn(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { +`)}}const D8={listFocusBackground:O.fromHex("#7FB0D0"),listActiveSelectionBackground:O.fromHex("#0E639C"),listActiveSelectionForeground:O.fromHex("#FFFFFF"),listActiveSelectionIconForeground:O.fromHex("#FFFFFF"),listFocusAndSelectionBackground:O.fromHex("#094771"),listFocusAndSelectionForeground:O.fromHex("#FFFFFF"),listInactiveSelectionBackground:O.fromHex("#3F3F46"),listInactiveSelectionIconForeground:O.fromHex("#FFFFFF"),listHoverBackground:O.fromHex("#2A2D2E"),listDropBackground:O.fromHex("#383B3D"),treeIndentGuidesStroke:O.fromHex("#a9a9a9"),tableColumnsBorder:O.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:O.fromHex("#cccccc").transparent(.04)},N8={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function T8(s,e){const t=s.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&s[n]===e-(t-n);)i.push(s[n--]);for(i.reverse(),n=t;n=s.length)t.push(e[n++]);else if(n>=e.length)t.push(s[i++]);else if(s[i]===e[n]){t.push(s[i]),i++,n++;continue}else s[i]=s.length)t.push(e[n++]);else if(n>=e.length)t.push(s[i++]);else if(s[i]===e[n]){i++,n++;continue}else s[i]s-e;class R8{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let o=0;for(const r of this.renderers)r.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){let o=0;for(const r of this.renderers)r.disposeElement&&r.disposeElement(e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class A8{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof o=="number"?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class O8{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,r;(r=(o=this.dnd).onDragLeave)===null||r===void 0||r.call(o,e,t,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class Bs{constructor(e,t,i,n,o=N8){var r;this.user=e,this._options=o,this.focus=new lf("focused"),this.anchor=new lf("anchor"),this.eventBufferer=new Z1,this._ariaLabel="",this.disposables=new se,this._onDidDispose=new M,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new k8(a!=="listbox"),Nr(o,D8,!1);const l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(l.push(new A8(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(h=>new R8(h.templateId,[...l,h]));const c=Object.assign(Object.assign({},o),{dnd:o.dnd&&new O8(this,o.dnd)});if(this.view=new Nn(t,i,n,c),this.view.domNode.setAttribute("role",a),o.styleController)this.styleController=o.styleController(this.view.domId);else{const h=xn(this.view.domNode);this.styleController=new V2(h,this.view.domId)}if(this.spliceable=new m8([new Bm(this.focus,this.view,o.identityProvider),new Bm(this.selection,this.view,o.identityProvider),new Bm(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new I8(this,this.view)),(typeof o.keyboardSupport!="boolean"||o.keyboardSupport)&&(this.keyboardController=new A2(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const h=o.keyboardNavigationDelegate||O2;this.typeLabelController=new x8(this,this.view,o.keyboardNavigationLabelProvider,h),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return K.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return K.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=K.chain(this.disposables.add(new Te(this.view.domNode,"keydown")).event).map(o=>new He(o)).filter(o=>e=o.keyCode===58||o.shiftKey&&o.keyCode===68).map(rv).filter(()=>!1).event,i=K.chain(this.disposables.add(new Te(this.view.domNode,"keyup")).event).forEach(()=>e=!1).map(o=>new He(o)).filter(o=>o.keyCode===58||o.shiftKey&&o.keyCode===68).map(rv).map(({browserEvent:o})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a!="undefined"?this.view.element(a):void 0,c=typeof a!="undefined"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:o}}).event,n=K.chain(this.view.onContextMenu).filter(o=>!e).map(({element:o,index:r,browserEvent:a})=>({element:o,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return K.any(t,i,n)}get onKeyDown(){return this.disposables.add(new Te(this.view.domNode,"keydown")).event}get onDidFocus(){return K.signal(this.disposables.add(new Te(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new B2(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(t=this.keyboardController)===null||t===void 0||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new Fo(this.user,`Invalid start index: ${e}`);if(t<0)throw new Fo(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new Fo(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e=="undefined"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return iy(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e=="undefined"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Fo(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return hS(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.view.element(i),o=this.getFocusedElements()[0];if(o!==n){const r=this.findPreviousIndex(i,!1,t);r>-1&&o!==this.view.element(r)?this.setFocus([r],e):this.setFocus([i],e)}else{const r=this.view.getScrollTop();this.view.setScrollTop(r+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==r&&(this.setFocus([]),yield Mc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return hS(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){const a=this.findNextIndex(i,!1,t);a>-1&&r!==this.view.element(a)?this.setFocus([a],e):this.setFocus([i],e)}else{const a=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==a&&(this.setFocus([]),yield Mc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(mh(t)){const r=o-this.view.renderHeight;this.view.setScrollTop(r*mi(t,0,1)+n)}else{const r=n+o,a=i+this.view.renderHeight;n=a||(n=a&&o>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new Fo(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;const o=n-this.view.renderHeight;return Math.abs((t-i)/o)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}zr([rt],Bs.prototype,"onDidChangeFocus",null);zr([rt],Bs.prototype,"onDidChangeSelection",null);zr([rt],Bs.prototype,"onContextMenu",null);zr([rt],Bs.prototype,"onKeyDown",null);zr([rt],Bs.prototype,"onDidFocus",null);class P8{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:W.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,i.data,n);const r=new ml,a=o.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class F8{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function B8(s,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new F8(s,e.accessibilityProvider)})}class V8{constructor(e,t,i,n,o={}){const r=()=>this.model,a=n.map(l=>new P8(l,r));this.list=new Bs(e,t,i,a,B8(r,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return K.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return K.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return K.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,$t(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const W8={separatorBorder:O.transparent};class W2{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(e,t){e!==this.visible&&(e?(this.size=mi(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class H8 extends W2{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class z8 extends W2{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var ws;(function(s){s[s.Idle=0]="Idle",s[s.Busy=1]="Busy"})(ws||(ws={}));var fS;(function(s){s.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}s.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}s.Invisible=t})(fS||(fS={}));class U8 extends W{constructor(e,t={}){var i,n,o,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=ws.Idle,this._onDidSashChange=this._register(new M),this._onDidSashReset=this._register(new M),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(o=t.proportionalLayout)!==null&&o!==void 0?o:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=U(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new Eh({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:kn}),this.scrollableElement=this._register(new W0(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),U(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||W8),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const h=vn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},d=l.view;this.doAddView(d,h,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),o=or(V(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),V(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(m=>m.size);let h=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];h=(_.minimumSize-_.size)/2,d=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];h=(_.size-_.maximumSize)/2,d=(_.size-_.minimumSize)/2}let u,f;if(!l){const m=$t(n,-1),_=$t(n+1,this.viewItems.length),b=m.reduce((y,I)=>y+(this.viewItems[I].minimumSize-c[I]),0),w=m.reduce((y,I)=>y+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((y,I)=>y+(c[I]-this.viewItems[I].minimumSize),0),v=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((y,I)=>y+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,v),k=Math.min(C,w),x=this.findFirstSnapIndex(m),L=this.findFirstSnapIndex(_);if(typeof x=="number"){const y=this.viewItems[x],I=Math.floor(y.viewMinimumSize/2);u={index:x,limitDelta:y.visible?S-I:S+I,size:y.size}}if(typeof L=="number"){const y=this.viewItems[L],I=Math.floor(y.viewMinimumSize/2);f={index:L,limitDelta:y.visible?k+I:k-I,size:y.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:h,maxDelta:d,alt:l,snapBefore:u,snapAfter:f,disposable:o}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const h=e-i,d=this.resize(t,h,n,void 0,void 0,r,a,l,c);if(o){const u=t===this.sashItems.length-1,f=this.viewItems.map(v=>v.size),m=u?t:t+1,_=this.viewItems[m],b=_.size-_.maximumSize,w=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-d,f,void 0,void 0,b,w)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=mi(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==ws.Idle)throw new Error("Cant modify splitview");if(this.state=ws.Busy,e<0||e>=this.viewItems.length)return;const i=$t(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],o=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=mi(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,o),this.state=ws.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=mi(i,a.minimumSize,a.maximumSize);const n=$t(this.viewItems.length),o=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(o,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==ws.Idle)throw new Error("Cant modify splitview");this.state=ws.Busy;const o=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(h,u)),a=Pe(()=>this.viewContainer.removeChild(o)),l=or(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const h=this.orientation===0?new H8(o,e,c,l):new z8(o,e,c,l);if(this.viewItems.splice(i,0,h),this.viewItems.length>1){let u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const f=this.orientation===0?new gi(this.sashContainer,{getHorizontalSashTop:y=>this.getSashPosition(y),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new gi(this.sashContainer,{getVerticalSashLeft:y=>this.getSashPosition(y),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),m=this.orientation===0?y=>({sash:f,start:y.startY,current:y.currentY,alt:y.altKey}):y=>({sash:f,start:y.startX,current:y.currentX,alt:y.altKey}),b=K.map(f.onDidStart,m)(this.onSashStart,this),C=K.map(f.onDidChange,m)(this.onSashChange,this),S=K.map(f.onDidEnd,()=>this.sashItems.findIndex(y=>y.sash===f))(this.onSashEnd,this),k=f.onDidReset(()=>{const y=this.sashItems.findIndex(F=>F.sash===f),I=$t(y,-1),R=$t(y+1,this.viewItems.length),T=this.findFirstSnapIndex(I),P=this.findFirstSnapIndex(R);typeof T=="number"&&!this.viewItems[T].visible||typeof P=="number"&&!this.viewItems[P].visible||this._onDidSashReset.fire(y)}),x=or(b,C,S,k,f),L={sash:f,disposable:x};this.sashItems.splice(i-1,0,L)}o.appendChild(e.element);let d;typeof t!="number"&&t.type==="split"&&(d=[t.index]),n||this.relayout([i],d),this.state=ws.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,o)=>n+o.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(h=>h.size),n,o,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const h=$t(e,-1),d=$t(e+1,this.viewItems.length);if(o)for(const L of o)Sg(h,L),Sg(d,L);if(n)for(const L of n)Vh(h,L),Vh(d,L);const u=h.map(L=>this.viewItems[L]),f=h.map(L=>i[L]),m=d.map(L=>this.viewItems[L]),_=d.map(L=>i[L]),b=h.reduce((L,y)=>L+(this.viewItems[y].minimumSize-i[y]),0),w=h.reduce((L,y)=>L+(this.viewItems[y].maximumSize-i[y]),0),C=d.length===0?Number.POSITIVE_INFINITY:d.reduce((L,y)=>L+(i[y]-this.viewItems[y].minimumSize),0),v=d.length===0?Number.NEGATIVE_INFINITY:d.reduce((L,y)=>L+(i[y]-this.viewItems[y].maximumSize),0),S=Math.max(b,v,r),k=Math.min(C,w,a);let x=!1;if(l){const L=this.viewItems[l.index],y=t>=l.limitDelta;x=y!==L.visible,L.setVisible(y,l.size)}if(!x&&c){const L=this.viewItems[c.index],y=ta+l.size,0);let i=this.size-t;const n=$t(this.viewItems.length-1,-1),o=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Sg(n,a);for(const a of o)Vh(n,a);typeof e=="number"&&Vh(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const o=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),Me(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class Ah{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=Ah.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(o=>[o.templateId,o]));this.renderers=[];for(const o of e){const r=n.get(o.templateId);if(!r)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=U(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew j8(h,d)),l={size:a.reduce((h,d)=>h+d.column.weight,0),views:a.map(h=>({size:h.column.weight,view:h}))};this.splitview=this.disposables.add(new U8(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new Ah(n,o,h=>this.splitview.getViewSize(h));this.list=this.disposables.add(new Bs(e,this.domNode,$8(i),[c],r)),K.any(...a.map(h=>h.onDidLayout))(([h,d])=>c.layoutColumn(h,d),null,this.disposables),this.splitview.onDidSashReset(h=>{const d=n.reduce((f,m)=>f+m.weight,0),u=n[h].weight/d*this.cachedWidth;this.splitview.resizeView(h,u)},null,this.disposables),this.styleElement=xn(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { top: ${this.virtualDelegate.headerRowHeight+1}px; height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); }`),this.styleElement.textContent=t.join(` -`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}rg.InstanceCount=0;var Lc;(function(s){s[s.Unknown=0]="Unknown",s[s.Twistie=1]="Twistie",s[s.Element=2]="Element"})(Lc||(Lc={}));class Ni extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class vb{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function Sb(s){return typeof s=="object"&&"visibility"in s&&"data"in s}function rh(s){switch(s){case!0:return 1;case!1:return 0;default:return s}}function Vm(s){return typeof s.collapsible=="boolean"}class q8{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new Z1,this._onDidChangeCollapseState=new M,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new M,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new M,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new bl(zy),this.collapseByDefault=typeof n.collapseByDefault=="undefined"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren=="undefined"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=he.empty(),n={}){if(e.length===0)throw new Ni(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,r){var a;n===void 0&&(n=he.empty()),r===void 0&&(r=(a=o.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,o);const c=[...n],h=t[t.length-1],d=new ks({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,h),...c,...l.children.slice(h+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(d.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,o);const u=t.slice(0,-1),f=(b,w,C)=>{if(r>0)for(let v=0;vC.originalStart-w.originalStart))f(m,_,m-(b.originalStart+b.originalLength)),m=b.originalStart,_=b.modifiedStart-h,this.spliceSimple([...u,m],b.originalLength,he.slice(c,_,_+b.modifiedLength),o);f(m,_,m)}spliceSimple(e,t,i=he.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:h}=this.getParentNodeWithListIndex(e),d=[],u=he.map(i,L=>this.createTreeNode(L,a,a.visible?1:0,c,d,n)),f=e[e.length-1],m=a.children.length>0;let _=0;for(let L=f;L>=0&&Lr.getId(L.element).toString())):a.lastDiffIds=a.children.map(L=>r.getId(L.element).toString()):a.lastDiffIds=void 0;let S=0;for(const L of v)L.visible&&S++;if(S!==0)for(let L=f+b.length;Ly+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-L),this.list.splice(l,L,d)}if(v.length>0&&o){const L=y=>{o(y),y.children.forEach(L)};v.forEach(L)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:v});const k=a.children.length>0;m!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ni(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t=="undefined"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t=="undefined"&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,o))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!Vm(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(Vm(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!Vm(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed!="undefined",collapsed:typeof e.collapsed=="undefined"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&o.push(a);const c=e.children||he.empty(),h=n&&l!==0&&!a.collapsed,d=he.map(c,m=>this.createTreeNode(m,a,l,h,o,r));let u=0,f=1;for(const m of d)a.children.push(m),f+=m.renderNodeCount,m.visible&&(m.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=f):(a.renderNodeCount=0,n&&o.pop()),r&&r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),o===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||o!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,o,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=o===2?a:o===1,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):Sb(i)?(e.filterData=i.data,rh(i.visibility)):(e.filterData=void 0,rh(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ni(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ni(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:o&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ni(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function Wm(s){return s instanceof Rh?new G8(s):s}class Z8{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=W.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Wm(e),t)}onDragOver(e,t,i,n,o=!0){const r=this.dnd.onDragOver(Wm(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t=="undefined")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=qp(()=>{const u=this.modelProvider(),f=u.getNodeLocation(t);u.isCollapsed(f)&&u.setCollapsed(f,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble=="undefined"||r.feedback){if(!o){const u=typeof r=="boolean"?r:r.accept,f=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:f,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),f=u.getNodeLocation(t),m=u.getParentNodeLocation(f),_=u.getNode(m),b=m&&u.getListIndex(m);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),h=l.getListIndex(c),d=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:$t(h,h+d)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(Wm(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function Y8(s,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new Z8(s,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=s(),n=i.getNodeLocation(t),o=i.getParentNodeLocation(n);return i.getNode(o).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),enableKeyboardNavigation:e.simpleKeyboardNavigation})}class yb{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var ah;(function(s){s.None="none",s.OnHover="onHover",s.Always="always"})(ah||(ah={}));class X8{constructor(e,t=[]){this._elements=t,this.onDidChange=K.forEach(e,i=>this._elements=i)}get elements(){return this._elements}}class lh{constructor(e,t,i,n,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=lh.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new X4,this.activeIndentNodes=new Set,this.indentGuidesDisposable=W.None,this.disposables=new se,this.templateId=e.templateId,this.updateOptions(o),K.map(i,r=>r.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent!="undefined"&&(this.indent=mi(e.indent,0,40)),typeof e.renderIndentGuides!="undefined"){const t=e.renderIndentGuides!==ah.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new se;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=U(e,J(".monaco-tl-row")),i=U(t,J(".monaco-tl-indent")),n=U(t,J(".monaco-tl-twistie")),o=U(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:W.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const o=lh.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${o}px`,i.indent.style.width=`${o+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...g.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...g.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Pi(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new se,n=this.modelProvider();let o=e;for(;;){const r=n.getNodeLocation(o),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Pe(()=>this.renderedIndentGuides.delete(l,c))),o=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const o=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(o);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,o=>o.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,o=>o.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Me(this.disposables)}}lh.DefaultIndent=8;class Q8{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new se,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const o=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return o;let r;if(typeof o=="boolean"?r=o?1:0:Sb(o)?r=rh(o.visibility):r=o,r===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:gr.Default,visibility:!0};const i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(i)?i:[i];for(const o of n){const r=o&&o.toString();if(typeof r=="undefined")return{data:gr.Default,visibility:!0};const a=nP(this._pattern,this._lowercasePattern,0,r,r.toLowerCase(),0,!0);if(a)return this._matchCount++,n.length===1?{data:a,visibility:!0}:{data:{label:r,score:a},visibility:!0}}return this.tree.options.filterOnType?2:{data:gr.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Me(this.disposables)}}class J8{constructor(e,t,i,n,o){this.tree=e,this.view=i,this.filter=n,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new M,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new M,this.enabledDisposables=new se,this.disposables=new se,this.domNode=J(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,this.disposables.add(V(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=U(i.getHTMLElement(),J(".monaco-list-type-filter-message")),this.labelDomNode=U(this.domNode,J("span.label"));const r=U(this.domNode,J(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=U(r,J("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(V(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=U(r,J("button.clear"+g.treeFilterClear.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=p("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),typeof e.filterOnType!="undefined"&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),typeof e.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=this.enabledDisposables.add(new Te(this.view.getHTMLElement(),"keydown")),t=K.chain(e.event).filter(n=>!Io(n.target)||n.target===this.filterOnTypeDomNode).filter(n=>n.key!=="Dead"&&!/^Media/.test(n.key)).map(n=>new He(n)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(n=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(n)&&!(n.keyCode===18||n.keyCode===16||n.keyCode===15||n.keyCode===17)||(this.pattern.length>0||this.triggered)&&(n.keyCode===9||n.keyCode===1)&&!n.altKey&&!n.ctrlKey&&!n.metaKey||n.keyCode===1&&(me?n.altKey&&!n.metaKey:n.ctrlKey)&&!n.shiftKey).forEach(n=>{n.stopPropagation(),n.preventDefault()}).event,i=this.enabledDisposables.add(new Te(this.clearDomNode,"click"));K.chain(K.any(t,i.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){!this._enabled||(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){typeof e=="string"?this.onInput(e):e instanceof MouseEvent||e.keyCode===9||e.keyCode===1&&(me?e.altKey:e.ctrlKey)?this.onInput(""):e.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,n=>!gr.isDefault(n.filterData));const i=this.tree.getFocus();if(i.length>0){const n=i[0];this.tree.getRelativeTop(n)===null&&this.tree.reveal(n,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=en(e),i=e.clientWidth,n=i/2,o=this.domNode.clientWidth,r=new se;let a=this.positionClassName;const l=()=>{switch(a){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=`${i-o-6}px`;break}},c=d=>{d.preventDefault();const u=d.clientX-t;d.dataTransfer&&(d.dataTransfer.dropEffect="none"),u{this.positionClassName=a,this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",Me(r)};l(),this.domNode.classList.remove(a),this.domNode.classList.add("dragging"),r.add(Pe(()=>this.domNode.classList.remove("dragging"))),r.add(V(document,"dragover",d=>c(d))),r.add(V(this.domNode,"dragend",()=>h())),Cs.CurrentDragAndDropData=new p9("vscode-ui"),r.add(Pe(()=>Cs.CurrentDragAndDropData=void 0))}onDidSpliceModel(){!this._enabled||this.pattern.length===0||(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...g.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.classList.add(...g.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.title=p("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...g.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.classList.add(...g.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.title=p("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=p("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=p("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!gr.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Me(this.disposables)}}function gS(s){let e=Lc.Unknown;return WC(s.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=Lc.Twistie:WC(s.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(e=Lc.Element),{browserEvent:s.browserEvent,element:s.element?s.element.element:null,target:e}}function Zd(s,e){e(s),s.children.forEach(t=>Zd(t,e))}class Hm{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new M,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Kn(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=h=>l.delete(h);t.forEach(h=>Zd(h,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>Zd(l,n));const o=new Map,r=l=>o.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>Zd(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const d=o.get(c);d&&a.push(d)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class e3 extends B2{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(Io(e.browserEvent.target)||ba(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?o=this.tree.expandOnlyOnTwistieClick(t.element):o=!!this.tree.expandOnlyOnTwistieClick,o&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),o&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class t3 extends Bs{constructor(e,t,i,n,o,r,a,l){super(e,t,i,n,l),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new e3(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],o=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&o.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(wo([...super.getFocus(),...n])),o.length>0&&super.setSelection(wo([...super.getSelection(),...o])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e=="undefined"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class H2{constructor(e,t,i,n,o={}){this._user=e,this._options=o,this.eventBufferer=new Z1,this.disposables=new se,this._onWillRefilter=new M,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new M;const r=new yb(i),a=new Zb,l=new Zb,c=new X8(l.event);this.renderers=n.map(u=>new lh(u,()=>this.model,a.event,c,o));for(let u of this.renderers)this.disposables.add(u);let h;o.keyboardNavigationLabelProvider&&(h=new Q8(this,o.keyboardNavigationLabelProvider,o.filter),o=Object.assign(Object.assign({},o),{filter:h}),this.disposables.add(h)),this.focus=new Hm(()=>this.view.getFocusedElements()[0],o.identityProvider),this.selection=new Hm(()=>this.view.getSelectedElements()[0],o.identityProvider),this.anchor=new Hm(()=>this.view.getAnchorElement(),o.identityProvider),this.view=new t3(e,t,r,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},Y8(()=>this.model,o)),{tree:this})),this.model=this.createModel(e,this.view,o),a.input=this.model.onDidChangeCollapseState;const d=K.forEach(this.model.onDidSplice,u=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(u),this.selection.onDidModelSplice(u)})});if(d(()=>null,null,this.disposables),l.input=K.chain(K.any(d,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const u=new Set;for(const f of this.focus.getNodes())u.add(f);for(const f of this.selection.getNodes())u.add(f);return[...u.values()]}).event,o.keyboardSupport!==!1){const u=K.chain(this.view.onKeyDown).filter(f=>!Io(f.target)).map(f=>new He(f));u.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),u.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),u.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){const u=o.keyboardNavigationDelegate||O2;this.typeFilterController=new J8(this,this.model,this.view,h,u),this.focusNavigationFilter=f=>this.typeFilterController.shouldAllowFocus(f),this.disposables.add(this.typeFilterController)}this.styleElement=xn(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ah.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return K.map(this.view.onMouseDblClick,gS)}get onPointer(){return K.map(this.view.onPointer,gS)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return K.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick=="undefined"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ah.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join(` -`),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(o=>this.model.getNode(o));this.selection.set(i,t);const n=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(o=>this.model.getNode(o));this.focus.set(i,t);const n=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setFocus(n,t,!0)}focusNext(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return t===-1?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){Me(this.disposables),this.view.dispose()}}class Lb{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new q8(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,o){return i.sorter.compare(n.element,o.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=he.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=he.empty(),i){const n=new Set,o=new Set,r=l=>{var c;if(l.element===null)return;const h=l;if(n.add(h.element),this.nodes.set(h.element,h),this.identityProvider){const d=this.identityProvider.getId(h.element).toString();o.add(d),this.nodesByIdentity.set(d,h)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,h)},a=l=>{var c;if(l.element===null)return;const h=l;if(n.has(h.element)||this.nodes.delete(h.element),this.identityProvider){const d=this.identityProvider.getId(h.element).toString();o.has(d)||this.nodesByIdentity.delete(d)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,h)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=he.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),he.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,o=typeof t.collapsed!="undefined"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:o,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ni(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function Yd(s){const e=[s.element],t=s.incompressible||!1;return{element:{elements:e,incompressible:t},children:he.map(he.from(s.children),Yd),collapsible:s.collapsible,collapsed:s.collapsed}}function Xd(s){const e=[s.element],t=s.incompressible||!1;let i,n;for(;[n,i]=he.consume(he.from(s.children),2),!(n.length!==1||n[0].incompressible);)s=n[0],e.push(s.element);return{element:{elements:e,incompressible:t},children:he.map(he.concat(n,i),Xd),collapsible:s.collapsible,collapsed:s.collapsed}}function c1(s,e=0){let t;return ec1(i,0)),e===0&&s.element.incompressible?{element:s.element.elements[e],children:t,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[e],children:t,collapsible:s.collapsible,collapsed:s.collapsed}}function mS(s){return c1(s,0)}function z2(s,e,t){return s.element===e?Object.assign(Object.assign({},s),{children:t}):Object.assign(Object.assign({},s),{children:he.map(he.from(s.children),i=>z2(i,e,t))})}const i3=s=>({getId(e){return e.elements.map(t=>s.getId(t).toString()).join("\0")}});class n3{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new Lb(e,t,i),this.enabled=typeof i.compressionEnabled=="undefined"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=he.empty(),i){const n=i.diffIdentityProvider&&i3(i.diffIdentityProvider);if(e===null){const f=he.map(t,this.enabled?Xd:Yd);this._setChildren(null,f,{diffIdentityProvider:n,diffDepth:1/0});return}const o=this.nodes.get(e);if(!o)throw new Error("Unknown compressed tree node");const r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),c=mS(r),h=z2(c,e,t),d=(this.enabled?Xd:Yd)(h),u=l.children.map(f=>f===r?d:f);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=he.map(i,mS),o=he.map(n,e?Xd:Yd);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,o=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:o,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e=="undefined")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return t}}const s3=s=>s[s.length-1];class kb{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new kb(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function o3(s,e){return{splice(t,i,n){e.splice(t,i,n.map(o=>s.map(o)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function r3(s,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(s(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(s(t),i)}}})}class a3{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||s3;const n=o=>this.elementMapper(o.elements);this.nodeMapper=new vb(o=>new kb(n,o)),this.model=new n3(e,o3(this.nodeMapper,t),r3(n,i))}get onDidSplice(){return K.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return K.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return K.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=he.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t=="undefined"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var l3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class xb extends H2{constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=he.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new Lb(e,t,i)}}class U2{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);o.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}l3([rt],U2.prototype,"compressedTreeNodeProvider",null);function c3(s,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=s().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class $2 extends xb{constructor(e,t,i,n,o={}){const r=()=>this,a=n.map(l=>new U2(r,l));super(e,t,i,a,c3(r,o))}setChildren(e,t=he.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new a3(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var $s=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function zm(s){return Object.assign(Object.assign({},s),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function h1(s,e){return e.parent?e.parent===s?!0:h1(s,e.parent):!1}function h3(s,e){return s===e||h1(s,e)||h1(e,s)}class Ib{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new Ib(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class d3{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...g.treeItemLoading.classNamesArray),!0):(t.classList.remove(...g.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function pS(s){return{browserEvent:s.browserEvent,elements:s.elements.map(e=>e.element)}}function _S(s){return{browserEvent:s.browserEvent,element:s.element&&s.element.element,target:s.target}}class u3 extends Rh{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function Um(s){return s instanceof Rh?new u3(s):s}class f3{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Um(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(Um(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(Um(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function j2(s){return s&&Object.assign(Object.assign({},s),{collapseByDefault:!0,identityProvider:s.identityProvider&&{getId(e){return s.identityProvider.getId(e.element)}},dnd:s.dnd&&new f3(s.dnd),multipleSelectionController:s.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return s.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return s.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:s.accessibilityProvider&&Object.assign(Object.assign({},s.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:s.accessibilityProvider.getRole?e=>s.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:s.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=s.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return s.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return s.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:s.accessibilityProvider.getWidgetRole?()=>s.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:s.accessibilityProvider.getAriaLevel&&(e=>s.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:s.accessibilityProvider.getActiveDescendantId&&(e=>s.accessibilityProvider.getActiveDescendantId(e.element))}),filter:s.filter&&{filter(e,t){return s.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},s.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof s.expandOnlyOnTwistieClick=="undefined"?void 0:typeof s.expandOnlyOnTwistieClick!="function"?s.expandOnlyOnTwistieClick:e=>s.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:s.additionalScrollHeight})}function d1(s,e){e(s),s.children.forEach(t=>d1(t,e))}class K2{constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new M,this._onDidChangeNodeSlowState=new M,this.nodeMapper=new vb(a=>new Ib(a)),this.disposables=new se,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren=="undefined"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.root=zm({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return K.map(this.tree.onDidChangeFocus,pS)}get onDidChangeSelection(){return K.map(this.tree.onDidChangeSelection,pS)}get onMouseDblClick(){return K.map(this.tree.onMouseDblClick,_S)}get onPointer(){return K.map(this.tree.onPointer,_S)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,o){const r=new yb(i),a=n.map(c=>new d3(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=j2(o)||{};return new xb(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return $s(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,o){return $s(this,void 0,void 0,function*(){if(typeof this.root.element=="undefined")throw new Ni(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return $s(this,void 0,void 0,function*(){if(typeof this.root.element=="undefined")throw new Ni(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ni(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return $s(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return $s(this,void 0,void 0,function*(){let n;return this.subTreeRefreshPromises.forEach((o,r)=>{!n&&h3(r,e)&&(n=o.then(()=>this.refreshNode(e,t,i)))}),n||this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return $s(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(o=>n=o),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const o=yield this.doRefreshNode(e,t,i);e.stale=!1,yield Gp.settled(o.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return $s(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(he.empty());else{const o=this.doGetChildren(e);if(Kb(o))n=Promise.resolve(o);else{const r=Mc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=o.finally(()=>r.cancel())}}try{const o=yield n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ph(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return Kb(i)?this.processChildren(i):(t=Hy(()=>$s(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Ze))}setChildren(e,t,i,n){const o=[...t];if(e.children.length===0&&o.length===0)return[];const r=new Map,a=new Map;for(const h of e.children)if(r.set(h.element,h),this.identityProvider){const d=this.tree.isCollapsed(h);a.set(h.id,{node:h,collapsed:d})}const l=[],c=o.map(h=>{const d=!!this.dataSource.hasChildren(h);if(!this.identityProvider){const _=zm({element:h,parent:e,hasChildren:d});return d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(h).toString(),f=a.get(u);if(f){const _=f.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(h,_),_.element=h,_.hasChildren=d,i?f.collapsed?(_.children.forEach(b=>d1(b,w=>this.nodes.delete(w.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(_.collapsedByDefault=!1,l.push(_)),_}const m=zm({element:h,parent:e,id:u,hasChildren:d});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(m),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(m),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(m):d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(m.collapsedByDefault=!1,l.push(m)),m});for(const h of r.values())d1(h,d=>this.nodes.delete(d.element));for(const h of c)this.nodes.set(h.element,h);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?he.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class Eb{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new Eb(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class g3{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...g.treeItemLoading.classNamesArray),!0):(t.classList.remove(...g.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Me(this.disposables)}}function m3(s){const e=s&&j2(s);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class p3 extends K2{constructor(e,t,i,n,o,r,a={}){super(e,t,i,o,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new vb(l=>new Eb(l)),this.filter=a.filter}createTree(e,t,i,n,o){const r=new yb(i),a=n.map(c=>new g3(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=m3(o)||{};return new $2(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const f=new Set;for(const m of u){const _=this.tree.getCompressedTreeNode(m===this.root?null:m);if(!!_.element)for(const b of _.element.elements)f.add(i(b.element))}return f},o=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let h=!1;const d=u=>{const f=u.element;if(f)for(let m=0;m{const i=this.filter.filter(t,1),n=_3(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function _3(s){return typeof s=="boolean"?s?1:0:Sb(s)?rh(s.visibility):rh(s)}class b3 extends H2{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new Lb(e,t,i)}}new G("isMac",me,p("isMac","Whether the operating system is macOS"));new G("isLinux",qt,p("isLinux","Whether the operating system is Linux"));new G("isWindows",li,p("isWindows","Whether the operating system is Windows"));new G("isWeb",fl,p("isWeb","Whether the platform is a web browser"));new G("isMacNative",me&&!fl,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new G("isIOS",pr,p("isIOS","Whether the operating system is iOS"));new G("isDevelopment",!1,!0);const q2="inputFocus";new G(q2,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var as=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},re=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const ls=pe("listService");let u1=class{constructor(e){this._themeService=e,this.disposables=new se,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new V2(xn(),"");this.disposables.add(ll(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),or(e.onDidFocus(()=>this.setLastFocusedList(e)),Pe(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};u1=as([re(0,ot)],u1);const G2=new G("listFocus",!0),ag=new G("listSupportsMultiselect",!0);Oe.and(G2,Oe.not(q2));const Db=new G("listHasSelectionOrFocus",!1),Nb=new G("listDoubleSelection",!1),Tb=new G("listMultiSelection",!1),lg=new G("listSelectionNavigation",!1),C3=new G("treeElementCanCollapse",!1),w3=new G("treeElementHasParent",!1),v3=new G("treeElementCanExpand",!1),S3=new G("treeElementHasChild",!1),Z2="listAutomaticKeyboardNavigation";function cg(s,e){const t=s.createScoped(e.getHTMLElement());return G2.bindTo(t),t}const Ur="workbench.list.multiSelectModifier",f1="workbench.list.openMode",Ai="workbench.list.horizontalScrolling",cf="workbench.list.keyboardNavigation",Mb="workbench.list.automaticKeyboardNavigation",ch="workbench.tree.indent",hf="workbench.tree.renderIndentGuides",En="workbench.list.smoothScrolling",is="workbench.list.mouseWheelScrollSensitivity",ns="workbench.list.fastScrollSensitivity",df="workbench.tree.expandMode";function ss(s){return s.getValue(Ur)==="alt"}class y3 extends W{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=ss(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Ur)&&(this.useAltAsMultipleSelectionModifier=ss(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:P2(e)}isSelectionRangeChangeEvent(e){return F2(e)}}function hg(s,e,t){var i;const n=new se;return[Object.assign(Object.assign({},s),{keyboardNavigationDelegate:{mightProducePrintableCharacter(r){return t.mightProducePrintableCharacter(r)}},smoothScrolling:Boolean(e.getValue(En)),mouseWheelScrollSensitivity:e.getValue(is),fastScrollSensitivity:e.getValue(ns),multipleSelectionController:(i=s.multipleSelectionController)!==null&&i!==void 0?i:n.add(new y3(e))}),n]}let g1=class extends Bs{constructor(e,t,i,n,o,r,a,l,c,h){const d=typeof o.horizontalScrolling!="undefined"?o.horizontalScrolling:Boolean(c.getValue(Ai)),[u,f]=hg(o,c,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(l.getColorTheme(),tg)),u),{horizontalScrolling:d})),this.disposables.add(f),this.contextKeyService=cg(r,this),this.themeService=l,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.listDoubleSelection=Nb.bindTo(this.contextKeyService),this.listMultiSelection=Tb.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ss(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(c));let b={};if(_.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const w=Boolean(c.getValue(Ai));b=Object.assign(Object.assign({},b),{horizontalScrolling:w})}if(_.affectsConfiguration(En)){const w=Boolean(c.getValue(En));b=Object.assign(Object.assign({},b),{smoothScrolling:w})}if(_.affectsConfiguration(is)){const w=c.getValue(is);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:w})}if(_.affectsConfiguration(ns)){const w=c.getValue(ns);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:w})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new Y2(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};g1=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li)],g1);let bS=class extends W8{constructor(e,t,i,n,o,r,a,l,c,h){const d=typeof o.horizontalScrolling!="undefined"?o.horizontalScrolling:Boolean(c.getValue(Ai)),[u,f]=hg(o,c,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(l.getColorTheme(),tg)),u),{horizontalScrolling:d})),this.disposables=new se,this.disposables.add(f),this.contextKeyService=cg(r,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=ss(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add(ll(this,l,o.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(c));let b={};if(_.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const w=Boolean(c.getValue(Ai));b=Object.assign(Object.assign({},b),{horizontalScrolling:w})}if(_.affectsConfiguration(En)){const w=Boolean(c.getValue(En));b=Object.assign(Object.assign({},b),{smoothScrolling:w})}if(_.affectsConfiguration(is)){const w=c.getValue(is);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:w})}if(_.affectsConfiguration(ns)){const w=c.getValue(ns);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:w})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new Y2(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};bS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li)],bS);let CS=class extends rg{constructor(e,t,i,n,o,r,a,l,c,h,d){const u=typeof r.horizontalScrolling!="undefined"?r.horizontalScrolling:Boolean(h.getValue(Ai)),[f,m]=hg(r,h,d);super(e,t,i,n,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(c.getColorTheme(),tg)),f),{horizontalScrolling:u})),this.disposables.add(m),this.contextKeyService=cg(a,this),this.themeService=c,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.listDoubleSelection=Nb.bindTo(this.contextKeyService),this.listMultiSelection=Tb.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ss(h),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),w=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||w.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),w=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||w.length>0)})),this.disposables.add(h.onDidChangeConfiguration(b=>{b.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(h));let w={};if(b.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const C=Boolean(h.getValue(Ai));w=Object.assign(Object.assign({},w),{horizontalScrolling:C})}if(b.affectsConfiguration(En)){const C=Boolean(h.getValue(En));w=Object.assign(Object.assign({},w),{smoothScrolling:C})}if(b.affectsConfiguration(is)){const C=h.getValue(is);w=Object.assign(Object.assign({},w),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(ns)){const C=h.getValue(ns);w=Object.assign(Object.assign({},w),{fastScrollSensitivity:C})}Object.keys(w).length>0&&this.updateOptions(w)})),this.navigator=new L3(this,Object.assign({configurationService:h},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};CS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li)],CS);class Rb extends W{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new M),this.onDidOpen=this._onDidOpen.event,this._register(K.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(f1))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(f1))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,o=!1;this._open(this.getSelectedElement(),i,n,o,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,o=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const o=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}_open(e,t,i,n,o){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Y2 extends Rb{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class L3 extends Rb{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class k3 extends Rb{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function x3(s,e){let t=!1;return i=>{if(i.toKeybinding().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,s);return n&&n.enterChord?(t=!0,!1):(t=!1,!0)}}let wS=class extends xb{constructor(e,t,i,n,o,r,a,l,c,h,d){const{options:u,getAutomaticKeyboardNavigation:f,disposable:m}=Oh(t,o,r,c,h,d);super(e,t,i,n,u),this.disposables.add(m),this.internals=new Er(this,o,f,o.overrideStyles,r,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};wS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li),re(10,Vi)],wS);let vS=class extends $2{constructor(e,t,i,n,o,r,a,l,c,h,d){const{options:u,getAutomaticKeyboardNavigation:f,disposable:m}=Oh(t,o,r,c,h,d);super(e,t,i,n,u),this.disposables.add(m),this.internals=new Er(this,o,f,o.overrideStyles,r,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};vS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li),re(10,Vi)],vS);let SS=class extends b3{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const{options:f,getAutomaticKeyboardNavigation:m,disposable:_}=Oh(t,r,a,h,d,u);super(e,t,i,n,o,f),this.disposables.add(_),this.internals=new Er(this,r,m,r.overrideStyles,a,l,c,h,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};SS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li),re(11,Vi)],SS);let yS=class extends K2{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const{options:f,getAutomaticKeyboardNavigation:m,disposable:_}=Oh(t,r,a,h,d,u);super(e,t,i,n,o,f),this.disposables.add(_),this.internals=new Er(this,r,m,r.overrideStyles,a,l,c,h,u),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};yS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li),re(11,Vi)],yS);let LS=class extends p3{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f){const{options:m,getAutomaticKeyboardNavigation:_,disposable:b}=Oh(t,a,l,d,u,f);super(e,t,i,n,o,r,m),this.disposables.add(b),this.internals=new Er(this,a,_,a.overrideStyles,l,c,h,d,f),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};LS=as([re(7,Ne),re(8,ls),re(9,ot),re(10,Rt),re(11,Li),re(12,Vi)],LS);function Oh(s,e,t,i,n,o){var r;const a=()=>{let m=Boolean(t.getContextKeyValue(Z2));return m&&(m=Boolean(i.getValue(Mb))),m},l=o.isScreenReaderOptimized(),c=e.simpleKeyboardNavigation||l?"simple":i.getValue(cf),h=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Ai)),[d,u]=hg(e,i,n),f=e.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:u,options:Object.assign(Object.assign({keyboardSupport:!1},d),{indent:typeof i.getValue(ch)=="number"?i.getValue(ch):void 0,renderIndentGuides:i.getValue(hf),smoothScrolling:Boolean(i.getValue(En)),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:c==="simple",filterOnType:c==="filter",horizontalScrolling:h,keyboardNavigationEventFilter:x3(s,n),additionalScrollHeight:f,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(r=e.expandOnlyOnTwistieClick)!==null&&r!==void 0?r:i.getValue(df)==="doubleClick"})}}let Er=class{constructor(e,t,i,n,o,r,a,l,c){this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=cg(o,e),this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.hasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.hasDoubleSelection=Nb.bindTo(this.contextKeyService),this.hasMultiSelection=Tb.bindTo(this.contextKeyService),this.treeElementCanCollapse=C3.bindTo(this.contextKeyService),this.treeElementHasParent=w3.bindTo(this.contextKeyService),this.treeElementCanExpand=v3.bindTo(this.contextKeyService),this.treeElementHasChild=S3.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ss(l);const d=new Set;d.add(Z2);const u=()=>{const _=c.isScreenReaderOptimized()?"simple":l.getValue(cf);e.updateOptions({simpleKeyboardNavigation:_==="simple",filterOnType:_==="filter"})};this.updateStyleOverrides(n);const f=()=>{const m=e.getFocus()[0];if(!m)return;const _=e.getNode(m);this.treeElementCanCollapse.set(_.collapsible&&!_.collapsed),this.treeElementHasParent.set(!!e.getParentElement(m)),this.treeElementCanExpand.set(_.collapsible&&_.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(m))};this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const m=e.getSelection(),_=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(m.length>0||_.length>0),this.hasMultiSelection.set(m.length>1),this.hasDoubleSelection.set(m.length===2)})}),e.onDidChangeFocus(()=>{const m=e.getSelection(),_=e.getFocus();this.hasSelectionOrFocus.set(m.length>0||_.length>0),f()}),e.onDidChangeCollapseState(f),e.onDidChangeModel(f),l.onDidChangeConfiguration(m=>{let _={};if(m.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(l)),m.affectsConfiguration(ch)){const b=l.getValue(ch);_=Object.assign(Object.assign({},_),{indent:b})}if(m.affectsConfiguration(hf)){const b=l.getValue(hf);_=Object.assign(Object.assign({},_),{renderIndentGuides:b})}if(m.affectsConfiguration(En)){const b=Boolean(l.getValue(En));_=Object.assign(Object.assign({},_),{smoothScrolling:b})}if(m.affectsConfiguration(cf)&&u(),m.affectsConfiguration(Mb)&&(_=Object.assign(Object.assign({},_),{automaticKeyboardNavigation:i()})),m.affectsConfiguration(Ai)&&t.horizontalScrolling===void 0){const b=Boolean(l.getValue(Ai));_=Object.assign(Object.assign({},_),{horizontalScrolling:b})}if(m.affectsConfiguration(df)&&t.expandOnlyOnTwistieClick===void 0&&(_=Object.assign(Object.assign({},_),{expandOnlyOnTwistieClick:l.getValue(df)==="doubleClick"})),m.affectsConfiguration(is)){const b=l.getValue(is);_=Object.assign(Object.assign({},_),{mouseWheelScrollSensitivity:b})}if(m.affectsConfiguration(ns)){const b=l.getValue(ns);_=Object.assign(Object.assign({},_),{fastScrollSensitivity:b})}Object.keys(_).length>0&&e.updateOptions(_)}),this.contextKeyService.onDidChangeContext(m=>{m.affectsSome(d)&&e.updateOptions({automaticKeyboardNavigation:i()})}),c.onDidChangeScreenReaderOptimized(()=>u())),this.navigator=new k3(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){Me(this.styler),this.styler=e?ll(this.tree,this.themeService,e):W.None}dispose(){this.disposables=Me(this.disposables),Me(this.styler),this.styler=void 0}};Er=as([re(4,Ne),re(5,ls),re(6,ot),re(7,Rt),re(8,Vi)],Er);const I3=xt.as(kl.Configuration);I3.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Ur]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[f1]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ai]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[ch]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[hf]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[En]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[is]:{type:"number",default:1,description:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[ns]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[cf]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[Mb]:{type:"boolean",default:!0,markdownDescription:p("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},[df]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var m1;(function(s){s[s.PRESERVE=0]="PRESERVE",s[s.LAST=1]="LAST"})(m1||(m1={}));const X2={Quickaccess:"workbench.contributions.quickaccess"};class E3{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Pe(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return ty([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}xt.add(X2.Quickaccess,new E3);const Q2=pe("quickInputService");var D3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},kS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let p1=class extends W{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=xt.as(X2.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let f;if(a&&l&&l!==r){const m=a.value.substr(l.prefix.length);m&&(f=`${r.prefix}${m}`)}if(!f){const m=o==null?void 0:o.defaultFilterValue;m===m1.LAST?f=this.lastAcceptedPickerValues.get(r):typeof m=="string"&&(f=`${r.prefix}${m}`)}typeof f=="string"&&(e=f)}const c=new se,h=c.add(this.quickInputService.createQuickPick());h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=r==null?void 0:r.placeholder,h.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(h.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:fn.SECOND),h.contextKey=r==null?void 0:r.contextKey,h.filterValue=f=>f.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(h.ariaLabel=r==null?void 0:r.placeholder);let d;t&&(d=new Uy,c.add(_r(h.onWillAccept)(f=>{f.veto(),h.hide()}))),c.add(this.registerPickerListeners(h,o,r,e));const u=c.add(new ml);if(o&&c.add(o.provide(h,u.token)),_r(h.onDidHide)(()=>{h.selectedItems.length===0&&u.cancel(),c.dispose(),d==null||d.complete(h.selectedItems.slice(0))}),h.show(),t)return d==null?void 0:d.p}adjustValueSelection(e,t,i){var n;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new se,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Pe(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};p1=D3([kS(0,Q2),kS(1,rn)],p1);var N3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$l=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let _1=class extends W4{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(p1))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,c,h,d)=>this.instantiationService.createInstance(g1,a,l,c,h,d),styles:this.computeStyles()},r=this._register(new og(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(n=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&n!==void 0?n:0),this._register(e.onDidLayout(a=>{var l,c;return r.layout(a,(c=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&c!==void 0?c:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new G(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ci.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},gn(this.theme,{quickInputBackground:YC,quickInputForeground:LT,quickInputTitleBackground:kT,contrastBorder:it,widgetShadow:Ya})),inputBox:gn(this.theme,{inputForeground:ML,inputBackground:TL,inputBorder:RL,inputValidationInfoBackground:AL,inputValidationInfoForeground:OL,inputValidationInfoBorder:PL,inputValidationWarningBackground:FL,inputValidationWarningForeground:BL,inputValidationWarningBorder:VL,inputValidationErrorBackground:WL,inputValidationErrorForeground:HL,inputValidationErrorBorder:zL}),countBadge:gn(this.theme,{badgeBackground:Fd,badgeForeground:Bd,badgeBorder:it}),button:gn(this.theme,{buttonForeground:gT,buttonBackground:__,buttonHoverBackground:mT,buttonBorder:it}),progressBar:gn(this.theme,{progressBarBackground:pT}),keybindingLabel:gn(this.theme,{keybindingLabelBackground:ET,keybindingLabelForeground:DT,keybindingLabelBorder:NT,keybindingLabelBottomBorder:TT,keybindingLabelShadow:Ya}),list:gn(this.theme,{listBackground:YC,listInactiveFocusForeground:h5,listInactiveSelectionIconForeground:d5,listInactiveFocusBackground:u5,listFocusOutline:yi,listInactiveFocusOutline:yi,pickerGroupBorder:IT,pickerGroupForeground:xT})}}};_1=N3([$l(0,rn),$l(1,Ne),$l(2,ot),$l(3,Vi),$l(4,Th)],_1);var J2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yo=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let b1=class extends _1{constructor(e,t,i,n,o,r){super(t,i,n,o,new F_(e.getContainerDomNode(),r)),this.host=void 0;const a=hl.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};b1=J2([Yo(1,rn),Yo(2,Ne),Yo(3,ot),Yo(4,Vi),Yo(5,kt)],b1);let C1=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(b1,e);this.mapEditorToService.set(e,t),_r(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ci.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};C1=J2([Yo(0,rn),Yo(1,kt)],C1);class hl{constructor(e){this.editor=e,this.widget=new dg(this.editor)}static get(e){return e.getContribution(hl.ID)}dispose(){this.widget.dispose()}}hl.ID="editor.controller.quickInput";class dg{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return dg.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}dg.ID="editor.contrib.quickInputWidget";T0(hl.ID,hl);class T3{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}function M3(s){if(!s||!Array.isArray(s))return[];const e=[];let t=0;for(let i=0,n=s.length;i{const u=B3(h.token,d.token);return u!==0?u:h.index-d.index});let t=0,i="000000",n="ffffff";for(;s.length>=1&&s[0].token==="";){const h=s.shift();h.fontStyle!==-1&&(t=h.fontStyle),h.foreground!==null&&(i=h.foreground),h.background!==null&&(n=h.background)}const o=new O3;for(let h of e)o.getId(h);const r=o.getId(i),a=o.getId(n),l=new Ab(t,r,a),c=new Ob(l);for(let h=0,d=s.length;h>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const P3=/\b(comment|string|regex|regexp)\b/;function F3(s){const e=s.match(P3);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function B3(s,e){return se?1:0}class Ab{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}clone(){return new Ab(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}}class Ob{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const o=this._children.get(i);return typeof o!="undefined"?o.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const o=e.indexOf(".");let r,a;o===-1?(r=e,a=""):(r=e.substring(0,o),a=e.substring(o+1));let l=this._children.get(r);typeof l=="undefined"&&(l=new Ob(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function V3(s){const e=[];for(let t=1,i=s.length;te.fire()),s==null||s.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=s?s.getProductIconTheme():new tx,n={},o=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${$C(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(let a of t.getIcons()){const l=o(a);l&&r.push(l)}for(let a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",h=l.style?`font-style: ${l.style};`:"",d=l.src.map(u=>`${a_(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${d}; font-family: ${$C(a)};${c}${h} font-display: block; }`)}return r.join(` -`)}}}class tx{getIcon(e){const t=zk();let i=e.defaults;for(;St.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const sr="vs",uf="vs-dark",Ha="hc-black",ix=xt.as(NL.ColorContribution),$3=xt.as(wL.ThemingContribution);class nx{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(Qd(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,O.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=w1(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,O.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=ix.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case sr:return Gn.LIGHT;case Ha:return Gn.HIGH_CONTRAST;default:return Gn.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const o=w1(this.themeData.base);e=o.rules,o.encodedTokensColors&&(t=o.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const o={token:""};i&&(o.foreground=i),n&&(o.background=n),e.push(o)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=ex.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const o=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=pi.getForeground(o),a=pi.getFontStyle(o);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function Qd(s){return s===sr||s===uf||s===Ha}function w1(s){switch(s){case sr:return W3;case uf:return H3;case Ha:return z3}}function $m(s){const e=w1(s);return new nx(s,e)}class j3 extends W{constructor(){super(),this._onColorThemeChange=this._register(new M),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new M),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new tx,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(sr,$m(sr)),this._knownThemes.set(uf,$m(uf)),this._knownThemes.set(Ha,$m(Ha));const e=U3(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(sr),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),R4("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(e){return r_(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=xn(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),W.None}_registerShadowDomContainer(e){const t=xn(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(sr),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){const e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(Ha):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};$3.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of ix.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${dT(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` -`)} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(V3(o)),this._themeCSS=e.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}rg.InstanceCount=0;var Lc;(function(s){s[s.Unknown=0]="Unknown",s[s.Twistie=1]="Twistie",s[s.Element=2]="Element"})(Lc||(Lc={}));class Ni extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class vb{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function Sb(s){return typeof s=="object"&&"visibility"in s&&"data"in s}function rh(s){switch(s){case!0:return 1;case!1:return 0;default:return s}}function Vm(s){return typeof s.collapsible=="boolean"}class K8{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new Z1,this._onDidChangeCollapseState=new M,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new M,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new M,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new bl(zy),this.collapseByDefault=typeof n.collapseByDefault=="undefined"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren=="undefined"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=he.empty(),n={}){if(e.length===0)throw new Ni(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,r){var a;n===void 0&&(n=he.empty()),r===void 0&&(r=(a=o.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,o);const c=[...n],h=t[t.length-1],d=new ks({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,h),...c,...l.children.slice(h+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(d.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,o);const u=t.slice(0,-1),f=(b,w,C)=>{if(r>0)for(let v=0;vC.originalStart-w.originalStart))f(m,_,m-(b.originalStart+b.originalLength)),m=b.originalStart,_=b.modifiedStart-h,this.spliceSimple([...u,m],b.originalLength,he.slice(c,_,_+b.modifiedLength),o);f(m,_,m)}spliceSimple(e,t,i=he.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:h}=this.getParentNodeWithListIndex(e),d=[],u=he.map(i,L=>this.createTreeNode(L,a,a.visible?1:0,c,d,n)),f=e[e.length-1],m=a.children.length>0;let _=0;for(let L=f;L>=0&&Lr.getId(L.element).toString())):a.lastDiffIds=a.children.map(L=>r.getId(L.element).toString()):a.lastDiffIds=void 0;let S=0;for(const L of v)L.visible&&S++;if(S!==0)for(let L=f+b.length;Ly+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-L),this.list.splice(l,L,d)}if(v.length>0&&o){const L=y=>{o(y),y.children.forEach(L)};v.forEach(L)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:v});const k=a.children.length>0;m!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ni(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t=="undefined"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t=="undefined"&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,o))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!Vm(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(Vm(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!Vm(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed!="undefined",collapsed:typeof e.collapsed=="undefined"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&o.push(a);const c=e.children||he.empty(),h=n&&l!==0&&!a.collapsed,d=he.map(c,m=>this.createTreeNode(m,a,l,h,o,r));let u=0,f=1;for(const m of d)a.children.push(m),f+=m.renderNodeCount,m.visible&&(m.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=f):(a.renderNodeCount=0,n&&o.pop()),r&&r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),o===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||o!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,o,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=o===2?a:o===1,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):Sb(i)?(e.filterData=i.data,rh(i.visibility)):(e.filterData=void 0,rh(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ni(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ni(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:o&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ni(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function Wm(s){return s instanceof Rh?new q8(s):s}class G8{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=W.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Wm(e),t)}onDragOver(e,t,i,n,o=!0){const r=this.dnd.onDragOver(Wm(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t=="undefined")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=qp(()=>{const u=this.modelProvider(),f=u.getNodeLocation(t);u.isCollapsed(f)&&u.setCollapsed(f,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble=="undefined"||r.feedback){if(!o){const u=typeof r=="boolean"?r:r.accept,f=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:f,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),f=u.getNodeLocation(t),m=u.getParentNodeLocation(f),_=u.getNode(m),b=m&&u.getListIndex(m);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),h=l.getListIndex(c),d=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:$t(h,h+d)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(Wm(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function Z8(s,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new G8(s,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=s(),n=i.getNodeLocation(t),o=i.getParentNodeLocation(n);return i.getNode(o).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),enableKeyboardNavigation:e.simpleKeyboardNavigation})}class yb{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var ah;(function(s){s.None="none",s.OnHover="onHover",s.Always="always"})(ah||(ah={}));class Y8{constructor(e,t=[]){this._elements=t,this.onDidChange=K.forEach(e,i=>this._elements=i)}get elements(){return this._elements}}class lh{constructor(e,t,i,n,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=lh.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new Y4,this.activeIndentNodes=new Set,this.indentGuidesDisposable=W.None,this.disposables=new se,this.templateId=e.templateId,this.updateOptions(o),K.map(i,r=>r.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent!="undefined"&&(this.indent=mi(e.indent,0,40)),typeof e.renderIndentGuides!="undefined"){const t=e.renderIndentGuides!==ah.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new se;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=U(e,J(".monaco-tl-row")),i=U(t,J(".monaco-tl-indent")),n=U(t,J(".monaco-tl-twistie")),o=U(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:W.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const o=lh.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${o}px`,i.indent.style.width=`${o+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...g.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...g.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Pi(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new se,n=this.modelProvider();let o=e;for(;;){const r=n.getNodeLocation(o),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Pe(()=>this.renderedIndentGuides.delete(l,c))),o=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const o=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(o);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,o=>o.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,o=>o.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Me(this.disposables)}}lh.DefaultIndent=8;class X8{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new se,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const o=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return o;let r;if(typeof o=="boolean"?r=o?1:0:Sb(o)?r=rh(o.visibility):r=o,r===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:gr.Default,visibility:!0};const i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(i)?i:[i];for(const o of n){const r=o&&o.toString();if(typeof r=="undefined")return{data:gr.Default,visibility:!0};const a=iP(this._pattern,this._lowercasePattern,0,r,r.toLowerCase(),0,!0);if(a)return this._matchCount++,n.length===1?{data:a,visibility:!0}:{data:{label:r,score:a},visibility:!0}}return this.tree.options.filterOnType?2:{data:gr.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Me(this.disposables)}}class Q8{constructor(e,t,i,n,o){this.tree=e,this.view=i,this.filter=n,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new M,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new M,this.enabledDisposables=new se,this.disposables=new se,this.domNode=J(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,this.disposables.add(V(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=U(i.getHTMLElement(),J(".monaco-list-type-filter-message")),this.labelDomNode=U(this.domNode,J("span.label"));const r=U(this.domNode,J(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=U(r,J("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(V(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=U(r,J("button.clear"+g.treeFilterClear.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=p("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),typeof e.filterOnType!="undefined"&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),typeof e.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=this.enabledDisposables.add(new Te(this.view.getHTMLElement(),"keydown")),t=K.chain(e.event).filter(n=>!Io(n.target)||n.target===this.filterOnTypeDomNode).filter(n=>n.key!=="Dead"&&!/^Media/.test(n.key)).map(n=>new He(n)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(n=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(n)&&!(n.keyCode===18||n.keyCode===16||n.keyCode===15||n.keyCode===17)||(this.pattern.length>0||this.triggered)&&(n.keyCode===9||n.keyCode===1)&&!n.altKey&&!n.ctrlKey&&!n.metaKey||n.keyCode===1&&(me?n.altKey&&!n.metaKey:n.ctrlKey)&&!n.shiftKey).forEach(n=>{n.stopPropagation(),n.preventDefault()}).event,i=this.enabledDisposables.add(new Te(this.clearDomNode,"click"));K.chain(K.any(t,i.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){!this._enabled||(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){typeof e=="string"?this.onInput(e):e instanceof MouseEvent||e.keyCode===9||e.keyCode===1&&(me?e.altKey:e.ctrlKey)?this.onInput(""):e.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,n=>!gr.isDefault(n.filterData));const i=this.tree.getFocus();if(i.length>0){const n=i[0];this.tree.getRelativeTop(n)===null&&this.tree.reveal(n,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=en(e),i=e.clientWidth,n=i/2,o=this.domNode.clientWidth,r=new se;let a=this.positionClassName;const l=()=>{switch(a){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=`${i-o-6}px`;break}},c=d=>{d.preventDefault();const u=d.clientX-t;d.dataTransfer&&(d.dataTransfer.dropEffect="none"),u{this.positionClassName=a,this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",Me(r)};l(),this.domNode.classList.remove(a),this.domNode.classList.add("dragging"),r.add(Pe(()=>this.domNode.classList.remove("dragging"))),r.add(V(document,"dragover",d=>c(d))),r.add(V(this.domNode,"dragend",()=>h())),Cs.CurrentDragAndDropData=new m9("vscode-ui"),r.add(Pe(()=>Cs.CurrentDragAndDropData=void 0))}onDidSpliceModel(){!this._enabled||this.pattern.length===0||(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...g.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.classList.add(...g.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.title=p("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...g.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.classList.add(...g.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.title=p("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=p("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=p("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!gr.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Me(this.disposables)}}function gS(s){let e=Lc.Unknown;return WC(s.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=Lc.Twistie:WC(s.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(e=Lc.Element),{browserEvent:s.browserEvent,element:s.element?s.element.element:null,target:e}}function Zd(s,e){e(s),s.children.forEach(t=>Zd(t,e))}class Hm{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new M,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Kn(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=h=>l.delete(h);t.forEach(h=>Zd(h,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>Zd(l,n));const o=new Map,r=l=>o.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>Zd(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const d=o.get(c);d&&a.push(d)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class J8 extends B2{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(Io(e.browserEvent.target)||ba(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?o=this.tree.expandOnlyOnTwistieClick(t.element):o=!!this.tree.expandOnlyOnTwistieClick,o&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),o&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class e3 extends Bs{constructor(e,t,i,n,o,r,a,l){super(e,t,i,n,l),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new J8(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],o=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&o.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(wo([...super.getFocus(),...n])),o.length>0&&super.setSelection(wo([...super.getSelection(),...o])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e=="undefined"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class H2{constructor(e,t,i,n,o={}){this._user=e,this._options=o,this.eventBufferer=new Z1,this.disposables=new se,this._onWillRefilter=new M,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new M;const r=new yb(i),a=new Zb,l=new Zb,c=new Y8(l.event);this.renderers=n.map(u=>new lh(u,()=>this.model,a.event,c,o));for(let u of this.renderers)this.disposables.add(u);let h;o.keyboardNavigationLabelProvider&&(h=new X8(this,o.keyboardNavigationLabelProvider,o.filter),o=Object.assign(Object.assign({},o),{filter:h}),this.disposables.add(h)),this.focus=new Hm(()=>this.view.getFocusedElements()[0],o.identityProvider),this.selection=new Hm(()=>this.view.getSelectedElements()[0],o.identityProvider),this.anchor=new Hm(()=>this.view.getAnchorElement(),o.identityProvider),this.view=new e3(e,t,r,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},Z8(()=>this.model,o)),{tree:this})),this.model=this.createModel(e,this.view,o),a.input=this.model.onDidChangeCollapseState;const d=K.forEach(this.model.onDidSplice,u=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(u),this.selection.onDidModelSplice(u)})});if(d(()=>null,null,this.disposables),l.input=K.chain(K.any(d,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const u=new Set;for(const f of this.focus.getNodes())u.add(f);for(const f of this.selection.getNodes())u.add(f);return[...u.values()]}).event,o.keyboardSupport!==!1){const u=K.chain(this.view.onKeyDown).filter(f=>!Io(f.target)).map(f=>new He(f));u.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),u.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),u.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){const u=o.keyboardNavigationDelegate||O2;this.typeFilterController=new Q8(this,this.model,this.view,h,u),this.focusNavigationFilter=f=>this.typeFilterController.shouldAllowFocus(f),this.disposables.add(this.typeFilterController)}this.styleElement=xn(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ah.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return K.map(this.view.onMouseDblClick,gS)}get onPointer(){return K.map(this.view.onPointer,gS)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return K.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick=="undefined"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ah.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join(` +`),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(o=>this.model.getNode(o));this.selection.set(i,t);const n=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(o=>this.model.getNode(o));this.focus.set(i,t);const n=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setFocus(n,t,!0)}focusNext(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return t===-1?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){Me(this.disposables),this.view.dispose()}}class Lb{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new K8(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,o){return i.sorter.compare(n.element,o.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=he.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=he.empty(),i){const n=new Set,o=new Set,r=l=>{var c;if(l.element===null)return;const h=l;if(n.add(h.element),this.nodes.set(h.element,h),this.identityProvider){const d=this.identityProvider.getId(h.element).toString();o.add(d),this.nodesByIdentity.set(d,h)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,h)},a=l=>{var c;if(l.element===null)return;const h=l;if(n.has(h.element)||this.nodes.delete(h.element),this.identityProvider){const d=this.identityProvider.getId(h.element).toString();o.has(d)||this.nodesByIdentity.delete(d)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,h)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=he.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),he.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,o=typeof t.collapsed!="undefined"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:o,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ni(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function Yd(s){const e=[s.element],t=s.incompressible||!1;return{element:{elements:e,incompressible:t},children:he.map(he.from(s.children),Yd),collapsible:s.collapsible,collapsed:s.collapsed}}function Xd(s){const e=[s.element],t=s.incompressible||!1;let i,n;for(;[n,i]=he.consume(he.from(s.children),2),!(n.length!==1||n[0].incompressible);)s=n[0],e.push(s.element);return{element:{elements:e,incompressible:t},children:he.map(he.concat(n,i),Xd),collapsible:s.collapsible,collapsed:s.collapsed}}function c1(s,e=0){let t;return ec1(i,0)),e===0&&s.element.incompressible?{element:s.element.elements[e],children:t,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[e],children:t,collapsible:s.collapsible,collapsed:s.collapsed}}function mS(s){return c1(s,0)}function z2(s,e,t){return s.element===e?Object.assign(Object.assign({},s),{children:t}):Object.assign(Object.assign({},s),{children:he.map(he.from(s.children),i=>z2(i,e,t))})}const t3=s=>({getId(e){return e.elements.map(t=>s.getId(t).toString()).join("\0")}});class i3{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new Lb(e,t,i),this.enabled=typeof i.compressionEnabled=="undefined"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=he.empty(),i){const n=i.diffIdentityProvider&&t3(i.diffIdentityProvider);if(e===null){const f=he.map(t,this.enabled?Xd:Yd);this._setChildren(null,f,{diffIdentityProvider:n,diffDepth:1/0});return}const o=this.nodes.get(e);if(!o)throw new Error("Unknown compressed tree node");const r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),c=mS(r),h=z2(c,e,t),d=(this.enabled?Xd:Yd)(h),u=l.children.map(f=>f===r?d:f);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=he.map(i,mS),o=he.map(n,e?Xd:Yd);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,o=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:o,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e=="undefined")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ni(this.user,`Tree element not found: ${e}`);return t}}const n3=s=>s[s.length-1];class kb{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new kb(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function s3(s,e){return{splice(t,i,n){e.splice(t,i,n.map(o=>s.map(o)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function o3(s,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(s(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(s(t),i)}}})}class r3{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||n3;const n=o=>this.elementMapper(o.elements);this.nodeMapper=new vb(o=>new kb(n,o)),this.model=new i3(e,s3(this.nodeMapper,t),o3(n,i))}get onDidSplice(){return K.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return K.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return K.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=he.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t=="undefined"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var a3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class xb extends H2{constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=he.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new Lb(e,t,i)}}class U2{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);o.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}a3([rt],U2.prototype,"compressedTreeNodeProvider",null);function l3(s,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=s().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class $2 extends xb{constructor(e,t,i,n,o={}){const r=()=>this,a=n.map(l=>new U2(r,l));super(e,t,i,a,l3(r,o))}setChildren(e,t=he.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new r3(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var $s=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function zm(s){return Object.assign(Object.assign({},s),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function h1(s,e){return e.parent?e.parent===s?!0:h1(s,e.parent):!1}function c3(s,e){return s===e||h1(s,e)||h1(e,s)}class Ib{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new Ib(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class h3{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...g.treeItemLoading.classNamesArray),!0):(t.classList.remove(...g.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function pS(s){return{browserEvent:s.browserEvent,elements:s.elements.map(e=>e.element)}}function _S(s){return{browserEvent:s.browserEvent,element:s.element&&s.element.element,target:s.target}}class d3 extends Rh{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function Um(s){return s instanceof Rh?new d3(s):s}class u3{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Um(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(Um(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(Um(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function j2(s){return s&&Object.assign(Object.assign({},s),{collapseByDefault:!0,identityProvider:s.identityProvider&&{getId(e){return s.identityProvider.getId(e.element)}},dnd:s.dnd&&new u3(s.dnd),multipleSelectionController:s.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return s.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return s.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:s.accessibilityProvider&&Object.assign(Object.assign({},s.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:s.accessibilityProvider.getRole?e=>s.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:s.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=s.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return s.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return s.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:s.accessibilityProvider.getWidgetRole?()=>s.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:s.accessibilityProvider.getAriaLevel&&(e=>s.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:s.accessibilityProvider.getActiveDescendantId&&(e=>s.accessibilityProvider.getActiveDescendantId(e.element))}),filter:s.filter&&{filter(e,t){return s.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},s.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof s.expandOnlyOnTwistieClick=="undefined"?void 0:typeof s.expandOnlyOnTwistieClick!="function"?s.expandOnlyOnTwistieClick:e=>s.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:s.additionalScrollHeight})}function d1(s,e){e(s),s.children.forEach(t=>d1(t,e))}class K2{constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new M,this._onDidChangeNodeSlowState=new M,this.nodeMapper=new vb(a=>new Ib(a)),this.disposables=new se,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren=="undefined"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.root=zm({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return K.map(this.tree.onDidChangeFocus,pS)}get onDidChangeSelection(){return K.map(this.tree.onDidChangeSelection,pS)}get onMouseDblClick(){return K.map(this.tree.onMouseDblClick,_S)}get onPointer(){return K.map(this.tree.onPointer,_S)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,o){const r=new yb(i),a=n.map(c=>new h3(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=j2(o)||{};return new xb(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return $s(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,o){return $s(this,void 0,void 0,function*(){if(typeof this.root.element=="undefined")throw new Ni(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return $s(this,void 0,void 0,function*(){if(typeof this.root.element=="undefined")throw new Ni(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield K.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ni(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return $s(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return $s(this,void 0,void 0,function*(){let n;return this.subTreeRefreshPromises.forEach((o,r)=>{!n&&c3(r,e)&&(n=o.then(()=>this.refreshNode(e,t,i)))}),n||this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return $s(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(o=>n=o),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const o=yield this.doRefreshNode(e,t,i);e.stale=!1,yield Gp.settled(o.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return $s(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(he.empty());else{const o=this.doGetChildren(e);if(Kb(o))n=Promise.resolve(o);else{const r=Mc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=o.finally(()=>r.cancel())}}try{const o=yield n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ph(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return Kb(i)?this.processChildren(i):(t=Hy(()=>$s(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Ze))}setChildren(e,t,i,n){const o=[...t];if(e.children.length===0&&o.length===0)return[];const r=new Map,a=new Map;for(const h of e.children)if(r.set(h.element,h),this.identityProvider){const d=this.tree.isCollapsed(h);a.set(h.id,{node:h,collapsed:d})}const l=[],c=o.map(h=>{const d=!!this.dataSource.hasChildren(h);if(!this.identityProvider){const _=zm({element:h,parent:e,hasChildren:d});return d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(h).toString(),f=a.get(u);if(f){const _=f.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(h,_),_.element=h,_.hasChildren=d,i?f.collapsed?(_.children.forEach(b=>d1(b,w=>this.nodes.delete(w.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(_.collapsedByDefault=!1,l.push(_)),_}const m=zm({element:h,parent:e,id:u,hasChildren:d});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(m),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(m),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(m):d&&this.collapseByDefault&&!this.collapseByDefault(h)&&(m.collapsedByDefault=!1,l.push(m)),m});for(const h of r.values())d1(h,d=>this.nodes.delete(d.element));for(const h of c)this.nodes.set(h.element,h);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?he.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class Eb{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new Eb(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class f3{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...g.treeItemLoading.classNamesArray),!0):(t.classList.remove(...g.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Me(this.disposables)}}function g3(s){const e=s&&j2(s);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class m3 extends K2{constructor(e,t,i,n,o,r,a={}){super(e,t,i,o,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new vb(l=>new Eb(l)),this.filter=a.filter}createTree(e,t,i,n,o){const r=new yb(i),a=n.map(c=>new f3(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=g3(o)||{};return new $2(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const f=new Set;for(const m of u){const _=this.tree.getCompressedTreeNode(m===this.root?null:m);if(!!_.element)for(const b of _.element.elements)f.add(i(b.element))}return f},o=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let h=!1;const d=u=>{const f=u.element;if(f)for(let m=0;m{const i=this.filter.filter(t,1),n=p3(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function p3(s){return typeof s=="boolean"?s?1:0:Sb(s)?rh(s.visibility):rh(s)}class _3 extends H2{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new Lb(e,t,i)}}new G("isMac",me,p("isMac","Whether the operating system is macOS"));new G("isLinux",qt,p("isLinux","Whether the operating system is Linux"));new G("isWindows",li,p("isWindows","Whether the operating system is Windows"));new G("isWeb",fl,p("isWeb","Whether the platform is a web browser"));new G("isMacNative",me&&!fl,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new G("isIOS",pr,p("isIOS","Whether the operating system is iOS"));new G("isDevelopment",!1,!0);const q2="inputFocus";new G(q2,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var as=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},re=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const ls=pe("listService");let u1=class{constructor(e){this._themeService=e,this.disposables=new se,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new V2(xn(),"");this.disposables.add(ll(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),or(e.onDidFocus(()=>this.setLastFocusedList(e)),Pe(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};u1=as([re(0,ot)],u1);const G2=new G("listFocus",!0),ag=new G("listSupportsMultiselect",!0);Oe.and(G2,Oe.not(q2));const Db=new G("listHasSelectionOrFocus",!1),Nb=new G("listDoubleSelection",!1),Tb=new G("listMultiSelection",!1),lg=new G("listSelectionNavigation",!1),b3=new G("treeElementCanCollapse",!1),C3=new G("treeElementHasParent",!1),w3=new G("treeElementCanExpand",!1),v3=new G("treeElementHasChild",!1),Z2="listAutomaticKeyboardNavigation";function cg(s,e){const t=s.createScoped(e.getHTMLElement());return G2.bindTo(t),t}const Ur="workbench.list.multiSelectModifier",f1="workbench.list.openMode",Ai="workbench.list.horizontalScrolling",cf="workbench.list.keyboardNavigation",Mb="workbench.list.automaticKeyboardNavigation",ch="workbench.tree.indent",hf="workbench.tree.renderIndentGuides",En="workbench.list.smoothScrolling",is="workbench.list.mouseWheelScrollSensitivity",ns="workbench.list.fastScrollSensitivity",df="workbench.tree.expandMode";function ss(s){return s.getValue(Ur)==="alt"}class S3 extends W{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=ss(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Ur)&&(this.useAltAsMultipleSelectionModifier=ss(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:P2(e)}isSelectionRangeChangeEvent(e){return F2(e)}}function hg(s,e,t){var i;const n=new se;return[Object.assign(Object.assign({},s),{keyboardNavigationDelegate:{mightProducePrintableCharacter(r){return t.mightProducePrintableCharacter(r)}},smoothScrolling:Boolean(e.getValue(En)),mouseWheelScrollSensitivity:e.getValue(is),fastScrollSensitivity:e.getValue(ns),multipleSelectionController:(i=s.multipleSelectionController)!==null&&i!==void 0?i:n.add(new S3(e))}),n]}let g1=class extends Bs{constructor(e,t,i,n,o,r,a,l,c,h){const d=typeof o.horizontalScrolling!="undefined"?o.horizontalScrolling:Boolean(c.getValue(Ai)),[u,f]=hg(o,c,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(l.getColorTheme(),tg)),u),{horizontalScrolling:d})),this.disposables.add(f),this.contextKeyService=cg(r,this),this.themeService=l,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.listDoubleSelection=Nb.bindTo(this.contextKeyService),this.listMultiSelection=Tb.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ss(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(c));let b={};if(_.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const w=Boolean(c.getValue(Ai));b=Object.assign(Object.assign({},b),{horizontalScrolling:w})}if(_.affectsConfiguration(En)){const w=Boolean(c.getValue(En));b=Object.assign(Object.assign({},b),{smoothScrolling:w})}if(_.affectsConfiguration(is)){const w=c.getValue(is);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:w})}if(_.affectsConfiguration(ns)){const w=c.getValue(ns);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:w})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new Y2(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};g1=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li)],g1);let bS=class extends V8{constructor(e,t,i,n,o,r,a,l,c,h){const d=typeof o.horizontalScrolling!="undefined"?o.horizontalScrolling:Boolean(c.getValue(Ai)),[u,f]=hg(o,c,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(l.getColorTheme(),tg)),u),{horizontalScrolling:d})),this.disposables=new se,this.disposables.add(f),this.contextKeyService=cg(r,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=ss(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add(ll(this,l,o.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(c));let b={};if(_.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const w=Boolean(c.getValue(Ai));b=Object.assign(Object.assign({},b),{horizontalScrolling:w})}if(_.affectsConfiguration(En)){const w=Boolean(c.getValue(En));b=Object.assign(Object.assign({},b),{smoothScrolling:w})}if(_.affectsConfiguration(is)){const w=c.getValue(is);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:w})}if(_.affectsConfiguration(ns)){const w=c.getValue(ns);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:w})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new Y2(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};bS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li)],bS);let CS=class extends rg{constructor(e,t,i,n,o,r,a,l,c,h,d){const u=typeof r.horizontalScrolling!="undefined"?r.horizontalScrolling:Boolean(h.getValue(Ai)),[f,m]=hg(r,h,d);super(e,t,i,n,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},gn(c.getColorTheme(),tg)),f),{horizontalScrolling:u})),this.disposables.add(m),this.contextKeyService=cg(a,this),this.themeService=c,this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.listDoubleSelection=Nb.bindTo(this.contextKeyService),this.listMultiSelection=Tb.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ss(h),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),w=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||w.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),w=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||w.length>0)})),this.disposables.add(h.onDidChangeConfiguration(b=>{b.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(h));let w={};if(b.affectsConfiguration(Ai)&&this.horizontalScrolling===void 0){const C=Boolean(h.getValue(Ai));w=Object.assign(Object.assign({},w),{horizontalScrolling:C})}if(b.affectsConfiguration(En)){const C=Boolean(h.getValue(En));w=Object.assign(Object.assign({},w),{smoothScrolling:C})}if(b.affectsConfiguration(is)){const C=h.getValue(is);w=Object.assign(Object.assign({},w),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(ns)){const C=h.getValue(ns);w=Object.assign(Object.assign({},w),{fastScrollSensitivity:C})}Object.keys(w).length>0&&this.updateOptions(w)})),this.navigator=new y3(this,Object.assign({configurationService:h},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=ll(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};CS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li)],CS);class Rb extends W{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new M),this.onDidOpen=this._onDidOpen.event,this._register(K.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(f1))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(f1))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,o=!1;this._open(this.getSelectedElement(),i,n,o,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,o=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const o=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}_open(e,t,i,n,o){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Y2 extends Rb{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class y3 extends Rb{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class L3 extends Rb{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function k3(s,e){let t=!1;return i=>{if(i.toKeybinding().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,s);return n&&n.enterChord?(t=!0,!1):(t=!1,!0)}}let wS=class extends xb{constructor(e,t,i,n,o,r,a,l,c,h,d){const{options:u,getAutomaticKeyboardNavigation:f,disposable:m}=Oh(t,o,r,c,h,d);super(e,t,i,n,u),this.disposables.add(m),this.internals=new Er(this,o,f,o.overrideStyles,r,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};wS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li),re(10,Vi)],wS);let vS=class extends $2{constructor(e,t,i,n,o,r,a,l,c,h,d){const{options:u,getAutomaticKeyboardNavigation:f,disposable:m}=Oh(t,o,r,c,h,d);super(e,t,i,n,u),this.disposables.add(m),this.internals=new Er(this,o,f,o.overrideStyles,r,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};vS=as([re(5,Ne),re(6,ls),re(7,ot),re(8,Rt),re(9,Li),re(10,Vi)],vS);let SS=class extends _3{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const{options:f,getAutomaticKeyboardNavigation:m,disposable:_}=Oh(t,r,a,h,d,u);super(e,t,i,n,o,f),this.disposables.add(_),this.internals=new Er(this,r,m,r.overrideStyles,a,l,c,h,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};SS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li),re(11,Vi)],SS);let yS=class extends K2{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const{options:f,getAutomaticKeyboardNavigation:m,disposable:_}=Oh(t,r,a,h,d,u);super(e,t,i,n,o,f),this.disposables.add(_),this.internals=new Er(this,r,m,r.overrideStyles,a,l,c,h,u),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};yS=as([re(6,Ne),re(7,ls),re(8,ot),re(9,Rt),re(10,Li),re(11,Vi)],yS);let LS=class extends m3{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f){const{options:m,getAutomaticKeyboardNavigation:_,disposable:b}=Oh(t,a,l,d,u,f);super(e,t,i,n,o,r,m),this.disposables.add(b),this.internals=new Er(this,a,_,a.overrideStyles,l,c,h,d,f),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};LS=as([re(7,Ne),re(8,ls),re(9,ot),re(10,Rt),re(11,Li),re(12,Vi)],LS);function Oh(s,e,t,i,n,o){var r;const a=()=>{let m=Boolean(t.getContextKeyValue(Z2));return m&&(m=Boolean(i.getValue(Mb))),m},l=o.isScreenReaderOptimized(),c=e.simpleKeyboardNavigation||l?"simple":i.getValue(cf),h=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Ai)),[d,u]=hg(e,i,n),f=e.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:u,options:Object.assign(Object.assign({keyboardSupport:!1},d),{indent:typeof i.getValue(ch)=="number"?i.getValue(ch):void 0,renderIndentGuides:i.getValue(hf),smoothScrolling:Boolean(i.getValue(En)),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:c==="simple",filterOnType:c==="filter",horizontalScrolling:h,keyboardNavigationEventFilter:k3(s,n),additionalScrollHeight:f,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(r=e.expandOnlyOnTwistieClick)!==null&&r!==void 0?r:i.getValue(df)==="doubleClick"})}}let Er=class{constructor(e,t,i,n,o,r,a,l,c){this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=cg(o,e),this.listSupportsMultiSelect=ag.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),lg.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.hasSelectionOrFocus=Db.bindTo(this.contextKeyService),this.hasDoubleSelection=Nb.bindTo(this.contextKeyService),this.hasMultiSelection=Tb.bindTo(this.contextKeyService),this.treeElementCanCollapse=b3.bindTo(this.contextKeyService),this.treeElementHasParent=C3.bindTo(this.contextKeyService),this.treeElementCanExpand=w3.bindTo(this.contextKeyService),this.treeElementHasChild=v3.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ss(l);const d=new Set;d.add(Z2);const u=()=>{const _=c.isScreenReaderOptimized()?"simple":l.getValue(cf);e.updateOptions({simpleKeyboardNavigation:_==="simple",filterOnType:_==="filter"})};this.updateStyleOverrides(n);const f=()=>{const m=e.getFocus()[0];if(!m)return;const _=e.getNode(m);this.treeElementCanCollapse.set(_.collapsible&&!_.collapsed),this.treeElementHasParent.set(!!e.getParentElement(m)),this.treeElementCanExpand.set(_.collapsible&&_.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(m))};this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const m=e.getSelection(),_=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(m.length>0||_.length>0),this.hasMultiSelection.set(m.length>1),this.hasDoubleSelection.set(m.length===2)})}),e.onDidChangeFocus(()=>{const m=e.getSelection(),_=e.getFocus();this.hasSelectionOrFocus.set(m.length>0||_.length>0),f()}),e.onDidChangeCollapseState(f),e.onDidChangeModel(f),l.onDidChangeConfiguration(m=>{let _={};if(m.affectsConfiguration(Ur)&&(this._useAltAsMultipleSelectionModifier=ss(l)),m.affectsConfiguration(ch)){const b=l.getValue(ch);_=Object.assign(Object.assign({},_),{indent:b})}if(m.affectsConfiguration(hf)){const b=l.getValue(hf);_=Object.assign(Object.assign({},_),{renderIndentGuides:b})}if(m.affectsConfiguration(En)){const b=Boolean(l.getValue(En));_=Object.assign(Object.assign({},_),{smoothScrolling:b})}if(m.affectsConfiguration(cf)&&u(),m.affectsConfiguration(Mb)&&(_=Object.assign(Object.assign({},_),{automaticKeyboardNavigation:i()})),m.affectsConfiguration(Ai)&&t.horizontalScrolling===void 0){const b=Boolean(l.getValue(Ai));_=Object.assign(Object.assign({},_),{horizontalScrolling:b})}if(m.affectsConfiguration(df)&&t.expandOnlyOnTwistieClick===void 0&&(_=Object.assign(Object.assign({},_),{expandOnlyOnTwistieClick:l.getValue(df)==="doubleClick"})),m.affectsConfiguration(is)){const b=l.getValue(is);_=Object.assign(Object.assign({},_),{mouseWheelScrollSensitivity:b})}if(m.affectsConfiguration(ns)){const b=l.getValue(ns);_=Object.assign(Object.assign({},_),{fastScrollSensitivity:b})}Object.keys(_).length>0&&e.updateOptions(_)}),this.contextKeyService.onDidChangeContext(m=>{m.affectsSome(d)&&e.updateOptions({automaticKeyboardNavigation:i()})}),c.onDidChangeScreenReaderOptimized(()=>u())),this.navigator=new L3(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){Me(this.styler),this.styler=e?ll(this.tree,this.themeService,e):W.None}dispose(){this.disposables=Me(this.disposables),Me(this.styler),this.styler=void 0}};Er=as([re(4,Ne),re(5,ls),re(6,ot),re(7,Rt),re(8,Vi)],Er);const x3=xt.as(kl.Configuration);x3.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Ur]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[f1]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ai]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[ch]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[hf]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[En]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[is]:{type:"number",default:1,description:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[ns]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[cf]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[Mb]:{type:"boolean",default:!0,markdownDescription:p("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},[df]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var m1;(function(s){s[s.PRESERVE=0]="PRESERVE",s[s.LAST=1]="LAST"})(m1||(m1={}));const X2={Quickaccess:"workbench.contributions.quickaccess"};class I3{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Pe(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return ty([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}xt.add(X2.Quickaccess,new I3);const Q2=pe("quickInputService");var E3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},kS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let p1=class extends W{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=xt.as(X2.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let f;if(a&&l&&l!==r){const m=a.value.substr(l.prefix.length);m&&(f=`${r.prefix}${m}`)}if(!f){const m=o==null?void 0:o.defaultFilterValue;m===m1.LAST?f=this.lastAcceptedPickerValues.get(r):typeof m=="string"&&(f=`${r.prefix}${m}`)}typeof f=="string"&&(e=f)}const c=new se,h=c.add(this.quickInputService.createQuickPick());h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=r==null?void 0:r.placeholder,h.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(h.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:fn.SECOND),h.contextKey=r==null?void 0:r.contextKey,h.filterValue=f=>f.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(h.ariaLabel=r==null?void 0:r.placeholder);let d;t&&(d=new Uy,c.add(_r(h.onWillAccept)(f=>{f.veto(),h.hide()}))),c.add(this.registerPickerListeners(h,o,r,e));const u=c.add(new ml);if(o&&c.add(o.provide(h,u.token)),_r(h.onDidHide)(()=>{h.selectedItems.length===0&&u.cancel(),c.dispose(),d==null||d.complete(h.selectedItems.slice(0))}),h.show(),t)return d==null?void 0:d.p}adjustValueSelection(e,t,i){var n;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new se,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Pe(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};p1=E3([kS(0,Q2),kS(1,rn)],p1);var D3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$l=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let _1=class extends V4{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(p1))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,c,h,d)=>this.instantiationService.createInstance(g1,a,l,c,h,d),styles:this.computeStyles()},r=this._register(new og(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(n=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&n!==void 0?n:0),this._register(e.onDidLayout(a=>{var l,c;return r.layout(a,(c=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&c!==void 0?c:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new G(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ci.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},gn(this.theme,{quickInputBackground:YC,quickInputForeground:yT,quickInputTitleBackground:LT,contrastBorder:it,widgetShadow:Ya})),inputBox:gn(this.theme,{inputForeground:ML,inputBackground:TL,inputBorder:RL,inputValidationInfoBackground:AL,inputValidationInfoForeground:OL,inputValidationInfoBorder:PL,inputValidationWarningBackground:FL,inputValidationWarningForeground:BL,inputValidationWarningBorder:VL,inputValidationErrorBackground:WL,inputValidationErrorForeground:HL,inputValidationErrorBorder:zL}),countBadge:gn(this.theme,{badgeBackground:Fd,badgeForeground:Bd,badgeBorder:it}),button:gn(this.theme,{buttonForeground:fT,buttonBackground:__,buttonHoverBackground:gT,buttonBorder:it}),progressBar:gn(this.theme,{progressBarBackground:mT}),keybindingLabel:gn(this.theme,{keybindingLabelBackground:IT,keybindingLabelForeground:ET,keybindingLabelBorder:DT,keybindingLabelBottomBorder:NT,keybindingLabelShadow:Ya}),list:gn(this.theme,{listBackground:YC,listInactiveFocusForeground:c5,listInactiveSelectionIconForeground:h5,listInactiveFocusBackground:d5,listFocusOutline:yi,listInactiveFocusOutline:yi,pickerGroupBorder:xT,pickerGroupForeground:kT})}}};_1=D3([$l(0,rn),$l(1,Ne),$l(2,ot),$l(3,Vi),$l(4,Th)],_1);var J2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Yo=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let b1=class extends _1{constructor(e,t,i,n,o,r){super(t,i,n,o,new F_(e.getContainerDomNode(),r)),this.host=void 0;const a=hl.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};b1=J2([Yo(1,rn),Yo(2,Ne),Yo(3,ot),Yo(4,Vi),Yo(5,kt)],b1);let C1=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(b1,e);this.mapEditorToService.set(e,t),_r(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ci.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};C1=J2([Yo(0,rn),Yo(1,kt)],C1);class hl{constructor(e){this.editor=e,this.widget=new dg(this.editor)}static get(e){return e.getContribution(hl.ID)}dispose(){this.widget.dispose()}}hl.ID="editor.controller.quickInput";class dg{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return dg.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}dg.ID="editor.contrib.quickInputWidget";T0(hl.ID,hl);class N3{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}function T3(s){if(!s||!Array.isArray(s))return[];const e=[];let t=0;for(let i=0,n=s.length;i{const u=F3(h.token,d.token);return u!==0?u:h.index-d.index});let t=0,i="000000",n="ffffff";for(;s.length>=1&&s[0].token==="";){const h=s.shift();h.fontStyle!==-1&&(t=h.fontStyle),h.foreground!==null&&(i=h.foreground),h.background!==null&&(n=h.background)}const o=new A3;for(let h of e)o.getId(h);const r=o.getId(i),a=o.getId(n),l=new Ab(t,r,a),c=new Ob(l);for(let h=0,d=s.length;h>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const O3=/\b(comment|string|regex|regexp)\b/;function P3(s){const e=s.match(O3);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function F3(s,e){return se?1:0}class Ab{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}clone(){return new Ab(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}}class Ob{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const o=this._children.get(i);return typeof o!="undefined"?o.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const o=e.indexOf(".");let r,a;o===-1?(r=e,a=""):(r=e.substring(0,o),a=e.substring(o+1));let l=this._children.get(r);typeof l=="undefined"&&(l=new Ob(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function B3(s){const e=[];for(let t=1,i=s.length;te.fire()),s==null||s.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=s?s.getProductIconTheme():new tx,n={},o=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${$C(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(let a of t.getIcons()){const l=o(a);l&&r.push(l)}for(let a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",h=l.style?`font-style: ${l.style};`:"",d=l.src.map(u=>`${a_(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${d}; font-family: ${$C(a)};${c}${h} font-display: block; }`)}return r.join(` +`)}}}class tx{getIcon(e){const t=zk();let i=e.defaults;for(;St.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const sr="vs",uf="vs-dark",Ha="hc-black",ix=xt.as(NL.ColorContribution),U3=xt.as(wL.ThemingContribution);class nx{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(Qd(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,O.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=w1(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,O.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=ix.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case sr:return Gn.LIGHT;case Ha:return Gn.HIGH_CONTRAST;default:return Gn.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const o=w1(this.themeData.base);e=o.rules,o.encodedTokensColors&&(t=o.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const o={token:""};i&&(o.foreground=i),n&&(o.background=n),e.push(o)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=ex.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const o=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=pi.getForeground(o),a=pi.getFontStyle(o);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function Qd(s){return s===sr||s===uf||s===Ha}function w1(s){switch(s){case sr:return V3;case uf:return W3;case Ha:return H3}}function $m(s){const e=w1(s);return new nx(s,e)}class $3 extends W{constructor(){super(),this._onColorThemeChange=this._register(new M),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new M),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new tx,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(sr,$m(sr)),this._knownThemes.set(uf,$m(uf)),this._knownThemes.set(Ha,$m(Ha));const e=z3(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(sr),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),M4("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(e){return r_(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=xn(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),W.None}_registerShadowDomContainer(e){const t=xn(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(sr),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){const e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(Ha):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};U3.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of ix.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${hT(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` +`)} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(B3(o)),this._themeCSS=e.join(` `),this._updateCSS(),et.setColorMap(o),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const an=pe("themeService");var K3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let v1=class extends W{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new M,this._accessibilityModeEnabledContext=eT.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(n=>{n.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())})),i(),this.onDidChangeScreenReaderOptimized(()=>i())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};v1=K3([xS(0,Ne),xS(1,Rt)],v1);var sx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Jd=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let S1=class{constructor(e){this._commandService=e}createMenu(e,t,i){return new y1(e,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};S1=sx([Jd(0,Bi)],S1);let y1=class sa{constructor(e,t,i,n,o){this._id=e,this._options=t,this._commandService=i,this._contextKeyService=n,this._menuService=o,this._disposables=new se,this._menuGroups=[],this._contextKeys=new Set,this._build();const r=new Tt(()=>{this._build(),this._onDidChange.fire(this)},t.eventDebounceDelay);this._disposables.add(r),this._disposables.add(sc.onDidChangeMenu(c=>{c.has(e)&&r.schedule()}));const a=this._disposables.add(new se),l=()=>{const c=new Tt(()=>this._onDidChange.fire(this),t.eventDebounceDelay);a.add(c),a.add(n.onDidChangeContext(h=>{h.affectsSome(this._contextKeys)&&c.schedule()}))};this._onDidChange=new M({onFirstListenerAdd:l,onLastListenerRemove:a.clear.bind(a)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const e=sc.getMenuItems(this._id);let t;e.sort(sa._compareMenuItems);for(const i of e){const n=i.group||"";(!t||t[0]!==n)&&(t=[n,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(sa._fillInKbExprKeys(e.when,this._contextKeys),ql(e)){if(e.command.precondition&&sa._fillInKbExprKeys(e.command.precondition,this._contextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;sa._fillInKbExprKeys(t,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&sc.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(let i of this._menuGroups){const[n,o]=i,r=[];for(const a of o)if(this._contextKeyService.contextMatchesRules(a.when)){const l=ql(a)?new u_(a.command,a.alt,e,this._contextKeyService,this._commandService):new z4(a,this._menuService,this._contextKeyService,e);r.push(l)}r.length>0&&t.push([n,r])}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(e,t){let i=e.group,n=t.group;if(i!==n){if(i){if(!n)return-1}else return 1;if(i==="navigation")return-1;if(n==="navigation")return 1;let a=i.localeCompare(n);if(a!==0)return a}let o=e.order||0,r=t.order||0;return or?1:sa._compareTitles(ql(e)?e.command.title:e.title,ql(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,n=typeof t=="string"?t:t.original;return i.localeCompare(n)}};y1=sx([Jd(2,Bi),Jd(3,Ne),Jd(4,SL)],y1);var q3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},IS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},jl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let L1=class extends W{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",(Jn||c0)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const t=new Uy;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(i=>jl(this,void 0,void 0,function*(){(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)}))};this.layoutService.hasContainer&&(this._register(V(this.layoutService.container,"click",e)),this._register(V(this.layoutService.container,"keydown",e)))}writeText(e,t){return jl(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(o){console.error(o)}const i=document.activeElement,n=document.body.appendChild(J("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)})}readText(e){return jl(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}})}readFindText(){return jl(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return jl(this,void 0,void 0,function*(){this.findText=e})}};L1=q3([IS(0,Th),IS(1,Do)],L1);var G3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Z3=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const kc="data-keybinding-context";class Pb{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t=="undefined"&&this._parent?this._parent.getValue(e):t}}class dl extends Pb{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}dl.INSTANCE=new dl;class hh extends Pb{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Cc.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(n=>{if(n.source===6){const o=Array.from(he.map(this._values,([r])=>r));this._values.clear(),i.fire(new DS(o))}else{const o=[];for(const r of n.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(o.push(...he.map(l,([c])=>c)),this._values.deleteSuperstr(a)),this._values.has(a)&&(o.push(a),this._values.delete(a))}i.fire(new DS(o))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(hh._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(hh._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:Array.isArray(i)?n=JSON.stringify(i):n=i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}hh._keyPrefix="config.";class Y3{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class ES{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class DS{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class X3{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class ox{constructor(e){this._onDidChangeContext=new ru({merge:t=>new X3(t)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Y3(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Q3(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);!i||i.setValue(e,t)&&this._onDidChangeContext.fire(new ES(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new ES(e))}getContext(e){return this._isDisposed?dl.INSTANCE:this.getContextValuesContainer(J3(e))}}let k1=class extends ox{constructor(e){super(0),this._contexts=new Map,this._toDispose=new se,this._lastContextId=0;const t=new hh(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?dl.INSTANCE:this._contexts.get(e)||dl.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new Pb(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};k1=G3([Z3(0,Rt)],k1);class Q3 extends ox{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new ly,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(kc)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(kc,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(kc),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?dl.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function J3(s){for(;s;){if(s.hasAttribute(kc)){const e=s.getAttribute(kc);return e?parseInt(e,10):NaN}s=s.parentElement}return 0}Ht.registerCommand(F4,function(s,e,t){s.get(Ne).createKey(String(e),t)});Ht.registerCommand({id:"getContextKeyInfo",handler(){return[...G.all()].sort((s,e)=>s.key.localeCompare(e.key))},description:{description:p("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Ht.registerCommand("_generateContextKeyInfo",function(){const s=[],e=new Set;for(let t of G.all())e.has(t.key)||(e.add(t.key),s.push(t));s.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(s,void 0,2))});class e6{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class t6{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new e6(e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join(` +${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const an=pe("themeService");var j3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let v1=class extends W{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new M,this._accessibilityModeEnabledContext=J4.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(n=>{n.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())})),i(),this.onDidChangeScreenReaderOptimized(()=>i())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};v1=j3([xS(0,Ne),xS(1,Rt)],v1);var sx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Jd=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let S1=class{constructor(e){this._commandService=e}createMenu(e,t,i){return new y1(e,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};S1=sx([Jd(0,Bi)],S1);let y1=class sa{constructor(e,t,i,n,o){this._id=e,this._options=t,this._commandService=i,this._contextKeyService=n,this._menuService=o,this._disposables=new se,this._menuGroups=[],this._contextKeys=new Set,this._build();const r=new Tt(()=>{this._build(),this._onDidChange.fire(this)},t.eventDebounceDelay);this._disposables.add(r),this._disposables.add(sc.onDidChangeMenu(c=>{c.has(e)&&r.schedule()}));const a=this._disposables.add(new se),l=()=>{const c=new Tt(()=>this._onDidChange.fire(this),t.eventDebounceDelay);a.add(c),a.add(n.onDidChangeContext(h=>{h.affectsSome(this._contextKeys)&&c.schedule()}))};this._onDidChange=new M({onFirstListenerAdd:l,onLastListenerRemove:a.clear.bind(a)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const e=sc.getMenuItems(this._id);let t;e.sort(sa._compareMenuItems);for(const i of e){const n=i.group||"";(!t||t[0]!==n)&&(t=[n,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(sa._fillInKbExprKeys(e.when,this._contextKeys),ql(e)){if(e.command.precondition&&sa._fillInKbExprKeys(e.command.precondition,this._contextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;sa._fillInKbExprKeys(t,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&sc.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(let i of this._menuGroups){const[n,o]=i,r=[];for(const a of o)if(this._contextKeyService.contextMatchesRules(a.when)){const l=ql(a)?new u_(a.command,a.alt,e,this._contextKeyService,this._commandService):new H4(a,this._menuService,this._contextKeyService,e);r.push(l)}r.length>0&&t.push([n,r])}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(e,t){let i=e.group,n=t.group;if(i!==n){if(i){if(!n)return-1}else return 1;if(i==="navigation")return-1;if(n==="navigation")return 1;let a=i.localeCompare(n);if(a!==0)return a}let o=e.order||0,r=t.order||0;return or?1:sa._compareTitles(ql(e)?e.command.title:e.title,ql(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,n=typeof t=="string"?t:t.original;return i.localeCompare(n)}};y1=sx([Jd(2,Bi),Jd(3,Ne),Jd(4,SL)],y1);var K3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},IS=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},jl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let L1=class extends W{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",(Jn||c0)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const t=new Uy;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(i=>jl(this,void 0,void 0,function*(){(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)}))};this.layoutService.hasContainer&&(this._register(V(this.layoutService.container,"click",e)),this._register(V(this.layoutService.container,"keydown",e)))}writeText(e,t){return jl(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(o){console.error(o)}const i=document.activeElement,n=document.body.appendChild(J("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)})}readText(e){return jl(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}})}readFindText(){return jl(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return jl(this,void 0,void 0,function*(){this.findText=e})}};L1=K3([IS(0,Th),IS(1,Do)],L1);var q3=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},G3=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const kc="data-keybinding-context";class Pb{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t=="undefined"&&this._parent?this._parent.getValue(e):t}}class dl extends Pb{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}dl.INSTANCE=new dl;class hh extends Pb{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Cc.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(n=>{if(n.source===6){const o=Array.from(he.map(this._values,([r])=>r));this._values.clear(),i.fire(new DS(o))}else{const o=[];for(const r of n.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(o.push(...he.map(l,([c])=>c)),this._values.deleteSuperstr(a)),this._values.has(a)&&(o.push(a),this._values.delete(a))}i.fire(new DS(o))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(hh._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(hh._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:Array.isArray(i)?n=JSON.stringify(i):n=i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}hh._keyPrefix="config.";class Z3{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class ES{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class DS{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class Y3{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class ox{constructor(e){this._onDidChangeContext=new ru({merge:t=>new Y3(t)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Z3(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new X3(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);!i||i.setValue(e,t)&&this._onDidChangeContext.fire(new ES(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new ES(e))}getContext(e){return this._isDisposed?dl.INSTANCE:this.getContextValuesContainer(Q3(e))}}let k1=class extends ox{constructor(e){super(0),this._contexts=new Map,this._toDispose=new se,this._lastContextId=0;const t=new hh(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?dl.INSTANCE:this._contexts.get(e)||dl.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new Pb(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};k1=q3([G3(0,Rt)],k1);class X3 extends ox{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new ly,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(kc)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(kc,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(kc),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?dl.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function Q3(s){for(;s;){if(s.hasAttribute(kc)){const e=s.getAttribute(kc);return e?parseInt(e,10):NaN}s=s.parentElement}return 0}Ht.registerCommand(P4,function(s,e,t){s.get(Ne).createKey(String(e),t)});Ht.registerCommand({id:"getContextKeyInfo",handler(){return[...G.all()].sort((s,e)=>s.key.localeCompare(e.key))},description:{description:p("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Ht.registerCommand("_generateContextKeyInfo",function(){const s=[],e=new Set;for(let t of G.all())e.has(t.key)||(e.add(t.key),s.push(t));s.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(s,void 0,2))});class J3{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class e6{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new J3(e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join(` `)}findCycleSlow(){for(let[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(let[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const o=this._findCycle(n,t);if(o)return o;t.delete(i)}}}class NS extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=(t=e.findCycleSlow())!==null&&t!==void 0?t:`UNABLE to detect cycle, dumping graph: -${e.toString()}`}}class Fb{constructor(e=new Zf,t=!1,i){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=i,this._services.set(rn,this)}createChild(e){return new Fb(e,this._strict,this)}invokeFunction(e,...t){let i=Yi.traceInvocation(e),n=!1;try{return e({get:r=>{if(n)throw sE("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(r,i);if(!a)throw new Error(`[invokeFunction] unknown service '${r}'`);return a}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof Wn?(i=Yi.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Yi.traceCreation(e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){let n=Cn.getServiceDependencies(e).sort((a,l)=>a.index-l.index),o=[];for(const a of n){let l=this._getOrCreateServiceInstance(a.id,i);l||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`,!1),o.push(l)}let r=n.length>0?n[0].index:t.length;if(t.length!==r){console.warn(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);let a=r-t.length;a>0?t=t.concat(new Array(a)):t=t.slice(0,r)}return new e(...t,...o)}_setServiceInstance(e,t){if(this._services.get(e)instanceof Wn)this._services.set(e,t);else if(this._parent)this._parent._setServiceInstance(e,t);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let i=this._getServiceInstanceOrDescriptor(e);return i instanceof Wn?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const n=new t6(a=>a.id.toString());let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const a=r.pop();if(n.lookupOrInsertNode(a),o++>1e3)throw new NS(n);for(let l of Cn.getServiceDependencies(a.desc.ctor)){let c=this._getServiceInstanceOrDescriptor(l.id);if(c||this._throwIfStrict(`[createInstance] ${e} depends on ${l.id} which is NOT registered.`,!0),c instanceof Wn){const h={id:l.id,desc:c,_trace:a._trace.branch(l.id,!0)};n.insertEdge(a,h),r.push(h)}}}for(;;){const a=n.roots();if(a.length===0){if(!n.isEmpty())throw new NS(n);break}for(const{data:l}of a){if(this._getServiceInstanceOrDescriptor(l.id)instanceof Wn){const h=this._createServiceInstanceWithOwner(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this._setServiceInstance(l.id,h)}n.removeNode(l)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof Wn)return this._createServiceInstance(t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t=[],i,n){if(i){const o=new kf(()=>this._createInstance(e,t,n));return new Proxy(Object.create(null),{get(r,a){if(a in r)return r[a];let l=o.value,c=l[a];return typeof c!="function"||(c=c.bind(l),r[a]=c),c},set(r,a,l){return o.value[a]=l,!0}})}else return this._createInstance(e,t,n)}_throwIfStrict(e,t){if(t&&console.warn(t),this._strict)throw new Error(e)}}class Yi{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return Yi._None}static traceCreation(e){return Yi._None}branch(e,t){let i=new Yi(2,e.toString());return this._dep.push([e,t,i]),i}stop(){let e=Date.now()-this._start;Yi._totals+=e;let t=!1;function i(o,r){let a=[],l=new Array(o+1).join(" ");for(const[c,h,d]of r._dep)if(h&&d){t=!0,a.push(`${l}CREATES -> ${c}`);let u=i(o+1,d);u&&a.push(u)}else a.push(`${l}uses -> ${c}`);return a.join(` +${e.toString()}`}}class Fb{constructor(e=new Zf,t=!1,i){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=i,this._services.set(rn,this)}createChild(e){return new Fb(e,this._strict,this)}invokeFunction(e,...t){let i=Yi.traceInvocation(e),n=!1;try{return e({get:r=>{if(n)throw sE("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(r,i);if(!a)throw new Error(`[invokeFunction] unknown service '${r}'`);return a}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof Wn?(i=Yi.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Yi.traceCreation(e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){let n=Cn.getServiceDependencies(e).sort((a,l)=>a.index-l.index),o=[];for(const a of n){let l=this._getOrCreateServiceInstance(a.id,i);l||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`,!1),o.push(l)}let r=n.length>0?n[0].index:t.length;if(t.length!==r){console.warn(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);let a=r-t.length;a>0?t=t.concat(new Array(a)):t=t.slice(0,r)}return new e(...t,...o)}_setServiceInstance(e,t){if(this._services.get(e)instanceof Wn)this._services.set(e,t);else if(this._parent)this._parent._setServiceInstance(e,t);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let i=this._getServiceInstanceOrDescriptor(e);return i instanceof Wn?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const n=new e6(a=>a.id.toString());let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const a=r.pop();if(n.lookupOrInsertNode(a),o++>1e3)throw new NS(n);for(let l of Cn.getServiceDependencies(a.desc.ctor)){let c=this._getServiceInstanceOrDescriptor(l.id);if(c||this._throwIfStrict(`[createInstance] ${e} depends on ${l.id} which is NOT registered.`,!0),c instanceof Wn){const h={id:l.id,desc:c,_trace:a._trace.branch(l.id,!0)};n.insertEdge(a,h),r.push(h)}}}for(;;){const a=n.roots();if(a.length===0){if(!n.isEmpty())throw new NS(n);break}for(const{data:l}of a){if(this._getServiceInstanceOrDescriptor(l.id)instanceof Wn){const h=this._createServiceInstanceWithOwner(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this._setServiceInstance(l.id,h)}n.removeNode(l)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof Wn)return this._createServiceInstance(t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t=[],i,n){if(i){const o=new kf(()=>this._createInstance(e,t,n));return new Proxy(Object.create(null),{get(r,a){if(a in r)return r[a];let l=o.value,c=l[a];return typeof c!="function"||(c=c.bind(l),r[a]=c),c},set(r,a,l){return o.value[a]=l,!0}})}else return this._createInstance(e,t,n)}_throwIfStrict(e,t){if(t&&console.warn(t),this._strict)throw new Error(e)}}class Yi{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return Yi._None}static traceCreation(e){return Yi._None}branch(e,t){let i=new Yi(2,e.toString());return this._dep.push([e,t,i]),i}stop(){let e=Date.now()-this._start;Yi._totals+=e;let t=!1;function i(o,r){let a=[],l=new Array(o+1).join(" ");for(const[c,h,d]of r._dep)if(h&&d){t=!0,a.push(`${l}CREATES -> ${c}`);let u=i(o+1,d);u&&a.push(u)}else a.push(`${l}uses -> ${c}`);return a.join(` `)}let n=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Yi._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(n.join(` -`))}}Yi._None=new class extends Yi{constructor(){super(-1,null)}stop(){}branch(){return this}};Yi._totals=0;class i6{constructor(){this._byResource=new ti,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new ti,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){let i=this._byResource.get(e);return i==null?void 0:i.get(t)}delete(e,t){let i=!1,n=!1,o=this._byResource.get(e);o&&(i=o.delete(t));let r=this._byOwner.get(t);if(r&&(n=r.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return typeof e=="string"?(i=(t=this._byOwner.get(e))===null||t===void 0?void 0:t.values())!==null&&i!==void 0?i:he.empty():we.isUri(e)?(o=(n=this._byResource.get(e))===null||n===void 0?void 0:n.values())!==null&&o!==void 0?o:he.empty():he.map(he.concat(...this._byOwner.values()),r=>r[1])}}class n6{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new ti,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const i=this._data.get(t);i&&this._substract(i);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Ce.inMemory||e.scheme===Ce.walkThrough||e.scheme===Ce.walkThroughSnippet)return t;for(const{severity:i}of this._service.read({resource:e}))i===Di.Error?t.errors+=1:i===Di.Warning?t.warnings+=1:i===Di.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class Xo{constructor(){this._onMarkerChanged=new uE({delay:0,merge:Xo._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new i6,this._stats=new n6(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(oI(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const r=Xo._toMarker(e,t,o);r&&n.push(r)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:h,endColumn:d,relatedInformation:u,tags:f}=i;if(!!r)return l=l>0?l:1,c=c>0?c:1,h=h>=l?h:l,d=d>0?d:c,{resource:t,owner:e,code:n,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:h,endColumn:d,relatedInformation:u,tags:f}}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const r=this._data.get(i,t);if(r){const a=[];for(const l of r)if(Xo._accept(l,n)){const c=a.push(l);if(o>0&&c===o)break}return a}else return[]}else if(!t&&!i){const r=[];for(let a of this._data.values())for(let l of a)if(Xo._accept(l,n)){const c=r.push(l);if(o>0&&c===o)return r}return r}else{const r=this._data.values(i!=null?i:t),a=[];for(const l of r)for(const c of l)if(Xo._accept(c,n)){const h=a.push(c);if(o>0&&h===o)return a}return a}}static _accept(e,t){return t===void 0||(t&e.severity)===e.severity}static _merge(e){const t=new ti;for(let i of e)for(let n of i)t.set(n,!0);return Array.from(t.keys())}}var Xl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},wa;(function(s){s[s.None=0]="None",s[s.Initialized=1]="Initialized",s[s.Closed=2]="Closed"})(wa||(wa={}));class dh extends W{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new M),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=wa.None,this.cache=new Map,this.flushDelayer=new KD(dh.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;(t=e.changed)===null||t===void 0||t.forEach((n,o)=>this.accept(o,n)),(i=e.deleted)===null||i===void 0||i.forEach(n=>this.accept(n,void 0))}accept(e,t){if(this.state===wa.Closed)return;let i=!1;Gi(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return Gi(i)?t:i}getBoolean(e,t){const i=this.get(e);return Gi(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return Gi(i)?t:parseInt(i,10)}set(e,t){return Xl(this,void 0,void 0,function*(){if(this.state===wa.Closed)return;if(Gi(t))return this.delete(e);const i=String(t);if(this.cache.get(e)!==i)return this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}delete(e){return Xl(this,void 0,void 0,function*(){if(!(this.state===wa.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return Xl(this,void 0,void 0,function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(e){return Xl(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),e)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}dh.DEFAULT_FLUSH_DELAY=100;class TS{constructor(){this.onDidChangeItemsExternal=K.None,this.items=new Map}updateItems(e){return Xl(this,void 0,void 0,function*(){e.insert&&e.insert.forEach((t,i)=>this.items.set(i,t)),e.delete&&e.delete.forEach(t=>this.items.delete(t))})}}const vd="__$__targetStorageMarker",Bb=pe("storageService");var MS;(function(s){s[s.NONE=0]="NONE",s[s.SHUTDOWN=1]="SHUTDOWN"})(MS||(MS={}));class ug extends W{constructor(e={flushInterval:ug.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new ru),this._onDidChangeTarget=this._register(new ru),this._onWillSaveState=this._register(new M),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===vd?(e===0?this._globalKeyTargets=void 0:e===1&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getNumber(e,i)}store(e,t,i,n){if(Gi(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var o;this.updateKeyTarget(e,i,n),(o=this.getStorage(i))===null||o===void 0||o.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),(i=this.getStorage(t))===null||i===void 0||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,o;const r=this.getKeyTargets(t);typeof i=="number"?r[e]!==i&&(r[e]=i,(n=this.getStorage(t))===null||n===void 0||n.set(vd,JSON.stringify(r))):typeof r[e]=="number"&&(delete r[e],(o=this.getStorage(t))===null||o===void 0||o.set(vd,JSON.stringify(r)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return e===0?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(vd,e);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}ug.DEFAULT_FLUSH_INTERVAL=60*1e3;class s6 extends ug{constructor(){super(),this.globalStorage=this._register(new dh(new TS)),this.workspaceStorage=this._register(new dh(new TS)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return e===0?this.globalStorage:this.workspaceStorage}}function rx(s,e,t,i,n){if(Array.isArray(s)){let o=0;for(const r of s){const a=rx(r,e,t,i,n);if(a===10)return a;a>o&&(o=a)}return o}else{if(typeof s=="string")return i?s==="*"?5:s===t?10:0:0;if(s){const{language:o,pattern:r,scheme:a,hasAccessToAllModels:l,notebookType:c}=s;if(!i&&!l)return 0;let h=0;if(a)if(a===e.scheme)h=10;else if(a==="*")h=5;else return 0;if(o)if(o===t)h=10;else if(o==="*")h=Math.max(h,5);else return 0;if(c)if(c===n)h=10;else if(c==="*")h=Math.max(h,5);else return 0;if(r){let d;if(typeof r=="string"?d=r:d=Object.assign(Object.assign({},r),{base:fy(r.base)}),d===e.fsPath||PO(d,e.fsPath))h=10;else return 0}return h}else return 0}}function ax(s){return typeof s=="string"?!1:Array.isArray(s)?s.every(ax):!!s.exclusive}class Ue{constructor(e){this._notebookTypeResolver=e,this._clock=0,this._entries=[],this._onDidChange=new M,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Pe(()=>{if(i){const n=this._entries.indexOf(i);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,i=>t.push(i.provider)),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,o=>{i&&n===o._score?i.push(o.provider):(n=o._score,i=[o.provider],t.push(i))}),t}_orderedForEach(e,t){if(!!e){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}}_updateScores(e){var t;const i=(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e.uri),n={uri:e.uri.toString(),language:e.getLanguageId(),notebookType:i};if(!(this._lastCandidate&&this._lastCandidate.language===n.language&&this._lastCandidate.uri===n.uri&&this._lastCandidate.notebookType===n.notebookType)){this._lastCandidate=n;for(let o of this._entries)if(o._score=rx(o.selector,e.uri,e.getLanguageId(),pD(e),i),ax(o.selector)&&o._score>0){for(let r of this._entries)r._score=0;o._score=1e3;break}this._entries.sort(Ue._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}class o6{constructor(){this.referenceProvider=new Ue(this._score.bind(this)),this.renameProvider=new Ue(this._score.bind(this)),this.codeActionProvider=new Ue(this._score.bind(this)),this.definitionProvider=new Ue(this._score.bind(this)),this.typeDefinitionProvider=new Ue(this._score.bind(this)),this.declarationProvider=new Ue(this._score.bind(this)),this.implementationProvider=new Ue(this._score.bind(this)),this.documentSymbolProvider=new Ue(this._score.bind(this)),this.inlayHintsProvider=new Ue(this._score.bind(this)),this.colorProvider=new Ue(this._score.bind(this)),this.codeLensProvider=new Ue(this._score.bind(this)),this.documentFormattingEditProvider=new Ue(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Ue(this._score.bind(this)),this.onTypeFormattingEditProvider=new Ue(this._score.bind(this)),this.signatureHelpProvider=new Ue(this._score.bind(this)),this.hoverProvider=new Ue(this._score.bind(this)),this.documentHighlightProvider=new Ue(this._score.bind(this)),this.selectionRangeProvider=new Ue(this._score.bind(this)),this.foldingRangeProvider=new Ue(this._score.bind(this)),this.linkProvider=new Ue(this._score.bind(this)),this.inlineCompletionsProvider=new Ue(this._score.bind(this)),this.completionProvider=new Ue(this._score.bind(this)),this.linkedEditingRangeProvider=new Ue(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Ue(this._score.bind(this)),this.documentSemanticTokensProvider=new Ue(this._score.bind(this))}_score(e){var t;return(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e)}}ve(be,o6,!0);var To=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vt=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},lx=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class r6{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new M}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let x1=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new cE(new r6(t))):Promise.reject(new Error("Model not found"))}};x1=To([Vt(0,At)],x1);class fg{show(){return fg.NULL_PROGRESS_RUNNER}showWhile(e,t){return lx(this,void 0,void 0,function*(){yield e})}}fg.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class a6{confirm(e){return this.doConfirm(e).then(t=>({confirmed:t,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+` +`))}}Yi._None=new class extends Yi{constructor(){super(-1,null)}stop(){}branch(){return this}};Yi._totals=0;class t6{constructor(){this._byResource=new ti,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new ti,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){let i=this._byResource.get(e);return i==null?void 0:i.get(t)}delete(e,t){let i=!1,n=!1,o=this._byResource.get(e);o&&(i=o.delete(t));let r=this._byOwner.get(t);if(r&&(n=r.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return typeof e=="string"?(i=(t=this._byOwner.get(e))===null||t===void 0?void 0:t.values())!==null&&i!==void 0?i:he.empty():we.isUri(e)?(o=(n=this._byResource.get(e))===null||n===void 0?void 0:n.values())!==null&&o!==void 0?o:he.empty():he.map(he.concat(...this._byOwner.values()),r=>r[1])}}class i6{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new ti,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const i=this._data.get(t);i&&this._substract(i);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Ce.inMemory||e.scheme===Ce.walkThrough||e.scheme===Ce.walkThroughSnippet)return t;for(const{severity:i}of this._service.read({resource:e}))i===Di.Error?t.errors+=1:i===Di.Warning?t.warnings+=1:i===Di.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class Xo{constructor(){this._onMarkerChanged=new uE({delay:0,merge:Xo._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new t6,this._stats=new i6(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(oI(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const r=Xo._toMarker(e,t,o);r&&n.push(r)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:h,endColumn:d,relatedInformation:u,tags:f}=i;if(!!r)return l=l>0?l:1,c=c>0?c:1,h=h>=l?h:l,d=d>0?d:c,{resource:t,owner:e,code:n,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:h,endColumn:d,relatedInformation:u,tags:f}}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const r=this._data.get(i,t);if(r){const a=[];for(const l of r)if(Xo._accept(l,n)){const c=a.push(l);if(o>0&&c===o)break}return a}else return[]}else if(!t&&!i){const r=[];for(let a of this._data.values())for(let l of a)if(Xo._accept(l,n)){const c=r.push(l);if(o>0&&c===o)return r}return r}else{const r=this._data.values(i!=null?i:t),a=[];for(const l of r)for(const c of l)if(Xo._accept(c,n)){const h=a.push(c);if(o>0&&h===o)return a}return a}}static _accept(e,t){return t===void 0||(t&e.severity)===e.severity}static _merge(e){const t=new ti;for(let i of e)for(let n of i)t.set(n,!0);return Array.from(t.keys())}}var Xl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},wa;(function(s){s[s.None=0]="None",s[s.Initialized=1]="Initialized",s[s.Closed=2]="Closed"})(wa||(wa={}));class dh extends W{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new M),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=wa.None,this.cache=new Map,this.flushDelayer=new jD(dh.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;(t=e.changed)===null||t===void 0||t.forEach((n,o)=>this.accept(o,n)),(i=e.deleted)===null||i===void 0||i.forEach(n=>this.accept(n,void 0))}accept(e,t){if(this.state===wa.Closed)return;let i=!1;Gi(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return Gi(i)?t:i}getBoolean(e,t){const i=this.get(e);return Gi(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return Gi(i)?t:parseInt(i,10)}set(e,t){return Xl(this,void 0,void 0,function*(){if(this.state===wa.Closed)return;if(Gi(t))return this.delete(e);const i=String(t);if(this.cache.get(e)!==i)return this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}delete(e){return Xl(this,void 0,void 0,function*(){if(!(this.state===wa.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return Xl(this,void 0,void 0,function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(e){return Xl(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),e)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}dh.DEFAULT_FLUSH_DELAY=100;class TS{constructor(){this.onDidChangeItemsExternal=K.None,this.items=new Map}updateItems(e){return Xl(this,void 0,void 0,function*(){e.insert&&e.insert.forEach((t,i)=>this.items.set(i,t)),e.delete&&e.delete.forEach(t=>this.items.delete(t))})}}const vd="__$__targetStorageMarker",Bb=pe("storageService");var MS;(function(s){s[s.NONE=0]="NONE",s[s.SHUTDOWN=1]="SHUTDOWN"})(MS||(MS={}));class ug extends W{constructor(e={flushInterval:ug.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new ru),this._onDidChangeTarget=this._register(new ru),this._onWillSaveState=this._register(new M),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===vd?(e===0?this._globalKeyTargets=void 0:e===1&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getNumber(e,i)}store(e,t,i,n){if(Gi(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var o;this.updateKeyTarget(e,i,n),(o=this.getStorage(i))===null||o===void 0||o.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),(i=this.getStorage(t))===null||i===void 0||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,o;const r=this.getKeyTargets(t);typeof i=="number"?r[e]!==i&&(r[e]=i,(n=this.getStorage(t))===null||n===void 0||n.set(vd,JSON.stringify(r))):typeof r[e]=="number"&&(delete r[e],(o=this.getStorage(t))===null||o===void 0||o.set(vd,JSON.stringify(r)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return e===0?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(vd,e);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}ug.DEFAULT_FLUSH_INTERVAL=60*1e3;class n6 extends ug{constructor(){super(),this.globalStorage=this._register(new dh(new TS)),this.workspaceStorage=this._register(new dh(new TS)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return e===0?this.globalStorage:this.workspaceStorage}}function rx(s,e,t,i,n){if(Array.isArray(s)){let o=0;for(const r of s){const a=rx(r,e,t,i,n);if(a===10)return a;a>o&&(o=a)}return o}else{if(typeof s=="string")return i?s==="*"?5:s===t?10:0:0;if(s){const{language:o,pattern:r,scheme:a,hasAccessToAllModels:l,notebookType:c}=s;if(!i&&!l)return 0;let h=0;if(a)if(a===e.scheme)h=10;else if(a==="*")h=5;else return 0;if(o)if(o===t)h=10;else if(o==="*")h=Math.max(h,5);else return 0;if(c)if(c===n)h=10;else if(c==="*")h=Math.max(h,5);else return 0;if(r){let d;if(typeof r=="string"?d=r:d=Object.assign(Object.assign({},r),{base:fy(r.base)}),d===e.fsPath||OO(d,e.fsPath))h=10;else return 0}return h}else return 0}}function ax(s){return typeof s=="string"?!1:Array.isArray(s)?s.every(ax):!!s.exclusive}class Ue{constructor(e){this._notebookTypeResolver=e,this._clock=0,this._entries=[],this._onDidChange=new M,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Pe(()=>{if(i){const n=this._entries.indexOf(i);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,i=>t.push(i.provider)),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,o=>{i&&n===o._score?i.push(o.provider):(n=o._score,i=[o.provider],t.push(i))}),t}_orderedForEach(e,t){if(!!e){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}}_updateScores(e){var t;const i=(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e.uri),n={uri:e.uri.toString(),language:e.getLanguageId(),notebookType:i};if(!(this._lastCandidate&&this._lastCandidate.language===n.language&&this._lastCandidate.uri===n.uri&&this._lastCandidate.notebookType===n.notebookType)){this._lastCandidate=n;for(let o of this._entries)if(o._score=rx(o.selector,e.uri,e.getLanguageId(),mD(e),i),ax(o.selector)&&o._score>0){for(let r of this._entries)r._score=0;o._score=1e3;break}this._entries.sort(Ue._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}class s6{constructor(){this.referenceProvider=new Ue(this._score.bind(this)),this.renameProvider=new Ue(this._score.bind(this)),this.codeActionProvider=new Ue(this._score.bind(this)),this.definitionProvider=new Ue(this._score.bind(this)),this.typeDefinitionProvider=new Ue(this._score.bind(this)),this.declarationProvider=new Ue(this._score.bind(this)),this.implementationProvider=new Ue(this._score.bind(this)),this.documentSymbolProvider=new Ue(this._score.bind(this)),this.inlayHintsProvider=new Ue(this._score.bind(this)),this.colorProvider=new Ue(this._score.bind(this)),this.codeLensProvider=new Ue(this._score.bind(this)),this.documentFormattingEditProvider=new Ue(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Ue(this._score.bind(this)),this.onTypeFormattingEditProvider=new Ue(this._score.bind(this)),this.signatureHelpProvider=new Ue(this._score.bind(this)),this.hoverProvider=new Ue(this._score.bind(this)),this.documentHighlightProvider=new Ue(this._score.bind(this)),this.selectionRangeProvider=new Ue(this._score.bind(this)),this.foldingRangeProvider=new Ue(this._score.bind(this)),this.linkProvider=new Ue(this._score.bind(this)),this.inlineCompletionsProvider=new Ue(this._score.bind(this)),this.completionProvider=new Ue(this._score.bind(this)),this.linkedEditingRangeProvider=new Ue(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Ue(this._score.bind(this)),this.documentSemanticTokensProvider=new Ue(this._score.bind(this))}_score(e){var t;return(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e)}}ve(be,s6,!0);var To=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vt=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},lx=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class o6{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new M}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let x1=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new cE(new o6(t))):Promise.reject(new Error("Model not found"))}};x1=To([Vt(0,At)],x1);class fg{show(){return fg.NULL_PROGRESS_RUNNER}showWhile(e,t){return lx(this,void 0,void 0,function*(){yield e})}}fg.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class r6{confirm(e){return this.doConfirm(e).then(t=>({confirmed:t,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+` -`+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class gg{info(e){return this.notify({severity:at.Info,message:e})}warn(e){return this.notify({severity:at.Warning,message:e})}error(e){return this.notify({severity:at.Error,message:e})}notify(e){switch(e.severity){case at.Error:console.error(e.message);break;case at.Warning:console.warn(e.message);break;default:console.log(e.message);break}return gg.NO_OP}status(e,t){return W.None}}gg.NO_OP=new q7;let I1=class{constructor(e){this._onWillExecuteCommand=new M,this._onDidExecuteCommand=new M,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Ht.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};I1=To([Vt(0,rn)],I1);let ff=class extends fO{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=f=>{const m=new se;m.add(V(f,Y.KEY_DOWN,_=>{const b=new He(_);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),m.add(V(f,Y.KEY_UP,_=>{const b=new He(_);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new l6(f,m))},l=f=>{for(let m=0;m{f.getOption(54)||a(f.getContainerDomNode())},h=f=>{f.getOption(54)||l(f.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(h)),r.listCodeEditors().forEach(c);const d=f=>{a(f.getContainerDomNode())},u=f=>{l(f.getContainerDomNode())};this._register(r.onDiffEditorAdd(d)),this._register(r.onDiffEditorRemove(u)),r.listDiffEditors().forEach(d)}addDynamicKeybinding(e,t,i,n){const o=i_(t,qi),r=new se;return o&&(this._dynamicKeybindings.push({keybinding:o.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),r.add(Pe(()=>{for(let a=0;athis._log(i))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const r=o.when||void 0,a=o.keybinding;if(!a)i[n++]=new Lv(void 0,o.command,o.commandArgs,r,t,null,!1);else{const l=eh.resolveUserBinding(a,qi);for(const c of l)i[n++]=new Lv(c,o.command,o.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new Oc(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new eh(t,qi)}};ff=To([Vt(0,Ne),Vt(1,Bi),Vt(2,Lh),Vt(3,Dn),Vt(4,Do),Vt(5,kt)],ff);class l6 extends W{constructor(e,t){super(),this.domNode=e,this._register(t)}}function RS(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof we)}class cx{constructor(){this._onDidChangeConfiguration=new M,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Qf(new hO,new xi)}getValue(e,t){const i=typeof e=="string"?e:void 0,n=RS(e)?e:RS(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[o,r]=n;this.getValue(o)!==r&&(this._configuration.updateValue(o,r),i.push(o))}if(i.length>0){const n=new dO({keys:i,overrides:[]},t,this._configuration);n.source=7,n.sourceConfig=null,this._onDidChangeConfiguration.fire(n)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let E1=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new M,this.configurationService.onDidChangeConfiguration(t=>{this._onDidChangeConfiguration.fire({affectedKeys:t.affectedKeys,affectsConfiguration:(i,n)=>t.affectsConfiguration(n)})})}getValue(e,t,i){const o=(A.isIPosition(t)?t:null)?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0;return typeof o=="undefined"?this.configurationService.getValue():this.configurationService.getValue(o)}};E1=To([Vt(0,Rt)],E1);let D1=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:qt||me?` +`+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class gg{info(e){return this.notify({severity:at.Info,message:e})}warn(e){return this.notify({severity:at.Warning,message:e})}error(e){return this.notify({severity:at.Error,message:e})}notify(e){switch(e.severity){case at.Error:console.error(e.message);break;case at.Warning:console.warn(e.message);break;default:console.log(e.message);break}return gg.NO_OP}status(e,t){return W.None}}gg.NO_OP=new K7;let I1=class{constructor(e){this._onWillExecuteCommand=new M,this._onDidExecuteCommand=new M,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Ht.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};I1=To([Vt(0,rn)],I1);let ff=class extends uO{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=f=>{const m=new se;m.add(V(f,Y.KEY_DOWN,_=>{const b=new He(_);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),m.add(V(f,Y.KEY_UP,_=>{const b=new He(_);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new a6(f,m))},l=f=>{for(let m=0;m{f.getOption(54)||a(f.getContainerDomNode())},h=f=>{f.getOption(54)||l(f.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(h)),r.listCodeEditors().forEach(c);const d=f=>{a(f.getContainerDomNode())},u=f=>{l(f.getContainerDomNode())};this._register(r.onDiffEditorAdd(d)),this._register(r.onDiffEditorRemove(u)),r.listDiffEditors().forEach(d)}addDynamicKeybinding(e,t,i,n){const o=i_(t,qi),r=new se;return o&&(this._dynamicKeybindings.push({keybinding:o.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),r.add(Pe(()=>{for(let a=0;athis._log(i))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const r=o.when||void 0,a=o.keybinding;if(!a)i[n++]=new Lv(void 0,o.command,o.commandArgs,r,t,null,!1);else{const l=eh.resolveUserBinding(a,qi);for(const c of l)i[n++]=new Lv(c,o.command,o.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new Oc(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new eh(t,qi)}};ff=To([Vt(0,Ne),Vt(1,Bi),Vt(2,Lh),Vt(3,Dn),Vt(4,Do),Vt(5,kt)],ff);class a6 extends W{constructor(e,t){super(),this.domNode=e,this._register(t)}}function RS(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof we)}class cx{constructor(){this._onDidChangeConfiguration=new M,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Qf(new cO,new xi)}getValue(e,t){const i=typeof e=="string"?e:void 0,n=RS(e)?e:RS(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[o,r]=n;this.getValue(o)!==r&&(this._configuration.updateValue(o,r),i.push(o))}if(i.length>0){const n=new hO({keys:i,overrides:[]},t,this._configuration);n.source=7,n.sourceConfig=null,this._onDidChangeConfiguration.fire(n)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let E1=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new M,this.configurationService.onDidChangeConfiguration(t=>{this._onDidChangeConfiguration.fire({affectedKeys:t.affectedKeys,affectsConfiguration:(i,n)=>t.affectsConfiguration(n)})})}getValue(e,t,i){const o=(A.isIPosition(t)?t:null)?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0;return typeof o=="undefined"?this.configurationService.getValue():this.configurationService.getValue(o)}};E1=To([Vt(0,Rt)],E1);let D1=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:qt||me?` `:`\r -`}};D1=To([Vt(0,Rt)],D1);class c6{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class mg{constructor(){const e=we.from({scheme:mg.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new wO({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}mg.SCHEME="inmemory";function gf(s,e,t){if(!e||!(s instanceof cx))return;const i=[];Object.keys(e).forEach(n=>{rO(n)&&i.push([`editor.${n}`,e[n]]),t&&aO(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&s.updateValues(i)}let N1=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return lx(this,void 0,void 0,function*(){const i=new Map;for(let r of e){if(!(r instanceof n2))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(cO.replaceMove(D.lift(r.textEdit.range),r.textEdit.text))}let n=0,o=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),o+=1,n+=a.length;return{ariaSummary:cu(H_.bulkEditServiceSummary,n,o)}})}};N1=To([Vt(0,At)],N1);class h6{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}}let T1=class extends z_{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};T1=To([Vt(0,Th),Vt(1,kt)],T1);class d6{constructor(){this._neverEmitter=new M,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class u6 extends ih{constructor(){super()}}class f6 extends MN{constructor(){super(new TN)}}let M1=class extends Z_{constructor(e,t,i,n,o){super(e,t,i,n,o),this.configure({blockMouse:!1})}};M1=To([Vt(0,Lh),Vt(1,Dn),Vt(2,Yf),Vt(3,Li),Vt(4,ot)],M1);ve(Rt,cx);ve(Gy,E1);ve(Zy,D1);ve(CO,mg);ve(bO,h6);ve(Lh,c6);ve(Xk,a6);ve(Dn,gg);ve(El,Xo);ve(Wt,u6);ve(an,j3);ve(Do,f6);ve(At,af);ve(mL,e1);ve(Ne,k1);ve(lb,fg);ve(Bb,s6);ve(Il,e_);ve(eO,N1);ve(SO,d6);ve(Tf,x1);ve(Vi,v1);ve(ls,u1);ve(Bi,I1);ve(Li,ff);ve(Q2,C1);ve(Yf,T1);ve(_P,J_);ve(Nh,L1);ve(ab,M1);ve(SL,S1);var X;(function(s){const e=new Zf;for(const[r,a]of pC())e.set(r,a);const t=new Fb(e,!0);e.set(rn,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof Wn?t.invokeFunction(l=>l.get(r)):a}s.get=i;let n=!1;function o(r){if(n)return t;n=!0;for(const[a,l]of pC())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=pe(a);e.get(l)instanceof Wn&&e.set(l,r[a])}return t}s.initialize=o})(X||(X={}));var Vb=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},De=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let g6=0,AS=!1;function m6(s){if(!s){if(AS)return;AS=!0}A4(s||document.body)}let mf=class extends Gu{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const f=Object.assign({},t);f.ariaLabel=f.ariaLabel||tf.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+tf.accessibilityHelpMessage,super(e,f,{},i,n,o,r,l,c,h,d,u),a instanceof ff?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,m6(f.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++g6,o=Oe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),W.None;const t=e.id,i=e.label,n=Oe.and(Oe.equals("editorId",this.getId()),Oe.deserialize(e.precondition)),o=e.keybindings,r=Oe.and(n,Oe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(f,...m)=>Promise.resolve(e.run(this,...m)),h=new se,d=this.getId()+":"+t;if(h.add(Ht.registerCommand(d,c)),a){const f={command:{id:d,title:i},when:n,group:a,order:l};h.add(sc.appendMenuItem(N.EditorContext,f))}if(Array.isArray(o))for(const f of o)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,f,c,r));const u=new vk(d,i,i,n,c,this._contextKeyService);return this._actions[t]=u,h.add(Pe(()=>{delete this._actions[t]})),h}_triggerCommand(e,t){if(this._codeEditorService instanceof Xu)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};mf=Vb([De(2,rn),De(3,kt),De(4,Bi),De(5,Ne),De(6,Li),De(7,ot),De(8,Dn),De(9,Vi),De(10,Eo),De(11,be)],mf);let R1=class extends mf{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_){const b=Object.assign({},t);gf(h,b,!1);const w=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast!="undefined"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,o,r,a,l,c,d,m,_),this._configurationService=h,this._standaloneThemeService=l,this._register(w);let v;if(typeof C=="undefined"){const S=f.getLanguageIdByMimeType(b.language)||b.language||Vr;v=hx(u,f,b.value||"",S,void 0),this._ownsModel=!0}else v=C,this._ownsModel=!1;if(this._attachModel(v),v){const S={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){gf(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast!="undefined"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};R1=Vb([De(2,rn),De(3,kt),De(4,Bi),De(5,Ne),De(6,Li),De(7,an),De(8,Dn),De(9,Rt),De(10,Vi),De(11,At),De(12,Wt),De(13,Eo),De(14,be)],R1);let A1=class extends ko{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const f=Object.assign({},t);gf(c,f,!0);const m=a.registerEditorContainer(e);typeof f.theme=="string"&&a.setTheme(f.theme),typeof f.autoDetectHighContrast!="undefined"&&a.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast)),super(e,f,{},u,o,n,i,r,a,l,h,d),this._configurationService=c,this._standaloneThemeService=a,this._register(m)}dispose(){super.dispose()}updateOptions(e){gf(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast!="undefined"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(mf,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};A1=Vb([De(2,rn),De(3,Ne),De(4,Il),De(5,kt),De(6,an),De(7,Dn),De(8,Rt),De(9,ab),De(10,lb),De(11,Nh)],A1);function hx(s,e,t,i,n){if(t=t||"",!i){const o=t.indexOf(` -`);let r=t;return o!==-1&&(r=t.substring(0,o)),OS(s,t,e.createByFilepathOrFirstLine(n||null,r),n)}return OS(s,t,e.createById(i),n)}function OS(s,e,t,i){return s.createModel(e,t,i)}function p6(s,e,t){return X.initialize(t||{}).createInstance(R1,s,e)}function _6(s){return X.get(kt).onCodeEditorAdd(t=>{s(t)})}function b6(s,e,t){return X.initialize(t||{}).createInstance(A1,s,e)}function C6(s,e){return new fD(s,e)}function w6(s,e,t){const i=X.get(Wt),n=i.getLanguageIdByMimeType(e)||e;return hx(X.get(At),i,s,n,t)}function v6(s,e){const t=X.get(Wt);X.get(At).setMode(s,t.createById(e))}function S6(s,e,t){s&&X.get(El).changeOne(e,s.uri,t)}function y6(s){return X.get(El).read(s)}function L6(s){return X.get(El).onMarkerChanged(s)}function k6(s){return X.get(At).getModel(s)}function x6(){return X.get(At).getModels()}function I6(s){return X.get(At).onModelAdded(s)}function E6(s){return X.get(At).onModelRemoved(s)}function D6(s){return X.get(At).onModelLanguageChanged(t=>{s({model:t.model,oldLanguage:t.oldLanguageId})})}function N6(s){return FN(X.get(At),X.get(Eo),s)}function T6(s,e){const t=X.get(Wt),i=X.get(an);return i.registerEditorContainer(s),v0.colorizeElement(i,t,s,e)}function M6(s,e,t){const i=X.get(Wt);return X.get(an).registerEditorContainer(document.body),v0.colorize(i,s,e,t)}function R6(s,e,t=4){return X.get(an).registerEditorContainer(document.body),v0.colorizeModelLine(s,e,t)}function A6(s){const e=et.get(s);return e||{getInitialState:()=>mu,tokenize:(t,i,n)=>WD(s,n)}}function O6(s,e){et.getOrCreate(e);const t=A6(e),i=Ch(s),n=[];let o=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw ke(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw ke(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!i4(s,Js(s,n,"",[],""))))throw ke(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,o=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=O1(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=P1(e,this.name,t)}}function dx(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=s,t.includeLF=Sd(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Sd(e.ignoreCase,!1),t.unicode=Sd(e.unicode,!1),t.tokenPostfix=PS(e.tokenPostfix,"."+t.languageId),t.defaultToken=PS(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let h=c.include;if(h){if(typeof h!="string")throw ke(t,"an 'include' attribute must be a string at: "+r);if(h[0]==="@"&&(h=h.substr(1)),!e.tokenizer[h])throw ke(t,"include target '"+h+"' is not defined at: "+r);n(r+"."+h,a,e.tokenizer[h])}else{const d=new j6(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(d.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")d.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],d.setAction(i,u)}else throw ke(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else d.setAction(i,c[1]);else{if(!c.regex)throw ke(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(d.name=c.name),c.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Sd(c.matchOnlyAtLineStart,!1)),d.setRegex(i,c.regex),d.setAction(i,c.action)}a.push(d)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw ke(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw ke(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw ke(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:fo(t,a.open),close:fo(t,a.close)});else throw ke(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}var K6=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function q6(s){il.registerLanguage(s)}function G6(){let s=[];return s=s.concat(il.getLanguages()),s}function Z6(s){return X.get(Wt).languageIdCodec.encodeLanguageId(s)}function Y6(s,e){const i=X.get(Wt).onDidEncounterLanguage(n=>{n===s&&(i.dispose(),e())});return i}function X6(s,e){if(!X.get(Wt).isRegisteredLanguageId(s))throw new Error(`Cannot set configuration for unknown language ${s}`);return Ki.register(s,e,100)}class Q6{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return uh.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new wf(n.tokens,n.endState)}}class uh{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,r=e.length;o0&&o[r-1]===u)continue;let f=d.startIndex;c===0?f=0:fK6(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?J6(i)?fx(s,i):new yh(X.get(Wt),X.get(an),s,dx(s,i)):null})};return et.registerFactory(s,t)}function iF(s,e){if(!X.get(Wt).isRegisteredLanguageId(s))throw new Error(`Cannot set tokens provider for unknown language ${s}`);return ux(e)?Wb(s,{create:()=>e}):et.register(s,fx(s,e))}function nF(s,e){const t=i=>new yh(X.get(Wt),X.get(an),s,dx(s,i));return ux(e)?Wb(s,{create:()=>e}):et.register(s,t(e))}function sF(s,e){return X.get(be).referenceProvider.register(s,e)}function oF(s,e){return X.get(be).renameProvider.register(s,e)}function rF(s,e){return X.get(be).signatureHelpProvider.register(s,e)}function aF(s,e){return X.get(be).hoverProvider.register(s,{provideHover:(i,n,o)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,o)).then(a=>{if(!!a)return!a.range&&r&&(a.range=new D(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new D(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function lF(s,e){return X.get(be).documentSymbolProvider.register(s,e)}function cF(s,e){return X.get(be).documentHighlightProvider.register(s,e)}function hF(s,e){return X.get(be).linkedEditingRangeProvider.register(s,e)}function dF(s,e){return X.get(be).definitionProvider.register(s,e)}function uF(s,e){return X.get(be).implementationProvider.register(s,e)}function fF(s,e){return X.get(be).typeDefinitionProvider.register(s,e)}function gF(s,e){return X.get(be).codeLensProvider.register(s,e)}function mF(s,e,t){return X.get(be).codeActionProvider.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(n,o,r,a)=>{const c=X.get(El).read({resource:n.uri}).filter(h=>D.areIntersectingOrTouching(h,o));return e.provideCodeActions(n,o,{markers:c,only:r.only},a)},resolveCodeAction:e.resolveCodeAction})}function pF(s,e){return X.get(be).documentFormattingEditProvider.register(s,e)}function _F(s,e){return X.get(be).documentRangeFormattingEditProvider.register(s,e)}function bF(s,e){return X.get(be).onTypeFormattingEditProvider.register(s,e)}function CF(s,e){return X.get(be).linkProvider.register(s,e)}function wF(s,e){return X.get(be).completionProvider.register(s,e)}function vF(s,e){return X.get(be).colorProvider.register(s,e)}function SF(s,e){return X.get(be).foldingRangeProvider.register(s,e)}function yF(s,e){return X.get(be).declarationProvider.register(s,e)}function LF(s,e){return X.get(be).selectionRangeProvider.register(s,e)}function kF(s,e){return X.get(be).documentSemanticTokensProvider.register(s,e)}function xF(s,e){return X.get(be).documentRangeSemanticTokensProvider.register(s,e)}function IF(s,e){return X.get(be).inlineCompletionsProvider.register(s,e)}function EF(s,e){return X.get(be).inlayHintsProvider.register(s,e)}function DF(){return{register:q6,getLanguages:G6,onLanguage:Y6,getEncodedLanguageId:Z6,setLanguageConfiguration:X6,setColorMap:tF,registerTokensProviderFactory:Wb,setTokensProvider:iF,setMonarchTokensProvider:nF,registerReferenceProvider:sF,registerRenameProvider:oF,registerCompletionItemProvider:wF,registerSignatureHelpProvider:rF,registerHoverProvider:aF,registerDocumentSymbolProvider:lF,registerDocumentHighlightProvider:cF,registerLinkedEditingRangeProvider:hF,registerDefinitionProvider:dF,registerImplementationProvider:uF,registerTypeDefinitionProvider:fF,registerCodeLensProvider:gF,registerCodeActionProvider:mF,registerDocumentFormattingEditProvider:pF,registerDocumentRangeFormattingEditProvider:_F,registerOnTypeFormattingEditProvider:bF,registerLinkProvider:CF,registerColorProvider:vF,registerFoldingRangeProvider:SF,registerDeclarationProvider:yF,registerSelectionRangeProvider:LF,registerDocumentSemanticTokensProvider:kF,registerDocumentRangeSemanticTokensProvider:xF,registerInlineCompletionsProvider:IF,registerInlayHintsProvider:EF,DocumentHighlightKind:dp,CompletionItemKind:op,CompletionItemTag:rp,CompletionItemInsertTextRule:sp,SymbolKind:Ap,SymbolTag:Op,IndentAction:pp,CompletionTriggerKind:ap,SignatureHelpTriggerKind:Rp,InlayHintKind:bp,InlineCompletionTriggerKind:Cp,FoldingRangeKind:br}}const gx=pe("IEditorCancelService"),mx=new G("cancellableOperation",!1,p("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ve(gx,class{constructor(){this._tokens=new WeakMap}add(s,e){let t=this._tokens.get(s);t||(t=s.invokeWithinContext(n=>{const o=mx.bindTo(n.get(Ne)),r=new Xi;return{key:o,tokens:r}}),this._tokens.set(s,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(s){const e=this._tokens.get(s);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);q(new class extends Fr{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:mx})}runEditorCommand(s,e){s.get(gx).cancel(e)}});class jm{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Dl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function NF(s,e,t){const i=[],n=new Set,o=s.ordered(t);for(const a of o)i.push(a),a.extensionId&&n.add(jm.toKey(a.extensionId));const r=e.ordered(t);for(const a of r){if(a.extensionId){if(n.has(jm.toKey(a.extensionId)))continue;n.add(jm.toKey(a.extensionId))}i.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,c,h){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),c,h)}})}return i}class fh{static setFormatterSelector(e){return{dispose:fh._selectors.unshift(e)}}static select(e,t,i){return Dl(this,void 0,void 0,function*(){if(e.length===0)return;const n=he.first(fh._selectors);if(n)return yield n(e,t,i)})}}fh._selectors=new Xi;function TF(s,e,t,i,n,o){return Dl(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){let l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,o)).catch(bf);if($1(l))return yield s.computeMoreMinimalEdits(t.uri,l)}})}function MF(s,e,t,i,n){return Dl(this,void 0,void 0,function*(){const o=NF(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of o){let a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(bf);if($1(a))return yield s.computeMoreMinimalEdits(t.uri,a)}})}function RF(s,e,t,i,n,o,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,o,r)).catch(bf).then(l=>s.computeMoreMinimalEdits(t.uri,l))}Ht.registerCommand("_executeFormatRangeProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i,n]=e;Sn(we.isUri(t)),Sn(D.isIRange(i));const o=s.get(Tf),r=s.get(Il),a=s.get(be),l=yield o.createModelReference(t);try{return TF(r,a,l.object.textEditorModel,D.lift(i),n,ci.None)}finally{l.dispose()}})});Ht.registerCommand("_executeFormatDocumentProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i]=e;Sn(we.isUri(t));const n=s.get(Tf),o=s.get(Il),r=s.get(be),a=yield n.createModelReference(t);try{return MF(o,r,a.object.textEditorModel,i,ci.None)}finally{a.dispose()}})});Ht.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i,n,o]=e;Sn(we.isUri(t)),Sn(A.isIPosition(i)),Sn(typeof n=="string");const r=s.get(Tf),a=s.get(Il),l=s.get(be),c=yield r.createModelReference(t);try{return RF(a,l,c.object.textEditorModel,A.lift(i),n,o,ci.None)}finally{c.dispose()}})});var Km;Mr.wrappingIndent.defaultValue=0;Mr.glyphMargin.defaultValue=!1;Mr.autoIndent.defaultValue=3;Mr.overviewRulerLanes.defaultValue=2;fh.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const Gt=by();Gt.editor=W6();Gt.languages=DF();const AF=Gt.CancellationTokenSource,OF=Gt.Emitter,PF=Gt.KeyCode,FF=Gt.KeyMod,BF=Gt.Position,VF=Gt.Range,WF=Gt.Selection,HF=Gt.SelectionDirection,zF=Gt.MarkerSeverity,UF=Gt.MarkerTag,px=Gt.Uri,$F=Gt.Token,eu=Gt.editor,jF=Gt.languages;(((Km=Ge.MonacoEnvironment)===null||Km===void 0?void 0:Km.globalAPI)||typeof define=="function"&&define.amd)&&(self.monaco=Gt);typeof self.require!="undefined"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var KF=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:AF,Emitter:OF,KeyCode:PF,KeyMod:FF,Position:BF,Range:VF,Selection:WF,SelectionDirection:HF,MarkerSeverity:zF,MarkerTag:UF,Uri:px,Token:$F,editor:eu,languages:jF},Symbol.toStringTag,{value:"Module"}));/*!----------------------------------------------------------------------------- +`}};D1=To([Vt(0,Rt)],D1);class l6{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class mg{constructor(){const e=we.from({scheme:mg.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new CO({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}mg.SCHEME="inmemory";function gf(s,e,t){if(!e||!(s instanceof cx))return;const i=[];Object.keys(e).forEach(n=>{oO(n)&&i.push([`editor.${n}`,e[n]]),t&&rO(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&s.updateValues(i)}let N1=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return lx(this,void 0,void 0,function*(){const i=new Map;for(let r of e){if(!(r instanceof n2))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(lO.replaceMove(D.lift(r.textEdit.range),r.textEdit.text))}let n=0,o=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),o+=1,n+=a.length;return{ariaSummary:cu(H_.bulkEditServiceSummary,n,o)}})}};N1=To([Vt(0,At)],N1);class c6{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}}let T1=class extends z_{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};T1=To([Vt(0,Th),Vt(1,kt)],T1);class h6{constructor(){this._neverEmitter=new M,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class d6 extends ih{constructor(){super()}}class u6 extends TN{constructor(){super(new NN)}}let M1=class extends Z_{constructor(e,t,i,n,o){super(e,t,i,n,o),this.configure({blockMouse:!1})}};M1=To([Vt(0,Lh),Vt(1,Dn),Vt(2,Yf),Vt(3,Li),Vt(4,ot)],M1);ve(Rt,cx);ve(Gy,E1);ve(Zy,D1);ve(bO,mg);ve(_O,c6);ve(Lh,l6);ve(Xk,r6);ve(Dn,gg);ve(El,Xo);ve(Wt,d6);ve(an,$3);ve(Do,u6);ve(At,af);ve(mL,e1);ve(Ne,k1);ve(lb,fg);ve(Bb,n6);ve(Il,e_);ve(J9,N1);ve(vO,h6);ve(Tf,x1);ve(Vi,v1);ve(ls,u1);ve(Bi,I1);ve(Li,ff);ve(Q2,C1);ve(Yf,T1);ve(pP,J_);ve(Nh,L1);ve(ab,M1);ve(SL,S1);var X;(function(s){const e=new Zf;for(const[r,a]of pC())e.set(r,a);const t=new Fb(e,!0);e.set(rn,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof Wn?t.invokeFunction(l=>l.get(r)):a}s.get=i;let n=!1;function o(r){if(n)return t;n=!0;for(const[a,l]of pC())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=pe(a);e.get(l)instanceof Wn&&e.set(l,r[a])}return t}s.initialize=o})(X||(X={}));var Vb=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},De=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let f6=0,AS=!1;function g6(s){if(!s){if(AS)return;AS=!0}R4(s||document.body)}let mf=class extends Gu{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const f=Object.assign({},t);f.ariaLabel=f.ariaLabel||tf.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+tf.accessibilityHelpMessage,super(e,f,{},i,n,o,r,l,c,h,d,u),a instanceof ff?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,g6(f.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++f6,o=Oe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),W.None;const t=e.id,i=e.label,n=Oe.and(Oe.equals("editorId",this.getId()),Oe.deserialize(e.precondition)),o=e.keybindings,r=Oe.and(n,Oe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(f,...m)=>Promise.resolve(e.run(this,...m)),h=new se,d=this.getId()+":"+t;if(h.add(Ht.registerCommand(d,c)),a){const f={command:{id:d,title:i},when:n,group:a,order:l};h.add(sc.appendMenuItem(N.EditorContext,f))}if(Array.isArray(o))for(const f of o)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,f,c,r));const u=new vk(d,i,i,n,c,this._contextKeyService);return this._actions[t]=u,h.add(Pe(()=>{delete this._actions[t]})),h}_triggerCommand(e,t){if(this._codeEditorService instanceof Xu)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};mf=Vb([De(2,rn),De(3,kt),De(4,Bi),De(5,Ne),De(6,Li),De(7,ot),De(8,Dn),De(9,Vi),De(10,Eo),De(11,be)],mf);let R1=class extends mf{constructor(e,t,i,n,o,r,a,l,c,h,d,u,f,m,_){const b=Object.assign({},t);gf(h,b,!1);const w=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast!="undefined"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,o,r,a,l,c,d,m,_),this._configurationService=h,this._standaloneThemeService=l,this._register(w);let v;if(typeof C=="undefined"){const S=f.getLanguageIdByMimeType(b.language)||b.language||Vr;v=hx(u,f,b.value||"",S,void 0),this._ownsModel=!0}else v=C,this._ownsModel=!1;if(this._attachModel(v),v){const S={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){gf(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast!="undefined"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};R1=Vb([De(2,rn),De(3,kt),De(4,Bi),De(5,Ne),De(6,Li),De(7,an),De(8,Dn),De(9,Rt),De(10,Vi),De(11,At),De(12,Wt),De(13,Eo),De(14,be)],R1);let A1=class extends ko{constructor(e,t,i,n,o,r,a,l,c,h,d,u){const f=Object.assign({},t);gf(c,f,!0);const m=a.registerEditorContainer(e);typeof f.theme=="string"&&a.setTheme(f.theme),typeof f.autoDetectHighContrast!="undefined"&&a.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast)),super(e,f,{},u,o,n,i,r,a,l,h,d),this._configurationService=c,this._standaloneThemeService=a,this._register(m)}dispose(){super.dispose()}updateOptions(e){gf(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast!="undefined"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(mf,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};A1=Vb([De(2,rn),De(3,Ne),De(4,Il),De(5,kt),De(6,an),De(7,Dn),De(8,Rt),De(9,ab),De(10,lb),De(11,Nh)],A1);function hx(s,e,t,i,n){if(t=t||"",!i){const o=t.indexOf(` +`);let r=t;return o!==-1&&(r=t.substring(0,o)),OS(s,t,e.createByFilepathOrFirstLine(n||null,r),n)}return OS(s,t,e.createById(i),n)}function OS(s,e,t,i){return s.createModel(e,t,i)}function m6(s,e,t){return X.initialize(t||{}).createInstance(R1,s,e)}function p6(s){return X.get(kt).onCodeEditorAdd(t=>{s(t)})}function _6(s,e,t){return X.initialize(t||{}).createInstance(A1,s,e)}function b6(s,e){return new uD(s,e)}function C6(s,e,t){const i=X.get(Wt),n=i.getLanguageIdByMimeType(e)||e;return hx(X.get(At),i,s,n,t)}function w6(s,e){const t=X.get(Wt);X.get(At).setMode(s,t.createById(e))}function v6(s,e,t){s&&X.get(El).changeOne(e,s.uri,t)}function S6(s){return X.get(El).read(s)}function y6(s){return X.get(El).onMarkerChanged(s)}function L6(s){return X.get(At).getModel(s)}function k6(){return X.get(At).getModels()}function x6(s){return X.get(At).onModelAdded(s)}function I6(s){return X.get(At).onModelRemoved(s)}function E6(s){return X.get(At).onModelLanguageChanged(t=>{s({model:t.model,oldLanguage:t.oldLanguageId})})}function D6(s){return PN(X.get(At),X.get(Eo),s)}function N6(s,e){const t=X.get(Wt),i=X.get(an);return i.registerEditorContainer(s),v0.colorizeElement(i,t,s,e)}function T6(s,e,t){const i=X.get(Wt);return X.get(an).registerEditorContainer(document.body),v0.colorize(i,s,e,t)}function M6(s,e,t=4){return X.get(an).registerEditorContainer(document.body),v0.colorizeModelLine(s,e,t)}function R6(s){const e=et.get(s);return e||{getInitialState:()=>mu,tokenize:(t,i,n)=>VD(s,n)}}function A6(s,e){et.getOrCreate(e);const t=R6(e),i=Ch(s),n=[];let o=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw ke(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw ke(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!t4(s,Js(s,n,"",[],""))))throw ke(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,o=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=O1(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=P1(e,this.name,t)}}function dx(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=s,t.includeLF=Sd(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Sd(e.ignoreCase,!1),t.unicode=Sd(e.unicode,!1),t.tokenPostfix=PS(e.tokenPostfix,"."+t.languageId),t.defaultToken=PS(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let h=c.include;if(h){if(typeof h!="string")throw ke(t,"an 'include' attribute must be a string at: "+r);if(h[0]==="@"&&(h=h.substr(1)),!e.tokenizer[h])throw ke(t,"include target '"+h+"' is not defined at: "+r);n(r+"."+h,a,e.tokenizer[h])}else{const d=new $6(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(d.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")d.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],d.setAction(i,u)}else throw ke(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else d.setAction(i,c[1]);else{if(!c.regex)throw ke(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(d.name=c.name),c.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Sd(c.matchOnlyAtLineStart,!1)),d.setRegex(i,c.regex),d.setAction(i,c.action)}a.push(d)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw ke(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw ke(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw ke(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:fo(t,a.open),close:fo(t,a.close)});else throw ke(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}var j6=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function K6(s){il.registerLanguage(s)}function q6(){let s=[];return s=s.concat(il.getLanguages()),s}function G6(s){return X.get(Wt).languageIdCodec.encodeLanguageId(s)}function Z6(s,e){const i=X.get(Wt).onDidEncounterLanguage(n=>{n===s&&(i.dispose(),e())});return i}function Y6(s,e){if(!X.get(Wt).isRegisteredLanguageId(s))throw new Error(`Cannot set configuration for unknown language ${s}`);return Ki.register(s,e,100)}class X6{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return uh.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new wf(n.tokens,n.endState)}}class uh{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,r=e.length;o0&&o[r-1]===u)continue;let f=d.startIndex;c===0?f=0:fj6(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Q6(i)?fx(s,i):new yh(X.get(Wt),X.get(an),s,dx(s,i)):null})};return et.registerFactory(s,t)}function tF(s,e){if(!X.get(Wt).isRegisteredLanguageId(s))throw new Error(`Cannot set tokens provider for unknown language ${s}`);return ux(e)?Wb(s,{create:()=>e}):et.register(s,fx(s,e))}function iF(s,e){const t=i=>new yh(X.get(Wt),X.get(an),s,dx(s,i));return ux(e)?Wb(s,{create:()=>e}):et.register(s,t(e))}function nF(s,e){return X.get(be).referenceProvider.register(s,e)}function sF(s,e){return X.get(be).renameProvider.register(s,e)}function oF(s,e){return X.get(be).signatureHelpProvider.register(s,e)}function rF(s,e){return X.get(be).hoverProvider.register(s,{provideHover:(i,n,o)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,o)).then(a=>{if(!!a)return!a.range&&r&&(a.range=new D(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new D(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function aF(s,e){return X.get(be).documentSymbolProvider.register(s,e)}function lF(s,e){return X.get(be).documentHighlightProvider.register(s,e)}function cF(s,e){return X.get(be).linkedEditingRangeProvider.register(s,e)}function hF(s,e){return X.get(be).definitionProvider.register(s,e)}function dF(s,e){return X.get(be).implementationProvider.register(s,e)}function uF(s,e){return X.get(be).typeDefinitionProvider.register(s,e)}function fF(s,e){return X.get(be).codeLensProvider.register(s,e)}function gF(s,e,t){return X.get(be).codeActionProvider.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(n,o,r,a)=>{const c=X.get(El).read({resource:n.uri}).filter(h=>D.areIntersectingOrTouching(h,o));return e.provideCodeActions(n,o,{markers:c,only:r.only},a)},resolveCodeAction:e.resolveCodeAction})}function mF(s,e){return X.get(be).documentFormattingEditProvider.register(s,e)}function pF(s,e){return X.get(be).documentRangeFormattingEditProvider.register(s,e)}function _F(s,e){return X.get(be).onTypeFormattingEditProvider.register(s,e)}function bF(s,e){return X.get(be).linkProvider.register(s,e)}function CF(s,e){return X.get(be).completionProvider.register(s,e)}function wF(s,e){return X.get(be).colorProvider.register(s,e)}function vF(s,e){return X.get(be).foldingRangeProvider.register(s,e)}function SF(s,e){return X.get(be).declarationProvider.register(s,e)}function yF(s,e){return X.get(be).selectionRangeProvider.register(s,e)}function LF(s,e){return X.get(be).documentSemanticTokensProvider.register(s,e)}function kF(s,e){return X.get(be).documentRangeSemanticTokensProvider.register(s,e)}function xF(s,e){return X.get(be).inlineCompletionsProvider.register(s,e)}function IF(s,e){return X.get(be).inlayHintsProvider.register(s,e)}function EF(){return{register:K6,getLanguages:q6,onLanguage:Z6,getEncodedLanguageId:G6,setLanguageConfiguration:Y6,setColorMap:eF,registerTokensProviderFactory:Wb,setTokensProvider:tF,setMonarchTokensProvider:iF,registerReferenceProvider:nF,registerRenameProvider:sF,registerCompletionItemProvider:CF,registerSignatureHelpProvider:oF,registerHoverProvider:rF,registerDocumentSymbolProvider:aF,registerDocumentHighlightProvider:lF,registerLinkedEditingRangeProvider:cF,registerDefinitionProvider:hF,registerImplementationProvider:dF,registerTypeDefinitionProvider:uF,registerCodeLensProvider:fF,registerCodeActionProvider:gF,registerDocumentFormattingEditProvider:mF,registerDocumentRangeFormattingEditProvider:pF,registerOnTypeFormattingEditProvider:_F,registerLinkProvider:bF,registerColorProvider:wF,registerFoldingRangeProvider:vF,registerDeclarationProvider:SF,registerSelectionRangeProvider:yF,registerDocumentSemanticTokensProvider:LF,registerDocumentRangeSemanticTokensProvider:kF,registerInlineCompletionsProvider:xF,registerInlayHintsProvider:IF,DocumentHighlightKind:dp,CompletionItemKind:op,CompletionItemTag:rp,CompletionItemInsertTextRule:sp,SymbolKind:Ap,SymbolTag:Op,IndentAction:pp,CompletionTriggerKind:ap,SignatureHelpTriggerKind:Rp,InlayHintKind:bp,InlineCompletionTriggerKind:Cp,FoldingRangeKind:br}}const gx=pe("IEditorCancelService"),mx=new G("cancellableOperation",!1,p("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ve(gx,class{constructor(){this._tokens=new WeakMap}add(s,e){let t=this._tokens.get(s);t||(t=s.invokeWithinContext(n=>{const o=mx.bindTo(n.get(Ne)),r=new Xi;return{key:o,tokens:r}}),this._tokens.set(s,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(s){const e=this._tokens.get(s);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);q(new class extends Fr{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:mx})}runEditorCommand(s,e){s.get(gx).cancel(e)}});class jm{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Dl=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function DF(s,e,t){const i=[],n=new Set,o=s.ordered(t);for(const a of o)i.push(a),a.extensionId&&n.add(jm.toKey(a.extensionId));const r=e.ordered(t);for(const a of r){if(a.extensionId){if(n.has(jm.toKey(a.extensionId)))continue;n.add(jm.toKey(a.extensionId))}i.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,c,h){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),c,h)}})}return i}class fh{static setFormatterSelector(e){return{dispose:fh._selectors.unshift(e)}}static select(e,t,i){return Dl(this,void 0,void 0,function*(){if(e.length===0)return;const n=he.first(fh._selectors);if(n)return yield n(e,t,i)})}}fh._selectors=new Xi;function NF(s,e,t,i,n,o){return Dl(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){let l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,o)).catch(bf);if($1(l))return yield s.computeMoreMinimalEdits(t.uri,l)}})}function TF(s,e,t,i,n){return Dl(this,void 0,void 0,function*(){const o=DF(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of o){let a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(bf);if($1(a))return yield s.computeMoreMinimalEdits(t.uri,a)}})}function MF(s,e,t,i,n,o,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,o,r)).catch(bf).then(l=>s.computeMoreMinimalEdits(t.uri,l))}Ht.registerCommand("_executeFormatRangeProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i,n]=e;Sn(we.isUri(t)),Sn(D.isIRange(i));const o=s.get(Tf),r=s.get(Il),a=s.get(be),l=yield o.createModelReference(t);try{return NF(r,a,l.object.textEditorModel,D.lift(i),n,ci.None)}finally{l.dispose()}})});Ht.registerCommand("_executeFormatDocumentProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i]=e;Sn(we.isUri(t));const n=s.get(Tf),o=s.get(Il),r=s.get(be),a=yield n.createModelReference(t);try{return TF(o,r,a.object.textEditorModel,i,ci.None)}finally{a.dispose()}})});Ht.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return Dl(this,void 0,void 0,function*(){const[t,i,n,o]=e;Sn(we.isUri(t)),Sn(A.isIPosition(i)),Sn(typeof n=="string");const r=s.get(Tf),a=s.get(Il),l=s.get(be),c=yield r.createModelReference(t);try{return MF(a,l,c.object.textEditorModel,A.lift(i),n,o,ci.None)}finally{c.dispose()}})});var Km;Mr.wrappingIndent.defaultValue=0;Mr.glyphMargin.defaultValue=!1;Mr.autoIndent.defaultValue=3;Mr.overviewRulerLanes.defaultValue=2;fh.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const Gt=by();Gt.editor=V6();Gt.languages=EF();const RF=Gt.CancellationTokenSource,AF=Gt.Emitter,OF=Gt.KeyCode,PF=Gt.KeyMod,FF=Gt.Position,BF=Gt.Range,VF=Gt.Selection,WF=Gt.SelectionDirection,HF=Gt.MarkerSeverity,zF=Gt.MarkerTag,px=Gt.Uri,UF=Gt.Token,eu=Gt.editor,$F=Gt.languages;(((Km=Ge.MonacoEnvironment)===null||Km===void 0?void 0:Km.globalAPI)||typeof define=="function"&&define.amd)&&(self.monaco=Gt);typeof self.require!="undefined"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var jF=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:RF,Emitter:AF,KeyCode:OF,KeyMod:PF,Position:FF,Range:BF,Selection:VF,SelectionDirection:WF,MarkerSeverity:HF,MarkerTag:zF,Uri:px,Token:UF,editor:eu,languages:$F},Symbol.toStringTag,{value:"Module"}));/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var qF=Object.defineProperty,GF=Object.getOwnPropertyDescriptor,ZF=Object.getOwnPropertyNames,YF=Object.prototype.hasOwnProperty,XF=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ZF(e))!YF.call(s,n)&&(t||n!=="default")&&qF(s,n,{get:()=>e[n],enumerable:!(i=GF(e,n))||i.enumerable});return s},Ql={};XF(Ql,KF);var _x={},qm={},bx=class{constructor(s){$r(this,"_languageId");$r(this,"_loadingTriggered");$r(this,"_lazyLoadPromise");$r(this,"_lazyLoadPromiseResolve");$r(this,"_lazyLoadPromiseReject");this._languageId=s,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(s){return qm[s]||(qm[s]=new bx(s)),qm[s]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,_x[this._languageId].loader().then(s=>this._lazyLoadPromiseResolve(s),s=>this._lazyLoadPromiseReject(s))),this._lazyLoadPromise}};function Ct(s){const e=s.id;_x[e]=s,Ql.languages.register(s);const t=bx.getOrCreate(e);Ql.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Ql.languages.onLanguage(e,async()=>{const i=await t.load();Ql.languages.setLanguageConfiguration(e,i.conf)})}Ct({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>bt(()=>import("./html.e524b74e.js"),["assets/html.e524b74e.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>bt(()=>import("./css.4c22ed20.js"),[])});Ct({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>bt(()=>import("./scss.19caa34f.js"),[])});Ct({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>bt(()=>import("./dockerfile.de6a0f2c.js"),[])});Ct({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>bt(()=>import("./go.1e1292ae.js"),[])});Ct({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>bt(()=>import("./graphql.900d9927.js"),[])});Ct({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>bt(()=>import("./ini.75848fa5.js"),[])});Ct({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>bt(()=>import("./java.13c44e5c.js"),[])});Ct({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>bt(()=>import("./javascript.eab0bcab.js"),["assets/javascript.eab0bcab.js","assets/typescript.2de48637.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>bt(()=>import("./kotlin.3399aeb6.js"),[])});Ct({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>bt(()=>import("./less.b6aad23a.js"),[])});Ct({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>bt(()=>import("./markdown.236ff8ef.js"),[])});Ct({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>bt(()=>import("./mysql.fdc04fe1.js"),[])});Ct({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>bt(()=>import("./php.a9540a84.js"),[])});Ct({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>bt(()=>import("./cpp.337468ce.js"),[])});Ct({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>bt(()=>import("./cpp.337468ce.js"),[])});Ct({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>bt(()=>import("./python.40a33355.js"),["assets/python.40a33355.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\bt(()=>import("./xml.9e735dae.js"),["assets/xml.9e735dae.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>bt(()=>import("./sql.5f2f7ebd.js"),[])});Ct({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>bt(()=>import("./yaml.7d8c6ae6.js"),[])});Ct({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>bt(()=>import("./typescript.2de48637.js"),["assets/typescript.2de48637.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])});class Ft{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===Ft._FIND_MATCH_DECORATION||n===Ft._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,o=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,Ft._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,Ft._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let r=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);o=new D(o.startLineNumber,o.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(o,Ft._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=Ft._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){n=Ft._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,h=Math.max(2,Math.ceil(3/c));let d=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let f=1,m=e.length;f=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(o.push({range:new D(d,1,u,1),options:Ft._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),d=_.startLineNumber,u=_.endLineNumber)}o.push({range:new D(d,1,u,1),options:Ft._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,Ft._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn0){let i=[];for(let r=0;rD.compareRangesUsingStarts(r.range,a.range));let n=[],o=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):s[0][0].toUpperCase()!==s[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function BS(s,e,t){return s[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&s[0].split(t).length===e.split(t).length}function VS(s,e,t){const i=e.split(t),n=s[0].split(t);let o="";return i.forEach((r,a)=>{o+=Cx([n[a]],r)+t}),o.slice(0,-1)}class WS{constructor(e){this.staticValue=e,this.kind=0}}class JF{constructor(e){this.pieces=e,this.kind=1}}class ul{constructor(e){!e||e.length===0?this._state=new WS(""):e.length===1&&e[0].staticValue!==null?this._state=new WS(e[0].staticValue):this._state=new JF(e)}static fromStaticValue(e){return new ul([mr.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Cx(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,o=this._state.pieces.length;n0){let l=[],c=r.caseOps.length,h=0;for(let d=0,u=a.length;d=c){l.push(a.slice(d));break}switch(r.caseOps[h]){case"U":l.push(a[d].toUpperCase());break;case"u":l.push(a[d].toUpperCase()),h++;break;case"L":l.push(a[d].toLowerCase());break;case"l":l.push(a[d].toLowerCase()),h++;break;default:l.push(a[d])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;let r=s.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` -`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(o===36){if(i++,i>=n)break;let r=s.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Me(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},iB)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new D(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let n=this._findMatches(i,!1,lo);this._decorations.set(n,i);const o=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(o);if(r===0&&n.length>0){const a=sI(n.map(l=>l.range),l=>D.compareRangesUsingStarts(l,o)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(35).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,o=this._editor.getModel();return t||n===1?(i===1?i=o.getLineCount():i--,n=o.getLineMaxColumn(i)):n--,new A(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const h=this._decorations.matchAfterPosition(e);h&&this._setCurrentFindMatch(h);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,o=this._editor.getModel();return t||n===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,n=1):n++,new A(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()xc._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(117):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=lo?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new Bo(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(117):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let d="mu";i.ignoreCase&&(d+="i"),i.global&&(d+="g"),i=new RegExp(i.source,d)}const n=this._editor.getModel(),o=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(i,a.buildReplaceString(null,c));let h=new hk(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",h)}_regularReplaceAll(e){const t=this._getReplacePattern();let i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),i=this._findMatches(e,!1,1073741824).map(o=>new ce(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,r=i.length;o{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const sB=p("caseDescription","Match Case"),oB=p("wordsDescription","Match Whole Word"),rB=p("regexDescription","Use Regular Expression");class wx extends Ph{constructor(e){super({icon:g.caseSensitive,title:sB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class vx extends Ph{constructor(e){super({icon:g.wholeWord,title:oB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Sx extends Ph{constructor(e){super({icon:g.regex,title:rB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class _g extends rs{constructor(e,t,i,n){super(),this._hideSoon=this._register(new Tt(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o=n.getColorTheme().getColor(g_),r=n.getColorTheme().getColor(p_),a=n.getColorTheme().getColor(m_);this.caseSensitive=this._register(new wx({appendTitle:this._keybindingLabelFor(xe.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new vx({appendTitle:this._keybindingLabelFor(xe.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Sx({appendTitle:this._keybindingLabelFor(xe.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(y0(this._domNode,l=>this._onMouseOut())),this._register(V(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return _g.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(g_),inputActiveOptionForeground:e.getColor(p_),inputActiveOptionBackground:e.getColor(m_)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}_g.ID="editor.contrib.findOptionsWidget";ni((s,e)=>{const t=s.getColor(nn);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=s.getColor(mo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=s.getColor(Ya);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const o=s.getColor(it);o&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o}; }`)});function Ed(s,e){return s===1?!0:s===2?!1:e}class aB extends W{constructor(){super(),this._onFindReplaceStateChange=this._register(new M),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Ed(this._isRegexOverride,this._isRegex)}get wholeWord(){return Ed(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Ed(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Ed(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){let n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),typeof i!="undefined"&&(D.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;let o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,h=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,r=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,r=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,r=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,r=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(d=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(f=>!D.equalsRange(f,d))})||(this._searchScope=e.searchScope,o.searchScope=!0,r=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,r=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,r=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,o.isRegex=!0),l!==this.wholeWord&&(r=!0,o.wholeWord=!0),c!==this.matchCase&&(r=!0,o.matchCase=!0),h!==this.preserveCase&&(r=!0,o.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=lo}}const lB=p("defaultLabel","input");class cB extends rs{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new M),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new M),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new M),this._onKeyUp=this._register(new M),this._onCaseSensitiveKeyDown=this._register(new M),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new M),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||lB,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const o=n.appendCaseSensitiveLabel||"",r=n.appendWholeWordsLabel||"",a=n.appendRegexLabel||"",l=n.history||[],c=!!n.flexibleHeight,h=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new M2(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:l,showHistoryHint:n.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d})),this.regex=this._register(new Sx({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new vx({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new wx({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){let m=u.indexOf(document.activeElement);if(m>=0){let _=-1;f.equals(17)?_=(m+1)%u.length:f.equals(15)&&(m===0?_=u.length-1:_=m-1),f.equals(9)?(u[m].blur(),this.inputBox.focus()):_>=0&&u[_].focus(),Ie.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this.domNode.appendChild(this.controls),e&&e.appendChild(this.domNode),this._register(V(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(V(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}const hB=p("defaultLabel","input"),dB=p("label.preserveCaseCheckbox","Preserve Case");class uB extends Ph{constructor(e){super({icon:g.preserveCase,title:dB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class fB extends rs{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new M),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new M),this._onInput=this._register(new M),this._onKeyUp=this._register(new M),this._onPreserveCaseKeyDown=this._register(new M),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||hB,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const o=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new M2(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new uB({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let h=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){let f=h.indexOf(document.activeElement);if(f>=0){let m=-1;u.equals(17)?m=(f+1)%h.length:u.equals(15)&&(f===0?m=h.length-1:m=f-1),u.equals(9)?(h[f].blur(),this.inputBox.focus()):m>=0&&h[m].focus(),Ie.stop(u,!0)}}});let d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.preserveCase.domNode),this.domNode.appendChild(d),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var yx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Lx=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const kx=new G("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),gh="historyNavigationWidget",xx="historyNavigationForwardsEnabled",Ix="historyNavigationBackwardsEnabled";function gB(s,e,t){new G(t,e).bindTo(s)}function mB(s,e){return s.createScoped(e.target)}function Ex(s,e){return s.getContext(document.activeElement).getValue(e)}function Dx(s,e){const t=mB(s,e);gB(t,e,gh);const i=new G(xx,!0).bindTo(t),n=new G(Ix,!0).bindTo(t);return{scopedContextKeyService:t,historyNavigationForwardsEnablement:i,historyNavigationBackwardsEnablement:n}}let F1=class extends cB{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(Dx(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};F1=yx([Lx(3,Ne)],F1);let B1=class extends fB{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(Dx(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};B1=yx([Lx(3,Ne)],B1);wl.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Oe.and(Oe.has(gh),Oe.equals(Ix,!0),kx.isEqualTo(!1)),primary:16,secondary:[528],handler:s=>{const e=Ex(s.get(Ne),gh);e&&e.historyNavigator.showPreviousValue()}});wl.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Oe.and(Oe.has(gh),Oe.equals(xx,!0),kx.isEqualTo(!1)),primary:18,secondary:[530],handler:s=>{const e=Ex(s.get(Ne),gh);e&&e.historyNavigator.showNextValue()}});function HS(s){var e,t;return((e=s.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=s.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var pB=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const _B=hi("find-selection",g.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),zS=hi("find-collapsed",g.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),US=hi("find-expanded",g.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),bB=hi("find-replace",g.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),CB=hi("find-replace-all",g.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),wB=hi("find-previous-match",g.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),vB=hi("find-next-match",g.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),SB=p("label.find","Find"),yB=p("placeholder.find","Find"),LB=p("label.previousMatchButton","Previous Match"),kB=p("label.nextMatchButton","Next Match"),xB=p("label.toggleSelectionFind","Find in Selection"),IB=p("label.closeButton","Close"),EB=p("label.replace","Replace"),DB=p("placeholder.replace","Replace"),NB=p("label.replaceButton","Replace"),TB=p("label.replaceAllButton","Replace All"),MB=p("label.toggleReplaceButton","Toggle Replace"),RB=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",lo),AB=p("label.matchesLocation","{0} of {1}"),$S=p("label.noResults","No results"),An=419,OB=275,PB=OB-54;let Kl=69;const FB=33,jS="ctrlEnterReplaceAll.windows.donotask",KS=me?256:2048;class Gm{constructor(e){this.afterLineNumber=e,this.heightInPx=FB,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function qS(s,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){s.stopPropagation();return}}function GS(s,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(h=>this._onStateChanged(h))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(h=>{if(h.hasChanged(81)&&(this._codeEditor.getOption(81)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),h.hasChanged(131)&&this._tryUpdateWidgetWidth(),h.hasChanged(2)&&this.updateAccessibilitySupport(),h.hasChanged(35)){const d=this._codeEditor.getOption(35).addExtraSpaceOnTop;d&&!this._viewZone&&(this._viewZone=new Gm(0),this._showViewZone()),!d&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>pB(this,void 0,void 0,function*(){if(this._isVisible){let h=yield this._controller.getGlobalBufferTerm();h&&h!==this._state.searchString&&(this._state.change({searchString:h},!1),this._findInput.select())}}))),this._findInputFocused=pg.bindTo(r),this._findFocusTracker=this._register(Ga(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=Hb.bindTo(r),this._replaceFocusTracker=this._register(Ga(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(35).addExtraSpaceOnTop&&(this._viewZone=new Gm(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(h=>{if(h.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return bg.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(81)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ji(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Ze)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Kl+"px",this._state.matchesCount>=lo?this._matchesCount.title=RB:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=lo&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=cu(AB,i,t)}else e=$S;this._matchesCount.appendChild(document.createTextNode(e)),Nf(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Kl=Math.max(Kl,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===$S)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let i=!this._codeEditor.getOption(81);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(35).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(35).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=en(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=lL(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(35).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(35).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Gm(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const o=this._getHeight();if(o===i.heightInPx)return;let r=o-i.heightInPx;i.heightInPx=o,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(75).top,o<=0)return;i.heightInPx=o,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(g_),inputActiveOptionBackground:e.getColor(m_),inputActiveOptionForeground:e.getColor(p_),inputBackground:e.getColor(TL),inputForeground:e.getColor(ML),inputBorder:e.getColor(RL),inputValidationInfoBackground:e.getColor(AL),inputValidationInfoForeground:e.getColor(OL),inputValidationInfoBorder:e.getColor(PL),inputValidationWarningBackground:e.getColor(FL),inputValidationWarningForeground:e.getColor(BL),inputValidationWarningBorder:e.getColor(VL),inputValidationErrorBackground:e.getColor(WL),inputValidationErrorForeground:e.getColor(HL),inputValidationErrorBorder:e.getColor(zL)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!S0(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let o=!1,r=!1,a=!1;if(this._resized&&ji(this._domNode)>An){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=ji(this._findInput.domNode);return}if(An+28+n>=i&&(r=!0),An+28+n-Kl>=i&&(a=!0),An+28+n-Kl>=i+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!o&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!D.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(KS|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` + *-----------------------------------------------------------------------------*/var KF=Object.defineProperty,qF=Object.getOwnPropertyDescriptor,GF=Object.getOwnPropertyNames,ZF=Object.prototype.hasOwnProperty,YF=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of GF(e))!ZF.call(s,n)&&(t||n!=="default")&&KF(s,n,{get:()=>e[n],enumerable:!(i=qF(e,n))||i.enumerable});return s},Ql={};YF(Ql,jF);var _x={},qm={},bx=class{constructor(s){$r(this,"_languageId");$r(this,"_loadingTriggered");$r(this,"_lazyLoadPromise");$r(this,"_lazyLoadPromiseResolve");$r(this,"_lazyLoadPromiseReject");this._languageId=s,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(s){return qm[s]||(qm[s]=new bx(s)),qm[s]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,_x[this._languageId].loader().then(s=>this._lazyLoadPromiseResolve(s),s=>this._lazyLoadPromiseReject(s))),this._lazyLoadPromise}};function Ct(s){const e=s.id;_x[e]=s,Ql.languages.register(s);const t=bx.getOrCreate(e);Ql.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Ql.languages.onLanguage(e,async()=>{const i=await t.load();Ql.languages.setLanguageConfiguration(e,i.conf)})}Ct({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>bt(()=>import("./html.882d0548.js"),["assets/html.882d0548.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>bt(()=>import("./css.4c22ed20.js"),[])});Ct({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>bt(()=>import("./scss.19caa34f.js"),[])});Ct({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>bt(()=>import("./dockerfile.de6a0f2c.js"),[])});Ct({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>bt(()=>import("./go.1e1292ae.js"),[])});Ct({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>bt(()=>import("./graphql.900d9927.js"),[])});Ct({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>bt(()=>import("./ini.75848fa5.js"),[])});Ct({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>bt(()=>import("./java.13c44e5c.js"),[])});Ct({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>bt(()=>import("./javascript.5595f0c1.js"),["assets/javascript.5595f0c1.js","assets/typescript.eb9f23d5.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>bt(()=>import("./kotlin.3399aeb6.js"),[])});Ct({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>bt(()=>import("./less.b6aad23a.js"),[])});Ct({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>bt(()=>import("./markdown.236ff8ef.js"),[])});Ct({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>bt(()=>import("./mysql.fdc04fe1.js"),[])});Ct({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>bt(()=>import("./php.a9540a84.js"),[])});Ct({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>bt(()=>import("./cpp.337468ce.js"),[])});Ct({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>bt(()=>import("./cpp.337468ce.js"),[])});Ct({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>bt(()=>import("./python.98ee2666.js"),["assets/python.98ee2666.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\bt(()=>import("./xml.5c049503.js"),["assets/xml.5c049503.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])});Ct({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>bt(()=>import("./sql.5f2f7ebd.js"),[])});Ct({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>bt(()=>import("./yaml.7d8c6ae6.js"),[])});Ct({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>bt(()=>import("./typescript.eb9f23d5.js"),["assets/typescript.eb9f23d5.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])});class Ft{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===Ft._FIND_MATCH_DECORATION||n===Ft._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,o=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,Ft._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,Ft._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let r=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);o=new D(o.startLineNumber,o.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(o,Ft._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=Ft._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){n=Ft._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,h=Math.max(2,Math.ceil(3/c));let d=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let f=1,m=e.length;f=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(o.push({range:new D(d,1,u,1),options:Ft._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),d=_.startLineNumber,u=_.endLineNumber)}o.push({range:new D(d,1,u,1),options:Ft._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,Ft._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn0){let i=[];for(let r=0;rD.compareRangesUsingStarts(r.range,a.range));let n=[],o=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):s[0][0].toUpperCase()!==s[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function BS(s,e,t){return s[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&s[0].split(t).length===e.split(t).length}function VS(s,e,t){const i=e.split(t),n=s[0].split(t);let o="";return i.forEach((r,a)=>{o+=Cx([n[a]],r)+t}),o.slice(0,-1)}class WS{constructor(e){this.staticValue=e,this.kind=0}}class QF{constructor(e){this.pieces=e,this.kind=1}}class ul{constructor(e){!e||e.length===0?this._state=new WS(""):e.length===1&&e[0].staticValue!==null?this._state=new WS(e[0].staticValue):this._state=new QF(e)}static fromStaticValue(e){return new ul([mr.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Cx(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,o=this._state.pieces.length;n0){let l=[],c=r.caseOps.length,h=0;for(let d=0,u=a.length;d=c){l.push(a.slice(d));break}switch(r.caseOps[h]){case"U":l.push(a[d].toUpperCase());break;case"u":l.push(a[d].toUpperCase()),h++;break;case"L":l.push(a[d].toLowerCase());break;case"l":l.push(a[d].toLowerCase()),h++;break;default:l.push(a[d])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;let r=s.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` +`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(o===36){if(i++,i>=n)break;let r=s.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Me(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},tB)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new D(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let n=this._findMatches(i,!1,lo);this._decorations.set(n,i);const o=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(o);if(r===0&&n.length>0){const a=sI(n.map(l=>l.range),l=>D.compareRangesUsingStarts(l,o)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(35).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,o=this._editor.getModel();return t||n===1?(i===1?i=o.getLineCount():i--,n=o.getLineMaxColumn(i)):n--,new A(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const h=this._decorations.matchAfterPosition(e);h&&this._setCurrentFindMatch(h);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,o=this._editor.getModel();return t||n===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,n=1):n++,new A(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()xc._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(117):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=lo?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new Bo(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(117):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let d="mu";i.ignoreCase&&(d+="i"),i.global&&(d+="g"),i=new RegExp(i.source,d)}const n=this._editor.getModel(),o=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(i,a.buildReplaceString(null,c));let h=new hk(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",h)}_regularReplaceAll(e){const t=this._getReplacePattern();let i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),i=this._findMatches(e,!1,1073741824).map(o=>new ce(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,r=i.length;o{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const nB=p("caseDescription","Match Case"),sB=p("wordsDescription","Match Whole Word"),oB=p("regexDescription","Use Regular Expression");class wx extends Ph{constructor(e){super({icon:g.caseSensitive,title:nB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class vx extends Ph{constructor(e){super({icon:g.wholeWord,title:sB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Sx extends Ph{constructor(e){super({icon:g.regex,title:oB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class _g extends rs{constructor(e,t,i,n){super(),this._hideSoon=this._register(new Tt(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o=n.getColorTheme().getColor(g_),r=n.getColorTheme().getColor(p_),a=n.getColorTheme().getColor(m_);this.caseSensitive=this._register(new wx({appendTitle:this._keybindingLabelFor(xe.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new vx({appendTitle:this._keybindingLabelFor(xe.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Sx({appendTitle:this._keybindingLabelFor(xe.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:o,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(y0(this._domNode,l=>this._onMouseOut())),this._register(V(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return _g.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(g_),inputActiveOptionForeground:e.getColor(p_),inputActiveOptionBackground:e.getColor(m_)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}_g.ID="editor.contrib.findOptionsWidget";ni((s,e)=>{const t=s.getColor(nn);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=s.getColor(mo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=s.getColor(Ya);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const o=s.getColor(it);o&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o}; }`)});function Ed(s,e){return s===1?!0:s===2?!1:e}class rB extends W{constructor(){super(),this._onFindReplaceStateChange=this._register(new M),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Ed(this._isRegexOverride,this._isRegex)}get wholeWord(){return Ed(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Ed(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Ed(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){let n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),typeof i!="undefined"&&(D.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;let o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,h=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,r=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,r=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,r=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,r=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(d=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(f=>!D.equalsRange(f,d))})||(this._searchScope=e.searchScope,o.searchScope=!0,r=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,r=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,r=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,o.isRegex=!0),l!==this.wholeWord&&(r=!0,o.wholeWord=!0),c!==this.matchCase&&(r=!0,o.matchCase=!0),h!==this.preserveCase&&(r=!0,o.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=lo}}const aB=p("defaultLabel","input");class lB extends rs{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new M),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new M),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new M),this._onKeyUp=this._register(new M),this._onCaseSensitiveKeyDown=this._register(new M),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new M),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||aB,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const o=n.appendCaseSensitiveLabel||"",r=n.appendWholeWordsLabel||"",a=n.appendRegexLabel||"",l=n.history||[],c=!!n.flexibleHeight,h=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new M2(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:l,showHistoryHint:n.showHistoryHint,flexibleHeight:c,flexibleWidth:h,flexibleMaxHeight:d})),this.regex=this._register(new Sx({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new vx({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new wx({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){let m=u.indexOf(document.activeElement);if(m>=0){let _=-1;f.equals(17)?_=(m+1)%u.length:f.equals(15)&&(m===0?_=u.length-1:_=m-1),f.equals(9)?(u[m].blur(),this.inputBox.focus()):_>=0&&u[_].focus(),Ie.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this.domNode.appendChild(this.controls),e&&e.appendChild(this.domNode),this._register(V(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(V(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}const cB=p("defaultLabel","input"),hB=p("label.preserveCaseCheckbox","Preserve Case");class dB extends Ph{constructor(e){super({icon:g.preserveCase,title:hB+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class uB extends rs{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new M),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new M),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new M),this._onInput=this._register(new M),this._onKeyUp=this._register(new M),this._onPreserveCaseKeyDown=this._register(new M),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||cB,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const o=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new M2(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new dB({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let h=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){let f=h.indexOf(document.activeElement);if(f>=0){let m=-1;u.equals(17)?m=(f+1)%h.length:u.equals(15)&&(f===0?m=h.length-1:m=f-1),u.equals(9)?(h[f].blur(),this.inputBox.focus()):m>=0&&h[m].focus(),Ie.stop(u,!0)}}});let d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.preserveCase.domNode),this.domNode.appendChild(d),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var yx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Lx=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};const kx=new G("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),gh="historyNavigationWidget",xx="historyNavigationForwardsEnabled",Ix="historyNavigationBackwardsEnabled";function fB(s,e,t){new G(t,e).bindTo(s)}function gB(s,e){return s.createScoped(e.target)}function Ex(s,e){return s.getContext(document.activeElement).getValue(e)}function Dx(s,e){const t=gB(s,e);fB(t,e,gh);const i=new G(xx,!0).bindTo(t),n=new G(Ix,!0).bindTo(t);return{scopedContextKeyService:t,historyNavigationForwardsEnablement:i,historyNavigationBackwardsEnablement:n}}let F1=class extends lB{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(Dx(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};F1=yx([Lx(3,Ne)],F1);let B1=class extends uB{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(Dx(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};B1=yx([Lx(3,Ne)],B1);wl.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Oe.and(Oe.has(gh),Oe.equals(Ix,!0),kx.isEqualTo(!1)),primary:16,secondary:[528],handler:s=>{const e=Ex(s.get(Ne),gh);e&&e.historyNavigator.showPreviousValue()}});wl.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Oe.and(Oe.has(gh),Oe.equals(xx,!0),kx.isEqualTo(!1)),primary:18,secondary:[530],handler:s=>{const e=Ex(s.get(Ne),gh);e&&e.historyNavigator.showNextValue()}});function HS(s){var e,t;return((e=s.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=s.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var mB=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const pB=hi("find-selection",g.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),zS=hi("find-collapsed",g.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),US=hi("find-expanded",g.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),_B=hi("find-replace",g.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),bB=hi("find-replace-all",g.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),CB=hi("find-previous-match",g.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),wB=hi("find-next-match",g.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),vB=p("label.find","Find"),SB=p("placeholder.find","Find"),yB=p("label.previousMatchButton","Previous Match"),LB=p("label.nextMatchButton","Next Match"),kB=p("label.toggleSelectionFind","Find in Selection"),xB=p("label.closeButton","Close"),IB=p("label.replace","Replace"),EB=p("placeholder.replace","Replace"),DB=p("label.replaceButton","Replace"),NB=p("label.replaceAllButton","Replace All"),TB=p("label.toggleReplaceButton","Toggle Replace"),MB=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",lo),RB=p("label.matchesLocation","{0} of {1}"),$S=p("label.noResults","No results"),An=419,AB=275,OB=AB-54;let Kl=69;const PB=33,jS="ctrlEnterReplaceAll.windows.donotask",KS=me?256:2048;class Gm{constructor(e){this.afterLineNumber=e,this.heightInPx=PB,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function qS(s,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){s.stopPropagation();return}}function GS(s,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(h=>this._onStateChanged(h))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(h=>{if(h.hasChanged(81)&&(this._codeEditor.getOption(81)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),h.hasChanged(131)&&this._tryUpdateWidgetWidth(),h.hasChanged(2)&&this.updateAccessibilitySupport(),h.hasChanged(35)){const d=this._codeEditor.getOption(35).addExtraSpaceOnTop;d&&!this._viewZone&&(this._viewZone=new Gm(0),this._showViewZone()),!d&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>mB(this,void 0,void 0,function*(){if(this._isVisible){let h=yield this._controller.getGlobalBufferTerm();h&&h!==this._state.searchString&&(this._state.change({searchString:h},!1),this._findInput.select())}}))),this._findInputFocused=pg.bindTo(r),this._findFocusTracker=this._register(Ga(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=Hb.bindTo(r),this._replaceFocusTracker=this._register(Ga(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(35).addExtraSpaceOnTop&&(this._viewZone=new Gm(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(h=>{if(h.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return bg.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(81)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ji(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Ze)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Kl+"px",this._state.matchesCount>=lo?this._matchesCount.title=MB:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=lo&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=cu(RB,i,t)}else e=$S;this._matchesCount.appendChild(document.createTextNode(e)),Nf(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Kl=Math.max(Kl,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===$S)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let i=!this._codeEditor.getOption(81);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(35).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(35).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=en(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=lL(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(35).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(35).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Gm(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const o=this._getHeight();if(o===i.heightInPx)return;let r=o-i.heightInPx;i.heightInPx=o,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(75).top,o<=0)return;i.heightInPx=o,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(g_),inputActiveOptionBackground:e.getColor(m_),inputActiveOptionForeground:e.getColor(p_),inputBackground:e.getColor(TL),inputForeground:e.getColor(ML),inputBorder:e.getColor(RL),inputValidationInfoBackground:e.getColor(AL),inputValidationInfoForeground:e.getColor(OL),inputValidationInfoBorder:e.getColor(PL),inputValidationWarningBackground:e.getColor(FL),inputValidationWarningForeground:e.getColor(BL),inputValidationWarningBorder:e.getColor(VL),inputValidationErrorBackground:e.getColor(WL),inputValidationErrorForeground:e.getColor(HL),inputValidationErrorBorder:e.getColor(zL)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!S0(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let o=!1,r=!1,a=!1;if(this._resized&&ji(this._domNode)>An){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=ji(this._findInput.domNode);return}if(An+28+n>=i&&(r=!0),An+28+n-Kl>=i&&(a=!0),An+28+n-Kl>=i+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!o&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!D.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(KS|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` `),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return qS(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return GS(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(KS|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{li&&va&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(p("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(jS,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return qS(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return GS(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new F1(null,this._contextViewProvider,{width:PB,label:SB,placeholder:yB,appendCaseSensitiveLabel:this._keybindingLabelFor(xe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(xe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(xe.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HS(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),qt&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new ea({label:LB+this._keybindingLabelFor(xe.PreviousMatchFindAction),icon:wB,onTrigger:()=>{this._codeEditor.getAction(xe.PreviousMatchFindAction).run().then(void 0,Ze)}})),this._nextBtn=this._register(new ea({label:kB+this._keybindingLabelFor(xe.NextMatchFindAction),icon:vB,onTrigger:()=>{this._codeEditor.getAction(xe.NextMatchFindAction).run().then(void 0,Ze)}}));let i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Ph({icon:_B,title:xB+this._keybindingLabelFor(xe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new ea({label:IB+this._keybindingLabelFor(xe.CloseFindWidgetCommand),icon:v9,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new B1(null,void 0,{label:EB,placeholder:DB,appendPreserveCaseLabel:this._keybindingLabelFor(xe.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HS(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new ea({label:NB+this._keybindingLabelFor(xe.ReplaceOneAction),icon:bB,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new ea({label:TB+this._keybindingLabelFor(xe.ReplaceAllAction),icon:CB,onTrigger:()=>{this._controller.replaceAll()}}));let o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",o.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new ea({label:MB,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${An}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(o),this._resizeSash=new gi(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=An;this._register(this._resizeSash.onDidStart(()=>{a=ji(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;let c=a+l.startX-l.currentX;if(ch||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=ji(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}this._opts.onKeyDown&&this._opts.onKeyDown(i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...St.asClassNameArray(zS)),this._domNode.classList.add(...St.asClassNameArray(US))):(this._domNode.classList.remove(...St.asClassNameArray(US)),this._domNode.classList.add(...St.asClassNameArray(zS)))}}ni((s,e)=>{const t=(m,_)=>{_&&e.addRule(`.monaco-editor ${m} { background-color: ${_}; }`)};t(".findMatch",s.getColor(po)),t(".currentFindMatch",s.getColor(RT)),t(".findScope",s.getColor(AT));const i=s.getColor(nn);t(".find-widget",i);const n=s.getColor(Ya);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const o=s.getColor(Ma);o&&e.addRule(`.monaco-editor .findMatch { border: 1px ${s.type==="hc"?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const r=s.getColor(OT);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=s.getColor(PT);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${s.type==="hc"?"dashed":"solid"} ${a}; }`);const l=s.getColor(it);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=s.getColor(mo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const h=s.getColor(fT);h&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${h}; }`);const d=s.getColor(yT);if(d)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${d}; }`);else{const m=s.getColor(Vd);m&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${m}; }`)}const u=s.getColor(w_);u&&e.addRule(` +`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return qS(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return GS(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new F1(null,this._contextViewProvider,{width:OB,label:vB,placeholder:SB,appendCaseSensitiveLabel:this._keybindingLabelFor(xe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(xe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(xe.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HS(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),qt&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new ea({label:yB+this._keybindingLabelFor(xe.PreviousMatchFindAction),icon:CB,onTrigger:()=>{this._codeEditor.getAction(xe.PreviousMatchFindAction).run().then(void 0,Ze)}})),this._nextBtn=this._register(new ea({label:LB+this._keybindingLabelFor(xe.NextMatchFindAction),icon:wB,onTrigger:()=>{this._codeEditor.getAction(xe.NextMatchFindAction).run().then(void 0,Ze)}}));let i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Ph({icon:pB,title:kB+this._keybindingLabelFor(xe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new ea({label:xB+this._keybindingLabelFor(xe.CloseFindWidgetCommand),icon:w9,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new B1(null,void 0,{label:IB,placeholder:EB,appendPreserveCaseLabel:this._keybindingLabelFor(xe.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HS(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new ea({label:DB+this._keybindingLabelFor(xe.ReplaceOneAction),icon:_B,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new ea({label:NB+this._keybindingLabelFor(xe.ReplaceAllAction),icon:bB,onTrigger:()=>{this._controller.replaceAll()}}));let o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",o.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new ea({label:TB,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${An}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(o),this._resizeSash=new gi(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=An;this._register(this._resizeSash.onDidStart(()=>{a=ji(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;let c=a+l.startX-l.currentX;if(ch||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=ji(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=ji(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}this._opts.onKeyDown&&this._opts.onKeyDown(i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...St.asClassNameArray(zS)),this._domNode.classList.add(...St.asClassNameArray(US))):(this._domNode.classList.remove(...St.asClassNameArray(US)),this._domNode.classList.add(...St.asClassNameArray(zS)))}}ni((s,e)=>{const t=(m,_)=>{_&&e.addRule(`.monaco-editor ${m} { background-color: ${_}; }`)};t(".findMatch",s.getColor(po)),t(".currentFindMatch",s.getColor(MT)),t(".findScope",s.getColor(RT));const i=s.getColor(nn);t(".find-widget",i);const n=s.getColor(Ya);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const o=s.getColor(Ma);o&&e.addRule(`.monaco-editor .findMatch { border: 1px ${s.type==="hc"?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const r=s.getColor(AT);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=s.getColor(OT);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${s.type==="hc"?"dashed":"solid"} ${a}; }`);const l=s.getColor(it);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=s.getColor(mo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const h=s.getColor(uT);h&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${h}; }`);const d=s.getColor(ST);if(d)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${d}; }`);else{const m=s.getColor(Vd);m&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${m}; }`)}const u=s.getColor(w_);u&&e.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { background-color: ${u} !important; } - `);const f=s.getColor(Zn);f&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${f}; }`)});var Nx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vn=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Dr=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const BB=524288;function V1(s,e="single",t=!1){if(!s.hasModel())return null;const i=s.getSelection();if(e==="single"&&i.startLineNumber===i.endLineNumber||e==="multiple"){if(i.isEmpty()){const n=s.getConfiguredWordAtPosition(i.getStartPosition());if(n&&t===!1)return n.word}else if(s.getModel().getValueLengthInRange(i)this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(35).loop})}))}get editor(){return this._editor}static get(e){return e.getContribution(Tx.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!pg.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=Qn(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return Dr(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let i=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let n=V1(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?i.searchString=Qn(n):i.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let n=V1(this._editor,e.seedSearchStringFromSelection);n&&(i.searchString=n)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(i.searchString=n)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(i.searchScope=n)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new xc(this._editor,this._state))})}start(e,t){return this._start(e,t)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return Dr(this,void 0,void 0,function*(){return this._editor.getOption(35).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(35).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};on.ID="editor.contrib.findController";on=Nx([Vn(1,Ne),Vn(2,Bb),Vn(3,Nh)],on);let W1=class extends on{constructor(e,t,i,n,o,r,a,l){super(e,i,a,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=r,this._widget=null,this._findOptionsWidget=null}_start(e,t){const i=Object.create(null,{_start:{get:()=>super._start}});return Dr(this,void 0,void 0,function*(){this._widget||this._createFindWidget();const n=this._editor.getSelection();let o=!1;switch(this._editor.getOption(35).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!n&&n.startLineNumber!==n.endLineNumber;break}}e.updateSearchScope=e.updateSearchScope||o,yield i._start.call(this,e,t),this._widget&&(e.shouldFocus===2?this._widget.focusReplaceInput():e.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new bg(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new _g(this._editor,this._state,this._keybindingService,this._themeService))}};W1=Nx([Vn(1,Yf),Vn(2,Ne),Vn(3,Li),Vn(4,ot),Vn(5,Dn),Vn(6,Bb),Vn(7,Nh)],W1);const VB=xL(new kL({id:xe.StartFindAction,label:p("startFindAction","Find"),alias:"Find",precondition:Oe.or(H.focus,Oe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:N.MenubarEditMenu,group:"3_find",title:p({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));VB.addImplementation(0,(s,e,t)=>{const i=on.get(e);return i?i.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(35).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(35).loop}):!1});const WB={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:p("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. + `);const f=s.getColor(Zn);f&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${f}; }`)});var Nx=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vn=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Dr=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{c(i.next(h))}catch(d){r(d)}}function l(h){try{c(i.throw(h))}catch(d){r(d)}}function c(h){h.done?o(h.value):n(h.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const FB=524288;function V1(s,e="single",t=!1){if(!s.hasModel())return null;const i=s.getSelection();if(e==="single"&&i.startLineNumber===i.endLineNumber||e==="multiple"){if(i.isEmpty()){const n=s.getConfiguredWordAtPosition(i.getStartPosition());if(n&&t===!1)return n.word}else if(s.getModel().getValueLengthInRange(i)this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(35).loop})}))}get editor(){return this._editor}static get(e){return e.getContribution(Tx.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!pg.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=Qn(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return Dr(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let i=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let n=V1(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?i.searchString=Qn(n):i.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let n=V1(this._editor,e.seedSearchStringFromSelection);n&&(i.searchString=n)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(i.searchString=n)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(i.searchScope=n)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new xc(this._editor,this._state))})}start(e,t){return this._start(e,t)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return Dr(this,void 0,void 0,function*(){return this._editor.getOption(35).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(35).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};on.ID="editor.contrib.findController";on=Nx([Vn(1,Ne),Vn(2,Bb),Vn(3,Nh)],on);let W1=class extends on{constructor(e,t,i,n,o,r,a,l){super(e,i,a,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=r,this._widget=null,this._findOptionsWidget=null}_start(e,t){const i=Object.create(null,{_start:{get:()=>super._start}});return Dr(this,void 0,void 0,function*(){this._widget||this._createFindWidget();const n=this._editor.getSelection();let o=!1;switch(this._editor.getOption(35).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!n&&n.startLineNumber!==n.endLineNumber;break}}e.updateSearchScope=e.updateSearchScope||o,yield i._start.call(this,e,t),this._widget&&(e.shouldFocus===2?this._widget.focusReplaceInput():e.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new bg(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new _g(this._editor,this._state,this._keybindingService,this._themeService))}};W1=Nx([Vn(1,Yf),Vn(2,Ne),Vn(3,Li),Vn(4,ot),Vn(5,Dn),Vn(6,Bb),Vn(7,Nh)],W1);const BB=xL(new kL({id:xe.StartFindAction,label:p("startFindAction","Find"),alias:"Find",precondition:Oe.or(H.focus,Oe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:N.MenubarEditMenu,group:"3_find",title:p({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));BB.addImplementation(0,(s,e,t)=>{const i=on.get(e);return i?i.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(35).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(35).loop}):!1});const VB={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:p("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. The flag will not be saved for the future. 0: Do Nothing 1: True @@ -622,4 +622,4 @@ The flag will not be saved for the future. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},findInSelection:{type:"boolean"}}}}]};class HB extends Fs{constructor(){super({id:xe.StartFindWithArgs,label:p("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:WB})}run(e,t,i){return Dr(this,void 0,void 0,function*(){const n=on.get(t);if(n){const o=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:i.replaceString!==void 0,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(i==null?void 0:i.findInSelection)||!1,loop:t.getOption(35).loop},o),n.setGlobalBufferTerm(n.getState().searchString)}})}}class zB extends Fs{constructor(){super({id:xe.StartFindWithSelection,label:p("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);i&&(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),i.setGlobalBufferTerm(i.getState().searchString))})}}class Mx extends Fs{run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);i&&!this._run(i)&&(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:i.getState().searchString.length===0&&t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),this._run(i))})}}class UB extends Mx{constructor(){super({id:xe.NextMatchFindAction,label:p("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:H.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:Oe.and(H.focus,pg),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}}class $B extends Mx{constructor(){super({id:xe.PreviousMatchFindAction,label:p("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:H.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:Oe.and(H.focus,pg),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class Rx extends Fs{run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);if(!i)return;const n=t.getOption(35).seedSearchStringFromSelection==="selection";let o=null;t.getOption(35).seedSearchStringFromSelection!=="never"&&(o=V1(t,"single",n)),o&&i.setSearchString(o),this._run(i)||(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:n,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),this._run(i))})}}class jB extends Rx{constructor(){super({id:xe.NextSelectionMatchFindAction,label:p("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:H.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class KB extends Rx{constructor(){super({id:xe.PreviousSelectionMatchFindAction,label:p("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:H.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const qB=xL(new kL({id:xe.StartFindReplaceAction,label:p("startReplace","Replace"),alias:"Replace",precondition:Oe.or(H.focus,Oe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:N.MenubarEditMenu,group:"3_find",title:p({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));qB.addImplementation(0,(s,e,t)=>{if(!e.hasModel()||e.getOption(81))return!1;const i=on.get(e);if(!i)return!1;const n=e.getSelection(),o=i.isFindInputFocused(),r=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(35).seedSearchStringFromSelection!=="never"&&!o,a=o||r?2:1;return i.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(35).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(35).loop})});T0(on.ID,W1);No(HB);No(zB);No(UB);No($B);No(jB);No(KB);const Tn=Fr.bindToContribution(on.get);q(new Tn({id:xe.CloseFindWidgetCommand,precondition:Mo,handler:s=>s.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Oe.not("isComposing")),primary:9,secondary:[1033]}}));q(new Tn({id:xe.ToggleCaseSensitiveCommand,precondition:void 0,handler:s=>s.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:yd.primary,mac:yd.mac,win:yd.win,linux:yd.linux}}));q(new Tn({id:xe.ToggleWholeWordCommand,precondition:void 0,handler:s=>s.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:Ld.primary,mac:Ld.mac,win:Ld.win,linux:Ld.linux}}));q(new Tn({id:xe.ToggleRegexCommand,precondition:void 0,handler:s=>s.toggleRegex(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:kd.primary,mac:kd.mac,win:kd.win,linux:kd.linux}}));q(new Tn({id:xe.ToggleSearchScopeCommand,precondition:void 0,handler:s=>s.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:xd.primary,mac:xd.mac,win:xd.win,linux:xd.linux}}));q(new Tn({id:xe.TogglePreserveCaseCommand,precondition:void 0,handler:s=>s.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:Id.primary,mac:Id.mac,win:Id.win,linux:Id.linux}}));q(new Tn({id:xe.ReplaceOneAction,precondition:Mo,handler:s=>s.replace(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:3094}}));q(new Tn({id:xe.ReplaceOneAction,precondition:Mo,handler:s=>s.replace(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Hb),primary:3}}));q(new Tn({id:xe.ReplaceAllAction,precondition:Mo,handler:s=>s.replaceAll(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:2563}}));q(new Tn({id:xe.ReplaceAllAction,precondition:Mo,handler:s=>s.replaceAll(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Hb),primary:void 0,mac:{primary:2051}}}));q(new Tn({id:xe.SelectAllMatchesAction,precondition:Mo,handler:s=>s.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:515}}));const GB={class:"editor",id:"zfile-monaco-editor"},ZB={__name:"TextViewer",props:{fileUrl:String,fileName:String},setup(s){const e=s,t=Px("");Fx(()=>{let o=e.fileUrl;Hx(o).then(r=>{t.value=r.data,n()}).catch(r=>{console.log(`\u9ED8\u8BA4\u52A0\u8F7D\u6587\u672C\u6587\u4EF6: [${e.fileName}] - [${e.fileUrl}] \u5931\u8D25, \u5C1D\u8BD5\u4ECE\u670D\u52A1\u7AEF\u52A0\u8F7D.`,r),zx({url:o}).then(a=>{t.value=a.data,n()}).catch(a=>{console.log(`\u4ECE\u670D\u52A1\u5668\u7AEF\u52A0\u8F7D\u6587\u672C\u6587\u4EF6: [${e.fileName}] - [${e.fileUrl}] \u5931\u8D25.`,a),alert("\u52A0\u8F7D\u6587\u4EF6\u9884\u89C8\u5668\u5931\u8D25\uFF0C\u8BF7\u68C0\u6D4B\u6587\u4EF6\u4E0B\u8F7D\u94FE\u63A5\u662F\u5426\u6B63\u5E38")})})}),Bx(()=>{eu.getModels().forEach(o=>{o.dispose()})});const{isNotMobile:i}=Ux();let n=()=>{let o=eu.createModel(t.value,void 0,px.parse(e.fileName));eu.create(document.getElementById("zfile-monaco-editor"),{model:o,tabSize:4,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:!0,readOnly:!0,minimap:{enabled:i.value},lineNumbers:i.value?"on":"off"})};return(o,r)=>(Vx(),Wx("div",GB))}};var YB=$x(ZB,[["__scopeId","data-v-44b82c5b"]]),JV=Object.freeze(Object.defineProperty({__proto__:null,default:YB},Symbol.toStringTag,{value:"Module"}));export{JV as T,KF as m}; +2: False`)},findInSelection:{type:"boolean"}}}}]};class WB extends Fs{constructor(){super({id:xe.StartFindWithArgs,label:p("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:VB})}run(e,t,i){return Dr(this,void 0,void 0,function*(){const n=on.get(t);if(n){const o=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:i.replaceString!==void 0,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(i==null?void 0:i.findInSelection)||!1,loop:t.getOption(35).loop},o),n.setGlobalBufferTerm(n.getState().searchString)}})}}class HB extends Fs{constructor(){super({id:xe.StartFindWithSelection,label:p("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);i&&(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),i.setGlobalBufferTerm(i.getState().searchString))})}}class Mx extends Fs{run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);i&&!this._run(i)&&(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:i.getState().searchString.length===0&&t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),this._run(i))})}}class zB extends Mx{constructor(){super({id:xe.NextMatchFindAction,label:p("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:H.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:Oe.and(H.focus,pg),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}}class UB extends Mx{constructor(){super({id:xe.PreviousMatchFindAction,label:p("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:H.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:Oe.and(H.focus,pg),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class Rx extends Fs{run(e,t){return Dr(this,void 0,void 0,function*(){const i=on.get(t);if(!i)return;const n=t.getOption(35).seedSearchStringFromSelection==="selection";let o=null;t.getOption(35).seedSearchStringFromSelection!=="never"&&(o=V1(t,"single",n)),o&&i.setSearchString(o),this._run(i)||(yield i.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(35).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:n,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(35).loop}),this._run(i))})}}class $B extends Rx{constructor(){super({id:xe.NextSelectionMatchFindAction,label:p("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:H.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class jB extends Rx{constructor(){super({id:xe.PreviousSelectionMatchFindAction,label:p("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:H.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const KB=xL(new kL({id:xe.StartFindReplaceAction,label:p("startReplace","Replace"),alias:"Replace",precondition:Oe.or(H.focus,Oe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:N.MenubarEditMenu,group:"3_find",title:p({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));KB.addImplementation(0,(s,e,t)=>{if(!e.hasModel()||e.getOption(81))return!1;const i=on.get(e);if(!i)return!1;const n=e.getSelection(),o=i.isFindInputFocused(),r=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(35).seedSearchStringFromSelection!=="never"&&!o,a=o||r?2:1;return i.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(35).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(35).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(35).loop})});T0(on.ID,W1);No(WB);No(HB);No(zB);No(UB);No($B);No(jB);const Tn=Fr.bindToContribution(on.get);q(new Tn({id:xe.CloseFindWidgetCommand,precondition:Mo,handler:s=>s.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Oe.not("isComposing")),primary:9,secondary:[1033]}}));q(new Tn({id:xe.ToggleCaseSensitiveCommand,precondition:void 0,handler:s=>s.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:yd.primary,mac:yd.mac,win:yd.win,linux:yd.linux}}));q(new Tn({id:xe.ToggleWholeWordCommand,precondition:void 0,handler:s=>s.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:Ld.primary,mac:Ld.mac,win:Ld.win,linux:Ld.linux}}));q(new Tn({id:xe.ToggleRegexCommand,precondition:void 0,handler:s=>s.toggleRegex(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:kd.primary,mac:kd.mac,win:kd.win,linux:kd.linux}}));q(new Tn({id:xe.ToggleSearchScopeCommand,precondition:void 0,handler:s=>s.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:xd.primary,mac:xd.mac,win:xd.win,linux:xd.linux}}));q(new Tn({id:xe.TogglePreserveCaseCommand,precondition:void 0,handler:s=>s.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:Id.primary,mac:Id.mac,win:Id.win,linux:Id.linux}}));q(new Tn({id:xe.ReplaceOneAction,precondition:Mo,handler:s=>s.replace(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:3094}}));q(new Tn({id:xe.ReplaceOneAction,precondition:Mo,handler:s=>s.replace(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Hb),primary:3}}));q(new Tn({id:xe.ReplaceAllAction,precondition:Mo,handler:s=>s.replaceAll(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:2563}}));q(new Tn({id:xe.ReplaceAllAction,precondition:Mo,handler:s=>s.replaceAll(),kbOpts:{weight:100+5,kbExpr:Oe.and(H.focus,Hb),primary:void 0,mac:{primary:2051}}}));q(new Tn({id:xe.SelectAllMatchesAction,precondition:Mo,handler:s=>s.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:H.focus,primary:515}}));const qB={class:"editor",id:"zfile-monaco-editor"},GB={__name:"TextViewer",props:{fileUrl:String,fileName:String},setup(s){const e=s,t=Px("");Fx(()=>{let o=e.fileUrl;Hx(o).then(r=>{t.value=r.data,n()}).catch(r=>{console.log(`\u9ED8\u8BA4\u52A0\u8F7D\u6587\u672C\u6587\u4EF6: [${e.fileName}] - [${e.fileUrl}] \u5931\u8D25, \u5C1D\u8BD5\u4ECE\u670D\u52A1\u7AEF\u52A0\u8F7D.`,r),zx({url:o}).then(a=>{t.value=a.data,n()}).catch(a=>{console.log(`\u4ECE\u670D\u52A1\u5668\u7AEF\u52A0\u8F7D\u6587\u672C\u6587\u4EF6: [${e.fileName}] - [${e.fileUrl}] \u5931\u8D25.`,a),alert("\u52A0\u8F7D\u6587\u4EF6\u9884\u89C8\u5668\u5931\u8D25\uFF0C\u8BF7\u68C0\u6D4B\u6587\u4EF6\u4E0B\u8F7D\u94FE\u63A5\u662F\u5426\u6B63\u5E38")})})}),Bx(()=>{eu.getModels().forEach(o=>{o.dispose()})});const{isNotMobile:i}=Ux();let n=()=>{let o=eu.createModel(t.value,void 0,px.parse(e.fileName));eu.create(document.getElementById("zfile-monaco-editor"),{model:o,tabSize:4,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:!0,readOnly:!0,minimap:{enabled:i.value},lineNumbers:i.value?"on":"off"})};return(o,r)=>(Vx(),Wx("div",qB))}};var ZB=$x(GB,[["__scopeId","data-v-44b82c5b"]]),QV=Object.freeze(Object.defineProperty({__proto__:null,default:ZB},Symbol.toStringTag,{value:"Module"}));export{QV as T,jF as m}; diff --git a/src/main/resources/static/assets/VideoPlayer.e995af40.js b/src/main/resources/static/assets/VideoPlayer.ea56af9f.js similarity index 98% rename from src/main/resources/static/assets/VideoPlayer.e995af40.js rename to src/main/resources/static/assets/VideoPlayer.ea56af9f.js index 7c584bf..e79506c 100644 --- a/src/main/resources/static/assets/VideoPlayer.e995af40.js +++ b/src/main/resources/static/assets/VideoPlayer.ea56af9f.js @@ -1,4 +1,4 @@ -import{a as tt,u as rt,b as it,k as nt,m as st}from"./useFileUpload.b18c246f.js";import{bN as Ke,O as Be,K as Ue,a as Pe,f as we,p as pe,L as at,M as ot,r as lt,o as ut,u as Re,h as Ae,e as ge,k as ft,U as dt,V as ct,J as De}from"./index.552205f5.js";import{f as We}from"./request.3708b2c4.js";import{r as ht}from"./base.d698891e.js";import"./tooltip.f118fcb0.js";import{E as vt}from"./popper.14a92806.js";/* empty css */import{_ as pt}from"./plugin-vue_export-helper.21dcd24c.js";import"./common.0f75f163.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./event.776e7e11.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./directive.e250a256.js";var gt="/assets/video-download.3a226681.png",mt="/assets/video-thunder.5e7f4cec.png",yt="/assets/video-motrix.95ef7e61.png",Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAOeUlEQVR4Xu3dy5EjuRWF4TMGyA550ibIgPZirJjFODIeaDVOaDMvSREKRdRKGy0UVF1mZTV5yGS+ACSA/G/EV1F1p7unu4pA4nEB6nK5fIeG/UN/vvyuL5df9fXyi75///zHq9/00+UP/fye+9vVr3q7cZnw7deMvy/+jPiz4s+MPz/+PyH+v//Wnx7+PmiKPIEKRUMbG/nYuIdG7Q34GPF3GTuJ4e/4hc6hDfIEDjY29njaRqN6/cSu29gxDCMTOoUKyRMoLIbS8dSs7ameS/wbx5FC/Nv9+4Gi5AlkNj7hhzl1/w1+ztghMEI4hDyBDOJJF8PgWFDzBoB745SB0UER8gQSGRs9T/nthl0MOoOM5AnswJM+n7EzYJqQlDyBDWL+OqzYP75wkd6w5fjl4eeA1eQJLDQU4MRqdrvbdK0bipWYIuwgT2AGT/s6xc+EjmA1eQITYt+auX394mfE9GAxeQI3YsGJlfw2DT+zrywaviZP4MNw8IX5fevoCF6SJ04tXiTDqTqe+L0ZOwL/mZ+cPHFaNPxzGEqPWSP4IE+cTrwYWNw7H3YNruSJ0/i2j//44sB5xGvgxOsD8sQpsMCHe/FaOOX6gDzRNYb7eCVeGyebFsgTXRrO4DPcxzIxQvTXUKfkie4M12uxuo91TrJbIE90g6c+Uuh8NCBPdGE4l89TH2l0vDYgTzRvuLf+8YcI7NfdToE80awY8nNMF7nFa6yjugF5okkM+VFSvNY6mRLIE81hyI9jdFE8JE80g1V+1CBeg/7abIg80YRo/FT0oRYNrwvIE9Vjvo8aNbouIE9UbXiHXA7xoFZvrXUC8kS1WOxDG95aKiGWJ6pE40d7mtghkCeqM5zd928uUL8GzhHIE1Vhmw+tq7wTkCeqQeNHLyruBOSJKtD40ZtKC4bkicPR+NGrCkcC8sShaPzoXWWdgDxxGFb7cRYVdQLyxCHY58f5VFEnIE8UN5T3+jcH6F8FFYPyRFHU9uPcDi8blieKiUMTNH7g0ANE8kQRcXaaI73AINrCQfcJyBNFcJkHcC8uFfF2UoA8kR17/cBzB2wPyhNZsd0HvFZ4UVCeyIZFP2CJoouC8kQWLPoByxVcFJQnsuAde4B1Ci0KyhPJMe8HtspeLixPJDXM+/0fBWCZ7OsB8kQyzPuB/aJmxttWQvJEMuz3A2lkrA+QJ5LghB+QVqapgDyRBEN/IK1oU97OEpAnduNmHyCPDFMBeWIXVv2BvBJPBeSJXTjlB+SVeFdAntiMgh+glGQFQvLEJrHnz0EfoJS3VGcF5IlN2PMHykr0TkPyxGos/AHHSLAgKE+sxsIfcIwEC4LyxCpU/AHH2nmDkDyxChV/wLF2VgjKE4ux7QfUYvO2oDyxGE9/oA47rhCTJxbh6b/Pv969/WXw9yf/HVhv0yhAnpjFRR/7/Pevl4f4zw90BNhn4yhAnpjF03+7eOJPxf/+Ofx3/z3AcqtHAfLELJ7+2z17+nvEr2E0gC027AjIEy+x77/Pmohpgf9+YN6qUYA88RJVf/usjZgWxIKh/znAlJXVgfLEJJ7++20NpgVYY0V1oDwxiXf32W9vsEiIJVa8q5A88RQn/tJIEUwLsMTCk4LyxFNc9JlGyqB2AK8svEBUnniK237SSB3UDmDa28Xb8RPyxAMW/9LJFbFIyLQAbsFioDzxgMW/dHIHtQO4tWAxUJ64M1z2+fgHY5sSwbQAt2bOB8gTd1j8S6tkUDuAMLMYKE/cofIvrSOC0cC5zVQGyhOf2PtP76igduDcXtQEyBOfGP6nd3RQO3BOL6YB8sQnhv/p1RJMC87lxTRAnrhi+J9HTUHtwLlMTAPkiSuG/3nUGNQOnMPENECeuKL4J49ag9qB/k0UBckTFP9kVHtQO9C3J0VB8gS1/xm1EkwL+vTkbIA8wVt9Z9RSUDvQnydvKS5PcOtvRi0G04J+PLk1WHcJtv/yajVYJOyHbQfq9osLb/qRV+tB7UAP7q4N1+0XzP8z6yUoKW6XrQPo9gvKfzPrKZgWtMnKgvX5Bfv/+fUYLBK256YeQOMn7P8X0HNQO9COm3oAjZ9Q/19A70HtQBtuzgVo/IT6/wLOEkwL6nZzLkDjJxQAFXC2YJGwTjcFQbp+wgJgGWcMpgV1+lgIVHygArCQMwe1A3X5WAhUfLhQAVjG2YPagZpcKwIVH6gALIQYgkXC431UBCo+sANQCHEf1A4c52MnQPGBEuBCiMdgkfAYHzsBig8X3v67DGI6mBaUd+0A2AIsh5gPFgnLeW/7YguwIGJZMC0o43d9EYeACiLWBbUDeV07AGoAyiHWB7UD+fyi78UpwIKI7cEiYXrXDoAioHKI/UHtQDrvbZ8OoCQiTbBImMZv+klUARZEpA2mBfv8oZ9FFWBBRJ5gkXCbawfARSDlEPmCacF6722fDqAkIn9QO7DGW9QBcA6gFKJMUDuw1LUD8CRyIcoGb2U2iw6gJOKYoHZgEh1AScRxEaMB/3mADqAo4thgXeABHUBJxLERi4P+Mzk5OoCSiOPDfyYnRwdQEnFssA7wgA6gJOLYYEvwAYVAJRHHBQuAz1AJWBRRPjgx+MobZwFKIsoF5cDzroeBOA5cDlEmOBC0zLUD4EKQcoi8Qe3/Otf7AOgAyiHyBMP9ba5XgnEnYDlE+mC4v931UlCuBS+HSBfcALTftQPgjUHKIdIEw/00Pt4XgLcGK4XYF+zpp/aVNwctidgWDPfzuL43IG8PXg6xPhju5/P+8H//ePnuQjlwGcTyYLif33vbj4/fUQ5cCDEfDPfLiDb/2QFQDFQG8Tq4vLOcaPOfHQDFQGUQz4PhfnnR5j87AGoByiDugxLeI3293IwAqAUogfgWDPePFW3+swNgK7AMguF+LaLNf3YA7ASUceZguF+Tt8tHu9f4CTsBBZw1OLFXl48dgKDxE04FFnC24IKOOkVbf+gAWAjM7yzBcL9uHwuAQeMnLAQWcIZguF+/jwXAoPGTKxYC8+o5GO634aMEeKTbL6gIzKzHYLjflo8KwJFuv7hQEZhXb8Fwv0XXCsCRbr/gcpDMeglO7LUr2vhkBxBYB8inh2C43y6b/wd5gnWAjFoOSnjbZ/P/IE9QD5BRi8Fwvx83+/8jeYJ6gIxaC4b7fbnZ/x/JE1e8YWgerQTD/f5Em/Z2PtkBcC4gj9qD4X6/bur/b8kTV2wH5lFzcEFH32z7byRPfGI7ML0ag+F+/55s/43kiU9MA9KrKSjhPY+J4X+QJz4xDUivlmC4fy4Tw/8gT9xhGpDW0cFw/3xeDP+DPHGHaUBaRwXD/fN6MfwP8sQdpgFpHRGc2Du3F8P/IE884LLQdEoGF3Tg5vLPKfLEA84GpFMiGO5j9KT238kTD4azAbx9eAq5g+E+vvm8+/8VeeIpjginkSsY7sM9Ofr7jDzxFIuBaaQOhvuYMrP4N5InJrEYuF/KYLiPKQsW/0byxCQWA/dLEZzYw5wFi38jeeIl7gnYZ28w3Mecmco/J0+8xLXh+2wNSnix3N2133PkiZdiS5DzAdutDYb7WCPa5pNrv16RJ2ZxPmC7NcFwH2vN1P0/I0/MojBouxjKzwXDfWzztvbpH+SJRRgFbBNP9alguI89Njz9gzyxCKOA7WL/3oPhPvbZ9PQP8sRi7AhsF0P8aPQ88ZHGqpX/W/LEYuwIAMfbsPJ/S55YhVEAcLTNT/8gT6xGdSBwjIl3+1lDnliNMwLAMVbU/E+RJzbhpCBQ1ooTf6/IE5sM9wWwLQiU8bb0vP8ceWIzioOAMjYW/TwjT2zGtiCQ38rjvnPkiV1YEATySrDwd0ue2I0LRIE8Fl70uYY8sRtTASC9nRV/U+SJJJgKAGklHvqP5IlkmAoAaWQY+o/kiWSYCgD7ZRr6j+SJpJgKAPskKviZIk8kR4EQsE3Cgp8p8kQWnBgE1klU6z9HnsiC9QBguczz/lvyRDasBwBLJDvos4Q8kRU3CAFzdt3ws5Y8kR31AcBzGff7p8gT2cXchkVB4F6C6722kCeKYFEQ+Kbgop+TJ4qIfyy3CAGh6KKfkyeKYmcA5/aW65DPUvJEcewM4KwObvxBnjgE5cI4n6LbfVPkicOwPYizKFDjv5Q8cSg6AfTugL3+V+SJw9EJoFeVNf4gT1SBdxpCbyps/EGeqAYjAfSi0sYf5Imq0AmgdRU3/iBPVIdOAK2qaLV/ijxRJeoE0J4q9vnnyBPVomIQbTi8vHcNeaJqw9kBDhChVoce7NlCnqhefIM5SozaxGuyscYf5IkmcKkIahJ1Kwed599LnmhGfMPZIcDRKt/mmyNPNIfFQRyjqcW+KfJEk1gXQEmNzvefkSeaFVMCzhAgt4bn+8/IE82jaAh5xPZzE8U9a8gTXWBKgJRix6mTIb+TJ7rBLgFSaKCefw95ojuxUstoAGvFa6aDVf458kSXGA1gjXjqd7TQ94o80TXWBvBKx3P9KfLEKQw7BRwqwqjLFf4l5InTYFqAEK+Bkwz3n5EnTmP8oceQj4NF5xMFPScb7j8jT5xWDAFZH+jfSVb3l5InTi1GBcPhItYHejN07qec578iT+AydAQsFPaBhv+SPAETHQFTg/bQ8BeRJzCBNYI2xIIuc/zF5AnMiBcXx47rw6r+JvIEFhqqClknOFKMyE5UtpuDPIENGBWU9Hb9XjPMT0KewA7jqIDCovSG7+lXnvZpyRNIZOwMWDjcLhp9fA+Z22cjTyADRgZLDcP7eNLT6IuQJ5DZcAjpy/UQCqODsTT3x+v3hOF9cfIECosnXTzxztIhDPv0NPhKyBM42DhCiClDDIdb7hTi7z78G76nwddJnkCFouHcjhSiUQ3rCTXUILxd/y5jQx/n7zT2JsgTaMzYOQxvnR7lyvG0jSH2t45iKJiJkUR0GKPHhjwaf/3YsIfpSexoDA08/l808i78HzPcPJXn8KhQAAAAAElFTkSuQmCC",xt="/assets/video-iina.1db26170.png",_t="/assets/video-vlc.54e63a7e.png",Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAK2UlEQVR4Xu2dC3BUZxXHD4g4VlukLRTEIKhYochjeBRaCoggpQaqBSrQWFuCwLbFDpRhQIs4Y8YRO1Lr4JSWJkCJVihgy0PerxapUhqaQrCFIkUghM1rs7sJVCYcz3d3v+Tuud+9e/dFdpPvP/OfwAzs3j0//v9zv2x2ANDS0tLS0tLS0tLS0tLS0tLS0tJqEHrhi1gJM+jrOqyAf2A5vEFeSr8exP+sVopFg59C9pJR6UrYRu7F/55WCkQJWGABoPY1Ss9K+tqZP4ZWkkQwRtGAryuG7+QAgfmFqDj+eFoJiob7nmLgbl1KNTYdEVrzx9WKQ1gFvRVDjt2VcIx8P398rRhFdfWoZbiJ2AvbCcxd/Hm0XIqAeCxDTdz19Lj5qBd/7EoREOkApWWJXvwxKMVADFdXQmkRLX7Qiz+6UgHkagXgyWrAzTWAvw0APh1s8Im5Qb34HZUMINfJ5yoBd/sAl/sB5zYCUHpOELaT+/Jr0YL4gVwmAIcpBQUEYKFi6C5cPy8I+TNr9eKPkFsgAQLwPgFYTzX0K+tw43ctBH4WgLwlevGHZAfkGu2BjwjAVgLwXOQeSJrnRLqU4OSORGjDr7FFSQIRe+A8pWAfQXiRaugZxQCTaQajwU8FoeSJlrz4j1SBZw2lYJFiaKk0BxGGYZiA4Owg7JpdC/359TZ7zQuAhw8rleYQzCBMMKTr6ff5U2rhy/y6m61uJBAnEAoYODPsWQGom9FSFv+NAhIPDAKBPyXnkh8nT/dD6fQAzG7Wiz/VQDgIFQwzCDMMAULCkP4xOccPJVOb6+JPJRAOgsPgqZAwZCrMMH4ShvEIeSr5R+TJftg3obkt/lQA4RDcwFBVlDkVAoSwAYI8iW7Nf0B3hxNqoH68Dwqyq6Arf20ZqWQC4QDcgrCDoUrFw/5GGNnkB8hjyCN8UDe8BvImZ/riTxYQDoGDsNsV5oqyS4WAIVPxkN9IhQFiLHmUgEG+hzzEBwjVUAYXBzwB+5dk5uJPFAiHoAJhB0O1uM2pUFWUTIWAIUAMEhAudUU4PQeheBfCOz6Ew36EQ/4SeNufzV9v2iteIByCHQwVCGEOQqbCXFEShLBIhYAhQEA5+VwOQsk6hCNlCP8MEogAgRAmGG+HfZD8ln8/HKzOnMWfTCBOu8IpFbyieCp6VxKAiw8ifLQC4djHCO8SgH+F3QDD3whDgBDeXxPy3pp62Fv9KuyuS//FHw8QDiIWGHxfqCpqXLWoodEI/1mKcPwownvBEAThIyYYAoSEYU7FwTCIfQYMhN1UY7vIO6vrYIcvD/5eeQufQ9ooViDxgHBa3MJTKAntL/emGlqEcHIvpYCGVxQMgVDBcKqoAyYYe3xmGAjbydsMl8OW6sf5LNJCsQCxA+EEwy4VA6taIVzw0DLeRMvYSxDqCIJwbSOIoyYQFhh+sbitFSVTIWBIEDsEDF8Ixpaw36xCeKPqZUBsxWfSpHIDxCkV0hyEeV8ICA+Ku6GL06iGChBOnCEINPz360IgGmC4SIWqosyp2OuLhCFSIZMhQGw2QCBsqgz5b1WL+EyaVNGAcBgcCE+GhDGNauhm71iET36P8CHtgeJgCIJ0BIjaRhgyFSoY5oqyLm5TRclUmEA0pCIMYiN5A/n1iquwtjZ93te3A8IhcBAcxgzy3RX9qIZ+iXCK9sBxGswHtZEQLKkQIEwVxUEYMEypiKgotridKmpzdSgVEoYBgrxOuBzhLxUL+FyaTBwIh6ACISsqu0rcDT1FNbSRaqgsBECagzDD4KlQwVClQsKQqZAVpV7c1lREwKhA+KuAIVy5jc+lySSBcAgqGI/QmaBVGR3IzuVTDZ0mCDTYD65EglDBsOwKxeK2gxHv4hapUFXUegajkPzn8nf5XJpMAgiHIEGIu6O+5fcjnF9GNUR74EQwBEH4eIww3KTC6WzBFzdPRcTiDleUJRXhinpNwqC7u7XkV737+FyaTHNMQASEMVV0HihdjHBmD0KJrxGA2W5ACMebCleL2xe5uLc6VJQqFRLGGgPI83wuTaaJPvAYe+CTDQj/LrUO3+xYU6GCwUHEe7YwUuGwuEVFOaVCwlgtvl4eyufSdDp51WMZvMoGiBhg8IqKNRXRKsq8uI2zBUuFZXFHVFQIhHDBpfRZ6IbcAHEDIu6K8lthSBDy2x92i5tXVMPZIkpFGSDIq8pOQUGgAx9J08oJiNuKkiAaYIRBqCrK6cTNzxY8FU6L21xRAgSvKJEKM4z8SzvgT95OfBxNLzsgqoriIOJOhaKilItbpsIEgqfCrqJUqRBeVVYKr5RN42NIH6mAcBDxwrA7catguF3cvKKUi7vcurgLvNdglfcP8MfT6futd0MSiKgntxVlt7hVFSXPFqoTd6oXt4SRX3YI8i9nyAeEJJBYQDilQllRNqmwragYFrdTKlZ7vbQrHku7b7E7SgBJFAYHwSvKdnErUqFa3KqKclrcKz6sh8cWvzhs2LD2/OWmv4oFEAcQsVaUanFLGDIVzu/mWVMRraJWX0CY9xL2HTsa87vdcQQBBvKXmTkqDjQCsQOhSkXK381jqTC+/WFKRd4W7PDQw/jz/t3xU6BSAqC/BLPIGf7RawGEg7CkQjjOVERb3KqKsqSC/NIxhNz5mDNiIJ6F1gKA9HVyAfl2/tIyU8W1ViDRUhENhtPibkiFCYQqFYXnEBa+gNnjx+CBrDvMAMwmSnAPf0mZLQ7EDgYHwRe307t5blKxkXbB0k1497SpuGbAN/nguenB4GlyZv64qKMkEA4iGRUVbXGvPIRZT87F34wZhFegLR+6yqKeCsnp8x540iWAcBiuKoqnIlxRTot73SmEZ5ehZ9I4PNPtK3zY0VxCHskvv/lJAnGbiljOFlvLEJa9hlOnP4pvDfk2H7Bb0xPCAnJbfunNU0UExHUqoi1uSsLqA/jdZ+bj+ux7ETu348ON1a+Ts/glN28JIBxGxOKWMGwqatNx7J23DJfnjMcrfboj3vYZxC+0QmxtGW4sPk3+Hr/UlqEiOofYpULcRfHFvfMCtl1eiM8+mYtnRw5A7EYp6HIzpeEmxHZtENtahhuLqTthMflz/DJbjo4SEBUMWVEH6ZZ07U6ctXghvjNxNGKfLog9b0P8xi2IXQlEFwLRke6Q2iWcis3k7vzyWp4EEH62eLMIf/jc87hlxkTE+76F2K8zgaDDWc+OiHfeHoIhU5F4RZ0lj+eX1XIlgOw5i/e9XIj582fhlQcGIw7thjj4q4iDskIwenUKpeLO9o0VJVMRf0V9Sv41+fP8klq0/pszzoPf6YE4/OuI9xKIIWEQ/ama+lEqeplSISsq8VTsJPfg16JFwlFf8+Dw7qFUSBgRFRVOhYDRWaRCLO64YZwnT+bXoGUSjiAgsqKMVIQrykjFreFUJFxR/yP/jpzZnyG/EcIhWZ5QRYVTwSsq8cV9gKz/iwu3olR4lBWV+NmilJxDzqD3s9NA2Kejx5IKubjjO1tcI79A/hJ/Li0Xwrs6TYpc3OFUxFdRh8n9+HNoxSDs2aFHEs4W5eRc1PWUHGGnmw7HubjrySvIt/LH1EpA2AaGUirEyZkP3MlHyYP5Y2klSTTcmRj6F88Hz11N9mDG/7hNBoiG/H3yxwoIwuJw9wo5zT5P0cyFMOCzNPQJGLp13UBeSZ5HTsPPUmhpaWlpaWlpaWlpaWlpaWlpaWlpaWklqv8Da8GBU4g36CAAAAAASUVORK5CYII=",St="/assets/video-mxplayer.5dfa69aa.png",Lt="/assets/video-mxplayer-pro.10406916.png",Ve={exports:{}};/*! +import{a as tt,u as rt,b as it,k as nt,m as st}from"./useFileUpload.72c71760.js";import{bO as Ke,O as Be,K as Ue,a as Pe,f as we,p as pe,L as at,M as ot,r as lt,o as ut,u as Re,h as Ae,e as ge,k as ft,U as dt,V as ct,J as De}from"./index.43b3cbf5.js";import{f as We}from"./request.e2daed10.js";import{r as ht}from"./base.4ef7f45b.js";import"./tooltip.f118fcb0.js";import{E as vt}from"./popper.718d36e0.js";/* empty css */import{_ as pt}from"./plugin-vue_export-helper.21dcd24c.js";import"./common.72335e7c.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./event.776e7e11.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./event.3ec63147.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";import"./index.566ad052.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";var gt="/assets/video-download.3a226681.png",mt="/assets/video-thunder.5e7f4cec.png",yt="/assets/video-motrix.95ef7e61.png",Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAOeUlEQVR4Xu3dy5EjuRWF4TMGyA550ibIgPZirJjFODIeaDVOaDMvSREKRdRKGy0UVF1mZTV5yGS+ACSA/G/EV1F1p7unu4pA4nEB6nK5fIeG/UN/vvyuL5df9fXyi75///zHq9/00+UP/fye+9vVr3q7cZnw7deMvy/+jPiz4s+MPz/+PyH+v//Wnx7+PmiKPIEKRUMbG/nYuIdG7Q34GPF3GTuJ4e/4hc6hDfIEDjY29njaRqN6/cSu29gxDCMTOoUKyRMoLIbS8dSs7ameS/wbx5FC/Nv9+4Gi5AlkNj7hhzl1/w1+ztghMEI4hDyBDOJJF8PgWFDzBoB745SB0UER8gQSGRs9T/nthl0MOoOM5AnswJM+n7EzYJqQlDyBDWL+OqzYP75wkd6w5fjl4eeA1eQJLDQU4MRqdrvbdK0bipWYIuwgT2AGT/s6xc+EjmA1eQITYt+auX394mfE9GAxeQI3YsGJlfw2DT+zrywaviZP4MNw8IX5fevoCF6SJ04tXiTDqTqe+L0ZOwL/mZ+cPHFaNPxzGEqPWSP4IE+cTrwYWNw7H3YNruSJ0/i2j//44sB5xGvgxOsD8sQpsMCHe/FaOOX6gDzRNYb7eCVeGyebFsgTXRrO4DPcxzIxQvTXUKfkie4M12uxuo91TrJbIE90g6c+Uuh8NCBPdGE4l89TH2l0vDYgTzRvuLf+8YcI7NfdToE80awY8nNMF7nFa6yjugF5okkM+VFSvNY6mRLIE81hyI9jdFE8JE80g1V+1CBeg/7abIg80YRo/FT0oRYNrwvIE9Vjvo8aNbouIE9UbXiHXA7xoFZvrXUC8kS1WOxDG95aKiGWJ6pE40d7mtghkCeqM5zd928uUL8GzhHIE1Vhmw+tq7wTkCeqQeNHLyruBOSJKtD40ZtKC4bkicPR+NGrCkcC8sShaPzoXWWdgDxxGFb7cRYVdQLyxCHY58f5VFEnIE8UN5T3+jcH6F8FFYPyRFHU9uPcDi8blieKiUMTNH7g0ANE8kQRcXaaI73AINrCQfcJyBNFcJkHcC8uFfF2UoA8kR17/cBzB2wPyhNZsd0HvFZ4UVCeyIZFP2CJoouC8kQWLPoByxVcFJQnsuAde4B1Ci0KyhPJMe8HtspeLixPJDXM+/0fBWCZ7OsB8kQyzPuB/aJmxttWQvJEMuz3A2lkrA+QJ5LghB+QVqapgDyRBEN/IK1oU97OEpAnduNmHyCPDFMBeWIXVv2BvBJPBeSJXTjlB+SVeFdAntiMgh+glGQFQvLEJrHnz0EfoJS3VGcF5IlN2PMHykr0TkPyxGos/AHHSLAgKE+sxsIfcIwEC4LyxCpU/AHH2nmDkDyxChV/wLF2VgjKE4ux7QfUYvO2oDyxGE9/oA47rhCTJxbh6b/Pv969/WXw9yf/HVhv0yhAnpjFRR/7/Pevl4f4zw90BNhn4yhAnpjF03+7eOJPxf/+Ofx3/z3AcqtHAfLELJ7+2z17+nvEr2E0gC027AjIEy+x77/Pmohpgf9+YN6qUYA88RJVf/usjZgWxIKh/znAlJXVgfLEJJ7++20NpgVYY0V1oDwxiXf32W9vsEiIJVa8q5A88RQn/tJIEUwLsMTCk4LyxFNc9JlGyqB2AK8svEBUnniK237SSB3UDmDa28Xb8RPyxAMW/9LJFbFIyLQAbsFioDzxgMW/dHIHtQO4tWAxUJ64M1z2+fgHY5sSwbQAt2bOB8gTd1j8S6tkUDuAMLMYKE/cofIvrSOC0cC5zVQGyhOf2PtP76igduDcXtQEyBOfGP6nd3RQO3BOL6YB8sQnhv/p1RJMC87lxTRAnrhi+J9HTUHtwLlMTAPkiSuG/3nUGNQOnMPENECeuKL4J49ag9qB/k0UBckTFP9kVHtQO9C3J0VB8gS1/xm1EkwL+vTkbIA8wVt9Z9RSUDvQnydvKS5PcOtvRi0G04J+PLk1WHcJtv/yajVYJOyHbQfq9osLb/qRV+tB7UAP7q4N1+0XzP8z6yUoKW6XrQPo9gvKfzPrKZgWtMnKgvX5Bfv/+fUYLBK256YeQOMn7P8X0HNQO9COm3oAjZ9Q/19A70HtQBtuzgVo/IT6/wLOEkwL6nZzLkDjJxQAFXC2YJGwTjcFQbp+wgJgGWcMpgV1+lgIVHygArCQMwe1A3X5WAhUfLhQAVjG2YPagZpcKwIVH6gALIQYgkXC431UBCo+sANQCHEf1A4c52MnQPGBEuBCiMdgkfAYHzsBig8X3v67DGI6mBaUd+0A2AIsh5gPFgnLeW/7YguwIGJZMC0o43d9EYeACiLWBbUDeV07AGoAyiHWB7UD+fyi78UpwIKI7cEiYXrXDoAioHKI/UHtQDrvbZ8OoCQiTbBImMZv+klUARZEpA2mBfv8oZ9FFWBBRJ5gkXCbawfARSDlEPmCacF6722fDqAkIn9QO7DGW9QBcA6gFKJMUDuw1LUD8CRyIcoGb2U2iw6gJOKYoHZgEh1AScRxEaMB/3mADqAo4thgXeABHUBJxLERi4P+Mzk5OoCSiOPDfyYnRwdQEnFssA7wgA6gJOLYYEvwAYVAJRHHBQuAz1AJWBRRPjgx+MobZwFKIsoF5cDzroeBOA5cDlEmOBC0zLUD4EKQcoi8Qe3/Otf7AOgAyiHyBMP9ba5XgnEnYDlE+mC4v931UlCuBS+HSBfcALTftQPgjUHKIdIEw/00Pt4XgLcGK4XYF+zpp/aVNwctidgWDPfzuL43IG8PXg6xPhju5/P+8H//ePnuQjlwGcTyYLif33vbj4/fUQ5cCDEfDPfLiDb/2QFQDFQG8Tq4vLOcaPOfHQDFQGUQz4PhfnnR5j87AGoByiDugxLeI3293IwAqAUogfgWDPePFW3+swNgK7AMguF+LaLNf3YA7ASUceZguF+Tt8tHu9f4CTsBBZw1OLFXl48dgKDxE04FFnC24IKOOkVbf+gAWAjM7yzBcL9uHwuAQeMnLAQWcIZguF+/jwXAoPGTKxYC8+o5GO634aMEeKTbL6gIzKzHYLjflo8KwJFuv7hQEZhXb8Fwv0XXCsCRbr/gcpDMeglO7LUr2vhkBxBYB8inh2C43y6b/wd5gnWAjFoOSnjbZ/P/IE9QD5BRi8Fwvx83+/8jeYJ6gIxaC4b7fbnZ/x/JE1e8YWgerQTD/f5Em/Z2PtkBcC4gj9qD4X6/bur/b8kTV2wH5lFzcEFH32z7byRPfGI7ML0ag+F+/55s/43kiU9MA9KrKSjhPY+J4X+QJz4xDUivlmC4fy4Tw/8gT9xhGpDW0cFw/3xeDP+DPHGHaUBaRwXD/fN6MfwP8sQdpgFpHRGc2Du3F8P/IE884LLQdEoGF3Tg5vLPKfLEA84GpFMiGO5j9KT238kTD4azAbx9eAq5g+E+vvm8+/8VeeIpjginkSsY7sM9Ofr7jDzxFIuBaaQOhvuYMrP4N5InJrEYuF/KYLiPKQsW/0byxCQWA/dLEZzYw5wFi38jeeIl7gnYZ28w3Mecmco/J0+8xLXh+2wNSnix3N2133PkiZdiS5DzAdutDYb7WCPa5pNrv16RJ2ZxPmC7NcFwH2vN1P0/I0/MojBouxjKzwXDfWzztvbpH+SJRRgFbBNP9alguI89Njz9gzyxCKOA7WL/3oPhPvbZ9PQP8sRi7AhsF0P8aPQ88ZHGqpX/W/LEYuwIAMfbsPJ/S55YhVEAcLTNT/8gT6xGdSBwjIl3+1lDnliNMwLAMVbU/E+RJzbhpCBQ1ooTf6/IE5sM9wWwLQiU8bb0vP8ceWIzioOAMjYW/TwjT2zGtiCQ38rjvnPkiV1YEATySrDwd0ue2I0LRIE8Fl70uYY8sRtTASC9nRV/U+SJJJgKAGklHvqP5IlkmAoAaWQY+o/kiWSYCgD7ZRr6j+SJpJgKAPskKviZIk8kR4EQsE3Cgp8p8kQWnBgE1klU6z9HnsiC9QBguczz/lvyRDasBwBLJDvos4Q8kRU3CAFzdt3ws5Y8kR31AcBzGff7p8gT2cXchkVB4F6C6722kCeKYFEQ+Kbgop+TJ4qIfyy3CAGh6KKfkyeKYmcA5/aW65DPUvJEcewM4KwObvxBnjgE5cI4n6LbfVPkicOwPYizKFDjv5Q8cSg6AfTugL3+V+SJw9EJoFeVNf4gT1SBdxpCbyps/EGeqAYjAfSi0sYf5Imq0AmgdRU3/iBPVIdOAK2qaLV/ijxRJeoE0J4q9vnnyBPVomIQbTi8vHcNeaJqw9kBDhChVoce7NlCnqhefIM5SozaxGuyscYf5IkmcKkIahJ1Kwed599LnmhGfMPZIcDRKt/mmyNPNIfFQRyjqcW+KfJEk1gXQEmNzvefkSeaFVMCzhAgt4bn+8/IE82jaAh5xPZzE8U9a8gTXWBKgJRix6mTIb+TJ7rBLgFSaKCefw95ojuxUstoAGvFa6aDVf458kSXGA1gjXjqd7TQ94o80TXWBvBKx3P9KfLEKQw7BRwqwqjLFf4l5InTYFqAEK+Bkwz3n5EnTmP8oceQj4NF5xMFPScb7j8jT5xWDAFZH+jfSVb3l5InTi1GBcPhItYHejN07qec578iT+AydAQsFPaBhv+SPAETHQFTg/bQ8BeRJzCBNYI2xIIuc/zF5AnMiBcXx47rw6r+JvIEFhqqClknOFKMyE5UtpuDPIENGBWU9Hb9XjPMT0KewA7jqIDCovSG7+lXnvZpyRNIZOwMWDjcLhp9fA+Z22cjTyADRgZLDcP7eNLT6IuQJ5DZcAjpy/UQCqODsTT3x+v3hOF9cfIECosnXTzxztIhDPv0NPhKyBM42DhCiClDDIdb7hTi7z78G76nwddJnkCFouHcjhSiUQ3rCTXUILxd/y5jQx/n7zT2JsgTaMzYOQxvnR7lyvG0jSH2t45iKJiJkUR0GKPHhjwaf/3YsIfpSexoDA08/l808i78HzPcPJXn8KhQAAAAAElFTkSuQmCC",xt="/assets/video-iina.1db26170.png",_t="/assets/video-vlc.54e63a7e.png",Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAK2UlEQVR4Xu2dC3BUZxXHD4g4VlukLRTEIKhYochjeBRaCoggpQaqBSrQWFuCwLbFDpRhQIs4Y8YRO1Lr4JSWJkCJVihgy0PerxapUhqaQrCFIkUghM1rs7sJVCYcz3d3v+Tuud+9e/dFdpPvP/OfwAzs3j0//v9zv2x2ANDS0tLS0tLS0tLS0tLS0tLS0tJqEHrhi1gJM+jrOqyAf2A5vEFeSr8exP+sVopFg59C9pJR6UrYRu7F/55WCkQJWGABoPY1Ss9K+tqZP4ZWkkQwRtGAryuG7+QAgfmFqDj+eFoJiob7nmLgbl1KNTYdEVrzx9WKQ1gFvRVDjt2VcIx8P398rRhFdfWoZbiJ2AvbCcxd/Hm0XIqAeCxDTdz19Lj5qBd/7EoREOkApWWJXvwxKMVADFdXQmkRLX7Qiz+6UgHkagXgyWrAzTWAvw0APh1s8Im5Qb34HZUMINfJ5yoBd/sAl/sB5zYCUHpOELaT+/Jr0YL4gVwmAIcpBQUEYKFi6C5cPy8I+TNr9eKPkFsgAQLwPgFYTzX0K+tw43ctBH4WgLwlevGHZAfkGu2BjwjAVgLwXOQeSJrnRLqU4OSORGjDr7FFSQIRe+A8pWAfQXiRaugZxQCTaQajwU8FoeSJlrz4j1SBZw2lYJFiaKk0BxGGYZiA4Owg7JpdC/359TZ7zQuAhw8rleYQzCBMMKTr6ff5U2rhy/y6m61uJBAnEAoYODPsWQGom9FSFv+NAhIPDAKBPyXnkh8nT/dD6fQAzG7Wiz/VQDgIFQwzCDMMAULCkP4xOccPJVOb6+JPJRAOgsPgqZAwZCrMMH4ShvEIeSr5R+TJftg3obkt/lQA4RDcwFBVlDkVAoSwAYI8iW7Nf0B3hxNqoH68Dwqyq6Arf20ZqWQC4QDcgrCDoUrFw/5GGNnkB8hjyCN8UDe8BvImZ/riTxYQDoGDsNsV5oqyS4WAIVPxkN9IhQFiLHmUgEG+hzzEBwjVUAYXBzwB+5dk5uJPFAiHoAJhB0O1uM2pUFWUTIWAIUAMEhAudUU4PQeheBfCOz6Ew36EQ/4SeNufzV9v2iteIByCHQwVCGEOQqbCXFEShLBIhYAhQEA5+VwOQsk6hCNlCP8MEogAgRAmGG+HfZD8ln8/HKzOnMWfTCBOu8IpFbyieCp6VxKAiw8ifLQC4djHCO8SgH+F3QDD3whDgBDeXxPy3pp62Fv9KuyuS//FHw8QDiIWGHxfqCpqXLWoodEI/1mKcPwownvBEAThIyYYAoSEYU7FwTCIfQYMhN1UY7vIO6vrYIcvD/5eeQufQ9ooViDxgHBa3MJTKAntL/emGlqEcHIvpYCGVxQMgVDBcKqoAyYYe3xmGAjbydsMl8OW6sf5LNJCsQCxA+EEwy4VA6taIVzw0DLeRMvYSxDqCIJwbSOIoyYQFhh+sbitFSVTIWBIEDsEDF8Ixpaw36xCeKPqZUBsxWfSpHIDxCkV0hyEeV8ICA+Ku6GL06iGChBOnCEINPz360IgGmC4SIWqosyp2OuLhCFSIZMhQGw2QCBsqgz5b1WL+EyaVNGAcBgcCE+GhDGNauhm71iET36P8CHtgeJgCIJ0BIjaRhgyFSoY5oqyLm5TRclUmEA0pCIMYiN5A/n1iquwtjZ93te3A8IhcBAcxgzy3RX9qIZ+iXCK9sBxGswHtZEQLKkQIEwVxUEYMEypiKgotridKmpzdSgVEoYBgrxOuBzhLxUL+FyaTBwIh6ACISsqu0rcDT1FNbSRaqgsBECagzDD4KlQwVClQsKQqZAVpV7c1lREwKhA+KuAIVy5jc+lySSBcAgqGI/QmaBVGR3IzuVTDZ0mCDTYD65EglDBsOwKxeK2gxHv4hapUFXUegajkPzn8nf5XJpMAgiHIEGIu6O+5fcjnF9GNUR74EQwBEH4eIww3KTC6WzBFzdPRcTiDleUJRXhinpNwqC7u7XkV737+FyaTHNMQASEMVV0HihdjHBmD0KJrxGA2W5ACMebCleL2xe5uLc6VJQqFRLGGgPI83wuTaaJPvAYe+CTDQj/LrUO3+xYU6GCwUHEe7YwUuGwuEVFOaVCwlgtvl4eyufSdDp51WMZvMoGiBhg8IqKNRXRKsq8uI2zBUuFZXFHVFQIhHDBpfRZ6IbcAHEDIu6K8lthSBDy2x92i5tXVMPZIkpFGSDIq8pOQUGgAx9J08oJiNuKkiAaYIRBqCrK6cTNzxY8FU6L21xRAgSvKJEKM4z8SzvgT95OfBxNLzsgqoriIOJOhaKilItbpsIEgqfCrqJUqRBeVVYKr5RN42NIH6mAcBDxwrA7catguF3cvKKUi7vcurgLvNdglfcP8MfT6futd0MSiKgntxVlt7hVFSXPFqoTd6oXt4SRX3YI8i9nyAeEJJBYQDilQllRNqmwragYFrdTKlZ7vbQrHku7b7E7SgBJFAYHwSvKdnErUqFa3KqKclrcKz6sh8cWvzhs2LD2/OWmv4oFEAcQsVaUanFLGDIVzu/mWVMRraJWX0CY9xL2HTsa87vdcQQBBvKXmTkqDjQCsQOhSkXK381jqTC+/WFKRd4W7PDQw/jz/t3xU6BSAqC/BLPIGf7RawGEg7CkQjjOVERb3KqKsqSC/NIxhNz5mDNiIJ6F1gKA9HVyAfl2/tIyU8W1ViDRUhENhtPibkiFCYQqFYXnEBa+gNnjx+CBrDvMAMwmSnAPf0mZLQ7EDgYHwRe307t5blKxkXbB0k1497SpuGbAN/nguenB4GlyZv64qKMkEA4iGRUVbXGvPIRZT87F34wZhFegLR+6yqKeCsnp8x540iWAcBiuKoqnIlxRTot73SmEZ5ehZ9I4PNPtK3zY0VxCHskvv/lJAnGbiljOFlvLEJa9hlOnP4pvDfk2H7Bb0xPCAnJbfunNU0UExHUqoi1uSsLqA/jdZ+bj+ux7ETu348ON1a+Ts/glN28JIBxGxOKWMGwqatNx7J23DJfnjMcrfboj3vYZxC+0QmxtGW4sPk3+Hr/UlqEiOofYpULcRfHFvfMCtl1eiM8+mYtnRw5A7EYp6HIzpeEmxHZtENtahhuLqTthMflz/DJbjo4SEBUMWVEH6ZZ07U6ctXghvjNxNGKfLog9b0P8xi2IXQlEFwLRke6Q2iWcis3k7vzyWp4EEH62eLMIf/jc87hlxkTE+76F2K8zgaDDWc+OiHfeHoIhU5F4RZ0lj+eX1XIlgOw5i/e9XIj582fhlQcGIw7thjj4q4iDskIwenUKpeLO9o0VJVMRf0V9Sv41+fP8klq0/pszzoPf6YE4/OuI9xKIIWEQ/ama+lEqeplSISsq8VTsJPfg16JFwlFf8+Dw7qFUSBgRFRVOhYDRWaRCLO64YZwnT+bXoGUSjiAgsqKMVIQrykjFreFUJFxR/yP/jpzZnyG/EcIhWZ5QRYVTwSsq8cV9gKz/iwu3olR4lBWV+NmilJxDzqD3s9NA2Kejx5IKubjjO1tcI79A/hJ/Li0Xwrs6TYpc3OFUxFdRh8n9+HNoxSDs2aFHEs4W5eRc1PWUHGGnmw7HubjrySvIt/LH1EpA2AaGUirEyZkP3MlHyYP5Y2klSTTcmRj6F88Hz11N9mDG/7hNBoiG/H3yxwoIwuJw9wo5zT5P0cyFMOCzNPQJGLp13UBeSZ5HTsPPUmhpaWlpaWlpaWlpaWlpaWlpaWlpaWklqv8Da8GBU4g36CAAAAAASUVORK5CYII=",St="/assets/video-mxplayer.5dfa69aa.png",Lt="/assets/video-mxplayer-pro.10406916.png",Ve={exports:{}};/*! * artplayer.js v4.5.2 * Github: https://github.com/zhw2590582/ArtPlayer * (c) 2017-2022 Harvey Zack @@ -49,4 +49,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)}),p.flush()}},"./src/utils/xhr-loader.ts":function(O,C,x){x.r(C);var S=x("./src/utils/logger.ts"),c=x("./src/loader/load-stats.ts"),m=/^age:\s*[\d.]+\s*$/m,M=function(){function T(u){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=u?u.xhrSetup:null,this.stats=new c.LoadStats,this.retryDelay=0}var g=T.prototype;return g.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},g.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},g.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},g.load=function(n,f,l){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=f,this.callbacks=l,this.retryDelay=f.retryDelay,this.loadInternal()},g.loadInternal=function(){var n=this.config,f=this.context;if(!!n){var l=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0;var v=this.xhrSetup;try{if(v)try{v(l,f.url)}catch{l.open("GET",f.url,!0),v(l,f.url)}l.readyState||l.open("GET",f.url,!0);var d=this.context.headers;if(d)for(var r in d)l.setRequestHeader(r,d[r])}catch(t){this.callbacks.onError({code:l.status,text:t.message},f,l);return}f.rangeEnd&&l.setRequestHeader("Range","bytes="+f.rangeStart+"-"+(f.rangeEnd-1)),l.onreadystatechange=this.readystatechange.bind(this),l.onprogress=this.loadprogress.bind(this),l.responseType=f.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),l.send()}},g.readystatechange=function(){var n=this.context,f=this.loader,l=this.stats;if(!(!n||!f)){var h=f.readyState,v=this.config;if(!l.aborted&&h>=2)if(self.clearTimeout(this.requestTimeout),l.loading.first===0&&(l.loading.first=Math.max(self.performance.now(),l.loading.start)),h===4){f.onreadystatechange=null,f.onprogress=null;var d=f.status;if(d>=200&&d<300){l.loading.end=Math.max(self.performance.now(),l.loading.first);var r,t;if(n.responseType==="arraybuffer"?(r=f.response,t=r.byteLength):(r=f.responseText,t=r.length),l.loaded=l.total=t,!this.callbacks)return;var i=this.callbacks.onProgress;if(i&&i(l,n,r,f),!this.callbacks)return;var e={url:f.responseURL,data:r};this.callbacks.onSuccess(e,l,n,f)}else l.retry>=v.maxRetry||d>=400&&d<499?(S.logger.error(d+" while loading "+n.url),this.callbacks.onError({code:d,text:f.statusText},n,f)):(S.logger.warn(d+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,v.maxRetryDelay),l.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout)}},g.loadtimeout=function(){S.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},g.loadprogress=function(n){var f=this.stats;f.loaded=n.loaded,n.lengthComputable&&(f.total=n.total)},g.getCacheAge=function(){var n=null;if(this.loader&&m.test(this.loader.getAllResponseHeaders())){var f=this.loader.getResponseHeader("age");n=f?parseFloat(f):null}return n},T}();C.default=M}}).default})})(Ye);var ze=Ue(Ye.exports);const Me=ye=>(dt("data-v-2883dc1c"),ye=ye(),ct(),ye),kt=Me(()=>pe("div",{class:"artplayer-app"},null,-1)),Bt={key:0,class:"zfile-video-switch-tools"},Ut=De("\u4E0A\u4E00\u4E2A\u89C6\u9891"),jt=De("\u4E0B\u4E00\u4E2A\u89C6\u9891"),Nt={class:"zfile-video-tools"},Kt=De(" \u76F4\u63A5\u4E0B\u8F7D "),Wt=Me(()=>pe("img",{src:gt,alt:"\u4E0B\u8F7D"},null,-1)),Gt=De(" \u4F7F\u7528\u8FC5\u96F7\u4E0B\u8F7D "),zt=Me(()=>pe("img",{src:mt,alt:"\u8FC5\u96F7"},null,-1)),Vt=De(" \u4F7F\u7528 motrix \u4E0B\u8F7D "),Ht=Me(()=>pe("img",{src:yt,alt:"motrix"},null,-1)),Yt=De(" \u4F7F\u7528 PotPlayer \u64AD\u653E "),Zt=Me(()=>pe("img",{src:Et,alt:"PotPlayer"},null,-1)),Qt=De(" \u4F7F\u7528 IINA \u64AD\u653E "),$t=Me(()=>pe("img",{src:xt,alt:"IINA"},null,-1)),Xt=De(" \u4F7F\u7528 VLC \u64AD\u653E "),Jt=Me(()=>pe("img",{src:_t,alt:"VLC"},null,-1)),qt=De(" \u4F7F\u7528 nPlayer \u64AD\u653E "),er=Me(()=>pe("img",{src:Tt,alt:"nPlayer"},null,-1)),tr=De(" \u4F7F\u7528 MXPlayer(Free) \u64AD\u653E "),rr=Me(()=>pe("img",{src:St,alt:"MXPlayer(Free)"},null,-1)),ir=De(" \u4F7F\u7528 MXPlayer(Pro) \u64AD\u653E "),nr=Me(()=>pe("img",{src:Lt,alt:"MXPlayer(Pro)"},null,-1)),sr=Me(()=>pe("div",{class:"zfile-video-tools-tips"}," tips: \u53EF\u70B9\u51FB\u4E0A\u65B9\u7684\u8F6F\u4EF6\u56FE\u6807\u8FDB\u884C\u4E0B\u8F7D\u64AD\u653E, \u672C\u5730\u64AD\u653E\u5668\u89E3\u7801\u6548\u679C\u66F4\u4F73. ",-1)),ar={__name:"VideoPlayer",setup(ye){let Ie=tt();at();let{getPathPwd:O}=st(),{currentPath:C,storageKey:x}=ot(),S=rt(),c=it();const m=o=>{let s=[];return S.filterFileByType("video").forEach(p=>{s.push({default:p.name===o,html:p.name,url:p.url})}),s};let M=lt(null);const T=o=>{switch(o){case"download":window.location=M.value.url;break;case"thunder":window.location=`thunder://${btoa("AA"+M.value.url+"ZZ")}`;break;case"motrix":window.location=`motrix://new-task?uri=${encodeURIComponent(M.value.url)}&out=${encodeURIComponent(M.value.name)}`;break;case"potplayer":window.location=`potplayer://${encodeURI(M.value.url)}`;break;case"iina":window.location=`iina://weblink?url=${encodeURIComponent(M.value.url)}`;break;case"vlc":window.location=`vlc://${M.value.url}`;break;case"nplayer":window.location=`nplayer-${M.value.url}`;break;case"mxplayer":window.location="intent:"+M.value.url+"#Intent;package=com.mxtech.videoplayer.ad;S.title="+M.value.name+";end";break;case"mxplayer-pro":window.location="intent:"+M.value.url+"#Intent;package=com.mxtech.videoplayer.pro;S.title="+M.value.name+";end";break}},g=o=>{let s=S.filterFileByType("video");u();for(let p=0;p{let o=JSON.parse(localStorage.getItem("_h5_player_play_progress_"));if(o){for(let s of Object.keys(o))s.endsWith(o[s].progress)&&delete o[s];localStorage.setItem("_h5_player_play_progress_",JSON.stringify(o))}},n=o=>{let s=[];return S.fileList.find((p,L)=>{let D=p.name.toLowerCase();(D===o+".vtt"||D===o+".srt"||D===o+".ass")&&s.push({default:s.length===0,url:p.url,html:D})}),s.length>0&&s.push({url:"",html:"\u5173\u95ED\u5B57\u5E55"}),s};let f='',l=` -`,h='',v='';const d=We("zfile-video-auto-player-next",!1),r=We("zfile-video-auto-player",!1);let t=null;const i=async(o,s)=>{var b;M.value={name:o,url:s},document.querySelector(".zfile-video-dialog .el-dialog__title").innerHTML=o,t&&t.destroy();let p="mp4";o.toLowerCase().endsWith("flv")?p="flv":o.toLowerCase().endsWith("m3u8")&&(p="m3u8");let L=Ie.removeDuplicateSeparator(`${C.value}/${o}`),D=Ie.removeDuplicateSeparator(`${C.value}/__${o}__/video.m3u8`),y={storageKey:x.value,path:D,password:O()},E=!1,_=await nt(y);if(((b=_==null?void 0:_.data)==null?void 0:b.code)===0&&(console.log("\u68C0\u6D4B\u5230\u5F53\u524D\u4E3A h5ai_dplayer \u517C\u5BB9\u6A21\u5F0F, \u66FF\u6362\u64AD\u653E\u6587\u4EF6\u4E3A: "+D),p="m3u8",E=!0),p==="m3u8"){let R=Ie.removeDuplicateSeparator(c.globalConfig.domain+"/"+c.globalConfig.directLinkPrefix+"/"+x.value+"/"+(E?D:L));M.value.url=R,console.log("\u68C0\u6D4B\u5230\u5F53\u524D\u64AD\u653E\u7684\u6587\u4EF6\u4E3A m3u8, \u4E3A\u4E86\u6B63\u5E38\u52A0\u8F7D ts \u6587\u4EF6, \u66FF\u6362 m3u8 \u4E3A\u76F4\u94FE: "+R)}let A={container:".artplayer-app",title:o,url:M.value.url,type:p,setting:!0,playbackRate:!0,flip:!0,fullscreen:!0,fastForward:!0,autoOrientation:!0,aspectRatio:!0,fullscreenWeb:!0,theme:"#23ade5",lock:!0,subtitleOffset:!0,miniProgressBar:!0,autoplay:r.value,whitelist:["*"],moreVideoAttr:{"x5-video-player-type":"h5","x5-video-player-fullscreen":!1,"x5-video-orientation":"portraint",preload:"metadata",crossOrigin:"anonymous"},customType:{flv:function(R,P){if(Ge.isSupported()){const w=Ge.createPlayer({type:"flv",url:P});w.attachMediaElement(R),w.load()}else t.notice.show="\u4E0D\u652F\u6301\u64AD\u653E\u683C\u5F0F\uFF1Aflv"},m3u8:function(R,P){if(ze.isSupported()){const w=new ze;w.loadSource(P),w.attachMedia(R)}else{const w=R.canPlayType("application/vnd.apple.mpegurl");w==="probably"||w=="maybe"?R.src=P:t.notice.show="\u4E0D\u652F\u6301\u64AD\u653E\u683C\u5F0F\uFF1Am3u8"}}},contextmenu:[{html:"\u4E0B\u8F7D",click:function(){window.open(s)}}],settings:[{html:"\u81EA\u52A8\u64AD\u653E",tooltip:r.value?"\u5F00\u542F":"\u5173\u95ED",icon:'',switch:r.value,onSwitch:function(R,P,w){const F=!R.switch;return r.value=F,t.autoplay=F,R.tooltip=F?"\u5F00\u542F":"\u5173\u95ED",F}},{html:"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891",tooltip:d.value?"\u5F00\u542F":"\u5173\u95ED",icon:'',switch:d.value,onSwitch:function(R,P,w){const F=!R.switch;return d.value=F,R.tooltip=F?"\u5F00\u542F":"\u5173\u95ED",F}}],controls:[{name:"video-list",position:"right",html:f,selector:m(o),onSelect:function(R,P){return i(R.html,R.url),f}}]},I=n(o);I.length>0&&I.length>1&&A.controls.push({name:"video-subtitle",position:"right",html:l,selector:I,onSelect:R=>(R.html==="\u5173\u95ED\u5B57\u5E55"?t.subtitle.show=!1:(t.subtitle.show=!0,t.subtitle.url=R.url),l)}),t=new At(A),t.on("destory",()=>{}),Ie.isMobile.value===!1&&t.on("ready",()=>{let R=g(t.option.title);R.prev&&t.controls.add({name:"prev-video",position:"left",index:5,tooltip:"\u64AD\u653E\u4E0A\u4E00\u4E2A",html:v,click:()=>{a()}}),R.next&&t.controls.add({name:"next-video",position:"left",index:15,tooltip:"\u64AD\u653E\u4E0B\u4E00\u4E2A",html:h,click:()=>{e()}})}),t.on("video:ended",()=>{d.value&&e()}),I.length>0&&(t.subtitle.url=I[0].url)},e=()=>{const o=g(t.option.title).next;o&&i(o.name,o.url)},a=()=>{const o=g(t.option.title).prev;o&&i(o.name,o.url)};return ut(()=>{i(S.currentClickRow.name,S.currentClickRow.url)}),(o,s)=>{const p=ht,L=vt;return Pe(),we("div",null,[kt,Re(M)&&Re(Ie).isMobile.value?(Pe(),we("div",Bt,[Ae(p,{disabled:!g(Re(M).name).prev,icon:Re(Rt),onClick:a},{default:ge(()=>[Ut]),_:1},8,["disabled","icon"]),Ae(p,{disabled:!g(Re(M).name).next,icon:Re(Ft),onClick:e},{default:ge(()=>[jt]),_:1},8,["disabled","icon"])])):ft("",!0),pe("div",Nt,[pe("div",{class:"zfile-video-tools-item",onClick:s[0]||(s[0]=D=>T("download"))},[Ae(L,{placement:"top"},{content:ge(()=>[Kt]),default:ge(()=>[Wt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[1]||(s[1]=D=>T("thunder"))},[Ae(L,{placement:"top"},{content:ge(()=>[Gt]),default:ge(()=>[zt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[2]||(s[2]=D=>T("motrix"))},[Ae(L,{placement:"top"},{content:ge(()=>[Vt]),default:ge(()=>[Ht]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[3]||(s[3]=D=>T("potplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[Yt]),default:ge(()=>[Zt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[4]||(s[4]=D=>T("iina"))},[Ae(L,{placement:"top"},{content:ge(()=>[Qt]),default:ge(()=>[$t]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[5]||(s[5]=D=>T("vlc"))},[Ae(L,{placement:"top"},{content:ge(()=>[Xt]),default:ge(()=>[Jt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[6]||(s[6]=D=>T("nplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[qt]),default:ge(()=>[er]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[7]||(s[7]=D=>T("mxplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[tr]),default:ge(()=>[rr]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[8]||(s[8]=D=>T("mxplayer-pro"))},[Ae(L,{placement:"top"},{content:ge(()=>[ir]),default:ge(()=>[nr]),_:1})])]),sr])}}};var Dr=pt(ar,[["__scopeId","data-v-2883dc1c"]]);export{Dr as default}; +`,h='',v='';const d=We("zfile-video-auto-player-next",!1),r=We("zfile-video-auto-player",!1);let t=null;const i=async(o,s)=>{var b;M.value={name:o,url:s},document.querySelector(".zfile-video-dialog .el-dialog__title").innerHTML=o,t&&t.destroy();let p="mp4";o.toLowerCase().endsWith("flv")?p="flv":o.toLowerCase().endsWith("m3u8")&&(p="m3u8");let L=Ie.removeDuplicateSeparator(`${C.value}/${o}`),D=Ie.removeDuplicateSeparator(`${C.value}/__${o}__/video.m3u8`),y={storageKey:x.value,path:D,password:O()},E=!1,_=await nt(y);if(((b=_==null?void 0:_.data)==null?void 0:b.code)===0&&(console.log("\u68C0\u6D4B\u5230\u5F53\u524D\u4E3A h5ai_dplayer \u517C\u5BB9\u6A21\u5F0F, \u66FF\u6362\u64AD\u653E\u6587\u4EF6\u4E3A: "+D),p="m3u8",E=!0),p==="m3u8"){let R=Ie.removeDuplicateSeparator(c.globalConfig.domain+"/"+c.globalConfig.directLinkPrefix+"/"+x.value+"/"+(E?D:L));M.value.url=R,console.log("\u68C0\u6D4B\u5230\u5F53\u524D\u64AD\u653E\u7684\u6587\u4EF6\u4E3A m3u8, \u4E3A\u4E86\u6B63\u5E38\u52A0\u8F7D ts \u6587\u4EF6, \u66FF\u6362 m3u8 \u4E3A\u76F4\u94FE: "+R)}let A={container:".artplayer-app",title:o,url:M.value.url,type:p,setting:!0,playbackRate:!0,flip:!0,fullscreen:!0,fastForward:!0,autoOrientation:!0,aspectRatio:!0,fullscreenWeb:!0,theme:"#23ade5",lock:!0,subtitleOffset:!0,miniProgressBar:!0,autoplay:r.value,whitelist:["*"],moreVideoAttr:{"x5-video-player-type":"h5","x5-video-player-fullscreen":!1,"x5-video-orientation":"portraint",preload:"metadata",crossOrigin:"anonymous"},customType:{flv:function(R,P){if(Ge.isSupported()){const w=Ge.createPlayer({type:"flv",url:P});w.attachMediaElement(R),w.load()}else t.notice.show="\u4E0D\u652F\u6301\u64AD\u653E\u683C\u5F0F\uFF1Aflv"},m3u8:function(R,P){if(ze.isSupported()){const w=new ze;w.loadSource(P),w.attachMedia(R)}else{const w=R.canPlayType("application/vnd.apple.mpegurl");w==="probably"||w=="maybe"?R.src=P:t.notice.show="\u4E0D\u652F\u6301\u64AD\u653E\u683C\u5F0F\uFF1Am3u8"}}},contextmenu:[{html:"\u4E0B\u8F7D",click:function(){window.open(s)}}],settings:[{html:"\u81EA\u52A8\u64AD\u653E",tooltip:r.value?"\u5F00\u542F":"\u5173\u95ED",icon:'',switch:r.value,onSwitch:function(R,P,w){const F=!R.switch;return r.value=F,t.autoplay=F,R.tooltip=F?"\u5F00\u542F":"\u5173\u95ED",F}},{html:"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891",tooltip:d.value?"\u5F00\u542F":"\u5173\u95ED",icon:'',switch:d.value,onSwitch:function(R,P,w){const F=!R.switch;return d.value=F,R.tooltip=F?"\u5F00\u542F":"\u5173\u95ED",F}}],controls:[{name:"video-list",position:"right",html:f,selector:m(o),onSelect:function(R,P){return i(R.html,R.url),f}}]},I=n(o);I.length>0&&I.length>1&&A.controls.push({name:"video-subtitle",position:"right",html:l,selector:I,onSelect:R=>(R.html==="\u5173\u95ED\u5B57\u5E55"?t.subtitle.show=!1:(t.subtitle.show=!0,t.subtitle.url=R.url),l)}),t=new At(A),t.on("destory",()=>{}),Ie.isMobile.value===!1&&t.on("ready",()=>{let R=g(t.option.title);R.prev&&t.controls.add({name:"prev-video",position:"left",index:5,tooltip:"\u64AD\u653E\u4E0A\u4E00\u4E2A",html:v,click:()=>{a()}}),R.next&&t.controls.add({name:"next-video",position:"left",index:15,tooltip:"\u64AD\u653E\u4E0B\u4E00\u4E2A",html:h,click:()=>{e()}})}),t.on("video:ended",()=>{d.value&&e()}),I.length>0&&(t.subtitle.url=I[0].url)},e=()=>{const o=g(t.option.title).next;o&&i(o.name,o.url)},a=()=>{const o=g(t.option.title).prev;o&&i(o.name,o.url)};return ut(()=>{i(S.currentClickRow.name,S.currentClickRow.url)}),(o,s)=>{const p=ht,L=vt;return Pe(),we("div",null,[kt,Re(M)&&Re(Ie).isMobile.value?(Pe(),we("div",Bt,[Ae(p,{disabled:!g(Re(M).name).prev,icon:Re(Rt),onClick:a},{default:ge(()=>[Ut]),_:1},8,["disabled","icon"]),Ae(p,{disabled:!g(Re(M).name).next,icon:Re(Ft),onClick:e},{default:ge(()=>[jt]),_:1},8,["disabled","icon"])])):ft("",!0),pe("div",Nt,[pe("div",{class:"zfile-video-tools-item",onClick:s[0]||(s[0]=D=>T("download"))},[Ae(L,{placement:"top"},{content:ge(()=>[Kt]),default:ge(()=>[Wt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[1]||(s[1]=D=>T("thunder"))},[Ae(L,{placement:"top"},{content:ge(()=>[Gt]),default:ge(()=>[zt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[2]||(s[2]=D=>T("motrix"))},[Ae(L,{placement:"top"},{content:ge(()=>[Vt]),default:ge(()=>[Ht]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[3]||(s[3]=D=>T("potplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[Yt]),default:ge(()=>[Zt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[4]||(s[4]=D=>T("iina"))},[Ae(L,{placement:"top"},{content:ge(()=>[Qt]),default:ge(()=>[$t]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[5]||(s[5]=D=>T("vlc"))},[Ae(L,{placement:"top"},{content:ge(()=>[Xt]),default:ge(()=>[Jt]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[6]||(s[6]=D=>T("nplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[qt]),default:ge(()=>[er]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[7]||(s[7]=D=>T("mxplayer"))},[Ae(L,{placement:"top"},{content:ge(()=>[tr]),default:ge(()=>[rr]),_:1})]),pe("div",{class:"zfile-video-tools-item",onClick:s[8]||(s[8]=D=>T("mxplayer-pro"))},[Ae(L,{placement:"top"},{content:ge(()=>[ir]),default:ge(()=>[nr]),_:1})])]),sr])}}};var Mr=pt(ar,[["__scopeId","data-v-2883dc1c"]]);export{Mr as default}; diff --git a/src/main/resources/static/assets/ZFormItem.7a4b4758.js b/src/main/resources/static/assets/ZFormItem.899c4541.js similarity index 96% rename from src/main/resources/static/assets/ZFormItem.7a4b4758.js rename to src/main/resources/static/assets/ZFormItem.899c4541.js index 4188392..9f5b382 100644 --- a/src/main/resources/static/assets/ZFormItem.7a4b4758.js +++ b/src/main/resources/static/assets/ZFormItem.899c4541.js @@ -1 +1 @@ -import{S as E}from"./index.c92ded65.js";import{_ as q}from"./plugin-vue_export-helper.21dcd24c.js";import{r as b,c as u,a as x,f as w,p as a,g as p,o as I,H as k,n as $,u as g,t as F,k as Z,a0 as j}from"./index.552205f5.js";const A={class:"z-form"},R={class:"space-y-8 divide-y divide-gray-200"},S={class:"z-form-body"},B={class:"z-form-title text-lg leading-6 font-medium text-gray-900"},O={class:"z-form-sub-title mt-2 max-w-3xl text-sm text-gray-500"},V={class:"z-form-footer"},C={class:"pt-5"},N={class:"flex justify-end"},D={name:"ZForm"},H=Object.assign(D,{props:{model:Object,rules:Object},setup(v,{expose:o}){const d=v;let m=b({}),f=b([]),n=u(()=>{const e={};return f.value.forEach(({prop:t,required:i,label:s})=>{if(i&&(e[t]=[{required:!0,message:`${s}\u4E0D\u80FD\u4E3A\u7A7A`}]),d.rules[t]===void 0){console.debug(`prop \u4E3A ${t} \u7684 FormItem \u6821\u9A8C\u89C4\u5219\u4E0D\u5B58\u5728, \u8DF3\u8FC7.`);return}if(!Array.isArray(d.rules[t])){console.warn(`prop \u4E3A ${t} \u7684 FormItem \u6821\u9A8C\u89C4\u5219\u4E0D\u5B58\u5728\u6216\u8005\u5176\u503C\u4E0D\u662F\u6570\u7EC4`),e[t]=[{required:!0}];return}e[t]=d.rules[t]}),e}),_=u(()=>f.value.reduce((e,{prop:t})=>{let i=t.split(".");if(i.length>1){let s=d.model;for(;i.length>=1;){let c=i.shift();s[c]!==void 0&&(s=s[c])}e[t]=s}else e[t]=d.model[t];return e},{}));const y=e=>{new E(n.value).validate(_.value,i=>{let s={};i&&i.length?i.forEach(({message:c,field:z})=>{s[z]=c}):s={},m.value=s,e(Object.keys(s).length===0)})},h=e=>{e&&(f.value=[...f.value,e])},r=e=>{e&&(f.value=f.value.filter(({prop:t})=>t!==e.prop))};let l=u(()=>d.rules);return o({validate:y,formAddField:h,formRemoveField:r,rulesArray:l,formError:m}),(e,t)=>(x(),w("form",A,[a("div",R,[a("div",S,[a("div",null,[a("h3",B,[p(e.$slots,"form-title",{},void 0,!0)]),a("p",O,[p(e.$slots,"form-sub-title",{},void 0,!0)])]),p(e.$slots,"default",{},void 0,!0)]),a("div",V,[a("div",C,[a("div",N,[p(e.$slots,"footer",{},void 0,!0)])])])])]))}});var W=q(H,[["__scopeId","data-v-c597957c"]]);const M={class:"sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5"},T=["for"],U={class:"mt-1 sm:mt-0 sm:col-span-2"},G={class:"empty:mt-0 mt-2 text-sm max-w-2xl text-gray-400 z-form-item-tips"},J={class:"empty:mt-0 mt-2 text-sm text-red-500"},K={__name:"ZFormItem",props:{required:Boolean,prop:String,label:String},setup(v){const o=v,{proxy:d}=j();let m=u(()=>{let r=n.value.rulesArray;return r?r[o.prop]:[]}),f=u(()=>{if(o.required)return!0;if(m.value)for(let r=0;r{let r=d.$parent;for(;r.$options.name!=="ZForm";)r=r.parent;return r});u(()=>o.prop&&n.value.formError[o.prop]||"");const _=(r,l)=>{n.value[r](l)};let y=b();I(()=>{o.prop&&_("formAddField",{prop:o.prop,required:o.required,label:o.label,el:y.value})}),k(()=>{_("formRemoveField",{prop:o.prop})});const h=r=>{let l=r.target.value,e={},t={};m.value&&(e[o.prop]=m.value,t[o.prop]=l),new E(e).validate(t,s=>{s&&s.length?s.forEach(({message:c,field:z})=>{n.value.formError[o.prop]=c}):n.value.formError[o.prop]=""})};return(r,l)=>(x(),w("div",{ref_key:"zFormItem",ref:y,class:$([g(n).formError[o.prop]?"is-error":"is-success","z-form-item mt-6 sm:mt-5 space-y-6 sm:space-y-5"])},[a("div",M,[v.label?(x(),w("label",{key:0,for:o.prop,class:$([g(f)?"required":"not-required","block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2"])},F(v.label),11,T)):Z("",!0),a("div",U,[a("div",{class:"input max-w-2xl flex rounded-md z-form-item-input",onInput:h},[p(r.$slots,"default",{},void 0,!0)],32),a("p",G,[p(r.$slots,"tips",{},void 0,!0)]),a("p",J,F(g(n).formError[o.prop]),1)])])],2))}};var X=q(K,[["__scopeId","data-v-22eef9f0"]]);export{X as Z,W as a}; +import{S as E}from"./index.5cf4e3bb.js";import{_ as q}from"./plugin-vue_export-helper.21dcd24c.js";import{r as b,c as u,a as x,f as w,p as a,g as p,o as I,H as k,n as $,u as g,t as F,k as Z,a0 as j}from"./index.43b3cbf5.js";const A={class:"z-form"},R={class:"space-y-8 divide-y divide-gray-200"},S={class:"z-form-body"},B={class:"z-form-title text-lg leading-6 font-medium text-gray-900"},O={class:"z-form-sub-title mt-2 max-w-3xl text-sm text-gray-500"},V={class:"z-form-footer"},C={class:"pt-5"},N={class:"flex justify-end"},D={name:"ZForm"},H=Object.assign(D,{props:{model:Object,rules:Object},setup(v,{expose:o}){const d=v;let m=b({}),f=b([]),n=u(()=>{const e={};return f.value.forEach(({prop:t,required:i,label:s})=>{if(i&&(e[t]=[{required:!0,message:`${s}\u4E0D\u80FD\u4E3A\u7A7A`}]),d.rules[t]===void 0){console.debug(`prop \u4E3A ${t} \u7684 FormItem \u6821\u9A8C\u89C4\u5219\u4E0D\u5B58\u5728, \u8DF3\u8FC7.`);return}if(!Array.isArray(d.rules[t])){console.warn(`prop \u4E3A ${t} \u7684 FormItem \u6821\u9A8C\u89C4\u5219\u4E0D\u5B58\u5728\u6216\u8005\u5176\u503C\u4E0D\u662F\u6570\u7EC4`),e[t]=[{required:!0}];return}e[t]=d.rules[t]}),e}),_=u(()=>f.value.reduce((e,{prop:t})=>{let i=t.split(".");if(i.length>1){let s=d.model;for(;i.length>=1;){let c=i.shift();s[c]!==void 0&&(s=s[c])}e[t]=s}else e[t]=d.model[t];return e},{}));const y=e=>{new E(n.value).validate(_.value,i=>{let s={};i&&i.length?i.forEach(({message:c,field:z})=>{s[z]=c}):s={},m.value=s,e(Object.keys(s).length===0)})},h=e=>{e&&(f.value=[...f.value,e])},r=e=>{e&&(f.value=f.value.filter(({prop:t})=>t!==e.prop))};let l=u(()=>d.rules);return o({validate:y,formAddField:h,formRemoveField:r,rulesArray:l,formError:m}),(e,t)=>(x(),w("form",A,[a("div",R,[a("div",S,[a("div",null,[a("h3",B,[p(e.$slots,"form-title",{},void 0,!0)]),a("p",O,[p(e.$slots,"form-sub-title",{},void 0,!0)])]),p(e.$slots,"default",{},void 0,!0)]),a("div",V,[a("div",C,[a("div",N,[p(e.$slots,"footer",{},void 0,!0)])])])])]))}});var W=q(H,[["__scopeId","data-v-c597957c"]]);const M={class:"sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5"},T=["for"],U={class:"mt-1 sm:mt-0 sm:col-span-2"},G={class:"empty:mt-0 mt-2 text-sm max-w-2xl text-gray-400 z-form-item-tips"},J={class:"empty:mt-0 mt-2 text-sm text-red-500"},K={__name:"ZFormItem",props:{required:Boolean,prop:String,label:String},setup(v){const o=v,{proxy:d}=j();let m=u(()=>{let r=n.value.rulesArray;return r?r[o.prop]:[]}),f=u(()=>{if(o.required)return!0;if(m.value)for(let r=0;r{let r=d.$parent;for(;r.$options.name!=="ZForm";)r=r.parent;return r});u(()=>o.prop&&n.value.formError[o.prop]||"");const _=(r,l)=>{n.value[r](l)};let y=b();I(()=>{o.prop&&_("formAddField",{prop:o.prop,required:o.required,label:o.label,el:y.value})}),k(()=>{_("formRemoveField",{prop:o.prop})});const h=r=>{let l=r.target.value,e={},t={};m.value&&(e[o.prop]=m.value,t[o.prop]=l),new E(e).validate(t,s=>{s&&s.length?s.forEach(({message:c,field:z})=>{n.value.formError[o.prop]=c}):n.value.formError[o.prop]=""})};return(r,l)=>(x(),w("div",{ref_key:"zFormItem",ref:y,class:$([g(n).formError[o.prop]?"is-error":"is-success","z-form-item mt-6 sm:mt-5 space-y-6 sm:space-y-5"])},[a("div",M,[v.label?(x(),w("label",{key:0,for:o.prop,class:$([g(f)?"required":"not-required","block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2"])},F(v.label),11,T)):Z("",!0),a("div",U,[a("div",{class:"input max-w-2xl flex rounded-md z-form-item-input",onInput:h},[p(r.$slots,"default",{},void 0,!0)],32),a("p",G,[p(r.$slots,"tips",{},void 0,!0)]),a("p",J,F(g(n).formError[o.prop]),1)])])],2))}};var X=q(K,[["__scopeId","data-v-22eef9f0"]]);export{X as Z,W as a}; diff --git a/src/main/resources/static/assets/_storageId_.03a5b211.js b/src/main/resources/static/assets/_storageId_.03a5b211.js deleted file mode 100644 index e505cc4..0000000 --- a/src/main/resources/static/assets/_storageId_.03a5b211.js +++ /dev/null @@ -1 +0,0 @@ -import{r as z,L as R,P as T,o as q,ae as M,Q as N,u as o,a as b,b as I,e as a,p as t,h as e,f as Z,y as G,F as $,U as A,V as J,J as i}from"./index.552205f5.js";import{b1 as x,b2 as O,m as P,b3 as Q,r as W}from"./base.d698891e.js";/* empty css *//* empty css *//* empty css */import"./scrollbar.97fa2ffd.js";import{E as H,a as K}from"./select.ff52a9e1.js";import{E as X}from"./popper.14a92806.js";import"./tooltip.f118fcb0.js";import{E as Y}from"./alert.36ada7cc.js";import{S as ee}from"./SvgIcon.c7a5ac24.js";import{Z as E,a as te}from"./ZFormItem.7a4b4758.js";import{j as oe,k as ae}from"./admin-storage.260bbac1.js";import{u as ie,r as le}from"./common.9723c890.js";import{E as se}from"./request.3708b2c4.js";import{E as re}from"./index.11692625.js";import{b as V}from"./route-block.9b0645f8.js";import{_ as ne}from"./plugin-vue_export-helper.21dcd24c.js";import{r as de}from"./BadgeCheckIcon.09c2c42b.js";import{E as pe}from"./index.4ab44dc8.js";import{v as me}from"./directive.e250a256.js";import"./index.24f1077d.js";import"./index.3eb5cbdf.js";import"./index.1e624cbf.js";import"./event.776e7e11.js";import"./scroll.cbf731df.js";import"./isEqual.fe8e5f6f.js";import"./debounce.32892d61.js";import"./validator.6f3b33db.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.c92ded65.js";import"./index.0f572ca8.js";let l=z([]),w=z(!1);function ce(s,u){let m=u.params.storageId;const _=()=>{oe(m).then(r=>{l.value=r.data,l.value.length===0&&c()})},h=()=>{l.value.find(f=>{if(ie.isEmpty(f.expression))return se.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})||(w.value=!0,ae(m,l.value).then(()=>{re.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:f=>{f==="confirm"&&s.push("/admin/storage-list")}})}).finally(()=>{w.value=!1}))},c=()=>{l.value.push({mode:"hidden",expression:"",storageId:m,description:"\u8868\u8FBE\u5F0F - "+l.value.length})};return{loading:w,loadFilterData:_,filterList:l,addFilterItem:c,deleteFilterItem:r=>{l.value.splice(r,1)},saveFilterData:h}}const p=s=>(A("data-v-f04f2ad4"),s=s(),J(),s),fe={class:"flex justify-items-center"},ue=p(()=>t("span",null,"\u8FC7\u6EE4\u6587\u4EF6",-1)),_e=p(()=>t("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),he=p(()=>t("div",{class:"rules-tips"},[t("b",null,"*"),i("\uFF1A\u5355\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /*.jpg\uFF0C\u53EF\u4EE5\u5339\u914D\u6839\u8DEF\u5F84\u4E0B\u6240\u6709\u7684 jpg \u540E\u7F00\u7684\u6587\u4EF6")],-1)),ge=p(()=>t("div",{class:"rules-tips"},[t("b",null,"**"),i("\uFF1A\u591A\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F **.jpg\uFF0C\u53EF\u4EE5\u5339\u914D\u6240\u6709\u8DEF\u5F84\u4E0B\u7684 jpg \u540E\u7F00\u7684\u6587\u4EF6")],-1)),ve=p(()=>t("div",{class:"rules-tips"},[i("\u6CE8\uFF1A"),t("b",null,"/a.png"),i(" \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u7684 a.png\u3002 "),t("b",null,"/a/b/c.png"),i("\uFF0C\u8868\u793A /a/b/ \u8DEF\u5F84\u4E0B\u7684 c.png\u3002 "),t("b",null,"a.png"),i("\uFF0C\u4EC0\u4E48\u90FD\u4E0D\u8868\u793A\uFF0C\u56E0\u4E3A\u672A\u6807\u6CE8\u8DEF\u5F84\u3002")],-1)),be={class:"rules-tips-link"},xe={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},we=p(()=>t("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),ke={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},ye=i("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),Fe={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},Ie=i("\u53C2\u8003\u6587\u7AE0 (Github)"),Ee={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},Ve=i("\u6DFB\u52A0\u66F4\u591A"),ze=i("\u4FDD\u5B58\u8BBE\u7F6E"),S={__name:"[storageId]",setup(s){let u=R(),m=T();const{loading:_,loadFilterData:h,filterList:c,addFilterItem:k,deleteFilterItem:r,saveFilterData:f}=ce(m,u);return q(()=>{h()}),(Se,Be)=>{const B=ee,C=M("router-link"),U=Y,y=pe,j=X,g=H,D=K,v=W,L=me;return N((b(),I(te,{model:o(c),class:"zfile-admin-filter-form"},{"form-title":a(()=>[t("div",fe,[e(C,{to:"/admin/storage-list"},{default:a(()=>[e(B,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),ue])]),"form-sub-title":a(()=>[e(U,{closable:!1,type:"info"},{default:a(()=>[_e,he,ge,ve,t("div",be,[t("a",xe,[e(o(x),{class:"inline mr-1"}),we]),t("a",ke,[e(o(x),{class:"inline mr-1"}),ye]),t("a",Fe,[e(o(x),{class:"inline mr-1"}),Ie])])]),_:1})]),footer:a(()=>[e(v,{type:"primary",size:"default",icon:o(de),onClick:o(f)},{default:a(()=>[ze]),_:1},8,["icon","onClick"])]),default:a(()=>[(b(!0),Z($,null,G(o(c),(n,F)=>(b(),I(E,{required:!0,key:F,class:"expression-item"},{default:a(()=>[t("div",Ee,[e(j,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:a(()=>[e(y,{"prefix-icon":o(O),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:n.description,"onUpdate:modelValue":d=>n.description=d},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),e(y,{"prefix-icon":o(le),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:n.expression,"onUpdate:modelValue":d=>n.expression=d},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),e(D,{class:"editor-input",modelValue:n.mode,"onUpdate:modelValue":d=>n.mode=d},{default:a(()=>[e(g,{label:"\u4EC5\u9690\u85CF",value:"hidden"}),e(g,{label:"\u9690\u85CF\u5E76\u4E0D\u53EF\u8BBF\u95EE(\u9488\u5BF9\u76EE\u5F55)",value:"inaccessible"}),e(g,{label:"\u9690\u85CF\u5E76\u4E0D\u53EF\u8BBF\u95EE\u4E0D\u53EF\u4E0B\u8F7D(\u9488\u5BF9\u6587\u4EF6)",value:"disable_download"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(v,{type:"danger",onClick:d=>o(r)(F),icon:o(P)},null,8,["onClick","icon"])])]),_:2},1024))),128)),e(E,null,{default:a(()=>[e(v,{type:"primary",size:"default",icon:o(Q),onClick:o(k)},{default:a(()=>[Ve]),_:1},8,["icon","onClick"])]),_:1})]),_:1},8,["model"])),[[L,o(_)]])}}};typeof V=="function"&&V(S);var pt=ne(S,[["__scopeId","data-v-f04f2ad4"]]);export{pt as default}; diff --git a/src/main/resources/static/assets/_storageId_.03f24b2e.js b/src/main/resources/static/assets/_storageId_.03f24b2e.js deleted file mode 100644 index 75fb99d..0000000 --- a/src/main/resources/static/assets/_storageId_.03f24b2e.js +++ /dev/null @@ -1 +0,0 @@ -import{r as g,L as G,P as A,o as J,ae as O,Q as P,u as t,a as h,b as E,e as i,p as a,h as o,f as Q,y as W,F as j,S as H,k as K,U as X,V as Y,J as m}from"./index.552205f5.js";import{b1 as I,b2 as ee,l as te,m as oe,b3 as ae,r as le}from"./base.d698891e.js";/* empty css *//* empty css *//* empty css */import"./scrollbar.97fa2ffd.js";import{E as ie,a as se}from"./select.ff52a9e1.js";import{E as re}from"./popper.14a92806.js";import"./tooltip.f118fcb0.js";import{E as ne}from"./alert.36ada7cc.js";import{S as de}from"./SvgIcon.c7a5ac24.js";import{Z as U,a as me}from"./ZFormItem.7a4b4758.js";import{o as pe,p as ce}from"./admin-storage.260bbac1.js";import{u as R,r as ue}from"./common.9723c890.js";import{S as _e}from"./sortable.esm.a99254e8.js";import{E as fe}from"./request.3708b2c4.js";import{E as ve}from"./index.11692625.js";import he from"./readme-editor-dialog.a4ecf68a.js";import{b as T}from"./route-block.9b0645f8.js";import{_ as ge}from"./plugin-vue_export-helper.21dcd24c.js";import{r as xe}from"./BadgeCheckIcon.09c2c42b.js";import{E as be}from"./index.4ab44dc8.js";import{v as we}from"./directive.e250a256.js";import"./index.24f1077d.js";import"./index.3eb5cbdf.js";import"./index.1e624cbf.js";import"./event.776e7e11.js";import"./scroll.cbf731df.js";import"./isEqual.fe8e5f6f.js";import"./debounce.32892d61.js";import"./validator.6f3b33db.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.c92ded65.js";import"./index.0f572ca8.js";import"./dialog.04a5229a.js";import"./overlay.7eff71c7.js";import"./refs.4597d917.js";let s=g([]),S=g(!1);function ke(c,x){let u=x.params.storageId;const b=()=>{pe(u).then(d=>{s.value=d.data,s.value.length===0&&f(),w()})},w=()=>{const d=document.querySelector(".z-form-body");_e.create(d,{draggable:".expression-item",filter:".el-button, .editor-input",onEnd:e=>{if(e.oldIndex===e.newIndex)return;const r=s.value.splice(e.oldIndex-1,1)[0];s.value.splice(e.newIndex-1,0,r)}})},_=()=>{if(!s.value.find(e=>{if(R.isEmpty(e.description)||R.isEmpty(e.expression)||R.isEmpty(e.readmeText))return fe.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})){S.value=!0;for(let e=0;e{ve.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:e=>{e==="confirm"&&c.push("/admin/storage-list")}})}).finally(()=>{S.value=!1})}},f=()=>{s.value.push({description:"\u8868\u8FBE\u5F0F - "+(s.value.length+1),expression:"",readmeText:"",displayMode:"top",storageId:u})};return{loading:S,loadReadmeData:b,readmeList:s,addReadmeItem:f,deleteReadmeItem:d=>{s.value.splice(d,1)},saveReadmeData:_}}const p=c=>(X("data-v-64c46615"),c=c(),Y(),c),ye={class:"flex"},Ve=p(()=>a("span",null,"\u76EE\u5F55\u6587\u6863",-1)),Ee=p(()=>a("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),Ie=p(()=>a("div",{class:"rules-tips"},[a("b",null,"/"),m(": \u6839\u76EE\u5F55, \u5982 /, \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863\u663E\u793A.")],-1)),Re=p(()=>a("div",{class:"rules-tips"},[a("b",null,"*"),m("\uFF1A\u5355\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /*\uFF0C\u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u7684\u76F4\u63A5\u5B50\u6587\u4EF6\u5939\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863\u663E\u793A.")],-1)),Se=p(()=>a("div",{class:"rules-tips"},[a("b",null,"**"),m("\uFF1A\u591A\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /music/**\uFF0C\u8868\u793A /music \u6587\u4EF6\u5939\u53CA\u4EE5\u4E0B\u6240\u6709\u6587\u4EF6\u5939\u90FD\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863.")],-1)),ze=p(()=>a("div",{class:"rules-tips"},"\u6CE8\uFF1A\u7CFB\u7EDF\u5339\u914D\u5230\u7B2C\u4E00\u4E2A\u7B26\u5408\u7684\u89C4\u5219\u5C31\u4F1A\u53D6\u6587\u6863\u8FDB\u884C\u663E\u793A\uFF0C\u6240\u4EE5\u8BF7\u8C03\u6574\u597D\u89C4\u5219\u987A\u5E8F\uFF0C\u4E0B\u65B9\u89C4\u5219\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F\u3002",-1)),Ce={class:"rules-tips-link"},Ue={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Te=p(()=>a("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),Be={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Fe=m("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),Me={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},De=m("\u53C2\u8003\u6587\u7AE0 (Github)"),Le={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},qe=m("\u6DFB\u52A0\u66F4\u591A"),Ne=m("\u4FDD\u5B58\u8BBE\u7F6E"),B={__name:"[storageId]",setup(c){let x=G(),u=A();const{loading:b,loadReadmeData:w,readmeList:_,addReadmeItem:f,deleteReadmeItem:z,saveReadmeData:d}=ke(u,x);J(()=>{w()});let e=g({}),r=g(!1);const F=C=>{r.value=!0,e.value=C};return(C,v)=>{const M=de,D=O("router-link"),L=ne,k=be,q=re,y=ie,N=se,V=le,Z=we;return P((h(),E(me,{model:t(_),class:"zfile-admin-readme-form"},{"form-title":i(()=>[a("div",ye,[a("div",null,[o(D,{to:"/admin/storage-list"},{default:i(()=>[o(M,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),Ve])])]),"form-sub-title":i(()=>[o(L,{closable:!1,type:"info"},{default:i(()=>[Ee,Ie,Re,Se,ze,a("div",Ce,[a("a",Ue,[o(t(I),{class:"inline mr-1"}),Te]),a("a",Be,[o(t(I),{class:"inline mr-1"}),Fe]),a("a",Me,[o(t(I),{class:"inline mr-1"}),De])])]),_:1})]),footer:i(()=>[o(V,{type:"primary",size:"default",icon:t(xe),onClick:t(d)},{default:i(()=>[Ne]),_:1},8,["icon","onClick"])]),default:i(()=>[(h(!0),Q(j,null,W(t(_),(l,$)=>(h(),E(U,{required:!0,key:l,class:"expression-item"},{default:i(()=>[a("div",Le,[o(q,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:i(()=>[o(k,{"prefix-icon":t(ee),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:l.description,"onUpdate:modelValue":n=>l.description=n},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),o(k,{"prefix-icon":t(ue),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:l.expression,"onUpdate:modelValue":n=>l.expression=n},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),o(k,{class:"editor-input",onClick:n=>F(l),readonly:"","prefix-icon":t(te),placeholder:"\u8BF7\u70B9\u51FB\u7F16\u8F91\u6587\u6863",modelValue:l.readmeText,"onUpdate:modelValue":n=>l.readmeText=n},null,8,["onClick","prefix-icon","modelValue","onUpdate:modelValue"]),o(N,{class:"editor-input",modelValue:l.displayMode,"onUpdate:modelValue":n=>l.displayMode=n},{default:i(()=>[o(y,{label:"\u9876\u90E8\u663E\u793A",value:"top"}),o(y,{label:"\u5E95\u90E8\u663E\u793A",value:"bottom"}),o(y,{label:"\u5F39\u7A97\u663E\u793A",value:"dialog"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),o(V,{type:"danger",onClick:n=>t(z)($),icon:t(oe)},null,8,["onClick","icon"])])]),_:2},1024))),128)),o(U,null,{default:i(()=>[o(V,{type:"primary",size:"default",icon:t(ae),onClick:t(f)},{default:i(()=>[qe]),_:1},8,["icon","onClick"])]),_:1}),t(r)?(h(),E(he,{key:0,modelValue:t(e).readmeText,"onUpdate:modelValue":v[0]||(v[0]=l=>t(e).readmeText=l),visible:t(r),"onUpdate:visible":v[1]||(v[1]=l=>H(r)?r.value=l:r=l)},null,8,["modelValue","visible"])):K("",!0)]),_:1},8,["model"])),[[Z,t(b)]])}}};typeof T=="function"&&T(B);var Vt=ge(B,[["__scopeId","data-v-64c46615"]]);export{Vt as default}; diff --git a/src/main/resources/static/assets/_storageId_.12103200.css b/src/main/resources/static/assets/_storageId_.12103200.css new file mode 100644 index 0000000..9be38c7 --- /dev/null +++ b/src/main/resources/static/assets/_storageId_.12103200.css @@ -0,0 +1 @@ +.expression-item[data-v-1813f32f] .el-input__wrapper{width:100%}@media (min-width: 640px){.expression-item[data-v-1813f32f] .el-input__wrapper{width:6rem}}@media (min-width: 768px){.expression-item[data-v-1813f32f] .el-input__wrapper{width:9rem}}@media (min-width: 1024px){.expression-item[data-v-1813f32f] .el-input__wrapper{width:12rem}}@media (min-width: 1280px){.expression-item[data-v-1813f32f] .el-input__wrapper{width:16rem}}.zfile-admin-readme-form[data-v-1813f32f] .z-form-sub-title{max-width:100%}.zfile-admin-readme-form .rules-tips[data-v-1813f32f]{padding:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:700}.zfile-admin-readme-form .rules-tips-link[data-v-1813f32f]{margin-top:.5rem}.zfile-admin-readme-form .rules-tips-link[data-v-1813f32f]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-admin-readme-form .rules-tips-link svg[data-v-1813f32f]{height:1rem;line-height:1.25rem;vertical-align:text-bottom} diff --git a/src/main/resources/static/assets/_storageId_.14ee6b2c.js b/src/main/resources/static/assets/_storageId_.14ee6b2c.js new file mode 100644 index 0000000..192e195 --- /dev/null +++ b/src/main/resources/static/assets/_storageId_.14ee6b2c.js @@ -0,0 +1 @@ +import{r as g,L as P,P as Q,o as W,ae as H,Q as K,u as t,a as w,b as S,e as i,p as a,h as o,S as q,f as X,y as Y,F as ee,k as te,U as oe,V as ae,J as m}from"./index.43b3cbf5.js";import{b3 as C,b4 as le,l as ie,m as se,aR as re,r as ne}from"./base.4ef7f45b.js";/* empty css *//* empty css *//* empty css *//* empty css */import{E as de,a as me}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{E as pe}from"./popper.718d36e0.js";import{E as ce}from"./alert.b0fac511.js";import"./tooltip.f118fcb0.js";import{E as ue}from"./switch.87050cd5.js";import{S as fe}from"./SvgIcon.eefd5347.js";import{Z as F,a as _e}from"./ZFormItem.899c4541.js";import{o as ve,p as he,e as ge,q as xe}from"./admin-storage.442a3cb6.js";import{u as U,r as be}from"./common.9f3a7a35.js";import{S as we}from"./sortable.esm.a99254e8.js";import{E as D}from"./request.e2daed10.js";import{E as ye}from"./index.439070da.js";import ke from"./readme-editor-dialog.5b0917f1.js";import{b as M}from"./route-block.9b0645f8.js";import{_ as Ve}from"./plugin-vue_export-helper.21dcd24c.js";import{r as Re}from"./BadgeCheckIcon.8153a115.js";import{E as Ee}from"./index.da7dbe5d.js";import{v as Ie}from"./directive.378eb0e0.js";import"./index.88f36c37.js";import"./index.9c287fed.js";import"./index.566ad052.js";import"./event.776e7e11.js";import"./scroll.90c07eee.js";import"./isEqual.2263846a.js";import"./debounce.014e7b6e.js";import"./validator.b1ae6965.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.5cf4e3bb.js";import"./index.d46124aa.js";import"./dialog.0ab1ba1d.js";import"./overlay.533d94fc.js";import"./refs.f6f7d296.js";let s=g([]),z=g(!1);function Se(p,f){let _=f.params.storageId;const y=()=>{ve(_).then(n=>{s.value=n.data,s.value.length===0&&b(),k()})},k=()=>{const n=document.querySelector(".z-form-body");we.create(n,{draggable:".expression-item",filter:".el-button, .editor-input",onEnd:e=>{if(e.oldIndex===e.newIndex)return;const v=s.value.splice(e.oldIndex-1,1)[0];s.value.splice(e.newIndex-1,0,v)}})},x=()=>{if(!s.value.find(e=>{if(U.isEmpty(e.description)||U.isEmpty(e.expression)||U.isEmpty(e.readmeText))return D.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})){z.value=!0;for(let e=0;e{ye.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:e=>{e==="confirm"&&p.push("/admin/storage-list")}})}).finally(()=>{z.value=!1})}},b=()=>{s.value.push({description:"\u8868\u8FBE\u5F0F - "+(s.value.length+1),expression:"",readmeText:"",displayMode:"top",storageId:_})};return{loading:z,loadReadmeData:y,readmeList:s,addReadmeItem:b,deleteReadmeItem:n=>{s.value.splice(n,1)},saveReadmeData:x}}const d=p=>(oe("data-v-1813f32f"),p=p(),ae(),p),Ce={class:"flex justify-between"},Ue=d(()=>a("span",null,"\u76EE\u5F55\u6587\u6863",-1)),ze=d(()=>a("span",{class:"mr-4 text-sm text-gray-500"},"\u517C\u5BB9\u4E3A\u8BFB\u53D6 readme.md",-1)),Te=d(()=>a("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),Be=d(()=>a("div",{class:"rules-tips"},[a("b",null,"/"),m(": \u6839\u76EE\u5F55, \u5982 /, \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863\u663E\u793A.")],-1)),qe=d(()=>a("div",{class:"rules-tips"},[a("b",null,"*"),m("\uFF1A\u5355\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /*\uFF0C\u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u7684\u76F4\u63A5\u5B50\u6587\u4EF6\u5939\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863\u663E\u793A.")],-1)),Fe=d(()=>a("div",{class:"rules-tips"},[a("b",null,"**"),m("\uFF1A\u591A\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /music/**\uFF0C\u8868\u793A /music \u6587\u4EF6\u5939\u53CA\u4EE5\u4E0B\u6240\u6709\u6587\u4EF6\u5939\u90FD\u4F1A\u52A0\u8F7D\u6B64\u6587\u6863.")],-1)),Me=d(()=>a("div",{class:"rules-tips"},"\u6CE8\uFF1A\u7CFB\u7EDF\u5339\u914D\u5230\u7B2C\u4E00\u4E2A\u7B26\u5408\u7684\u89C4\u5219\u5C31\u4F1A\u53D6\u6587\u6863\u8FDB\u884C\u663E\u793A\uFF0C\u6240\u4EE5\u8BF7\u8C03\u6574\u597D\u89C4\u5219\u987A\u5E8F\uFF0C\u4E0B\u65B9\u89C4\u5219\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F\u3002",-1)),De={class:"rules-tips-link"},Le={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Ne=d(()=>a("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),Ze={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Ge=m("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),$e={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},je=m("\u53C2\u8003\u6587\u7AE0 (Github)"),Ae={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},Je=m("\u6DFB\u52A0\u66F4\u591A"),Oe=m("\u4FDD\u5B58\u8BBE\u7F6E"),L={__name:"[storageId]",setup(p){let f=P(),_=Q();const{loading:y,loadReadmeData:k,readmeList:x,addReadmeItem:b,deleteReadmeItem:T,saveReadmeData:n}=Se(_,f);W(()=>{k()});let e=g(!1);ge(f.params.storageId).then(h=>{e.value=h.data.compatibilityReadme||!1});const v=()=>{xe(f.params.storageId,e.value).then(h=>{D.success("\u4FDD\u5B58\u6210\u529F")})};let V=g({}),c=g(!1);const N=h=>{c.value=!0,V.value=h};return(h,u)=>{const Z=fe,G=H("router-link"),$=ue,B=pe,j=ce,R=Ee,E=de,A=me,I=ne,J=Ie;return K((w(),S(_e,{model:t(x),class:"zfile-admin-readme-form"},{"form-title":i(()=>[a("div",Ce,[a("div",null,[o(G,{to:"/admin/storage-list"},{default:i(()=>[o(Z,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),Ue]),o(B,{placement:"top",content:"\u542F\u7528\u540E\u4E0B\u53D1\u7684\u89C4\u5219\u8BBE\u7F6E\u4F1A\u5931\u6548\uFF0C\u4EC5\u4F1A\u4E3A\u8BFB\u53D6\u76EE\u5F55\u4E0B\u7684 readme.md \u6587\u4EF6\u6765\u6E32\u67D3\u6587\u6863, \u4E14\u56FA\u5B9A\u5728\u5E95\u90E8\u663E\u793A."},{default:i(()=>[a("div",null,[ze,o($,{onChange:v,"active-text":"\u662F","inline-prompt":"","inactive-text":"\u5426",modelValue:t(e),"onUpdate:modelValue":u[0]||(u[0]=l=>q(e)?e.value=l:e=l)},null,8,["modelValue"])])]),_:1})])]),"form-sub-title":i(()=>[o(j,{closable:!1,type:"info"},{default:i(()=>[Te,Be,qe,Fe,Me,a("div",De,[a("a",Le,[o(t(C),{class:"inline mr-1"}),Ne]),a("a",Ze,[o(t(C),{class:"inline mr-1"}),Ge]),a("a",$e,[o(t(C),{class:"inline mr-1"}),je])])]),_:1})]),footer:i(()=>[o(I,{type:"primary",size:"default",icon:t(Re),onClick:t(n)},{default:i(()=>[Oe]),_:1},8,["icon","onClick"])]),default:i(()=>[(w(!0),X(ee,null,Y(t(x),(l,O)=>(w(),S(F,{required:!0,key:l,class:"expression-item"},{default:i(()=>[a("div",Ae,[o(B,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:i(()=>[o(R,{"prefix-icon":t(le),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:l.description,"onUpdate:modelValue":r=>l.description=r},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),o(R,{"prefix-icon":t(be),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:l.expression,"onUpdate:modelValue":r=>l.expression=r},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),o(R,{class:"editor-input",onClick:r=>N(l),readonly:"","prefix-icon":t(ie),placeholder:"\u8BF7\u70B9\u51FB\u7F16\u8F91\u6587\u6863",modelValue:l.readmeText,"onUpdate:modelValue":r=>l.readmeText=r},null,8,["onClick","prefix-icon","modelValue","onUpdate:modelValue"]),o(A,{class:"editor-input",modelValue:l.displayMode,"onUpdate:modelValue":r=>l.displayMode=r},{default:i(()=>[o(E,{label:"\u9876\u90E8\u663E\u793A",value:"top"}),o(E,{label:"\u5E95\u90E8\u663E\u793A",value:"bottom"}),o(E,{label:"\u5F39\u7A97\u663E\u793A",value:"dialog"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),o(I,{type:"danger",onClick:r=>t(T)(O),icon:t(se)},null,8,["onClick","icon"])])]),_:2},1024))),128)),o(F,null,{default:i(()=>[o(I,{type:"primary",size:"default",icon:t(re),onClick:t(b)},{default:i(()=>[Je]),_:1},8,["icon","onClick"])]),_:1}),t(c)?(w(),S(ke,{key:0,modelValue:t(V).readmeText,"onUpdate:modelValue":u[1]||(u[1]=l=>t(V).readmeText=l),visible:t(c),"onUpdate:visible":u[2]||(u[2]=l=>q(c)?c.value=l:c=l)},null,8,["modelValue","visible"])):te("",!0)]),_:1},8,["model"])),[[J,t(y)]])}}};typeof M=="function"&&M(L);var Bt=Ve(L,[["__scopeId","data-v-1813f32f"]]);export{Bt as default}; diff --git a/src/main/resources/static/assets/_storageId_.3eb531f0.js b/src/main/resources/static/assets/_storageId_.3eb531f0.js deleted file mode 100644 index 0e5e87c..0000000 --- a/src/main/resources/static/assets/_storageId_.3eb531f0.js +++ /dev/null @@ -1 +0,0 @@ -import r from"./index.8485884c.js";import{b as o}from"./route-block.9b0645f8.js";import{a as t,b as p}from"./index.552205f5.js";import"./base.d698891e.js";/* empty css *//* empty css */import"./popper.14a92806.js";import"./request.3708b2c4.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./link.0fb91bad.js";import"./scrollbar.97fa2ffd.js";import"./switch.2393edfd.js";import"./validator.6f3b33db.js";import"./event.776e7e11.js";/* empty css */import"./select.ff52a9e1.js";import"./index.4ab44dc8.js";import"./index.24f1077d.js";import"./index.3eb5cbdf.js";import"./index.1e624cbf.js";import"./scroll.cbf731df.js";import"./isEqual.fe8e5f6f.js";import"./debounce.32892d61.js";import"./SvgIcon.c7a5ac24.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./ZFormItem.7a4b4758.js";import"./index.c92ded65.js";import"./admin-storage.260bbac1.js";import"./index.e168d154.js";import"./dropdown.d5503246.js";import"./BadgeCheckIcon.09c2c42b.js";import"./index.11692625.js";import"./index.0f572ca8.js";const m={__name:"[storageId]",setup(i){return(e,a)=>(t(),p(r))}};typeof o=="function"&&o(m);export{m as default}; diff --git a/src/main/resources/static/assets/_storageId_.e6e69340.js b/src/main/resources/static/assets/_storageId_.9a9c95b6.js similarity index 84% rename from src/main/resources/static/assets/_storageId_.e6e69340.js rename to src/main/resources/static/assets/_storageId_.9a9c95b6.js index f3312a1..79c8dbc 100644 --- a/src/main/resources/static/assets/_storageId_.e6e69340.js +++ b/src/main/resources/static/assets/_storageId_.9a9c95b6.js @@ -1 +1 @@ -import{a as w,b as E,h as s,r as z,L as q,P as M,o as T,ae as H,Q as N,u as o,e as r,p as t,f as Z,y as $,F as j,U as A,V as G,J as d}from"./index.552205f5.js";import{b1 as k,b2 as J,m as Q,b3 as W,r as K}from"./base.d698891e.js";/* empty css *//* empty css */import"./tooltip.f118fcb0.js";import{E as O}from"./popper.14a92806.js";/* empty css */import{E as X}from"./alert.36ada7cc.js";import{S as Y}from"./SvgIcon.c7a5ac24.js";import{Z as P,a as ee}from"./ZFormItem.7a4b4758.js";import{m as te,n as oe}from"./admin-storage.260bbac1.js";import{u as y,r as se}from"./common.9723c890.js";import{S as ae}from"./sortable.esm.a99254e8.js";import{E as re}from"./request.3708b2c4.js";import{E as ie}from"./index.11692625.js";import{b as S}from"./route-block.9b0645f8.js";import{_ as le}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ne}from"./BadgeCheckIcon.09c2c42b.js";import{E as de}from"./index.4ab44dc8.js";import{v as pe}from"./directive.e250a256.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.c92ded65.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./event.776e7e11.js";function ce(l,u){return w(),E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})])}let a=z([]),I=z(!1);function me(l,u){let m=u.params.storageId;const v=()=>{te(m).then(i=>{a.value=i.data,a.value.length===0&&f(),g()})},g=()=>{const i=document.querySelector(".z-form-body");ae.create(i,{draggable:".expression-item",onEnd:e=>{if(e.oldIndex===e.newIndex)return;const h=a.value.splice(e.oldIndex-1,1)[0];a.value.splice(e.newIndex-1,0,h)}})},_=()=>{if(!a.value.find(e=>{if(y.isEmpty(e.description)||y.isEmpty(e.expression)||y.isEmpty(e.password))return re.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})){I.value=!0;for(let e=0;e{ie.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:e=>{e==="confirm"&&l.push("/admin/storage-list")}})}).finally(()=>{I.value=!1})}},f=()=>{a.value.push({description:"\u8868\u8FBE\u5F0F - "+(a.value.length+1),expression:"",password:"",storageId:m})};return{loading:I,loadPasswordData:v,passwordList:a,addPasswordItem:f,deletePasswordItem:i=>{a.value.splice(i,1)},savePasswordData:_}}const p=l=>(A("data-v-62a29772"),l=l(),G(),l),ue={class:"flex justify-items-center"},_e=p(()=>t("span",null,"\u5BC6\u7801\u6587\u4EF6\u5939",-1)),fe=p(()=>t("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),he=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/"),d(": \u5355\u5C42\u6839\u76EE\u5F55\u52A0\u5BC6, \u5982 /, \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u9700\u8981\u5BC6\u7801\u8BBF\u95EE.")],-1)),we=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/music*"),d(": \u5355\u5C42\u5B50\u76EE\u5F55\u52A0\u5BC6, \u5982 /music*, \u8868\u793A\u6839\u76EE\u5F55\u4E0B\u7684 music \u6587\u4EF6\u5939\u9700\u8981\u5BC6\u7801\u8BBF\u95EE, \u5B50\u6587\u4EF6\u5939\u4E0D\u52A0\u5BC6.")],-1)),ve=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/music**"),d(": \u5D4C\u5957\u5B50\u76EE\u5F55\u52A0\u5BC6, \u5982 /music**, \u8868\u793A\u6839\u76EE\u5F55\u4E0B\u7684 music \u6587\u4EF6\u5939\u53CA\u5176\u6240\u6709\u5B50\u6587\u4EF6\u5939\u90FD\u9700\u8981\u5BC6\u7801\u8BBF\u95EE.")],-1)),ge=p(()=>t("div",{class:"rules-tips"},"\u6CE8\uFF1A\u7CFB\u7EDF\u5339\u914D\u5230\u7B2C\u4E00\u4E2A\u7B26\u5408\u7684\u89C4\u5219\u5C31\u4F1A\u53D6\u5BC6\u7801\u8FDB\u884C\u6821\u9A8C\uFF0C\u5E76\u8FD4\u56DE\u7ED3\u679C\uFF0C\u6240\u4EE5\u8BF7\u8C03\u6574\u597D\u89C4\u5219\u987A\u5E8F\uFF0C\u4E0B\u65B9\u89C4\u5219\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F\u3002",-1)),xe={class:"rules-tips-link"},be={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},ke=p(()=>t("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),ye={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Ie=d("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),Ee={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},Ve=d("\u53C2\u8003\u6587\u7AE0 (Github)"),Pe={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},Se=d("\u6DFB\u52A0\u66F4\u591A"),ze=d("\u4FDD\u5B58\u8BBE\u7F6E"),B={__name:"[storageId]",setup(l){let u=q(),m=M();const{loading:v,loadPasswordData:g,passwordList:_,addPasswordItem:f,deletePasswordItem:V,savePasswordData:i}=me(m,u);return T(()=>{g()}),(e,h)=>{const C=Y,U=H("router-link"),F=X,x=de,L=O,b=K,D=pe;return N((w(),E(ee,{model:o(_),class:"zfile-admin-password-form"},{"form-title":r(()=>[t("div",ue,[s(U,{to:"/admin/storage-list"},{default:r(()=>[s(C,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),_e])]),"form-sub-title":r(()=>[s(F,{closable:!1,type:"info"},{default:r(()=>[fe,he,we,ve,ge,t("div",xe,[t("a",be,[s(o(k),{class:"inline mr-1"}),ke]),t("a",ye,[s(o(k),{class:"inline mr-1"}),Ie]),t("a",Ee,[s(o(k),{class:"inline mr-1"}),Ve])])]),_:1})]),footer:r(()=>[s(b,{type:"primary",size:"default",icon:o(ne),onClick:o(i)},{default:r(()=>[ze]),_:1},8,["icon","onClick"])]),default:r(()=>[(w(!0),Z(j,null,$(o(_),(n,R)=>(w(),E(P,{required:!0,key:n,class:"expression-item"},{default:r(()=>[t("div",Pe,[s(L,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:r(()=>[s(x,{"prefix-icon":o(J),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:n.description,"onUpdate:modelValue":c=>n.description=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),s(x,{"prefix-icon":o(se),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:n.expression,"onUpdate:modelValue":c=>n.expression=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),s(x,{"prefix-icon":o(ce),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",type:"password","show-password":"",modelValue:n.password,"onUpdate:modelValue":c=>n.password=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),s(b,{type:"danger",onClick:c=>o(V)(R),icon:o(Q)},null,8,["onClick","icon"])])]),_:2},1024))),128)),s(P,null,{default:r(()=>[s(b,{type:"primary",size:"default",icon:o(W),onClick:o(f)},{default:r(()=>[Se]),_:1},8,["icon","onClick"])]),_:1})]),_:1},8,["model"])),[[D,o(v)]])}}};typeof S=="function"&&S(B);var at=le(B,[["__scopeId","data-v-62a29772"]]);export{at as default}; +import{a as w,b as E,h as s,r as z,L as q,P as M,o as T,ae as H,Q as N,u as o,e as r,p as t,f as Z,y as $,F as j,U as A,V as G,J as d}from"./index.43b3cbf5.js";import{b3 as k,b4 as J,m as Q,aR as W,r as K}from"./base.4ef7f45b.js";/* empty css *//* empty css */import"./tooltip.f118fcb0.js";import{E as O}from"./popper.718d36e0.js";/* empty css */import{E as X}from"./alert.b0fac511.js";import{S as Y}from"./SvgIcon.eefd5347.js";import{Z as P,a as ee}from"./ZFormItem.899c4541.js";import{m as te,n as oe}from"./admin-storage.442a3cb6.js";import{u as y,r as se}from"./common.9f3a7a35.js";import{S as ae}from"./sortable.esm.a99254e8.js";import{E as re}from"./request.e2daed10.js";import{E as ie}from"./index.439070da.js";import{b as S}from"./route-block.9b0645f8.js";import{_ as le}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ne}from"./BadgeCheckIcon.8153a115.js";import{E as de}from"./index.da7dbe5d.js";import{v as pe}from"./directive.378eb0e0.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.5cf4e3bb.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./validator.b1ae6965.js";import"./index.566ad052.js";import"./event.776e7e11.js";function ce(l,u){return w(),E("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})])}let a=z([]),I=z(!1);function me(l,u){let m=u.params.storageId;const v=()=>{te(m).then(i=>{a.value=i.data,a.value.length===0&&f(),g()})},g=()=>{const i=document.querySelector(".z-form-body");ae.create(i,{draggable:".expression-item",onEnd:e=>{if(e.oldIndex===e.newIndex)return;const h=a.value.splice(e.oldIndex-1,1)[0];a.value.splice(e.newIndex-1,0,h)}})},_=()=>{if(!a.value.find(e=>{if(y.isEmpty(e.description)||y.isEmpty(e.expression)||y.isEmpty(e.password))return re.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})){I.value=!0;for(let e=0;e{ie.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:e=>{e==="confirm"&&l.push("/admin/storage-list")}})}).finally(()=>{I.value=!1})}},f=()=>{a.value.push({description:"\u8868\u8FBE\u5F0F - "+(a.value.length+1),expression:"",password:"",storageId:m})};return{loading:I,loadPasswordData:v,passwordList:a,addPasswordItem:f,deletePasswordItem:i=>{a.value.splice(i,1)},savePasswordData:_}}const p=l=>(A("data-v-62a29772"),l=l(),G(),l),ue={class:"flex justify-items-center"},_e=p(()=>t("span",null,"\u5BC6\u7801\u6587\u4EF6\u5939",-1)),fe=p(()=>t("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),he=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/"),d(": \u5355\u5C42\u6839\u76EE\u5F55\u52A0\u5BC6, \u5982 /, \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u9700\u8981\u5BC6\u7801\u8BBF\u95EE.")],-1)),we=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/music*"),d(": \u5355\u5C42\u5B50\u76EE\u5F55\u52A0\u5BC6, \u5982 /music*, \u8868\u793A\u6839\u76EE\u5F55\u4E0B\u7684 music \u6587\u4EF6\u5939\u9700\u8981\u5BC6\u7801\u8BBF\u95EE, \u5B50\u6587\u4EF6\u5939\u4E0D\u52A0\u5BC6.")],-1)),ve=p(()=>t("div",{class:"rules-tips"},[t("b",null,"/music**"),d(": \u5D4C\u5957\u5B50\u76EE\u5F55\u52A0\u5BC6, \u5982 /music**, \u8868\u793A\u6839\u76EE\u5F55\u4E0B\u7684 music \u6587\u4EF6\u5939\u53CA\u5176\u6240\u6709\u5B50\u6587\u4EF6\u5939\u90FD\u9700\u8981\u5BC6\u7801\u8BBF\u95EE.")],-1)),ge=p(()=>t("div",{class:"rules-tips"},"\u6CE8\uFF1A\u7CFB\u7EDF\u5339\u914D\u5230\u7B2C\u4E00\u4E2A\u7B26\u5408\u7684\u89C4\u5219\u5C31\u4F1A\u53D6\u5BC6\u7801\u8FDB\u884C\u6821\u9A8C\uFF0C\u5E76\u8FD4\u56DE\u7ED3\u679C\uFF0C\u6240\u4EE5\u8BF7\u8C03\u6574\u597D\u89C4\u5219\u987A\u5E8F\uFF0C\u4E0B\u65B9\u89C4\u5219\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F\u3002",-1)),xe={class:"rules-tips-link"},be={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},ke=p(()=>t("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),ye={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},Ie=d("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),Ee={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},Ve=d("\u53C2\u8003\u6587\u7AE0 (Github)"),Pe={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},Se=d("\u6DFB\u52A0\u66F4\u591A"),ze=d("\u4FDD\u5B58\u8BBE\u7F6E"),B={__name:"[storageId]",setup(l){let u=q(),m=M();const{loading:v,loadPasswordData:g,passwordList:_,addPasswordItem:f,deletePasswordItem:V,savePasswordData:i}=me(m,u);return T(()=>{g()}),(e,h)=>{const C=Y,U=H("router-link"),F=X,x=de,L=O,b=K,R=pe;return N((w(),E(ee,{model:o(_),class:"zfile-admin-password-form"},{"form-title":r(()=>[t("div",ue,[s(U,{to:"/admin/storage-list"},{default:r(()=>[s(C,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),_e])]),"form-sub-title":r(()=>[s(F,{closable:!1,type:"info"},{default:r(()=>[fe,he,we,ve,ge,t("div",xe,[t("a",be,[s(o(k),{class:"inline mr-1"}),ke]),t("a",ye,[s(o(k),{class:"inline mr-1"}),Ie]),t("a",Ee,[s(o(k),{class:"inline mr-1"}),Ve])])]),_:1})]),footer:r(()=>[s(b,{type:"primary",size:"default",icon:o(ne),onClick:o(i)},{default:r(()=>[ze]),_:1},8,["icon","onClick"])]),default:r(()=>[(w(!0),Z(j,null,$(o(_),(n,D)=>(w(),E(P,{required:!0,key:n,class:"expression-item"},{default:r(()=>[t("div",Pe,[s(L,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:r(()=>[s(x,{"prefix-icon":o(J),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:n.description,"onUpdate:modelValue":c=>n.description=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),s(x,{"prefix-icon":o(se),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:n.expression,"onUpdate:modelValue":c=>n.expression=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),s(x,{"prefix-icon":o(ce),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",type:"password","show-password":"",modelValue:n.password,"onUpdate:modelValue":c=>n.password=c},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),s(b,{type:"danger",onClick:c=>o(V)(D),icon:o(Q)},null,8,["onClick","icon"])])]),_:2},1024))),128)),s(P,null,{default:r(()=>[s(b,{type:"primary",size:"default",icon:o(W),onClick:o(f)},{default:r(()=>[Se]),_:1},8,["icon","onClick"])]),_:1})]),_:1},8,["model"])),[[R,o(v)]])}}};typeof S=="function"&&S(B);var at=le(B,[["__scopeId","data-v-62a29772"]]);export{at as default}; diff --git a/src/main/resources/static/assets/_storageId_.a5f79f09.js b/src/main/resources/static/assets/_storageId_.a5f79f09.js new file mode 100644 index 0000000..43a0e06 --- /dev/null +++ b/src/main/resources/static/assets/_storageId_.a5f79f09.js @@ -0,0 +1 @@ +import r from"./index.e784c329.js";import{b as o}from"./route-block.9b0645f8.js";import{a as t,b as p}from"./index.43b3cbf5.js";import"./base.4ef7f45b.js";/* empty css *//* empty css */import"./popper.718d36e0.js";import"./request.e2daed10.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./link.e398aca7.js";/* empty css */import"./switch.87050cd5.js";import"./validator.b1ae6965.js";import"./event.776e7e11.js";/* empty css */import"./select.8acf8bd3.js";import"./index.da7dbe5d.js";import"./index.88f36c37.js";import"./index.9c287fed.js";import"./index.566ad052.js";import"./scroll.90c07eee.js";import"./isEqual.2263846a.js";import"./debounce.014e7b6e.js";import"./scrollbar.83fe9165.js";import"./SvgIcon.eefd5347.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./ZFormItem.899c4541.js";import"./index.5cf4e3bb.js";import"./admin-storage.442a3cb6.js";import"./index.a1ce1e68.js";import"./dropdown.2ef7612f.js";import"./BadgeCheckIcon.8153a115.js";import"./index.439070da.js";import"./index.d46124aa.js";const m={__name:"[storageId]",setup(i){return(e,a)=>(t(),p(r))}};typeof o=="function"&&o(m);export{m as default}; diff --git a/src/main/resources/static/assets/_storageId_.c2c34ae8.js b/src/main/resources/static/assets/_storageId_.c2c34ae8.js new file mode 100644 index 0000000..60cf54b --- /dev/null +++ b/src/main/resources/static/assets/_storageId_.c2c34ae8.js @@ -0,0 +1 @@ +import{r as z,L as R,P as T,o as q,ae as M,Q as N,u as o,a as b,b as I,e as a,p as t,h as e,f as Z,y as G,F as $,U as A,V as J,J as i}from"./index.43b3cbf5.js";import{b3 as x,b4 as O,m as P,aR as Q,r as W}from"./base.4ef7f45b.js";/* empty css *//* empty css *//* empty css *//* empty css */import{E as H,a as K}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{E as X}from"./popper.718d36e0.js";import"./tooltip.f118fcb0.js";import{E as Y}from"./alert.b0fac511.js";import{S as ee}from"./SvgIcon.eefd5347.js";import{Z as E,a as te}from"./ZFormItem.899c4541.js";import{j as oe,k as ae}from"./admin-storage.442a3cb6.js";import{u as ie,r as le}from"./common.9f3a7a35.js";import{E as se}from"./request.e2daed10.js";import{E as re}from"./index.439070da.js";import{b as V}from"./route-block.9b0645f8.js";import{_ as ne}from"./plugin-vue_export-helper.21dcd24c.js";import{r as de}from"./BadgeCheckIcon.8153a115.js";import{E as pe}from"./index.da7dbe5d.js";import{v as me}from"./directive.378eb0e0.js";import"./index.88f36c37.js";import"./index.9c287fed.js";import"./index.566ad052.js";import"./event.776e7e11.js";import"./scroll.90c07eee.js";import"./isEqual.2263846a.js";import"./debounce.014e7b6e.js";import"./validator.b1ae6965.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.5cf4e3bb.js";import"./index.d46124aa.js";let l=z([]),w=z(!1);function ce(s,u){let m=u.params.storageId;const _=()=>{oe(m).then(r=>{l.value=r.data,l.value.length===0&&c()})},h=()=>{l.value.find(f=>{if(ie.isEmpty(f.expression))return se.warning("\u8BF7\u68C0\u67E5\u6570\u636E\u586B\u5199\u662F\u5426\u5B8C\u6574"),!0})||(w.value=!0,ae(m,l.value).then(()=>{re.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:f=>{f==="confirm"&&s.push("/admin/storage-list")}})}).finally(()=>{w.value=!1}))},c=()=>{l.value.push({mode:"hidden",expression:"",storageId:m,description:"\u8868\u8FBE\u5F0F - "+l.value.length})};return{loading:w,loadFilterData:_,filterList:l,addFilterItem:c,deleteFilterItem:r=>{l.value.splice(r,1)},saveFilterData:h}}const p=s=>(A("data-v-f04f2ad4"),s=s(),J(),s),fe={class:"flex justify-items-center"},ue=p(()=>t("span",null,"\u8FC7\u6EE4\u6587\u4EF6",-1)),_e=p(()=>t("div",{class:"rules-tips"},"Glob \u8868\u8FBE\u5F0F\u89C4\u5219\uFF1A",-1)),he=p(()=>t("div",{class:"rules-tips"},[t("b",null,"*"),i("\uFF1A\u5355\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F /*.jpg\uFF0C\u53EF\u4EE5\u5339\u914D\u6839\u8DEF\u5F84\u4E0B\u6240\u6709\u7684 jpg \u540E\u7F00\u7684\u6587\u4EF6")],-1)),ge=p(()=>t("div",{class:"rules-tips"},[t("b",null,"**"),i("\uFF1A\u591A\u7EA7\u8DEF\u5F84\u901A\u914D\u7B26\uFF0C\u5982\u8868\u8FBE\u5F0F **.jpg\uFF0C\u53EF\u4EE5\u5339\u914D\u6240\u6709\u8DEF\u5F84\u4E0B\u7684 jpg \u540E\u7F00\u7684\u6587\u4EF6")],-1)),ve=p(()=>t("div",{class:"rules-tips"},[i("\u6CE8\uFF1A"),t("b",null,"/a.png"),i(" \u8868\u793A\u6839\u8DEF\u5F84\u4E0B\u7684 a.png\u3002 "),t("b",null,"/a/b/c.png"),i("\uFF0C\u8868\u793A /a/b/ \u8DEF\u5F84\u4E0B\u7684 c.png\u3002 "),t("b",null,"a.png"),i("\uFF0C\u4EC0\u4E48\u90FD\u4E0D\u8868\u793A\uFF0C\u56E0\u4E3A\u672A\u6807\u6CE8\u8DEF\u5F84\u3002")],-1)),be={class:"rules-tips-link"},xe={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},we=p(()=>t("span",null,"\u53C2\u8003\u6587\u7AE0 (Wikipedia)",-1)),ke={target:"_blank",class:"link",href:"http://www.ruanyifeng.com/blog/2018/09/bash-wildcards.html"},ye=i("\u53C2\u8003\u6587\u7AE0 (\u962E\u4E00\u5CF0)"),Fe={target:"_blank",class:"link",href:"https://github.com/whinc/blog/issues/18"},Ie=i("\u53C2\u8003\u6587\u7AE0 (Github)"),Ee={class:"sm:flex sm:space-x-2 sm:border-b-0 sm:pb-0 border-b pb-2"},Ve=i("\u6DFB\u52A0\u66F4\u591A"),ze=i("\u4FDD\u5B58\u8BBE\u7F6E"),S={__name:"[storageId]",setup(s){let u=R(),m=T();const{loading:_,loadFilterData:h,filterList:c,addFilterItem:k,deleteFilterItem:r,saveFilterData:f}=ce(m,u);return q(()=>{h()}),(Se,Be)=>{const B=ee,C=M("router-link"),U=Y,y=pe,j=X,g=H,D=K,v=W,L=me;return N((b(),I(te,{model:o(c),class:"zfile-admin-filter-form"},{"form-title":a(()=>[t("div",fe,[e(C,{to:"/admin/storage-list"},{default:a(()=>[e(B,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),ue])]),"form-sub-title":a(()=>[e(U,{closable:!1,type:"info"},{default:a(()=>[_e,he,ge,ve,t("div",be,[t("a",xe,[e(o(x),{class:"inline mr-1"}),we]),t("a",ke,[e(o(x),{class:"inline mr-1"}),ye]),t("a",Fe,[e(o(x),{class:"inline mr-1"}),Ie])])]),_:1})]),footer:a(()=>[e(v,{type:"primary",size:"default",icon:o(de),onClick:o(f)},{default:a(()=>[ze]),_:1},8,["icon","onClick"])]),default:a(()=>[(b(!0),Z($,null,G(o(c),(n,F)=>(b(),I(E,{required:!0,key:F,class:"expression-item"},{default:a(()=>[t("div",Ee,[e(j,{content:"\u6B64\u5904\u53EF\u586B\u5199\u8868\u8FBE\u4E66\u63CF\u8FF0\uFF0C\u7528\u4E8E\u8F85\u52A9\u8BB0\u5FC6\uFF0C\u9632\u6B62\u65F6\u95F4\u8FC7\u957F\u540E\u4E0D\u77E5\u9053\u8868\u8FBE\u5F0F\u542B\u4E49.",placement:"top"},{default:a(()=>[e(y,{"prefix-icon":o(O),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u63CF\u8FF0",modelValue:n.description,"onUpdate:modelValue":d=>n.description=d},null,8,["prefix-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),e(y,{"prefix-icon":o(le),placeholder:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F",modelValue:n.expression,"onUpdate:modelValue":d=>n.expression=d},null,8,["prefix-icon","modelValue","onUpdate:modelValue"]),e(D,{class:"editor-input",modelValue:n.mode,"onUpdate:modelValue":d=>n.mode=d},{default:a(()=>[e(g,{label:"\u4EC5\u9690\u85CF",value:"hidden"}),e(g,{label:"\u9690\u85CF\u5E76\u4E0D\u53EF\u8BBF\u95EE(\u9488\u5BF9\u76EE\u5F55)",value:"inaccessible"}),e(g,{label:"\u9690\u85CF\u5E76\u4E0D\u53EF\u8BBF\u95EE\u4E0D\u53EF\u4E0B\u8F7D(\u9488\u5BF9\u6587\u4EF6)",value:"disable_download"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(v,{type:"danger",onClick:d=>o(r)(F),icon:o(P)},null,8,["onClick","icon"])])]),_:2},1024))),128)),e(E,null,{default:a(()=>[e(v,{type:"primary",size:"default",icon:o(Q),onClick:o(k)},{default:a(()=>[Ve]),_:1},8,["icon","onClick"])]),_:1})]),_:1},8,["model"])),[[L,o(_)]])}}};typeof V=="function"&&V(S);var mt=ne(S,[["__scopeId","data-v-f04f2ad4"]]);export{mt as default}; diff --git a/src/main/resources/static/assets/_storageId_.e28774f9.css b/src/main/resources/static/assets/_storageId_.e28774f9.css deleted file mode 100644 index f07e691..0000000 --- a/src/main/resources/static/assets/_storageId_.e28774f9.css +++ /dev/null @@ -1 +0,0 @@ -.expression-item[data-v-64c46615] .el-input__wrapper{width:100%}@media (min-width: 640px){.expression-item[data-v-64c46615] .el-input__wrapper{width:6rem}}@media (min-width: 768px){.expression-item[data-v-64c46615] .el-input__wrapper{width:9rem}}@media (min-width: 1024px){.expression-item[data-v-64c46615] .el-input__wrapper{width:12rem}}@media (min-width: 1280px){.expression-item[data-v-64c46615] .el-input__wrapper{width:16rem}}.zfile-admin-readme-form[data-v-64c46615] .z-form-sub-title{max-width:100%}.zfile-admin-readme-form .rules-tips[data-v-64c46615]{padding:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:700}.zfile-admin-readme-form .rules-tips-link[data-v-64c46615]{margin-top:.5rem}.zfile-admin-readme-form .rules-tips-link[data-v-64c46615]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-admin-readme-form .rules-tips-link svg[data-v-64c46615]{height:1rem;line-height:1.25rem;vertical-align:text-bottom} diff --git a/src/main/resources/static/assets/about.50dcf407.js b/src/main/resources/static/assets/about.b14bdbbf.js similarity index 86% rename from src/main/resources/static/assets/about.50dcf407.js rename to src/main/resources/static/assets/about.b14bdbbf.js index 5ebf6a1..90d32a8 100644 --- a/src/main/resources/static/assets/about.50dcf407.js +++ b/src/main/resources/static/assets/about.b14bdbbf.js @@ -1 +1 @@ -import{a as o,f as s,p as e}from"./index.552205f5.js";const r={class:"prose md:prose-lg lg:prose-lg dark:prose-invert text-left p-10 prose-slate prose-img:rounded-xl prose-headings:underline prose-a:text-blue-600"},a=e("h2",null,"About Page",-1),n=e("blockquote",null,[e("p",null,"The page is markdown file")],-1),l=[a,n],i={},u={__name:"about",setup(p,{expose:t}){return t({frontmatter:{}}),(c,_)=>(o(),s("div",r,l))}};export{u as default,i as frontmatter}; +import{a as o,f as s,p as e}from"./index.43b3cbf5.js";const r={class:"prose md:prose-lg lg:prose-lg dark:prose-invert text-left p-10 prose-slate prose-img:rounded-xl prose-headings:underline prose-a:text-blue-600"},a=e("h2",null,"About Page",-1),n=e("blockquote",null,[e("p",null,"The page is markdown file")],-1),l=[a,n],i={},u={__name:"about",setup(p,{expose:t}){return t({frontmatter:{}}),(c,_)=>(o(),s("div",r,l))}};export{u as default,i as frontmatter}; diff --git a/src/main/resources/static/assets/admin-setting.158855e4.js b/src/main/resources/static/assets/admin-setting.28847312.js similarity index 92% rename from src/main/resources/static/assets/admin-setting.158855e4.js rename to src/main/resources/static/assets/admin-setting.28847312.js index 1d2851e..7d30673 100644 --- a/src/main/resources/static/assets/admin-setting.158855e4.js +++ b/src/main/resources/static/assets/admin-setting.28847312.js @@ -1 +1 @@ -import{e as t}from"./request.3708b2c4.js";const o=()=>t({url:"https://api.github.com/repos/zhaojun1998/zfile/releases/latest",method:"get",config:{responseIntercept:!1,withCredentials:!1,showDefaultMsg:!1}}),s=()=>t({url:"/admin/config",method:"get"}),r=e=>t({url:"/admin/config/password",method:"put",data:e}),a=e=>t({url:"/admin/config/site",method:"put",data:e}),i=e=>t({url:"/admin/config/view",method:"put",data:e}),u=e=>t({url:"/admin/config/security",method:"put",data:e}),d=e=>t({url:"/admin/config/link",method:"put",data:e}),l=()=>t({url:"/admin/2fa/setup",method:"get"}),f=e=>t({url:"/admin/2fa/verify",method:"post",data:e}),g=()=>t({url:"/admin/log/download",method:"get",config:{responseType:"blob",showDefaultMsg:!1,responseIntercept:!1}});export{r as a,i as b,d as c,u as d,g as e,o as f,l as g,s as l,a as u,f as v}; +import{e as t}from"./request.e2daed10.js";const o=()=>t({url:"https://api.github.com/repos/zhaojun1998/zfile/releases/latest",method:"get",config:{responseIntercept:!1,withCredentials:!1,showDefaultMsg:!1}}),s=()=>t({url:"/admin/config",method:"get"}),r=e=>t({url:"/admin/config/password",method:"put",data:e}),a=e=>t({url:"/admin/config/site",method:"put",data:e}),i=e=>t({url:"/admin/config/view",method:"put",data:e}),u=e=>t({url:"/admin/config/security",method:"put",data:e}),d=e=>t({url:"/admin/config/link",method:"put",data:e}),l=()=>t({url:"/admin/2fa/setup",method:"get"}),f=e=>t({url:"/admin/2fa/verify",method:"post",data:e}),g=()=>t({url:"/admin/log/download",method:"get",config:{responseType:"blob",showDefaultMsg:!1,responseIntercept:!1}});export{r as a,i as b,d as c,u as d,g as e,o as f,l as g,s as l,a as u,f as v}; diff --git a/src/main/resources/static/assets/admin-storage.260bbac1.js b/src/main/resources/static/assets/admin-storage.442a3cb6.js similarity index 56% rename from src/main/resources/static/assets/admin-storage.260bbac1.js rename to src/main/resources/static/assets/admin-storage.442a3cb6.js index c611a4a..f72aadb 100644 --- a/src/main/resources/static/assets/admin-storage.260bbac1.js +++ b/src/main/resources/static/assets/admin-storage.442a3cb6.js @@ -1 +1 @@ -import{e as t}from"./request.3708b2c4.js";const o=()=>t({url:"/admin/support-storage",method:"get"}),s=e=>t({url:"/admin/storages",method:"get",data:e}),n=e=>t({url:`/admin/storage/${e}`,method:"get"}),d=e=>t({url:`/admin/storage/${e}`,method:"delete"}),m=(e,r)=>t({url:`/admin/storage/${e}/${r}`,method:"post"}),g=e=>t({url:"/admin/storage/sort",method:"post",data:e}),u=(e,r)=>t({url:`/admin/cache/${e}/${r}`,method:"post"}),l=(e,r)=>t({url:`/admin/cache/${e}/auto-refresh/${r}`,method:"post"}),i=e=>t({url:"/admin/storage-params",method:"get",data:e}),c=e=>t({url:"/admin/storage",method:"post",data:e}),h=e=>t({url:"/admin/storage/exist/key",method:"get",data:e}),R=e=>t({url:`/admin/storage/${e}/filters`,method:"get"}),p=(e,r)=>t({url:`/admin/storage/${e}/filters`,method:"post",data:r}),q=e=>t({url:`/admin/storage/${e}/password`,method:"get"}),S=(e,r)=>t({url:`/admin/storage/${e}/password`,method:"post",data:r}),$=e=>t({url:`/admin/storage/${e}/readme`,method:"get"}),w=(e,r)=>t({url:`/admin/storage/${e}/readme`,method:"post",data:r});export{u as a,l as b,g as c,d,n as e,c as f,o as g,h,i,R as j,p as k,s as l,q as m,S as n,$ as o,w as p,m as s}; +import{e as t}from"./request.e2daed10.js";const o=()=>t({url:"/admin/support-storage",method:"get"}),s=e=>t({url:"/admin/storages",method:"get",data:e}),n=e=>t({url:`/admin/storage/${e}`,method:"get"}),d=e=>t({url:`/admin/storage/${e}`,method:"delete"}),m=(e,r)=>t({url:`/admin/storage/${e}/${r}`,method:"post"}),g=e=>t({url:"/admin/storage/sort",method:"post",data:e}),u=(e,r)=>t({url:`/admin/cache/${e}/${r}`,method:"post"}),i=(e,r)=>t({url:`/admin/cache/${e}/auto-refresh/${r}`,method:"post"}),l=e=>t({url:"/admin/storage-params",method:"get",data:e}),c=e=>t({url:"/admin/storage",method:"post",data:e}),h=e=>t({url:"/admin/storage/exist/key",method:"get",data:e}),R=e=>t({url:`/admin/storage/${e}/filters`,method:"get"}),p=(e,r)=>t({url:`/admin/storage/${e}/filters`,method:"post",data:r}),q=e=>t({url:`/admin/storage/${e}/password`,method:"get"}),$=(e,r)=>t({url:`/admin/storage/${e}/password`,method:"post",data:r}),S=e=>t({url:`/admin/storage/${e}/readme`,method:"get"}),w=(e,r)=>t({url:`/admin/storage/${e}/readme`,method:"post",data:r}),b=(e,r)=>t({url:`/admin/storage/${e}/compatibility_readme/${r}`,method:"post"});export{u as a,i as b,g as c,d,n as e,c as f,o as g,h,l as i,R as j,p as k,s as l,q as m,$ as n,S as o,w as p,b as q,m as s}; diff --git a/src/main/resources/static/assets/admin.3a9a6939.js b/src/main/resources/static/assets/admin.3a9a6939.js deleted file mode 100644 index 7a67da5..0000000 --- a/src/main/resources/static/assets/admin.3a9a6939.js +++ /dev/null @@ -1,4 +0,0 @@ -import{a as L,b as Y,h as l,f as A,p as h,az as te,F as le,ab as Se,al as De,E as V,v as W,o as Q,am as K,r as D,c as C,d as P,a9 as Le,Z as z,P as Re,L as Ce,w as Ae,ae as oe,e as u,u as c,J as x,t as Te,k as Me,n as S,T as ze}from"./index.552205f5.js";import{aO as Oe,b4 as Pe,E as Fe}from"./base.d698891e.js";import{E as je,a as Ue,b as He}from"./dropdown-item.448534e1.js";/* empty css */import"./popper.14a92806.js";/* empty css *//* empty css */import{E as Be}from"./link.0fb91bad.js";import{_ as Ne}from"./zfile-basic.74fe23dd.js";import{a as Ke}from"./zfile-horizontal.8a0fa4a8.js";import{e as Ye,f as Ve,l as We}from"./admin-setting.158855e4.js";import{d as Je}from"./login.e9105da0.js";import{d as Ge}from"./dayjs.min.79223755.js";import{E as Ze,k as Qe}from"./request.3708b2c4.js";import{c as M}from"./common.0f75f163.js";import{E as qe}from"./index.e168d154.js";import{r as Xe}from"./MenuIcon.aa2f9509.js";import"./index.24f1077d.js";import"./dropdown.d5503246.js";import"./event.3ec63147.js";import"./index.1e624cbf.js";import"./refs.4597d917.js";import"./focus-trap.58847c97.js";function $e(e,o){return L(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h8m-8 6h16"})])}function et(e,o){return L(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const tt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ot=h("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),nt=[ot];function at(e,o){return L(),A("svg",tt,nt)}var rt={name:"ep-download",render:at};const lt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},st=h("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1),it=[st];function dt(e,o){return L(),A("svg",lt,it)}var ut={name:"ep-arrow-down",render:dt};const ct={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pt=h("path",{fill:"currentColor",d:"M715.648 625.152L670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896c-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248l90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656c87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496l-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496l45.248 45.248l-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896c62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496l45.248 45.248zm0-362.048l45.248 45.248L398.848 670.4L353.6 625.152L625.152 353.6z"},null,-1),mt=[pt];function ft(e,o){return L(),A("svg",ct,mt)}var vt={name:"ep-link",render:ft};const gt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},bt=h("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864S0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288c52.608 79.872 211.456 288 436.8 288c225.28 0 384.128-208.064 436.8-288c-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448a224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160s-71.744-160-160-160z"},null,-1),ht=[bt];function _t(e,o){return L(),A("svg",gt,ht)}var xt={name:"ep-view",render:_t};const wt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},yt=h("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),kt=[yt];function It(e,o){return L(),A("svg",wt,kt)}var Et={name:"ep-folder",render:It};const St={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Dt=h("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256z"},null,-1),Lt=[Dt];function Rt(e,o){return L(),A("svg",St,Lt)}var Ct={name:"ep-setting",render:Rt};var At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAJjElEQVR4Xu1dy27cNhR1gALtuuguyAd00WXRLLstss0i+y7zCf6E/ECaZYHukk1XCbwrGo9saWzX0ozjV523E8eJk9R2bE9slYczscdXGlkPkroc8QAHMEYSRZ5rieTl5dXExBhgY2Pjm+lg8QfPj663/HByut353Qui+zPt6KEXhIutINpoBeG2+O0QxN/4Dcf650T3cQ2uRRkoC2XS+zgYQqsdfu+1o5uCd/uGio6FcWKVlGWibHEP3Av3pPVwUIQgCL6bmev+2pqN/hDib1JjGOQm6oC6oE60ng4FsLq6+jVelzN+9Kd4lR6liF0rUSdZN1FH1JXW32EEHs5GP3p+eFsIt0NF5UrUFXVG3Wl7HAbw55d+FmJNUfEs5BTaQtvXWLTmOr9gJJsilNWUbRJto+1tDIKg89O0H/lUmHEj2oi20vaPLaano2/F9OOOmIacUDHGlbKtos1oO9VjbBDH8SU51YGTIUWERlC0HRpAC6qP1ZgN166I/+K/Eg1uKKEFNKE6WYmZILzW6Kd2FPE0C22oXtZAvIa+8oLOrSb1tUUJbaARtKL6scbCwvJlMfmfpg1yTCe0gmZUR5aQCwF++JQ2wjGbUjPuCxrtdveq628rUGgHDamuLACvjReEe4lKOxai1JCbB8zzuzdE5Xq0so6l2YOmVOdagP82VCilko7V2Kv9SUZ/4V7L+ghta+uTMeJzAyoDhMamR9f9ea6bCpkitDY2T5YeKufEME5obsTjBdcavbmjGUJ7ag+lgHPcNt9ytLQev9x8E3/4uBvvfzqIP3/+LIm/8RuO4Rx6HUdCe20LFFjesmVQJYSInzzbjI+OenFe4Fxcg2tpeawobKB8qVG0/5It67nLa0/ig8Mjar/cwLUog5bLibBFrDJoQEZipNyIG5+/3KL2Kg2URcvnRNiE2qkU+jFU/F/N22/fUxtVBsqk92FDYRMlMV4IFksUzowqn1wK1k+ysA21VyEg3JP7qBn9pW5w7ZNhm0ohudzjljHirTKgygvcg+voGjaidsuFwSpRokBOxLTGFHAven82LLPqZMN2kiLz3KrAvej9udDzw7+p/TIx2AiWKIgT4X0yDc4er0Ib3loW7PKDi9E0cE9aD0aconZMBfa4plzMjvAjmwbuSevBibn2J3t+9Bu9kCOxWGAauCetByfCdtSe5zBIm2DFznqsCJkG7knrwYmwXWY6iUEaosSFHFmPgY8T9eBG2JDa9RRIKkIv4Er3ik4nbEjtKoG0QByz2YyiG2SlEzZMTfFky5LgF9YzTWK88DDE1KXEQZKxxMlc6RwdGRS2pPaFc6PODHKl6FyVI7l53rgIYk+exJ5usSGDw8HyMtkmPcECuuXC0YRNzwzsR/foCbawyQv+WUSW3FMDy3zKKSfZwsaG7GRR2FQaF4mvPQ35lk2zcUF3FxA2lUnNkd2cHrSVKp9ka5/cIcK2Vvmf87AJge95Kf3S4o9JesB2jvXWlWKcnBh8jIIeGBuO0+azooRtJ7wgfEAPOI4HYVv0wW4z95gStsUTvEgPOI4HYVvrnRyOGYSzw4adg2mcaUfx+uPn8d7+ftxd3kgcV8WFaCWenesmfreCwrbiFR0dJg4wZrCwFL/Y3Ip7vbOYrKNeT/5Oz61KlImyEYsFx4c/30mcw5mwrTUGnml3pGFPTk6GZq9n0BFOQ8OCML1CHWwxtDSwDa9ovII/HRyeEzsNKt2LWW5POEWWVh4nrmFHvKI5D7L8+W78ZnuH6jsSeLpV9McoY9SbYhivt97KNwu9ng0xyOI6TZoPV3I9tRRV++Mv/W5eoI5hdy1RDgfKaRLHbaKdR+txr0Jge5X+mPa7eYC+ufPo30RZdRO2xSDrPj1QJ1fWn8bHx8dUw8Io0x9n9bsXAXVeXuW1CgXbslpswLw2T9+XB0X747z9bhZw/drG80TZdVEuNrSYLBfiFVdVYIq8/XHRfjcLaMMjPk/yJIsFfwyodG0my9Mfl+l3swDHyIJoE72PacoF/7pDdjAVKjNaLoKs/rhKv5sFrDfX7eKUITt1B93tvP9ItVGOUf2xin43C+92PibuaYqnQXd1hs1ixGwKtD9W2e9mYb2uQdeXsFkAQdKJEzRzdq4TH1YIjiuD4f5Ydb87CnBroq20/bp5LvC9jq0rL19tUy2MAH2urn53FOrIznNu64rpzWf/RKta+74s4L6m7318fCJnClQHraRfamkZ3D66VWABYVzw9t2HhA4aeX77qDSwoQ3gWEtV4Yq0DXiKg3lD06a0DeCmUjiY3NPLDU+evUrooYOpKRxMJWE50OzU4Aw4dKgeqjkyCQugO40SHAtNh+5lxZFplADdfmlkqWk6MD2kuqhkZiI03akM/9vdp+1tHHb3PiV0UcULUxkCSGhJL1RBxC6Znn9yBDTQFcfl+eFtas8EdKUTdv3vGZY09cO50gkDLQ0JwU27Bznj2YvXCX0UMF9CcEBHSv8meq9GAaHAVJ+qLJTSH1AdbYm1UYc+sAZO9alCGT1ZFKo/q+NG0GfY3dtP6FOJZT6rA6j8MJbusBybAG8e1acsS38YC1D5aTsEojn0oerTALBNpU/bAao+Tjm3uOw4RKpPKVb9OCVgy+dlG0dVn5cFTC0lOuZn6pJgWcQWfeK9CYQtYBNqp0qYDdeuuFc1AwobwBbUPkowE4TXVI2qHYsT2sMG1C5K4QWdW/TGjmYI7ak9lEO8+79y2fHME5pDe2oPLVhYWL7s+eFTWglHPYTW0JzaQStksLwbdOknNKZB7KbQbnevekG4l6iUoxJCW2hMdTeKwapTj1bOsTJ7pVeJVMPzuzdkhZKVdCzHHjSlOtcK/Le513V1Sg25PLkU6C/cwKsChXa197kXASM+N4UqTqlZXaPloujPk50zJC+hlfF5blVIj1fQueV816MJbaCRMQ+VDsA57vrlFApNtC8cmAKWt9x68hmhhbYlv7qABWoZGdLkpxlPrdBA+WI9J/RjvKI7TeqbZVtFm5XFUNkAhHuqjLvmSrSxcmirzYDXRvU2GQ6UbeLqkaoDgw1vync11sCpwhvBmgTsccUmdJ2ZBlQTdUWdc+/PdThNJ3EdSUVMZP8pStRJ1k3U8cK0CQ7ZQFogOcXqJ2szlpEvhZuoA+oyMlWRQ3XIBY12dFM8PfeQNldHvmtZJspuR3dlslZbFgLGEUh8jezmgzRQk/gYBT6ODCe+/C4U8mEH4bYw2iEonS3yHyNcHJzzYPBxkkmUgbJOk2lbjv8B5/TafUY44tIAAAAASUVORK5CYII=";function Tt(e,o){let{data:n}=te(We),{data:s,loading:t}=te(Ve,{errorRetryCount:3});return{siteSetting:n,githubLatestInfo:s,githubLatestLoading:t,logDownload:()=>{Ye().then(i=>{const{data:p,headers:b}=i,a=`ZFile \u8BCA\u65AD\u65E5\u5FD7 - ${Ge().format("YYYY-MM-DD HH:mm:ss")}.zip`,m=new Blob([p],{type:b["content-type"]});let d=document.createElement("a"),g=window.URL.createObjectURL(m);d.href=g,d.download=decodeURI(a),d.style.display="none",document.body.appendChild(d),d.click(),d.parentNode.removeChild(d),window.URL.revokeObjectURL(g)}).catch(i=>{Ze.error("\u4E0B\u8F7D\u65E5\u5FD7\u5931\u8D25.")})},logout:()=>{Je().then(()=>{e.push("/login")})},rebuildTitle:()=>{o.path.indexOf("/admin")!==-1&&(document.title=(o.meta.name||"ZFile")+" | \u540E\u53F0\u7BA1\u7406")}}}function j(e,o,...n){if(e in o){let t=o[e];return typeof t=="function"?t(...n):t}let s=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(t=>`"${t}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,j),s}var B=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(B||{}),Mt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Mt||{});function F({visible:e=!0,features:o=0,...n}){var s;if(e||o&2&&n.props.static)return Z(n);if(o&1){let t=(s=n.props.unmount)==null||s?0:1;return j(t,{[0](){return null},[1](){return Z({...n,props:{...n.props,hidden:!0,style:{display:"none"}}})}})}return Z(n)}function Z({props:e,attrs:o,slots:n,slot:s,name:t}){var f;let{as:r,...v}=zt(e,["unmount","static"]),i=(f=n.default)==null?void 0:f.call(n,s),p={};if(r==="template"){if(i=se(i),Object.keys(v).length>0||Object.keys(o).length>0){let[b,...a]=i!=null?i:[];if(!Ot(b)||a.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${t} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(v).concat(Object.keys(o)).map(m=>` - ${m}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` -`)].join(` -`));return Se(b,Object.assign({},v,p))}return Array.isArray(i)&&i.length===1?i[0]:i}return De(r,Object.assign({},v,p),i)}function se(e){return e.flatMap(o=>o.type===le?se(o.children):[o])}function zt(e,o=[]){let n=Object.assign({},e);for(let s of o)s in n&&delete n[s];return n}function Ot(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let Pt=0;function Ft(){return++Pt}function N(){return Ft()}var y=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(y||{});function jt(e){throw new Error("Unexpected object: "+e)}var R=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(R||{});function Ut(e,o){let n=o.resolveItems();if(n.length<=0)return null;let s=o.resolveActiveIndex(),t=s!=null?s:-1,f=(()=>{switch(e.focus){case 0:return n.findIndex(r=>!o.resolveDisabled(r));case 1:{let r=n.slice().reverse().findIndex((v,i,p)=>t!==-1&&p.length-i-1>=t?!1:!o.resolveDisabled(v));return r===-1?r:n.length-1-r}case 2:return n.findIndex((r,v)=>v<=t?!1:!o.resolveDisabled(r));case 3:{let r=n.slice().reverse().findIndex(v=>!o.resolveDisabled(v));return r===-1?r:n.length-1-r}case 4:return n.findIndex(r=>o.resolveId(r)===e.id);case 5:return null;default:jt(e)}})();return f===-1?s:f}function _(e){return e==null||e.value==null?null:"$el"in e.value?e.value.$el:e.value}let ie=Symbol("Context");var O=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(O||{});function de(){return V(ie,null)}function ue(e){W(ie,e)}function ne(e,o){if(e)return e;let n=o!=null?o:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function ce(e,o){let n=D(ne(e.value.type,e.value.as));return Q(()=>{n.value=ne(e.value.type,e.value.as)}),K(()=>{var s;n.value||!_(o)||_(o)instanceof HTMLButtonElement&&!((s=_(o))!=null&&s.hasAttribute("type"))&&(n.value="button")}),n}function pe(e){if(typeof window=="undefined")return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let o=_(e);if(o)return o.ownerDocument}return document}function Ht({container:e,accept:o,walk:n,enabled:s}){K(()=>{let t=e.value;if(!t||s!==void 0&&!s.value)return;let f=pe(e);if(!f)return;let r=Object.assign(i=>o(i),{acceptNode:o}),v=f.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,r,!1);for(;v.nextNode();)n(v.currentNode)})}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Bt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Bt||{}),Nt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Nt||{}),Kt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Kt||{}),q=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(q||{});function me(e,o=0){var n;return e===((n=pe(e))==null?void 0:n.body)?!1:j(o,{[0](){return e.matches(ae)},[1](){let s=e;for(;s!==null;){if(s.matches(ae))return!0;s=s.parentElement}return!1}})}function Yt(e,o=n=>n){return e.slice().sort((n,s)=>{let t=o(n),f=o(s);if(t===null||f===null)return 0;let r=t.compareDocumentPosition(f);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function re(e,o,n){typeof window!="undefined"&&K(s=>{window.addEventListener(e,o,n),s(()=>window.removeEventListener(e,o,n))})}function Vt(e,o,n=C(()=>!0)){function s(t,f){if(!n.value||t.defaultPrevented)return;let r=f(t);if(r===null||!r.ownerDocument.documentElement.contains(r))return;let v=function i(p){return typeof p=="function"?i(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let i of v){if(i===null)continue;let p=i instanceof HTMLElement?i:_(i);if(p!=null&&p.contains(r))return}return!me(r,q.Loose)&&r.tabIndex!==-1&&t.preventDefault(),o(t,r)}re("click",t=>s(t,f=>f.target),!0),re("blur",t=>s(t,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Wt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wt||{});let fe=Symbol("DisclosureContext");function X(e){let o=V(fe,null);if(o===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,X),n}return o}let ve=Symbol("DisclosurePanelContext");function Jt(){return V(ve,null)}let Gt=P({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:o,attrs:n}){let s=`headlessui-disclosure-button-${N()}`,t=`headlessui-disclosure-panel-${N()}`,f=D(e.defaultOpen?0:1),r=D(null),v=D(null),i={buttonId:s,panelId:t,disclosureState:f,panel:r,button:v,toggleDisclosure(){f.value=j(f.value,{[0]:1,[1]:0})},closeDisclosure(){f.value!==1&&(f.value=1)},close(p){i.closeDisclosure();let b=(()=>p?p instanceof HTMLElement?p:p.value instanceof HTMLElement?_(p):_(i.button):_(i.button))();b==null||b.focus()}};return W(fe,i),ue(C(()=>j(f.value,{[0]:O.Open,[1]:O.Closed}))),()=>{let{defaultOpen:p,...b}=e,a={open:f.value===0,close:i.close};return F({props:b,slot:a,slots:o,attrs:n,name:"Disclosure"})}}}),T=P({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},setup(e,{attrs:o,slots:n,expose:s}){let t=X("DisclosureButton"),f=Jt(),r=f===null?!1:f===t.panelId,v=D(null);s({el:v,$el:v}),r||K(()=>{t.button.value=v.value});let i=ce(C(()=>({as:e.as,type:o.type})),v);function p(){var m;e.disabled||(r?(t.toggleDisclosure(),(m=_(t.button))==null||m.focus()):t.toggleDisclosure())}function b(m){var d;if(!e.disabled)if(r)switch(m.key){case y.Space:case y.Enter:m.preventDefault(),m.stopPropagation(),t.toggleDisclosure(),(d=_(t.button))==null||d.focus();break}else switch(m.key){case y.Space:case y.Enter:m.preventDefault(),m.stopPropagation(),t.toggleDisclosure();break}}function a(m){switch(m.key){case y.Space:m.preventDefault();break}}return()=>{let m={open:t.disclosureState.value===0},d=r?{ref:v,type:i.value,onClick:p,onKeydown:b}:{id:t.buttonId,ref:v,type:i.value,"aria-expanded":e.disabled?void 0:t.disclosureState.value===0,"aria-controls":_(t.panel)?t.panelId:void 0,disabled:e.disabled?!0:void 0,onClick:p,onKeydown:b,onKeyup:a};return F({props:{...e,...d},slot:m,attrs:o,slots:n,name:"DisclosureButton"})}}}),Zt=P({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:o,slots:n,expose:s}){let t=X("DisclosurePanel");s({el:t.panel,$el:t.panel}),W(ve,t.panelId);let f=de(),r=C(()=>f!==null?f.value===O.Open:t.disclosureState.value===0);return()=>{let v={open:t.disclosureState.value===0,close:t.close},i={id:t.panelId,ref:t.panel};return F({props:{...e,...i},slot:v,attrs:o,slots:n,features:B.RenderStrategy|B.Static,visible:r.value,name:"DisclosurePanel"})}}});var Qt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qt||{}),qt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(qt||{});function Xt(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ge=Symbol("MenuContext");function J(e){let o=V(ge,null);if(o===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,J),n}return o}let $t=P({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:o,attrs:n}){let s=D(1),t=D(null),f=D(null),r=D([]),v=D(""),i=D(null),p=D(1);function b(m=d=>d){let d=i.value!==null?r.value[i.value]:null,g=Yt(m(r.value.slice()),E=>_(E.dataRef.domRef)),k=d?g.indexOf(d):null;return k===-1&&(k=null),{items:g,activeItemIndex:k}}let a={menuState:s,buttonRef:t,itemsRef:f,items:r,searchQuery:v,activeItemIndex:i,activationTrigger:p,closeMenu:()=>{s.value=1,i.value=null},openMenu:()=>s.value=0,goToItem(m,d,g){let k=b(),E=Ut(m===R.Specific?{focus:R.Specific,id:d}:{focus:m},{resolveItems:()=>k.items,resolveActiveIndex:()=>k.activeItemIndex,resolveId:I=>I.id,resolveDisabled:I=>I.dataRef.disabled});v.value="",i.value=E,p.value=g!=null?g:1,r.value=k.items},search(m){let d=v.value!==""?0:1;v.value+=m.toLowerCase();let g=(i.value!==null?r.value.slice(i.value+d).concat(r.value.slice(0,i.value+d)):r.value).find(E=>E.dataRef.textValue.startsWith(v.value)&&!E.dataRef.disabled),k=g?r.value.indexOf(g):-1;k===-1||k===i.value||(i.value=k,p.value=1)},clearSearch(){v.value=""},registerItem(m,d){let g=b(k=>[...k,{id:m,dataRef:d}]);r.value=g.items,i.value=g.activeItemIndex,p.value=1},unregisterItem(m){let d=b(g=>{let k=g.findIndex(E=>E.id===m);return k!==-1&&g.splice(k,1),g});r.value=d.items,i.value=d.activeItemIndex,p.value=1}};return Vt([t,f],(m,d)=>{var g;a.closeMenu(),me(d,q.Loose)||(m.preventDefault(),(g=_(t))==null||g.focus())},C(()=>s.value===0)),W(ge,a),ue(C(()=>j(s.value,{[0]:O.Open,[1]:O.Closed}))),()=>{let m={open:s.value===0};return F({props:e,slot:m,slots:o,attrs:n,name:"Menu"})}}}),eo=P({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},setup(e,{attrs:o,slots:n,expose:s}){let t=J("MenuButton"),f=`headlessui-menu-button-${N()}`;s({el:t.buttonRef,$el:t.buttonRef});function r(b){switch(b.key){case y.Space:case y.Enter:case y.ArrowDown:b.preventDefault(),b.stopPropagation(),t.openMenu(),z(()=>{var a;(a=_(t.itemsRef))==null||a.focus({preventScroll:!0}),t.goToItem(R.First)});break;case y.ArrowUp:b.preventDefault(),b.stopPropagation(),t.openMenu(),z(()=>{var a;(a=_(t.itemsRef))==null||a.focus({preventScroll:!0}),t.goToItem(R.Last)});break}}function v(b){switch(b.key){case y.Space:b.preventDefault();break}}function i(b){e.disabled||(t.menuState.value===0?(t.closeMenu(),z(()=>{var a;return(a=_(t.buttonRef))==null?void 0:a.focus({preventScroll:!0})})):(b.preventDefault(),t.openMenu(),Xt(()=>{var a;return(a=_(t.itemsRef))==null?void 0:a.focus({preventScroll:!0})})))}let p=ce(C(()=>({as:e.as,type:o.type})),t.buttonRef);return()=>{var b;let a={open:t.menuState.value===0},m={ref:t.buttonRef,id:f,type:p.value,"aria-haspopup":!0,"aria-controls":(b=_(t.itemsRef))==null?void 0:b.id,"aria-expanded":e.disabled?void 0:t.menuState.value===0,onKeydown:r,onKeyup:v,onClick:i};return F({props:{...e,...m},slot:a,attrs:o,slots:n,name:"MenuButton"})}}}),to=P({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:o,slots:n,expose:s}){let t=J("MenuItems"),f=`headlessui-menu-items-${N()}`,r=D(null);s({el:t.itemsRef,$el:t.itemsRef}),Ht({container:C(()=>_(t.itemsRef)),enabled:C(()=>t.menuState.value===0),accept(a){return a.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:a.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(a){a.setAttribute("role","none")}});function v(a){var m;switch(r.value&&clearTimeout(r.value),a.key){case y.Space:if(t.searchQuery.value!=="")return a.preventDefault(),a.stopPropagation(),t.search(a.key);case y.Enter:if(a.preventDefault(),a.stopPropagation(),t.activeItemIndex.value!==null){let d=t.items.value[t.activeItemIndex.value];(m=_(d.dataRef.domRef))==null||m.click()}t.closeMenu(),z(()=>{var d;return(d=_(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})});break;case y.ArrowDown:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Next);case y.ArrowUp:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Previous);case y.Home:case y.PageUp:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.First);case y.End:case y.PageDown:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Last);case y.Escape:a.preventDefault(),a.stopPropagation(),t.closeMenu(),z(()=>{var d;return(d=_(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})});break;case y.Tab:a.preventDefault(),a.stopPropagation();break;default:a.key.length===1&&(t.search(a.key),r.value=setTimeout(()=>t.clearSearch(),350));break}}function i(a){switch(a.key){case y.Space:a.preventDefault();break}}let p=de(),b=C(()=>p!==null?p.value===O.Open:t.menuState.value===0);return()=>{var a,m;let d={open:t.menuState.value===0},g={"aria-activedescendant":t.activeItemIndex.value===null||(a=t.items.value[t.activeItemIndex.value])==null?void 0:a.id,"aria-labelledby":(m=_(t.buttonRef))==null?void 0:m.id,id:f,onKeydown:v,onKeyup:i,role:"menu",tabIndex:0,ref:t.itemsRef};return F({props:{...e,...g},slot:d,attrs:o,slots:n,features:B.RenderStrategy|B.Static,visible:b.value,name:"MenuItems"})}}}),H=P({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup(e,{slots:o,attrs:n,expose:s}){let t=J("MenuItem"),f=`headlessui-menu-item-${N()}`,r=D(null);s({el:r,$el:r});let v=C(()=>t.activeItemIndex.value!==null?t.items.value[t.activeItemIndex.value].id===f:!1),i=C(()=>({disabled:e.disabled,textValue:"",domRef:r}));Q(()=>{var d,g;let k=(g=(d=_(r))==null?void 0:d.textContent)==null?void 0:g.toLowerCase().trim();k!==void 0&&(i.value.textValue=k)}),Q(()=>t.registerItem(f,i)),Le(()=>t.unregisterItem(f)),K(()=>{t.menuState.value===0&&(!v.value||t.activationTrigger.value!==0&&z(()=>{var d,g;return(g=(d=_(r))==null?void 0:d.scrollIntoView)==null?void 0:g.call(d,{block:"nearest"})}))});function p(d){if(e.disabled)return d.preventDefault();t.closeMenu(),z(()=>{var g;return(g=_(t.buttonRef))==null?void 0:g.focus({preventScroll:!0})})}function b(){if(e.disabled)return t.goToItem(R.Nothing);t.goToItem(R.Specific,f)}function a(){e.disabled||v.value||t.goToItem(R.Specific,f,0)}function m(){e.disabled||!v.value||t.goToItem(R.Nothing)}return()=>{let{disabled:d}=e,g={active:v.value,disabled:d};return F({props:{...e,id:f,ref:r,role:"menuitem",tabIndex:d===!0?void 0:-1,"aria-disabled":d===!0?!0:void 0,onClick:p,onFocus:b,onPointermove:a,onMousemove:a,onPointerleave:m,onMouseleave:m},slot:g,attrs:n,slots:o,name:"MenuItem"})}}});const oo={class:"max-w-7xl mx-auto px-4 xl:px-0"},no={class:"relative flex justify-between h-16"},ao={class:"absolute inset-y-0 left-0 flex items-center md:hidden"},ro=h("span",{class:"sr-only"},"Open main menu",-1),lo={class:"flex-1 flex items-center justify-center md:items-stretch md:justify-start"},so={key:0,class:"zfile-admin-index-version-info text-center"},io=["innerHTML"],uo=["innerHTML"],co=["innerHTML"],po=h("br",null,null,-1),mo=x(" \u6587\u6863\u5730\u5740\uFF1A "),fo=x("\u70B9\u51FB\u8FDB\u5165 "),vo=h("br",null,null,-1),go=x(" \u540E\u7AEF\u6E90\u7801\u5730\u5740\uFF1A "),bo=x("\u70B9\u51FB\u8FDB\u5165 "),ho=h("br",null,null,-1),_o=x(" \u524D\u7AEF\u6E90\u7801\u5730\u5740\uFF1A "),xo=x("\u70B9\u51FB\u8FDB\u5165 "),wo=h("img",{class:"block lg:hidden h-8 w-auto",src:Ne,alt:"Workflow"},null,-1),yo=h("img",{class:"hidden lg:block h-8 w-auto",src:Ke,alt:"Workflow"},null,-1),ko={class:"hidden lg:ml-6 md:flex md:space-x-4 justify-center flex-1 lg:flex-none"},Io=x(" \u57FA\u672C\u8BBE\u7F6E "),Eo=x(" \u5B58\u50A8\u6E90\u8BBE\u7F6E "),So=x(" \u663E\u793A\u8BBE\u7F6E "),Do=x(" \u76F4\u94FE\u7BA1\u7406 "),Lo=x("\u76F4\u94FE\u5217\u8868"),Ro=x("\u76F4\u94FE\u65E5\u5FD7"),Co=x("\u76F4\u94FE\u8BBE\u7F6E"),Ao=x(" \u65E5\u5FD7\u4E0B\u8F7D "),To={class:"absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"},Mo=h("span",{class:"sr-only"},"Open user menu",-1),zo=["src"],Oo={key:1,class:"h-8 w-8 rounded-full",src:At,alt:""},Po={class:"cursor-pointer border-b"},Fo=x(" \u5B89\u5168\u8BBE\u7F6E "),jo=x(" \u4FEE\u6539\u5BC6\u7801 "),Uo={class:"pt-2 pb-4 space-y-1"},Ho=x("\u57FA\u672C\u8BBE\u7F6E"),Bo=x("\u5B58\u50A8\u6E90\u8BBE\u7F6E"),No=x("\u663E\u793A\u8BBE\u7F6E"),Ko=x("\u76F4\u94FE\u5217\u8868"),Yo=x("\u76F4\u94FE\u65E5\u5FD7"),Vo=x("\u76F4\u94FE\u8BBE\u7F6E"),Wo=x(" \u65E5\u5FD7\u4E0B\u8F7D "),Jo={class:"p-0 sm:p-10 pb-16 sm:pb-26 bg-gray-100 h-full overflow-y-auto border-t-2"},Go={class:"max-w-7xl mx-auto bg-white shadow overflow-hidden sm:rounded-lg"},xn={__name:"admin",setup(e){let o=Re(),n=Ce();const{siteSetting:s,githubLatestInfo:t,githubLatestLoading:f,logDownload:r,logout:v,rebuildTitle:i}=Tt(o,n);let p=C(()=>n.path);return Ae(()=>n.path,()=>{i()},{immediate:!0}),(b,a)=>{const m=Be,d=Qe,g=qe,k=Ct,E=Fe,I=oe("router-link"),be=Et,he=xt,_e=vt,xe=ut,G=je,we=Ue,ye=He,ke=rt,Ie=oe("router-view");return L(),A(le,null,[l(c(Gt),{as:"nav",class:"bg-white shadow"},{default:u(({open:Ee})=>[h("div",oo,[h("div",no,[h("div",ao,[l(c(T),{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:u(()=>[ro,Ee?(L(),Y(c(et),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(L(),Y(c(Xe),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),h("div",lo,[l(g,{placement:"bottom",width:"200",disabled:c(f),trigger:"hover"},{reference:u(()=>{var w,U,$,ee;return[h("div",{onClick:a[0]||(a[0]=Zo=>c(M).openPage("/")),class:"cursor-pointer flex-shrink-0 flex items-center"},[wo,yo,l(d,{"is-dot":((U=(w=c(t))==null?void 0:w.data)==null?void 0:U.tag_name)&&c(M).version!==((ee=($=c(t))==null?void 0:$.data)==null?void 0:ee.tag_name),class:"hidden lg:block text-sm font-bold word ml-1 tracking-wider"},{default:u(()=>[x(Te(c(M).version),1)]),_:1},8,["is-dot"])])]}),default:u(()=>{var w;return[(w=c(t))!=null&&w.data?(L(),A("div",so,[h("div",{innerHTML:`\u5F53\u524D\u7248\u672C\uFF1Av${c(M).version}`},null,8,io),h("div",{innerHTML:`\u6700\u65B0\u7248\uFF1Av${c(t).data.tag_name}`},null,8,uo),h("div",{innerHTML:`\u53D1\u5E03\u65F6\u95F4: ${c(M).dateFormat(c(t).data.published_at)}`},null,8,co),po,mo,l(m,{href:"http://docs.zhaojun.im/zfile",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[fo]),_:1}),vo,go,l(m,{href:"https://github.com/zhaojun1998/zfile",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[bo]),_:1}),ho,_o,l(m,{href:"https://github.com/zhaojun1998/zfile-vue",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[xo]),_:1})])):Me("",!0)]}),_:1},8,["disabled"]),h("div",ko,[l(I,{to:"/admin/site-setting",class:S([c(p)==="/admin/site-setting"?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(k,{class:"mr-1"})]),_:1}),Io]),_:1},8,["class"]),l(I,{to:"/admin/storage-list",class:S([c(p).startsWith("/admin/storage")?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(be,{class:"mr-1"})]),_:1}),Eo]),_:1},8,["class"]),l(I,{to:"/admin/view-setting",class:S([c(p)==="/admin/view-setting"?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(he,{class:"mr-1"})]),_:1}),So]),_:1},8,["class"]),l(ye,null,{dropdown:u(()=>[l(we,null,{default:u(()=>[l(G,{icon:c($e)},{default:u(()=>[l(I,{to:"/admin/download-link"},{default:u(()=>[Lo]),_:1})]),_:1},8,["icon"]),l(G,{icon:c(Oe)},{default:u(()=>[l(I,{to:"/admin/download-link/log"},{default:u(()=>[Ro]),_:1})]),_:1},8,["icon"]),l(G,{icon:c(Pe)},{default:u(()=>[l(I,{to:"/admin/download-link/setting"},{default:u(()=>[Co]),_:1})]),_:1},8,["icon"])]),_:1})]),default:u(()=>[l(I,{to:"/admin/download-link",class:S([c(p).includes("/admin/download-link")?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(_e,{class:"mr-1"})]),_:1}),Do,l(E,{class:"el-icon--right"},{default:u(()=>[l(xe)]),_:1})]),_:1},8,["class"])]),_:1}),h("div",{onClick:a[1]||(a[1]=(...w)=>c(r)&&c(r)(...w)),class:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"},[l(E,{size:"18px"},{default:u(()=>[l(ke,{class:"mr-1"})]),_:1}),Ao])])]),h("div",To,[l(c($t),{as:"div",class:"ml-3 relative"},{default:u(()=>[h("div",null,[l(c(eo),{class:"border-2 bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:u(()=>{var w,U;return[Mo,(U=(w=c(s))==null?void 0:w.data)!=null&&U.avatar?(L(),A("img",{key:0,class:"h-8 w-8 rounded-full",src:c(s).data.avatar,alt:""},null,8,zo)):(L(),A("img",Oo))]}),_:1})]),l(ze,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:u(()=>[l(c(to),{class:"z-10 origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:u(()=>[h("div",Po,[l(c(H),{onClick:a[2]||(a[2]=w=>c(M).openPage("https://docs.zfile.vip"))},{default:u(({active:w})=>[h("div",{class:S([w?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])}," ZFile Docs ",2)]),_:1}),l(c(H),{onClick:a[3]||(a[3]=w=>c(M).openPage("https://github.com/zhaojun1998/zfile"))},{default:u(({active:w})=>[h("div",{class:S([w?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])}," ZFile Github ",2)]),_:1})]),l(c(H),null,{default:u(({active:w})=>[l(I,{to:"/admin/security-setting",class:S([w?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},{default:u(()=>[Fo]),_:2},1032,["class"])]),_:1}),l(c(H),null,{default:u(({active:w})=>[l(I,{to:"/admin/update-password",class:S([w?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},{default:u(()=>[jo]),_:2},1032,["class"])]),_:1}),l(c(H),{onClick:c(v)},{default:u(({active:w})=>[h("a",{href:"#",class:S([w?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},"\u6CE8\u9500",2)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})])])]),l(c(Zt),{class:"md:hidden"},{default:u(()=>[h("div",Uo,[l(c(T),{class:S([c(p)==="/admin/site-setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/site-setting"},{default:u(()=>[Ho]),_:1})]),_:1},8,["class"]),l(c(T),{class:S([c(p).startsWith("/admin/storage")?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/storage-list"},{default:u(()=>[Bo]),_:1})]),_:1},8,["class"]),l(c(T),{class:S([c(p)==="/admin/view-setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/view-setting"},{default:u(()=>[No]),_:1})]),_:1},8,["class"]),l(c(T),{class:S([c(p)==="/admin/download-link"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link"},{default:u(()=>[Ko]),_:1})]),_:1},8,["class"]),l(c(T),{class:S([c(p)==="/admin/download-link/log"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link/log"},{default:u(()=>[Yo]),_:1})]),_:1},8,["class"]),l(c(T),{class:S([c(p)==="/admin/download-link/setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link/setting"},{default:u(()=>[Vo]),_:1})]),_:1},8,["class"]),l(c(T),{onClick:c(r),as:"span",class:"block pl-3 pr-4 py-2 border-l-4 text-base font-medium border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700"},{default:u(()=>[Wo]),_:1},8,["onClick"])])]),_:1})]),_:1}),h("div",Jo,[h("div",Go,[l(Ie,{class:"box animate__animated animate__fadeIn"})])])],64)}}};export{xn as default}; diff --git a/src/main/resources/static/assets/admin.c98855b1.js b/src/main/resources/static/assets/admin.c98855b1.js new file mode 100644 index 0000000..3a435e1 --- /dev/null +++ b/src/main/resources/static/assets/admin.c98855b1.js @@ -0,0 +1,4 @@ +import{a as D,b as Y,h as l,f as A,p as h,aA as te,F as le,ab as Se,al as Le,E as V,v as W,o as Q,am as K,r as L,c as C,d as z,a9 as De,Z as O,P as Re,L as Ce,w as Ae,ae as oe,e as u,u as d,J as x,t as Te,k as Me,n as S,T as Oe}from"./index.43b3cbf5.js";import{aO as Pe,b5 as ze,E as Fe}from"./base.4ef7f45b.js";import{E as je,a as Ue,b as He}from"./dropdown-item.dc1b3a74.js";/* empty css */import"./popper.718d36e0.js";/* empty css *//* empty css */import{r as Be}from"./badge.28b48511.js";import{E as Ne}from"./link.e398aca7.js";import{_ as Ke}from"./zfile-basic.e44d95f5.js";import{a as Ye}from"./zfile-horizontal.330e1cd8.js";import{e as Ve,f as We,l as Je}from"./admin-setting.28847312.js";import{d as Ge}from"./login.f53d8f04.js";import{d as Ze}from"./dayjs.min.78646b3b.js";import{E as Qe}from"./index.e7e80979.js";import{E as qe,k as Xe}from"./request.e2daed10.js";import{c as M}from"./common.72335e7c.js";import{E as $e}from"./index.a1ce1e68.js";import"./index.88f36c37.js";import"./dropdown.2ef7612f.js";import"./event.3ec63147.js";import"./index.566ad052.js";import"./refs.f6f7d296.js";import"./focus-trap.4cfde4b4.js";import"./directive.378eb0e0.js";function et(e,o){return D(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h8m-8 6h16"})])}function tt(e,o){return D(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const ot={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},nt=h("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),at=[nt];function rt(e,o){return D(),A("svg",ot,at)}var lt={name:"ep-download",render:rt};const st={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},it=h("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1),ut=[it];function dt(e,o){return D(),A("svg",st,ut)}var ct={name:"ep-arrow-down",render:dt};const pt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},mt=h("path",{fill:"currentColor",d:"M715.648 625.152L670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896c-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248l90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656c87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496l-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496l45.248 45.248l-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896c62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496l45.248 45.248zm0-362.048l45.248 45.248L398.848 670.4L353.6 625.152L625.152 353.6z"},null,-1),ft=[mt];function vt(e,o){return D(),A("svg",pt,ft)}var gt={name:"ep-link",render:vt};const bt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ht=h("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864S0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288c52.608 79.872 211.456 288 436.8 288c225.28 0 384.128-208.064 436.8-288c-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448a224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160s-71.744-160-160-160z"},null,-1),_t=[ht];function wt(e,o){return D(),A("svg",bt,_t)}var xt={name:"ep-view",render:wt};const yt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kt=h("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),It=[kt];function Et(e,o){return D(),A("svg",yt,It)}var St={name:"ep-folder",render:Et};const Lt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Dt=h("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256z"},null,-1),Rt=[Dt];function Ct(e,o){return D(),A("svg",Lt,Rt)}var At={name:"ep-setting",render:Ct},Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAJjElEQVR4Xu1dy27cNhR1gALtuuguyAd00WXRLLstss0i+y7zCf6E/ECaZYHukk1XCbwrGo9saWzX0ozjV523E8eJk9R2bE9slYczscdXGlkPkroc8QAHMEYSRZ5rieTl5dXExBhgY2Pjm+lg8QfPj663/HByut353Qui+zPt6KEXhIutINpoBeG2+O0QxN/4Dcf650T3cQ2uRRkoC2XS+zgYQqsdfu+1o5uCd/uGio6FcWKVlGWibHEP3Av3pPVwUIQgCL6bmev+2pqN/hDib1JjGOQm6oC6oE60ng4FsLq6+jVelzN+9Kd4lR6liF0rUSdZN1FH1JXW32EEHs5GP3p+eFsIt0NF5UrUFXVG3Wl7HAbw55d+FmJNUfEs5BTaQtvXWLTmOr9gJJsilNWUbRJto+1tDIKg89O0H/lUmHEj2oi20vaPLaano2/F9OOOmIacUDHGlbKtos1oO9VjbBDH8SU51YGTIUWERlC0HRpAC6qP1ZgN166I/+K/Eg1uKKEFNKE6WYmZILzW6Kd2FPE0C22oXtZAvIa+8oLOrSb1tUUJbaARtKL6scbCwvJlMfmfpg1yTCe0gmZUR5aQCwF++JQ2wjGbUjPuCxrtdveq628rUGgHDamuLACvjReEe4lKOxai1JCbB8zzuzdE5Xq0so6l2YOmVOdagP82VCilko7V2Kv9SUZ/4V7L+ghta+uTMeJzAyoDhMamR9f9ea6bCpkitDY2T5YeKufEME5obsTjBdcavbmjGUJ7ag+lgHPcNt9ytLQev9x8E3/4uBvvfzqIP3/+LIm/8RuO4Rx6HUdCe20LFFjesmVQJYSInzzbjI+OenFe4Fxcg2tpeawobKB8qVG0/5It67nLa0/ig8Mjar/cwLUog5bLibBFrDJoQEZipNyIG5+/3KL2Kg2URcvnRNiE2qkU+jFU/F/N22/fUxtVBsqk92FDYRMlMV4IFksUzowqn1wK1k+ysA21VyEg3JP7qBn9pW5w7ZNhm0ohudzjljHirTKgygvcg+voGjaidsuFwSpRokBOxLTGFHAven82LLPqZMN2kiLz3KrAvej9udDzw7+p/TIx2AiWKIgT4X0yDc4er0Ib3loW7PKDi9E0cE9aD0aconZMBfa4plzMjvAjmwbuSevBibn2J3t+9Bu9kCOxWGAauCetByfCdtSe5zBIm2DFznqsCJkG7knrwYmwXWY6iUEaosSFHFmPgY8T9eBG2JDa9RRIKkIv4Er3ik4nbEjtKoG0QByz2YyiG2SlEzZMTfFky5LgF9YzTWK88DDE1KXEQZKxxMlc6RwdGRS2pPaFc6PODHKl6FyVI7l53rgIYk+exJ5usSGDw8HyMtkmPcECuuXC0YRNzwzsR/foCbawyQv+WUSW3FMDy3zKKSfZwsaG7GRR2FQaF4mvPQ35lk2zcUF3FxA2lUnNkd2cHrSVKp9ka5/cIcK2Vvmf87AJge95Kf3S4o9JesB2jvXWlWKcnBh8jIIeGBuO0+azooRtJ7wgfEAPOI4HYVv0wW4z95gStsUTvEgPOI4HYVvrnRyOGYSzw4adg2mcaUfx+uPn8d7+ftxd3kgcV8WFaCWenesmfreCwrbiFR0dJg4wZrCwFL/Y3Ip7vbOYrKNeT/5Oz61KlImyEYsFx4c/30mcw5mwrTUGnml3pGFPTk6GZq9n0BFOQ8OCML1CHWwxtDSwDa9ovII/HRyeEzsNKt2LWW5POEWWVh4nrmFHvKI5D7L8+W78ZnuH6jsSeLpV9McoY9SbYhivt97KNwu9ng0xyOI6TZoPV3I9tRRV++Mv/W5eoI5hdy1RDgfKaRLHbaKdR+txr0Jge5X+mPa7eYC+ufPo30RZdRO2xSDrPj1QJ1fWn8bHx8dUw8Io0x9n9bsXAXVeXuW1CgXbslpswLw2T9+XB0X747z9bhZw/drG80TZdVEuNrSYLBfiFVdVYIq8/XHRfjcLaMMjPk/yJIsFfwyodG0my9Mfl+l3swDHyIJoE72PacoF/7pDdjAVKjNaLoKs/rhKv5sFrDfX7eKUITt1B93tvP9ItVGOUf2xin43C+92PibuaYqnQXd1hs1ixGwKtD9W2e9mYb2uQdeXsFkAQdKJEzRzdq4TH1YIjiuD4f5Ydb87CnBroq20/bp5LvC9jq0rL19tUy2MAH2urn53FOrIznNu64rpzWf/RKta+74s4L6m7318fCJnClQHraRfamkZ3D66VWABYVzw9t2HhA4aeX77qDSwoQ3gWEtV4Yq0DXiKg3lD06a0DeCmUjiY3NPLDU+evUrooYOpKRxMJWE50OzU4Aw4dKgeqjkyCQugO40SHAtNh+5lxZFplADdfmlkqWk6MD2kuqhkZiI03akM/9vdp+1tHHb3PiV0UcULUxkCSGhJL1RBxC6Znn9yBDTQFcfl+eFtas8EdKUTdv3vGZY09cO50gkDLQ0JwU27Bznj2YvXCX0UMF9CcEBHSv8meq9GAaHAVJ+qLJTSH1AdbYm1UYc+sAZO9alCGT1ZFKo/q+NG0GfY3dtP6FOJZT6rA6j8MJbusBybAG8e1acsS38YC1D5aTsEojn0oerTALBNpU/bAao+Tjm3uOw4RKpPKVb9OCVgy+dlG0dVn5cFTC0lOuZn6pJgWcQWfeK9CYQtYBNqp0qYDdeuuFc1AwobwBbUPkowE4TXVI2qHYsT2sMG1C5K4QWdW/TGjmYI7ak9lEO8+79y2fHME5pDe2oPLVhYWL7s+eFTWglHPYTW0JzaQStksLwbdOknNKZB7KbQbnevekG4l6iUoxJCW2hMdTeKwapTj1bOsTJ7pVeJVMPzuzdkhZKVdCzHHjSlOtcK/Le513V1Sg25PLkU6C/cwKsChXa197kXASM+N4UqTqlZXaPloujPk50zJC+hlfF5blVIj1fQueV816MJbaCRMQ+VDsA57vrlFApNtC8cmAKWt9x68hmhhbYlv7qABWoZGdLkpxlPrdBA+WI9J/RjvKI7TeqbZVtFm5XFUNkAhHuqjLvmSrSxcmirzYDXRvU2GQ6UbeLqkaoDgw1vync11sCpwhvBmgTsccUmdJ2ZBlQTdUWdc+/PdThNJ3EdSUVMZP8pStRJ1k3U8cK0CQ7ZQFogOcXqJ2szlpEvhZuoA+oyMlWRQ3XIBY12dFM8PfeQNldHvmtZJspuR3dlslZbFgLGEUh8jezmgzRQk/gYBT6ODCe+/C4U8mEH4bYw2iEonS3yHyNcHJzzYPBxkkmUgbJOk2lbjv8B5/TafUY44tIAAAAASUVORK5CYII=";function Mt(e,o){let{data:n}=te(Je),{data:s,loading:t}=te(We,{errorRetryCount:3});return{siteSetting:n,githubLatestInfo:s,githubLatestLoading:t,logDownload:()=>{const i=Qe.service({fullscreen:!0,lock:!0,text:"\u4E0B\u8F7D\u4E2D...",background:"rgba(0, 0, 0, 0.5)"});Ve().then(c=>{const{data:b,headers:a}=c,p=`ZFile \u8BCA\u65AD\u65E5\u5FD7 - ${Ze().format("YYYY-MM-DD HH:mm:ss")}.zip`,m=new Blob([b],{type:a["content-type"]});let g=document.createElement("a"),w=window.URL.createObjectURL(m);g.href=w,g.download=decodeURI(p),g.style.display="none",document.body.appendChild(g),g.click(),g.parentNode.removeChild(g),window.URL.revokeObjectURL(w)}).catch(c=>{qe.error("\u4E0B\u8F7D\u65E5\u5FD7\u5931\u8D25.")}).finally(()=>{i.close()})},logout:()=>{Ge().then(()=>{e.push("/login")})},rebuildTitle:()=>{o.path.indexOf("/admin")!==-1&&(document.title=(o.meta.name||"ZFile")+" | \u540E\u53F0\u7BA1\u7406")}}}function j(e,o,...n){if(e in o){let t=o[e];return typeof t=="function"?t(...n):t}let s=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(t=>`"${t}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,j),s}var B=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(B||{}),Ot=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ot||{});function F({visible:e=!0,features:o=0,...n}){var s;if(e||o&2&&n.props.static)return Z(n);if(o&1){let t=(s=n.props.unmount)==null||s?0:1;return j(t,{[0](){return null},[1](){return Z({...n,props:{...n.props,hidden:!0,style:{display:"none"}}})}})}return Z(n)}function Z({props:e,attrs:o,slots:n,slot:s,name:t}){var f;let{as:r,...v}=Pt(e,["unmount","static"]),i=(f=n.default)==null?void 0:f.call(n,s),c={};if(r==="template"){if(i=se(i),Object.keys(v).length>0||Object.keys(o).length>0){let[b,...a]=i!=null?i:[];if(!zt(b)||a.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${t} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(v).concat(Object.keys(o)).map(p=>` - ${p}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(` +`)].join(` +`));return Se(b,Object.assign({},v,c))}return Array.isArray(i)&&i.length===1?i[0]:i}return Le(r,Object.assign({},v,c),i)}function se(e){return e.flatMap(o=>o.type===le?se(o.children):[o])}function Pt(e,o=[]){let n=Object.assign({},e);for(let s of o)s in n&&delete n[s];return n}function zt(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let Ft=0;function jt(){return++Ft}function N(){return jt()}var k=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(k||{});function Ut(e){throw new Error("Unexpected object: "+e)}var R=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(R||{});function Ht(e,o){let n=o.resolveItems();if(n.length<=0)return null;let s=o.resolveActiveIndex(),t=s!=null?s:-1,f=(()=>{switch(e.focus){case 0:return n.findIndex(r=>!o.resolveDisabled(r));case 1:{let r=n.slice().reverse().findIndex((v,i,c)=>t!==-1&&c.length-i-1>=t?!1:!o.resolveDisabled(v));return r===-1?r:n.length-1-r}case 2:return n.findIndex((r,v)=>v<=t?!1:!o.resolveDisabled(r));case 3:{let r=n.slice().reverse().findIndex(v=>!o.resolveDisabled(v));return r===-1?r:n.length-1-r}case 4:return n.findIndex(r=>o.resolveId(r)===e.id);case 5:return null;default:Ut(e)}})();return f===-1?s:f}function _(e){return e==null||e.value==null?null:"$el"in e.value?e.value.$el:e.value}let ie=Symbol("Context");var P=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(P||{});function ue(){return V(ie,null)}function de(e){W(ie,e)}function ne(e,o){if(e)return e;let n=o!=null?o:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function ce(e,o){let n=L(ne(e.value.type,e.value.as));return Q(()=>{n.value=ne(e.value.type,e.value.as)}),K(()=>{var s;n.value||!_(o)||_(o)instanceof HTMLButtonElement&&!((s=_(o))!=null&&s.hasAttribute("type"))&&(n.value="button")}),n}function pe(e){if(typeof window=="undefined")return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let o=_(e);if(o)return o.ownerDocument}return document}function Bt({container:e,accept:o,walk:n,enabled:s}){K(()=>{let t=e.value;if(!t||s!==void 0&&!s.value)return;let f=pe(e);if(!f)return;let r=Object.assign(i=>o(i),{acceptNode:o}),v=f.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,r,!1);for(;v.nextNode();)n(v.currentNode)})}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Nt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Nt||{}),Kt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Kt||{}),Yt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Yt||{}),q=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(q||{});function me(e,o=0){var n;return e===((n=pe(e))==null?void 0:n.body)?!1:j(o,{[0](){return e.matches(ae)},[1](){let s=e;for(;s!==null;){if(s.matches(ae))return!0;s=s.parentElement}return!1}})}function Vt(e,o=n=>n){return e.slice().sort((n,s)=>{let t=o(n),f=o(s);if(t===null||f===null)return 0;let r=t.compareDocumentPosition(f);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function re(e,o,n){typeof window!="undefined"&&K(s=>{window.addEventListener(e,o,n),s(()=>window.removeEventListener(e,o,n))})}function Wt(e,o,n=C(()=>!0)){function s(t,f){if(!n.value||t.defaultPrevented)return;let r=f(t);if(r===null||!r.ownerDocument.documentElement.contains(r))return;let v=function i(c){return typeof c=="function"?i(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let i of v){if(i===null)continue;let c=i instanceof HTMLElement?i:_(i);if(c!=null&&c.contains(r))return}return!me(r,q.Loose)&&r.tabIndex!==-1&&t.preventDefault(),o(t,r)}re("click",t=>s(t,f=>f.target),!0),re("blur",t=>s(t,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Jt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Jt||{});let fe=Symbol("DisclosureContext");function X(e){let o=V(fe,null);if(o===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,X),n}return o}let ve=Symbol("DisclosurePanelContext");function Gt(){return V(ve,null)}let Zt=z({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:o,attrs:n}){let s=`headlessui-disclosure-button-${N()}`,t=`headlessui-disclosure-panel-${N()}`,f=L(e.defaultOpen?0:1),r=L(null),v=L(null),i={buttonId:s,panelId:t,disclosureState:f,panel:r,button:v,toggleDisclosure(){f.value=j(f.value,{[0]:1,[1]:0})},closeDisclosure(){f.value!==1&&(f.value=1)},close(c){i.closeDisclosure();let b=(()=>c?c instanceof HTMLElement?c:c.value instanceof HTMLElement?_(c):_(i.button):_(i.button))();b==null||b.focus()}};return W(fe,i),de(C(()=>j(f.value,{[0]:P.Open,[1]:P.Closed}))),()=>{let{defaultOpen:c,...b}=e,a={open:f.value===0,close:i.close};return F({props:b,slot:a,slots:o,attrs:n,name:"Disclosure"})}}}),T=z({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},setup(e,{attrs:o,slots:n,expose:s}){let t=X("DisclosureButton"),f=Gt(),r=f===null?!1:f===t.panelId,v=L(null);s({el:v,$el:v}),r||K(()=>{t.button.value=v.value});let i=ce(C(()=>({as:e.as,type:o.type})),v);function c(){var p;e.disabled||(r?(t.toggleDisclosure(),(p=_(t.button))==null||p.focus()):t.toggleDisclosure())}function b(p){var m;if(!e.disabled)if(r)switch(p.key){case k.Space:case k.Enter:p.preventDefault(),p.stopPropagation(),t.toggleDisclosure(),(m=_(t.button))==null||m.focus();break}else switch(p.key){case k.Space:case k.Enter:p.preventDefault(),p.stopPropagation(),t.toggleDisclosure();break}}function a(p){switch(p.key){case k.Space:p.preventDefault();break}}return()=>{let p={open:t.disclosureState.value===0},m=r?{ref:v,type:i.value,onClick:c,onKeydown:b}:{id:t.buttonId,ref:v,type:i.value,"aria-expanded":e.disabled?void 0:t.disclosureState.value===0,"aria-controls":_(t.panel)?t.panelId:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:b,onKeyup:a};return F({props:{...e,...m},slot:p,attrs:o,slots:n,name:"DisclosureButton"})}}}),Qt=z({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:o,slots:n,expose:s}){let t=X("DisclosurePanel");s({el:t.panel,$el:t.panel}),W(ve,t.panelId);let f=ue(),r=C(()=>f!==null?f.value===P.Open:t.disclosureState.value===0);return()=>{let v={open:t.disclosureState.value===0,close:t.close},i={id:t.panelId,ref:t.panel};return F({props:{...e,...i},slot:v,attrs:o,slots:n,features:B.RenderStrategy|B.Static,visible:r.value,name:"DisclosurePanel"})}}});var qt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(qt||{}),Xt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Xt||{});function $t(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ge=Symbol("MenuContext");function J(e){let o=V(ge,null);if(o===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,J),n}return o}let eo=z({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:o,attrs:n}){let s=L(1),t=L(null),f=L(null),r=L([]),v=L(""),i=L(null),c=L(1);function b(p=m=>m){let m=i.value!==null?r.value[i.value]:null,g=Vt(p(r.value.slice()),E=>_(E.dataRef.domRef)),w=m?g.indexOf(m):null;return w===-1&&(w=null),{items:g,activeItemIndex:w}}let a={menuState:s,buttonRef:t,itemsRef:f,items:r,searchQuery:v,activeItemIndex:i,activationTrigger:c,closeMenu:()=>{s.value=1,i.value=null},openMenu:()=>s.value=0,goToItem(p,m,g){let w=b(),E=Ht(p===R.Specific?{focus:R.Specific,id:m}:{focus:p},{resolveItems:()=>w.items,resolveActiveIndex:()=>w.activeItemIndex,resolveId:I=>I.id,resolveDisabled:I=>I.dataRef.disabled});v.value="",i.value=E,c.value=g!=null?g:1,r.value=w.items},search(p){let m=v.value!==""?0:1;v.value+=p.toLowerCase();let g=(i.value!==null?r.value.slice(i.value+m).concat(r.value.slice(0,i.value+m)):r.value).find(E=>E.dataRef.textValue.startsWith(v.value)&&!E.dataRef.disabled),w=g?r.value.indexOf(g):-1;w===-1||w===i.value||(i.value=w,c.value=1)},clearSearch(){v.value=""},registerItem(p,m){let g=b(w=>[...w,{id:p,dataRef:m}]);r.value=g.items,i.value=g.activeItemIndex,c.value=1},unregisterItem(p){let m=b(g=>{let w=g.findIndex(E=>E.id===p);return w!==-1&&g.splice(w,1),g});r.value=m.items,i.value=m.activeItemIndex,c.value=1}};return Wt([t,f],(p,m)=>{var g;a.closeMenu(),me(m,q.Loose)||(p.preventDefault(),(g=_(t))==null||g.focus())},C(()=>s.value===0)),W(ge,a),de(C(()=>j(s.value,{[0]:P.Open,[1]:P.Closed}))),()=>{let p={open:s.value===0};return F({props:e,slot:p,slots:o,attrs:n,name:"Menu"})}}}),to=z({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},setup(e,{attrs:o,slots:n,expose:s}){let t=J("MenuButton"),f=`headlessui-menu-button-${N()}`;s({el:t.buttonRef,$el:t.buttonRef});function r(b){switch(b.key){case k.Space:case k.Enter:case k.ArrowDown:b.preventDefault(),b.stopPropagation(),t.openMenu(),O(()=>{var a;(a=_(t.itemsRef))==null||a.focus({preventScroll:!0}),t.goToItem(R.First)});break;case k.ArrowUp:b.preventDefault(),b.stopPropagation(),t.openMenu(),O(()=>{var a;(a=_(t.itemsRef))==null||a.focus({preventScroll:!0}),t.goToItem(R.Last)});break}}function v(b){switch(b.key){case k.Space:b.preventDefault();break}}function i(b){e.disabled||(t.menuState.value===0?(t.closeMenu(),O(()=>{var a;return(a=_(t.buttonRef))==null?void 0:a.focus({preventScroll:!0})})):(b.preventDefault(),t.openMenu(),$t(()=>{var a;return(a=_(t.itemsRef))==null?void 0:a.focus({preventScroll:!0})})))}let c=ce(C(()=>({as:e.as,type:o.type})),t.buttonRef);return()=>{var b;let a={open:t.menuState.value===0},p={ref:t.buttonRef,id:f,type:c.value,"aria-haspopup":!0,"aria-controls":(b=_(t.itemsRef))==null?void 0:b.id,"aria-expanded":e.disabled?void 0:t.menuState.value===0,onKeydown:r,onKeyup:v,onClick:i};return F({props:{...e,...p},slot:a,attrs:o,slots:n,name:"MenuButton"})}}}),oo=z({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:o,slots:n,expose:s}){let t=J("MenuItems"),f=`headlessui-menu-items-${N()}`,r=L(null);s({el:t.itemsRef,$el:t.itemsRef}),Bt({container:C(()=>_(t.itemsRef)),enabled:C(()=>t.menuState.value===0),accept(a){return a.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:a.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(a){a.setAttribute("role","none")}});function v(a){var p;switch(r.value&&clearTimeout(r.value),a.key){case k.Space:if(t.searchQuery.value!=="")return a.preventDefault(),a.stopPropagation(),t.search(a.key);case k.Enter:if(a.preventDefault(),a.stopPropagation(),t.activeItemIndex.value!==null){let m=t.items.value[t.activeItemIndex.value];(p=_(m.dataRef.domRef))==null||p.click()}t.closeMenu(),O(()=>{var m;return(m=_(t.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case k.ArrowDown:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Next);case k.ArrowUp:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Previous);case k.Home:case k.PageUp:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.First);case k.End:case k.PageDown:return a.preventDefault(),a.stopPropagation(),t.goToItem(R.Last);case k.Escape:a.preventDefault(),a.stopPropagation(),t.closeMenu(),O(()=>{var m;return(m=_(t.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case k.Tab:a.preventDefault(),a.stopPropagation();break;default:a.key.length===1&&(t.search(a.key),r.value=setTimeout(()=>t.clearSearch(),350));break}}function i(a){switch(a.key){case k.Space:a.preventDefault();break}}let c=ue(),b=C(()=>c!==null?c.value===P.Open:t.menuState.value===0);return()=>{var a,p;let m={open:t.menuState.value===0},g={"aria-activedescendant":t.activeItemIndex.value===null||(a=t.items.value[t.activeItemIndex.value])==null?void 0:a.id,"aria-labelledby":(p=_(t.buttonRef))==null?void 0:p.id,id:f,onKeydown:v,onKeyup:i,role:"menu",tabIndex:0,ref:t.itemsRef};return F({props:{...e,...g},slot:m,attrs:o,slots:n,features:B.RenderStrategy|B.Static,visible:b.value,name:"MenuItems"})}}}),H=z({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup(e,{slots:o,attrs:n,expose:s}){let t=J("MenuItem"),f=`headlessui-menu-item-${N()}`,r=L(null);s({el:r,$el:r});let v=C(()=>t.activeItemIndex.value!==null?t.items.value[t.activeItemIndex.value].id===f:!1),i=C(()=>({disabled:e.disabled,textValue:"",domRef:r}));Q(()=>{var m,g;let w=(g=(m=_(r))==null?void 0:m.textContent)==null?void 0:g.toLowerCase().trim();w!==void 0&&(i.value.textValue=w)}),Q(()=>t.registerItem(f,i)),De(()=>t.unregisterItem(f)),K(()=>{t.menuState.value===0&&(!v.value||t.activationTrigger.value!==0&&O(()=>{var m,g;return(g=(m=_(r))==null?void 0:m.scrollIntoView)==null?void 0:g.call(m,{block:"nearest"})}))});function c(m){if(e.disabled)return m.preventDefault();t.closeMenu(),O(()=>{var g;return(g=_(t.buttonRef))==null?void 0:g.focus({preventScroll:!0})})}function b(){if(e.disabled)return t.goToItem(R.Nothing);t.goToItem(R.Specific,f)}function a(){e.disabled||v.value||t.goToItem(R.Specific,f,0)}function p(){e.disabled||!v.value||t.goToItem(R.Nothing)}return()=>{let{disabled:m}=e,g={active:v.value,disabled:m};return F({props:{...e,id:f,ref:r,role:"menuitem",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,onClick:c,onFocus:b,onPointermove:a,onMousemove:a,onPointerleave:p,onMouseleave:p},slot:g,attrs:n,slots:o,name:"MenuItem"})}}});const no={class:"max-w-7xl mx-auto px-4 xl:px-0"},ao={class:"relative flex justify-between h-16"},ro={class:"absolute inset-y-0 left-0 flex items-center md:hidden"},lo=h("span",{class:"sr-only"},"Open main menu",-1),so={class:"flex-1 flex items-center justify-center md:items-stretch md:justify-start"},io={key:0,class:"zfile-admin-index-version-info text-center"},uo=["innerHTML"],co=["innerHTML"],po=["innerHTML"],mo=h("br",null,null,-1),fo=x(" \u6587\u6863\u5730\u5740\uFF1A "),vo=x("\u70B9\u51FB\u8FDB\u5165 "),go=h("br",null,null,-1),bo=x(" \u540E\u7AEF\u6E90\u7801\u5730\u5740\uFF1A "),ho=x("\u70B9\u51FB\u8FDB\u5165 "),_o=h("br",null,null,-1),wo=x(" \u524D\u7AEF\u6E90\u7801\u5730\u5740\uFF1A "),xo=x("\u70B9\u51FB\u8FDB\u5165 "),yo=h("img",{class:"block lg:hidden h-8 w-auto",src:Ke,alt:"Workflow"},null,-1),ko=h("img",{class:"hidden lg:block h-8 w-auto",src:Ye,alt:"Workflow"},null,-1),Io={class:"hidden lg:ml-6 md:flex md:space-x-4 justify-center flex-1 lg:flex-none"},Eo=x(" \u57FA\u672C\u8BBE\u7F6E "),So=x(" \u5B58\u50A8\u6E90\u8BBE\u7F6E "),Lo=x(" \u663E\u793A\u8BBE\u7F6E "),Do=x(" \u76F4\u94FE\u7BA1\u7406 "),Ro=x("\u76F4\u94FE\u5217\u8868"),Co=x("\u76F4\u94FE\u65E5\u5FD7"),Ao=x("\u76F4\u94FE\u8BBE\u7F6E"),To=x(" \u65E5\u5FD7\u4E0B\u8F7D "),Mo={class:"absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"},Oo=h("span",{class:"sr-only"},"Open user menu",-1),Po=["src"],zo={key:1,class:"h-8 w-8 rounded-full",src:Tt,alt:""},Fo={class:"cursor-pointer border-b"},jo=x(" \u5B89\u5168\u8BBE\u7F6E "),Uo=x(" \u4FEE\u6539\u5BC6\u7801 "),Ho={class:"pt-2 pb-4 space-y-1"},Bo=x("\u57FA\u672C\u8BBE\u7F6E"),No=x("\u5B58\u50A8\u6E90\u8BBE\u7F6E"),Ko=x("\u663E\u793A\u8BBE\u7F6E"),Yo=x("\u76F4\u94FE\u5217\u8868"),Vo=x("\u76F4\u94FE\u65E5\u5FD7"),Wo=x("\u76F4\u94FE\u8BBE\u7F6E"),Jo=x(" \u65E5\u5FD7\u4E0B\u8F7D "),Go={class:"p-0 sm:p-10 pb-16 sm:pb-26 bg-gray-100 h-full overflow-y-auto border-t-2"},Zo={class:"max-w-7xl mx-auto bg-white shadow overflow-hidden sm:rounded-lg"},kn={__name:"admin",setup(e){let o=Re(),n=Ce();const{siteSetting:s,githubLatestInfo:t,githubLatestLoading:f,logDownload:r,logout:v,rebuildTitle:i}=Mt(o,n);let c=C(()=>n.path);return Ae(()=>n.path,()=>{i()},{immediate:!0}),(b,a)=>{const p=Ne,m=Xe,g=$e,w=At,E=Fe,I=oe("router-link"),be=St,he=xt,_e=gt,we=ct,G=je,xe=Ue,ye=He,ke=lt,Ie=oe("router-view");return D(),A(le,null,[l(d(Zt),{as:"nav",class:"bg-white shadow"},{default:u(({open:Ee})=>[h("div",no,[h("div",ao,[h("div",ro,[l(d(T),{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:u(()=>[lo,Ee?(D(),Y(d(tt),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(D(),Y(d(Be),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),h("div",so,[l(g,{placement:"bottom",width:"200",disabled:d(f),trigger:"hover"},{reference:u(()=>{var y,U,$,ee;return[h("div",{onClick:a[0]||(a[0]=Qo=>d(M).openPage("/")),class:"cursor-pointer flex-shrink-0 flex items-center"},[yo,ko,l(m,{"is-dot":((U=(y=d(t))==null?void 0:y.data)==null?void 0:U.tag_name)&&d(M).version!==((ee=($=d(t))==null?void 0:$.data)==null?void 0:ee.tag_name),class:"hidden lg:block text-sm font-bold word ml-1 tracking-wider"},{default:u(()=>[x(Te(d(M).version),1)]),_:1},8,["is-dot"])])]}),default:u(()=>{var y;return[(y=d(t))!=null&&y.data?(D(),A("div",io,[h("div",{innerHTML:`\u5F53\u524D\u7248\u672C\uFF1Av${d(M).version}`},null,8,uo),h("div",{innerHTML:`\u6700\u65B0\u7248\uFF1Av${d(t).data.tag_name}`},null,8,co),h("div",{innerHTML:`\u53D1\u5E03\u65F6\u95F4: ${d(M).dateFormat(d(t).data.published_at)}`},null,8,po),mo,fo,l(p,{href:"http://docs.zhaojun.im/zfile",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[vo]),_:1}),go,bo,l(p,{href:"https://github.com/zhaojun1998/zfile",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[ho]),_:1}),_o,wo,l(p,{href:"https://github.com/zhaojun1998/zfile-vue",target:"_blank",class:"zfile-word-aux zfile-margin-left-unset"},{default:u(()=>[xo]),_:1})])):Me("",!0)]}),_:1},8,["disabled"]),h("div",Io,[l(I,{to:"/admin/site-setting",class:S([d(c)==="/admin/site-setting"?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(w,{class:"mr-1"})]),_:1}),Eo]),_:1},8,["class"]),l(I,{to:"/admin/storage-list",class:S([d(c).startsWith("/admin/storage")?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(be,{class:"mr-1"})]),_:1}),So]),_:1},8,["class"]),l(I,{to:"/admin/view-setting",class:S([d(c)==="/admin/view-setting"?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(he,{class:"mr-1"})]),_:1}),Lo]),_:1},8,["class"]),l(ye,null,{dropdown:u(()=>[l(xe,null,{default:u(()=>[l(G,{icon:d(et)},{default:u(()=>[l(I,{to:"/admin/download-link"},{default:u(()=>[Ro]),_:1})]),_:1},8,["icon"]),l(G,{icon:d(Pe)},{default:u(()=>[l(I,{to:"/admin/download-link/log"},{default:u(()=>[Co]),_:1})]),_:1},8,["icon"]),l(G,{icon:d(ze)},{default:u(()=>[l(I,{to:"/admin/download-link/setting"},{default:u(()=>[Ao]),_:1})]),_:1},8,["icon"])]),_:1})]),default:u(()=>[l(I,{to:"/admin/download-link",class:S([d(c).includes("/admin/download-link")?"border-indigo-500 text-gray-900":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:u(()=>[l(E,{size:"18px"},{default:u(()=>[l(_e,{class:"mr-1"})]),_:1}),Do,l(E,{class:"el-icon--right"},{default:u(()=>[l(we)]),_:1})]),_:1},8,["class"])]),_:1}),h("div",{onClick:a[1]||(a[1]=(...y)=>d(r)&&d(r)(...y)),class:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"},[l(E,{size:"18px"},{default:u(()=>[l(ke,{class:"mr-1"})]),_:1}),To])])]),h("div",Mo,[l(d(eo),{as:"div",class:"ml-3 relative"},{default:u(()=>[h("div",null,[l(d(to),{class:"border-2 bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:u(()=>{var y,U;return[Oo,(U=(y=d(s))==null?void 0:y.data)!=null&&U.avatar?(D(),A("img",{key:0,class:"h-8 w-8 rounded-full",src:d(s).data.avatar,alt:""},null,8,Po)):(D(),A("img",zo))]}),_:1})]),l(Oe,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:u(()=>[l(d(oo),{class:"z-10 origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:u(()=>[h("div",Fo,[l(d(H),{onClick:a[2]||(a[2]=y=>d(M).openPage("https://docs.zfile.vip"))},{default:u(({active:y})=>[h("div",{class:S([y?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])}," ZFile Docs ",2)]),_:1}),l(d(H),{onClick:a[3]||(a[3]=y=>d(M).openPage("https://github.com/zhaojun1998/zfile"))},{default:u(({active:y})=>[h("div",{class:S([y?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])}," ZFile Github ",2)]),_:1})]),l(d(H),null,{default:u(({active:y})=>[l(I,{to:"/admin/security-setting",class:S([y?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},{default:u(()=>[jo]),_:2},1032,["class"])]),_:1}),l(d(H),null,{default:u(({active:y})=>[l(I,{to:"/admin/update-password",class:S([y?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},{default:u(()=>[Uo]),_:2},1032,["class"])]),_:1}),l(d(H),{onClick:d(v)},{default:u(({active:y})=>[h("a",{href:"#",class:S([y?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"])},"\u6CE8\u9500",2)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})])])]),l(d(Qt),{class:"md:hidden"},{default:u(()=>[h("div",Ho,[l(d(T),{class:S([d(c)==="/admin/site-setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/site-setting"},{default:u(()=>[Bo]),_:1})]),_:1},8,["class"]),l(d(T),{class:S([d(c).startsWith("/admin/storage")?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/storage-list"},{default:u(()=>[No]),_:1})]),_:1},8,["class"]),l(d(T),{class:S([d(c)==="/admin/view-setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/view-setting"},{default:u(()=>[Ko]),_:1})]),_:1},8,["class"]),l(d(T),{class:S([d(c)==="/admin/download-link"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link"},{default:u(()=>[Yo]),_:1})]),_:1},8,["class"]),l(d(T),{class:S([d(c)==="/admin/download-link/log"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link/log"},{default:u(()=>[Vo]),_:1})]),_:1},8,["class"]),l(d(T),{class:S([d(c)==="/admin/download-link/setting"?"bg-indigo-50 border-indigo-500 text-indigo-700":"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),as:"a"},{default:u(()=>[l(I,{to:"/admin/download-link/setting"},{default:u(()=>[Wo]),_:1})]),_:1},8,["class"]),l(d(T),{onClick:d(r),as:"span",class:"block pl-3 pr-4 py-2 border-l-4 text-base font-medium border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700"},{default:u(()=>[Jo]),_:1},8,["onClick"])])]),_:1})]),_:1}),h("div",Go,[h("div",Zo,[l(Ie,{class:"box animate__animated animate__fadeIn"})])])],64)}}};export{kn as default}; diff --git a/src/main/resources/static/assets/alert.36ada7cc.js b/src/main/resources/static/assets/alert.b0fac511.js similarity index 93% rename from src/main/resources/static/assets/alert.36ada7cc.js rename to src/main/resources/static/assets/alert.b0fac511.js index 8804b60..342b8d6 100644 --- a/src/main/resources/static/assets/alert.36ada7cc.js +++ b/src/main/resources/static/assets/alert.b0fac511.js @@ -1 +1 @@ -import{d as E,G as S,r as T,c as d,a as o,b as a,e as p,Q as B,R as N,p as h,u as e,n as t,q as I,k as s,f as i,g as m,t as f,h as V,F as $,T as A,J as k}from"./index.552205f5.js";import{b as D,a6 as F,a7 as y,a8 as M,u as P,E as _,_ as j,w as q}from"./base.d698891e.js";const G=["light","dark"],J=D({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:F(y),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:G,default:"light"}}),O={close:c=>c instanceof MouseEvent},Q={name:"ElAlert"},R=E({...Q,props:J,emits:O,setup(c,{emit:w}){const n=c,{Close:z}=M,u=S(),r=P("alert"),g=T(!0),v=d(()=>y[n.type]),x=d(()=>[r.e("icon"),{[r.is("big")]:!!n.description||!!u.default}]),C=d(()=>n.description||{[r.is("bold")]:u.default}),b=l=>{g.value=!1,w("close",l)};return(l,K)=>(o(),a(A,{name:e(r).b("fade"),persisted:""},{default:p(()=>[B(h("div",{class:t([e(r).b(),e(r).m(l.type),e(r).is("center",l.center),e(r).is(l.effect)]),role:"alert"},[l.showIcon&&e(v)?(o(),a(e(_),{key:0,class:t(e(x))},{default:p(()=>[(o(),a(I(e(v))))]),_:1},8,["class"])):s("v-if",!0),h("div",{class:t(e(r).e("content"))},[l.title||l.$slots.title?(o(),i("span",{key:0,class:t([e(r).e("title"),e(C)])},[m(l.$slots,"title",{},()=>[k(f(l.title),1)])],2)):s("v-if",!0),l.$slots.default||l.description?(o(),i("p",{key:1,class:t(e(r).e("description"))},[m(l.$slots,"default",{},()=>[k(f(l.description),1)])],2)):s("v-if",!0),l.closable?(o(),i($,{key:2},[l.closeText?(o(),i("div",{key:0,class:t([e(r).e("close-btn"),e(r).is("customed")]),onClick:b},f(l.closeText),3)):(o(),a(e(_),{key:1,class:t(e(r).e("close-btn")),onClick:b},{default:p(()=>[V(e(z))]),_:1},8,["class"]))],64)):s("v-if",!0)],2)],2),[[N,g.value]])]),_:3},8,["name"]))}});var H=j(R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const W=q(H);export{W as E}; +import{d as E,G as S,r as T,c as d,a as o,b as a,e as p,Q as B,R as N,p as h,u as e,n as t,q as I,k as s,f as i,g as m,t as f,h as V,F as $,T as A,J as k}from"./index.43b3cbf5.js";import{b as D,a6 as F,a7 as y,a8 as M,u as P,E as _,_ as j,w as q}from"./base.4ef7f45b.js";const G=["light","dark"],J=D({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:F(y),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:G,default:"light"}}),O={close:c=>c instanceof MouseEvent},Q={name:"ElAlert"},R=E({...Q,props:J,emits:O,setup(c,{emit:w}){const n=c,{Close:z}=M,u=S(),r=P("alert"),g=T(!0),v=d(()=>y[n.type]),x=d(()=>[r.e("icon"),{[r.is("big")]:!!n.description||!!u.default}]),C=d(()=>n.description||{[r.is("bold")]:u.default}),b=l=>{g.value=!1,w("close",l)};return(l,K)=>(o(),a(A,{name:e(r).b("fade"),persisted:""},{default:p(()=>[B(h("div",{class:t([e(r).b(),e(r).m(l.type),e(r).is("center",l.center),e(r).is(l.effect)]),role:"alert"},[l.showIcon&&e(v)?(o(),a(e(_),{key:0,class:t(e(x))},{default:p(()=>[(o(),a(I(e(v))))]),_:1},8,["class"])):s("v-if",!0),h("div",{class:t(e(r).e("content"))},[l.title||l.$slots.title?(o(),i("span",{key:0,class:t([e(r).e("title"),e(C)])},[m(l.$slots,"title",{},()=>[k(f(l.title),1)])],2)):s("v-if",!0),l.$slots.default||l.description?(o(),i("p",{key:1,class:t(e(r).e("description"))},[m(l.$slots,"default",{},()=>[k(f(l.description),1)])],2)):s("v-if",!0),l.closable?(o(),i($,{key:2},[l.closeText?(o(),i("div",{key:0,class:t([e(r).e("close-btn"),e(r).is("customed")]),onClick:b},f(l.closeText),3)):(o(),a(e(_),{key:1,class:t(e(r).e("close-btn")),onClick:b},{default:p(()=>[V(e(z))]),_:1},8,["class"]))],64)):s("v-if",!0)],2)],2),[[N,g.value]])]),_:3},8,["name"]))}});var H=j(R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const W=q(H);export{W as E}; diff --git a/src/main/resources/static/assets/MenuIcon.aa2f9509.js b/src/main/resources/static/assets/badge.28b48511.js similarity index 58% rename from src/main/resources/static/assets/MenuIcon.aa2f9509.js rename to src/main/resources/static/assets/badge.28b48511.js index 0281532..2a4f8d3 100644 --- a/src/main/resources/static/assets/MenuIcon.aa2f9509.js +++ b/src/main/resources/static/assets/badge.28b48511.js @@ -1 +1 @@ -import{a as e,b as r,h as o}from"./index.552205f5.js";function s(t,n){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})])}export{s as r}; +import{a as e,b as r,h as o}from"./index.43b3cbf5.js";function t(a,n){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})])}export{t as r}; diff --git a/src/main/resources/static/assets/admin.9c417d7f.css b/src/main/resources/static/assets/badge.8cd3c6ed.css similarity index 100% rename from src/main/resources/static/assets/admin.9c417d7f.css rename to src/main/resources/static/assets/badge.8cd3c6ed.css diff --git a/src/main/resources/static/assets/base-editor.6f9b1ad4.js b/src/main/resources/static/assets/base-editor.1e65d904.js similarity index 99% rename from src/main/resources/static/assets/base-editor.6f9b1ad4.js rename to src/main/resources/static/assets/base-editor.1e65d904.js index 8accee2..9cbded8 100644 --- a/src/main/resources/static/assets/base-editor.6f9b1ad4.js +++ b/src/main/resources/static/assets/base-editor.1e65d904.js @@ -1,4 +1,4 @@ -import{K as Ot,O as Tt}from"./index.552205f5.js";import{r as St}from"./vue.runtime.esm-bundler.39244c60.js";function jt(de,we){return we.forEach(function(ae){ae&&typeof ae!="string"&&!Array.isArray(ae)&&Object.keys(ae).forEach(function(y){if(y!=="default"&&!(y in de)){var r=Object.getOwnPropertyDescriptor(ae,y);Object.defineProperty(de,y,r.get?r:{enumerable:!0,get:function(){return ae[y]}})}})}),Object.freeze(Object.defineProperty(de,Symbol.toStringTag,{value:"Module"}))}var Me={exports:{}};(function(de,we){(function(y,r){de.exports=r(St)})(typeof self!="undefined"?self:Tt,function(ae){return function(y){var r={};function n(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return y[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=y,n.c=r,n.d=function(i,a,t){n.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:t})},n.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n.t=function(i,a){if(a&1&&(i=n(i)),a&8||a&4&&typeof i=="object"&&i&&i.__esModule)return i;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:i}),a&2&&typeof i!="string")for(var h in i)n.d(t,h,function(e){return i[e]}.bind(null,h));return t},n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="",n(n.s=108)}([function(y,r){y.exports=ae},function(y,r,n){n.d(r,"a",function(){return i}),n.d(r,"b",function(){return a}),n.d(r,"c",function(){return t}),n.d(r,"d",function(){return h}),n.d(r,"e",function(){return e}),n.d(r,"f",function(){return m}),n.d(r,"g",function(){return d}),n.d(r,"h",function(){return b}),n.d(r,"i",function(){return C}),n.d(r,"j",function(){return T}),n.d(r,"k",function(){return s}),n.d(r,"l",function(){return O}),n.d(r,"m",function(){return g}),n.d(r,"n",function(){return R}),n.d(r,"o",function(){return B}),n.d(r,"p",function(){return I}),n.d(r,"q",function(){return D}),n.d(r,"r",function(){return _}),n.d(r,"s",function(){return F}),n.d(r,"t",function(){return G}),n.d(r,"u",function(){return K}),n.d(r,"v",function(){return W});var i="bold",a="clear",t="code",h="fullscreen",e="h1",m="h2",d="h3",b="h4",C="h5",T="h6",s="hr",O="image",g="italic",R="link",B="ol",I="quote",D="redo",_="strikethrough",F="sync-scroll",G="table",K="ul",W="undo"},function(y,r,n){n.d(r,"f",function(){return a}),n.d(r,"a",function(){return h}),n.d(r,"c",function(){return e}),n.d(r,"d",function(){return m}),n.d(r,"e",function(){return d}),n.d(r,"b",function(){return b});var i=Object.prototype.toString,a=function(T){return i.call(T)==="[object Object]"};function t(C,T){return Object.keys(T).forEach(function(s){C[s]=T[s]}),C}function h(C){for(var T={},s=0;se?"down":"up",O=(m-e)*(C/100),g,R=function B(){e+=O,s==="down"&&e>=m||s==="up"&&e<=m?(d(m),window.cancelAnimationFrame(g),T&&window.requestAnimationFrame(T)):(d(e),window.requestAnimationFrame(B))};window.requestAnimationFrame(R)}function t(h){var e=h.scrollTarget,m=h.scrollToTop,d=h.percent,b=d===void 0?10:d,C=h.onScrollEnd,T=Object(i.a)(e);a({currentScrollTop:T,scrollToTop:m,scrollFn:function(O){return Object(i.b)(e,O)},percent:b,onScrollEnd:C})}},function(y,r,n){n.r(r);var i=n(0);function a(g,R,B,I,D,_){return Object(i.openBlock)(),Object(i.createBlock)("div",{class:"v-md-editor-preview",style:{tabSize:g.tabSize,"-moz-tab-size":g.tabSize,"-o-tab-size":g.tabSize},onClick:R[1]||(R[1]=function(){return g.handlePreviewClick.apply(g,arguments)})},[Object(i.createVNode)("div",{class:[g.previewClass],innerHTML:g.html},null,10,["innerHTML"])],4)}var t=n(7),h=n(13),e=function(){function g(){this.lang=new h.a}var R=g.prototype;return R.defaultMarkdownLoader=function(I){return I},R.use=function(I,D){return typeof I=="function"?I(this,D):I.install(this,D),this},R.theme=function(I){this.themeConfig=I},R.extendMarkdown=function(I){if(!this.themeConfig)return console.error("Please use theme before using plugins");var D=this.themeConfig.markdownParser;I(D)},R.parse=function(I){var D,_=this.themeConfig.markdownParser,F=(_==null||(D=_.render)==null?void 0:D.bind(_))||this.defaultMarkdownLoader;return(typeof F!="function"||F===this.defaultMarkdownLoader)&&console.error("Please configure your markdown parser"),F(I)},g}(),m=n(16),d={name:"v-md-preview",mixins:[m.a],props:{text:{type:String,default:""},theme:Object,beforeChange:Function},emits:["change"],data:function(){return{html:""}},watch:{text:function(){this.handleTextChange()},langConfig:function(){this.handleTextChange()}},computed:{vMdParser:function(){return this.$options.vMdParser},previewClass:function(){return this.vMdParser.themeConfig.previewClass},langConfig:function(){return this.vMdParser.lang.langConfig}},created:function(){this.handleTextChange()},methods:{handleTextChange:function(){var R=this,B=function(D){R.html=t.a.process(R.$options.vMdParser.parse(D)),R.$emit("change",D,R.html)};this.beforeChange?this.beforeChange(this.text,B):B(this.text)}}},b=new e;b.lang.config=Object(i.reactive)(b.lang.config),d.vMdParser=new e;var C=d;C.render=a;var T=C;n(18);var s="2.3.15",O=function(R){R.component(T.name,T)};T.version=s,T.install=O,T.xss=t.a,T.use=function(g,R){return typeof g=="function"?g(T,R):g.install(T,R),T},r.default=T},function(y,r,n){y.exports=n(37)},function(y,r,n){var i=n(19),a=n(22),t=n(26);function h(d,b){var C=new t(b);return C.process(d)}r=y.exports=h,r.filterXSS=h,r.FilterXSS=t;for(var e in i)r[e]=i[e];for(var e in a)r[e]=a[e];typeof window!="undefined"&&(window.filterXSS=y.exports);function m(){return typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope}m()&&(self.filterXSS=y.exports)},function(y,r,n){n.d(r,"a",function(){return i}),n.d(r,"b",function(){return a});function i(t,h){var e=h.accept,m=Object.keys(t).filter(function(d){var b=t[d],C=b.type,T=b.name,s=T.indexOf(".")>-1?"."+T.split(".").pop():"",O=C.replace(/\/.*$/,"");return e.split(",").map(function(g){return g.trim()}).filter(function(g){return g}).some(function(g){return/\..+$/.test(g)?s===g:/\/\*$/.test(g)?O===g.replace(/\/\*$/,""):/^[^\/]+\/[^\/]+$/.test(g)?C===g:!1})});return m.map(function(d){return t[d]})}function a(t){var h=[];return Object.keys(t.items).forEach(function(e){var m=t.items[e];if(m.kind==="file"){var d=m.getAsFile();d&&h.push(d)}}),h}},function(y,r,n){n.d(r,"a",function(){return e});var i=n(2),a=Object.prototype.hasOwnProperty;function t(m,d,b){var C=d[b];C!=null&&(!a.call(m,b)||!Object(i.f)(C)?m[b]=C:m[b]=h(Object(m[b]),d[b]))}function h(m,d){return Object.keys(d).forEach(function(b){t(m,d,b)}),m}var e=function(){function m(b){b===void 0&&(b={}),this.config={lang:"zh-CN",langConfig:{"zh-CN":{}}},this.options=b}var d=m.prototype;return d.use=function(C,T){var s;this.config.lang=C,this.add((s={},s[C]=T,s)),this.options.afterUse&&this.options.afterUse(C,T)},d.add=function(C){C===void 0&&(C={}),h(this.config.langConfig,C)},m}()},function(y,r,n){var i=n(20),a=n(24);function t(e,m){var d=new a(m);return d.process(e)}r=y.exports=t,r.FilterCSS=a;for(var h in i)r[h]=i[h];typeof window!="undefined"&&(window.filterCSS=y.exports)},function(y,r){y.exports={indexOf:function(n,i){var a,t;if(Array.prototype.indexOf)return n.indexOf(i);for(a=0,t=n.length;a/g,R=/"/g,B=/"/g,I=/&#([a-zA-Z0-9]*);?/gim,D=/:?/gim,_=/&newline;?/gim,F=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,G=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,K=/u\s*r\s*l\s*\(.*/gi;function W(l){return l.replace(R,""")}function ee(l){return l.replace(B,'"')}function $(l){return l.replace(I,function(v,P){return P[0]==="x"||P[0]==="X"?String.fromCharCode(parseInt(P.substr(1),16)):String.fromCharCode(parseInt(P,10))})}function te(l){return l.replace(D,":").replace(_," ")}function S(l){for(var f="",v=0,P=l.length;v/g;function A(l){var f=l.split("");return f=f.filter(function(v){var P=v.charCodeAt(0);return P===127?!1:P<=31?P===10||P===13:!0}),f.join("")}r.whiteList=h(),r.getDefaultWhiteList=h,r.onTag=m,r.onIgnoreTag=d,r.onTagAttr=b,r.onIgnoreTagAttr=C,r.safeAttrValue=s,r.escapeHtml=T,r.escapeQuote=W,r.unescapeQuote=ee,r.escapeHtmlEntities=$,r.escapeDangerHtml5Entities=te,r.clearNonPrintableCharacter=S,r.friendlyAttrValue=E,r.escapeAttrValue=k,r.onIgnoreTagStripAll=z,r.StripTagBody=N,r.stripCommentTag=p,r.stripBlankChar=A,r.cssFilter=e,r.getDefaultCSSWhiteList=a},function(y,r){function n(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function i(e,m,d){}function a(e,m,d){}var t=/javascript\s*\:/img;function h(e,m){return t.test(m)?"":m}r.whiteList=n(),r.getDefaultWhiteList=n,r.onAttr=i,r.onIgnoreAttr=a,r.safeAttrValue=h},function(y,r){y.exports={indexOf:function(n,i){var a,t;if(Array.prototype.indexOf)return n.indexOf(i);for(a=0,t=n.length;a"){R+=g(s.slice(B,I)),K=s.slice(I,_+1),G=a(K),R+=O(I,R.length,G,K,t(K)),B=_+1,I=!1;continue}if(W==='"'||W==="'")for(var ee=1,$=s.charAt(_-ee);$.trim()===""||$==="=";){if($==="="){D=W;continue e}$=s.charAt(_-++ee)}}else if(W===D){D=!1;continue}}return B0;O--){var g=s[O];if(g!==" ")return g==="="?O:-1}}function C(s){return s[0]==='"'&&s[s.length-1]==='"'||s[0]==="'"&&s[s.length-1]==="'"}function T(s){return C(s)?s.substr(1,s.length-2):s}r.parseTag=h,r.parseAttr=m},function(y,r,n){n.r(r);var i=n(10),a=n.n(i),t=n(17),h=n(1),e=n(12);r.default={name:h.l,icon:"v-md-icon-img",title:function(d){return d.langConfig.image.toolbar},menus:[{name:"image-link",text:function(d){return d.langConfig.imageLink.toolbar},action:function(d,b){b!=null&&b.insertWithSize?d.execCommand(h.l,{width:"auto",height:"auto"}):d.execCommand(h.l)}},{name:"upload-image",text:function(d){return d.langConfig.uploadImage.toolbar},action:function(d){d.uploadConfig=d.uploadImgConfig,d.$nextTick(Object(t.a)(a.a.mark(function b(){var C,T;return a.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,d.$refs.uploadFile.upload();case 2:C=O.sent,T=Object(e.a)(C.target.files,d.uploadImgConfig),d.emitUploadImage(C,T);case 5:case"end":return O.stop()}},b)})))}}]}},function(y,r,n){var i=n(20),a=n(25);n(21);function t(m){return m==null}function h(m){var d={};for(var b in m)d[b]=m[b];return d}function e(m){m=h(m||{}),m.whiteList=m.whiteList||i.whiteList,m.onAttr=m.onAttr||i.onAttr,m.onIgnoreAttr=m.onIgnoreAttr||i.onIgnoreAttr,m.safeAttrValue=m.safeAttrValue||i.safeAttrValue,this.options=m}e.prototype.process=function(m){if(m=m||"",m=m.toString(),!m)return"";var d=this,b=d.options,C=b.whiteList,T=b.onAttr,s=b.onIgnoreAttr,O=b.safeAttrValue,g=a(m,function(R,B,I,D,_){var F=C[I],G=!1;if(F===!0?G=F:typeof F=="function"?G=F(D):F instanceof RegExp&&(G=F.test(D)),G!==!0&&(G=!1),D=O(I,D),!!D){var K={position:B,sourcePosition:R,source:_,isWhite:G};if(G){var W=T(I,D,K);return t(W)?I+":"+D:W}else{var W=s(I,D,K);if(!t(W))return W}}});return g},y.exports=e},function(y,r,n){var i=n(21);function a(t,h){t=i.trimRight(t),t[t.length-1]!==";"&&(t+=";");var e=t.length,m=!1,d=0,b=0,C="";function T(){if(!m){var g=i.trim(t.slice(d,b)),R=g.indexOf(":");if(R!==-1){var B=i.trim(g.slice(0,R)),I=i.trim(g.slice(R+1));if(B){var D=h(d,C.length,B,I,g);D&&(C+=D+"; ")}}}d=b+1}for(;b-1&&e%1==0&&e-1}function qr(e,t){var r=this.__data__,a=X(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function I(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ttypeof e!="undefined",ss=e=>typeof e=="boolean",_a=e=>typeof e=="number",ls=e=>typeof e=="string",cs=()=>{};ve&&((ke=window==null?void 0:window.navigator)==null?void 0:ke.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ge(e,t){function r(...a){e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})}return r}const Ke=e=>e();function pa(e,t={}){let r,a;return o=>{const s=_(e),i=_(t.maxWait);if(r&&clearTimeout(r),s<=0||i!==void 0&&i<=0)return a&&(clearTimeout(a),a=null),o();i&&!a&&(a=setTimeout(()=>{r&&clearTimeout(r),a=null,o()},i)),r=setTimeout(()=>{a&&clearTimeout(a),a=null,o()},s)}}function va(e,t=!0,r=!0){let a=0,n,o=!0;const s=()=>{n&&(clearTimeout(n),n=void 0)};return d=>{const v=_(e),m=Date.now()-a;if(s(),v<=0)return a=Date.now(),d();m>v&&(r||!o)?(a=Date.now(),d()):t&&(n=setTimeout(()=>{a=Date.now(),o=!0,s(),d()},v)),!r&&!n&&(n=setTimeout(()=>o=!0,v)),o=!1}}function ga(e=Ke){const t=z(!0);function r(){t.value=!1}function a(){t.value=!0}return{isActive:t,pause:r,resume:a,eventFilter:(...o)=>{t.value&&e(...o)}}}function ma(e,t=200,r={}){return ge(pa(t,r),e)}function fs(e,t=200,r={}){if(t<=0)return e;const a=z(e.value),n=ma(()=>{a.value=e.value},t,r);return J(e,()=>n()),a}function us(e,t=200,r=!0,a=!0){return ge(va(t,r,a),e)}function ds(e,t=!0){Y()?Ne(e):t?e():gt(e)}function hs(e,t,r={}){const{immediate:a=!0}=r,n=z(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function i(){n.value=!1,s()}function d(...v){s(),n.value=!0,o=setTimeout(()=>{n.value=!1,o=null,e(...v)},_(t))}return a&&(n.value=!0,ve&&d()),ha(i),{isPending:n,start:d,stop:i}}var Be=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,ya=(e,t)=>{var r={};for(var a in e)ba.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Be)for(var a of Be(e))t.indexOf(a)<0&&wa.call(e,a)&&(r[a]=e[a]);return r};function xa(e,t,r={}){const a=r,{eventFilter:n=Ke}=a,o=ya(a,["eventFilter"]);return J(e,ge(n,t),o)}var $a=Object.defineProperty,za=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ae=(e,t,r)=>t in e?$a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ma=(e,t)=>{for(var r in t||(t={}))We.call(t,r)&&Ae(e,r,t[r]);if(K)for(var r of K(t))Ye.call(t,r)&&Ae(e,r,t[r]);return e},Sa=(e,t)=>za(e,Ca(t)),Ha=(e,t)=>{var r={};for(var a in e)We.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&K)for(var a of K(e))t.indexOf(a)<0&&Ye.call(e,a)&&(r[a]=e[a]);return r};function _s(e,t,r={}){const a=r,{eventFilter:n}=a,o=Ha(a,["eventFilter"]),{eventFilter:s,pause:i,resume:d,isActive:v}=ga(n);return{stop:xa(e,t,Sa(Ma({},o),{eventFilter:s})),pause:i,resume:d,isActive:v}}const ka=e=>e===void 0,ps=e=>!e&&e!==0||wt(e)&&e.length===0||ce(e)&&!Object.keys(e).length,vs=e=>typeof Element=="undefined"?!1:e instanceof Element,Oe=e=>Object.keys(e),gs=e=>Object.entries(e),ms=(e,t,r)=>({get value(){return ca(e,t,r)},set value(a){da(e,t,a)}});class Ba extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function bs(e,t){throw new Ba(`[${e}] ${t}`)}function ws(e,t){}const Je=(e="")=>e.split(" ").filter(t=>!!t.trim()),ys=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},xs=(e,t)=>{!e||!t.trim()||e.classList.add(...Je(t))},$s=(e,t)=>{!e||!t.trim()||e.classList.remove(...Je(t))},zs=(e,t)=>{var r;if(!ve||!e||!t)return"";let a=xt(t);a==="float"&&(a="cssFloat");try{const n=e.style[a];if(n)return n;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[a]:""}catch{return e.style[a]}};function Aa(e,t="px"){if(!e)return"";if(yt(e))return e;if(_a(e))return`${e}${t}`}/*! Element Plus Icons Vue v2.0.6 */var u=(e,t)=>{let r=e.__vccOpts||e;for(let[a,n]of t)r[a]=n;return r},Oa={name:"ArrowDown"},Pa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ta=l("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Va=[Ta];function Ia(e,t,r,a,n,o){return c(),f("svg",Pa,Va)}var Cs=u(Oa,[["render",Ia],["__file","arrow-down.vue"]]),La={name:"ArrowLeft"},Fa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ea=l("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),Na=[Ea];function Ra(e,t,r,a,n,o){return c(),f("svg",Fa,Na)}var Ms=u(La,[["render",Ra],["__file","arrow-left.vue"]]),ja={name:"ArrowRight"},Da={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qa=l("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),Ga=[qa];function Ua(e,t,r,a,n,o){return c(),f("svg",Da,Ga)}var Ss=u(ja,[["render",Ua],["__file","arrow-right.vue"]]),Za={name:"ArrowUp"},Ka={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wa=l("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),Ya=[Wa];function Ja(e,t,r,a,n,o){return c(),f("svg",Ka,Ya)}var Hs=u(Za,[["render",Ja],["__file","arrow-up.vue"]]),Xa={name:"Avatar"},Qa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},en=l("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),tn=[en];function rn(e,t,r,a,n,o){return c(),f("svg",Qa,tn)}var ks=u(Xa,[["render",rn],["__file","avatar.vue"]]),an={name:"Calendar"},nn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on=l("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),sn=[on];function ln(e,t,r,a,n,o){return c(),f("svg",nn,sn)}var Bs=u(an,[["render",ln],["__file","calendar.vue"]]),cn={name:"CaretTop"},fn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},un=l("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),dn=[un];function hn(e,t,r,a,n,o){return c(),f("svg",fn,dn)}var As=u(cn,[["render",hn],["__file","caret-top.vue"]]),_n={name:"Check"},pn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vn=l("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),gn=[vn];function mn(e,t,r,a,n,o){return c(),f("svg",pn,gn)}var Os=u(_n,[["render",mn],["__file","check.vue"]]),bn={name:"CircleCheck"},wn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),xn=l("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),$n=[yn,xn];function zn(e,t,r,a,n,o){return c(),f("svg",wn,$n)}var Cn=u(bn,[["render",zn],["__file","circle-check.vue"]]),Mn={name:"CircleCloseFilled"},Sn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Hn=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),kn=[Hn];function Bn(e,t,r,a,n,o){return c(),f("svg",Sn,kn)}var Xe=u(Mn,[["render",Bn],["__file","circle-close-filled.vue"]]),An={name:"CircleClose"},On={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Pn=l("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Tn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Vn=[Pn,Tn];function In(e,t,r,a,n,o){return c(),f("svg",On,Vn)}var Ln=u(An,[["render",In],["__file","circle-close.vue"]]),Fn={name:"Clock"},En={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Rn=l("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),jn=l("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Dn=[Nn,Rn,jn];function qn(e,t,r,a,n,o){return c(),f("svg",En,Dn)}var Ps=u(Fn,[["render",qn],["__file","clock.vue"]]),Gn={name:"Close"},Un={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zn=l("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Kn=[Zn];function Wn(e,t,r,a,n,o){return c(),f("svg",Un,Kn)}var Qe=u(Gn,[["render",Wn],["__file","close.vue"]]),Yn={name:"Coin"},Jn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xn=l("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),Qn=l("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),e0=l("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),t0=[Xn,Qn,e0];function r0(e,t,r,a,n,o){return c(),f("svg",Jn,t0)}var Ts=u(Yn,[["render",r0],["__file","coin.vue"]]),a0={name:"Collection"},n0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o0=l("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),i0=l("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),s0=[o0,i0];function l0(e,t,r,a,n,o){return c(),f("svg",n0,s0)}var Vs=u(a0,[["render",l0],["__file","collection.vue"]]),c0={name:"CopyDocument"},f0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},u0=l("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),d0=l("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),h0=[u0,d0];function _0(e,t,r,a,n,o){return c(),f("svg",f0,h0)}var Is=u(c0,[["render",_0],["__file","copy-document.vue"]]),p0={name:"DArrowLeft"},v0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g0=l("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),m0=[g0];function b0(e,t,r,a,n,o){return c(),f("svg",v0,m0)}var Ls=u(p0,[["render",b0],["__file","d-arrow-left.vue"]]),w0={name:"DArrowRight"},y0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x0=l("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),$0=[x0];function z0(e,t,r,a,n,o){return c(),f("svg",y0,$0)}var Fs=u(w0,[["render",z0],["__file","d-arrow-right.vue"]]),C0={name:"Delete"},M0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},S0=l("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),H0=[S0];function k0(e,t,r,a,n,o){return c(),f("svg",M0,H0)}var Es=u(C0,[["render",k0],["__file","delete.vue"]]),B0={name:"Document"},A0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},O0=l("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),P0=[O0];function T0(e,t,r,a,n,o){return c(),f("svg",A0,P0)}var Ns=u(B0,[["render",T0],["__file","document.vue"]]),V0={name:"Edit"},I0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},L0=l("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),F0=l("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),E0=[L0,F0];function N0(e,t,r,a,n,o){return c(),f("svg",I0,E0)}var Rs=u(V0,[["render",N0],["__file","edit.vue"]]),R0={name:"FolderOpened"},j0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D0=l("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),q0=[D0];function G0(e,t,r,a,n,o){return c(),f("svg",j0,q0)}var js=u(R0,[["render",G0],["__file","folder-opened.vue"]]),U0={name:"FullScreen"},Z0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K0=l("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),W0=[K0];function Y0(e,t,r,a,n,o){return c(),f("svg",Z0,W0)}var Ds=u(U0,[["render",Y0],["__file","full-screen.vue"]]),J0={name:"Hide"},X0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q0=l("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),eo=l("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),to=[Q0,eo];function ro(e,t,r,a,n,o){return c(),f("svg",X0,to)}var qs=u(J0,[["render",ro],["__file","hide.vue"]]),ao={name:"InfoFilled"},no={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oo=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),io=[oo];function so(e,t,r,a,n,o){return c(),f("svg",no,io)}var et=u(ao,[["render",so],["__file","info-filled.vue"]]),lo={name:"Key"},co={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fo=l("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),uo=[fo];function ho(e,t,r,a,n,o){return c(),f("svg",co,uo)}var Gs=u(lo,[["render",ho],["__file","key.vue"]]),_o={name:"Link"},po={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vo=l("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),go=[vo];function mo(e,t,r,a,n,o){return c(),f("svg",po,go)}var Us=u(_o,[["render",mo],["__file","link.vue"]]),bo={name:"Loading"},wo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yo=l("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),xo=[yo];function $o(e,t,r,a,n,o){return c(),f("svg",wo,xo)}var tt=u(bo,[["render",$o],["__file","loading.vue"]]),zo={name:"Minus"},Co={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Mo=l("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),So=[Mo];function Ho(e,t,r,a,n,o){return c(),f("svg",Co,So)}var Zs=u(zo,[["render",Ho],["__file","minus.vue"]]),ko={name:"MoreFilled"},Bo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ao=l("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),Oo=[Ao];function Po(e,t,r,a,n,o){return c(),f("svg",Bo,Oo)}var Ks=u(ko,[["render",Po],["__file","more-filled.vue"]]),To={name:"Notebook"},Vo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Io=l("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),Lo=l("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),Fo=[Io,Lo];function Eo(e,t,r,a,n,o){return c(),f("svg",Vo,Fo)}var Ws=u(To,[["render",Eo],["__file","notebook.vue"]]),No={name:"PictureFilled"},Ro={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jo=l("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Do=[jo];function qo(e,t,r,a,n,o){return c(),f("svg",Ro,Do)}var Ys=u(No,[["render",qo],["__file","picture-filled.vue"]]),Go={name:"Plus"},Uo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zo=l("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Ko=[Zo];function Wo(e,t,r,a,n,o){return c(),f("svg",Uo,Ko)}var Js=u(Go,[["render",Wo],["__file","plus.vue"]]),Yo={name:"QuestionFilled"},Jo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xo=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Qo=[Xo];function e2(e,t,r,a,n,o){return c(),f("svg",Jo,Qo)}var Xs=u(Yo,[["render",e2],["__file","question-filled.vue"]]),t2={name:"RefreshLeft"},r2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},a2=l("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),n2=[a2];function o2(e,t,r,a,n,o){return c(),f("svg",r2,n2)}var Qs=u(t2,[["render",o2],["__file","refresh-left.vue"]]),i2={name:"RefreshRight"},s2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l2=l("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),c2=[l2];function f2(e,t,r,a,n,o){return c(),f("svg",s2,c2)}var e1=u(i2,[["render",f2],["__file","refresh-right.vue"]]),u2={name:"ScaleToOriginal"},d2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h2=l("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_2=[h2];function p2(e,t,r,a,n,o){return c(),f("svg",d2,_2)}var t1=u(u2,[["render",p2],["__file","scale-to-original.vue"]]),v2={name:"Search"},g2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m2=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),b2=[m2];function w2(e,t,r,a,n,o){return c(),f("svg",g2,b2)}var r1=u(v2,[["render",w2],["__file","search.vue"]]),y2={name:"Setting"},x2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$2=l("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),z2=[$2];function C2(e,t,r,a,n,o){return c(),f("svg",x2,z2)}var a1=u(y2,[["render",C2],["__file","setting.vue"]]),M2={name:"SuccessFilled"},S2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},H2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),k2=[H2];function B2(e,t,r,a,n,o){return c(),f("svg",S2,k2)}var rt=u(M2,[["render",B2],["__file","success-filled.vue"]]),A2={name:"Tickets"},O2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P2=l("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),T2=[P2];function V2(e,t,r,a,n,o){return c(),f("svg",O2,T2)}var n1=u(A2,[["render",V2],["__file","tickets.vue"]]),I2={name:"User"},L2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F2=l("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),E2=[F2];function N2(e,t,r,a,n,o){return c(),f("svg",L2,E2)}var o1=u(I2,[["render",N2],["__file","user.vue"]]),R2={name:"VideoPause"},j2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),q2=[D2];function G2(e,t,r,a,n,o){return c(),f("svg",j2,q2)}var i1=u(R2,[["render",G2],["__file","video-pause.vue"]]),U2={name:"VideoPlay"},Z2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),W2=[K2];function Y2(e,t,r,a,n,o){return c(),f("svg",Z2,W2)}var s1=u(U2,[["render",Y2],["__file","video-play.vue"]]),J2={name:"View"},X2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q2=l("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),ei=[Q2];function ti(e,t,r,a,n,o){return c(),f("svg",X2,ei)}var l1=u(J2,[["render",ti],["__file","view.vue"]]),ri={name:"WarningFilled"},ai={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ni=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),oi=[ni];function ii(e,t,r,a,n,o){return c(),f("svg",ai,oi)}var at=u(ri,[["render",ii],["__file","warning-filled.vue"]]),si={name:"ZoomIn"},li={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ci=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),fi=[ci];function ui(e,t,r,a,n,o){return c(),f("svg",li,fi)}var c1=u(si,[["render",ui],["__file","zoom-in.vue"]]),di={name:"ZoomOut"},hi={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_i=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),pi=[_i];function vi(e,t,r,a,n,o){return c(),f("svg",hi,pi)}var f1=u(di,[["render",vi],["__file","zoom-out.vue"]]);const nt="__epPropKey",ot=e=>e,gi=e=>ce(e)&&!!e[nt],it=(e,t)=>{if(!ce(e)||gi(e))return e;const{values:r,required:a,default:n,type:o,validator:s}=e,d={type:o,required:!!a,validator:r||s?v=>{let m=!1,x=[];if(r&&(x=Array.from(r),we(e,"default")&&x.push(n),m||(m=x.includes(v))),s&&(m||(m=s(v))),!m&&x.length>0){const L=[...new Set(x)].map(j=>JSON.stringify(j)).join(", ");$t(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${L}], got value ${JSON.stringify(v)}.`)}return m}:void 0,[nt]:!0};return we(e,"default")&&(d.default=n),d},st=e=>fa(Object.entries(e).map(([t,r])=>[t,it(r,t)])),Pe=ot([String,Object,Function]),u1={Close:Qe},d1={Close:Qe,SuccessFilled:rt,InfoFilled:et,WarningFilled:at,CircleCloseFilled:Xe},h1={success:rt,warning:at,error:Xe,info:et},_1={validating:tt,success:Cn,error:Ln},lt=(e,t)=>{if(e.install=r=>{for(const a of[e,...Object.values(t!=null?t:{})])r.component(a.name,a)},t)for(const[r,a]of Object.entries(t))e[r]=a;return e},p1=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),v1=(e,t)=>(e.install=r=>{r.directive(t,e)},e),mi=e=>(e.install=zt,e),g1={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},bi=["","default","small","large"],m1={large:40,default:32,small:24},ct=Symbol("buttonGroupContextKey"),ft=Symbol(),me=Symbol("formContextKey"),ut=Symbol("formItemContextKey"),dt=e=>{const t=Y();return w(()=>{var r,a;return(a=((r=t.proxy)==null?void 0:r.$props)[e])!=null?a:void 0})},W=z();function R(e,t=void 0){const r=Y()?H(ft,W):W;return e?w(()=>{var a,n;return(n=(a=r.value)==null?void 0:a[e])!=null?n:t}):r}const b1=(e,t,r=!1)=>{var a;const n=!!Y(),o=n?R():void 0,s=(a=t==null?void 0:t.provide)!=null?a:n?Re:void 0;if(!s)return;const i=w(()=>{const d=_(e);return o!=null&&o.value?wi(o.value,d):d});return s(ft,i),(r||!W.value)&&(W.value=i.value),i},wi=(e,t)=>{var r;const a=[...new Set([...Oe(e),...Oe(t)])],n={};for(const o of a)n[o]=(r=t[o])!=null?r:e[o];return n},yi=it({type:String,values:bi,required:!1}),xi=(e,t={})=>{const r=z(void 0),a=t.prop?r:dt("size"),n=t.global?r:R("size"),o=t.form?{size:void 0}:H(me,void 0),s=t.formItem?{size:void 0}:H(ut,void 0);return w(()=>a.value||_(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||n.value||"")},ht=e=>{const t=dt("disabled"),r=H(me,void 0);return w(()=>t.value||_(e)||(r==null?void 0:r.disabled)||!1)},$i=({from:e,replacement:t,scope:r,version:a,ref:n,type:o="API"},s)=>{J(()=>_(s),i=>{},{immediate:!0})},zi={prefix:Math.floor(Math.random()*1e4),current:0},Ci=Symbol("elIdInjection"),Mi=e=>{const t=H(Ci,zi);return w(()=>_(e)||`el-id-${t.prefix}-${t.current++}`)},Si=()=>{const e=H(me,void 0),t=H(ut,void 0);return{form:e,formItem:t}},w1=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:a})=>{r||(r=z(!1)),a||(a=z(!1));const n=z();let o;const s=w(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Ne(()=>{o=J([ie(e,"id"),r],([i,d])=>{const v=i!=null?i:d?void 0:Mi().value;v!==n.value&&(t!=null&&t.removeInputId&&(n.value&&t.removeInputId(n.value),!(a!=null&&a.value)&&!d&&v&&t.addInputId(v)),n.value=v)},{immediate:!0})}),Ct(()=>{o&&o(),t!=null&&t.removeInputId&&n.value&&t.removeInputId(n.value)}),{isLabeledByFormItem:s,inputId:n}},Hi="el",ki="is-",B=(e,t,r,a,n)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),a&&(o+=`__${a}`),n&&(o+=`--${n}`),o},ee=e=>{const t=R("namespace"),r=w(()=>t.value||Hi);return{namespace:r,b:(p="")=>B(_(r),e,p,"",""),e:p=>p?B(_(r),e,"",p,""):"",m:p=>p?B(_(r),e,"","",p):"",be:(p,g)=>p&&g?B(_(r),e,p,g,""):"",em:(p,g)=>p&&g?B(_(r),e,"",p,g):"",bm:(p,g)=>p&&g?B(_(r),e,p,"",g):"",bem:(p,g,h)=>p&&g&&h?B(_(r),e,p,g,h):"",is:(p,...g)=>{const h=g.length>=1?g[0]:!0;return p&&h?`${ki}${p}`:""},cssVar:p=>{const g={};for(const h in p)g[`--${r.value}-${h}`]=p[h];return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const h in p)g[`--${r.value}-${e}-${h}`]=p[h];return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Te=z(0),y1=()=>{const e=R("zIndex",2e3),t=w(()=>e.value+Te.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Te.value++,t.value)}};var be=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r};const Bi=st({size:{type:ot([Number,String])},color:{type:String}}),Ai={name:"ElIcon",inheritAttrs:!1},Oi=fe({...Ai,props:Bi,setup(e){const t=e,r=ee("icon"),a=w(()=>!t.size&&!t.color?{}:{fontSize:ka(t.size)?void 0:Aa(t.size),"--color":t.color});return(n,o)=>(c(),f("i",Mt({class:_(r).b(),style:_(a)},n.$attrs),[E(n.$slots,"default")],16))}});var Pi=be(Oi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ve=lt(Pi),Ti=["default","primary","success","warning","info","danger","text",""],Vi=["button","submit","reset"],se=st({size:yi,disabled:Boolean,type:{type:String,values:Ti,default:""},icon:{type:Pe,default:""},nativeType:{type:String,values:Vi,default:"button"},loading:Boolean,loadingIcon:{type:Pe,default:()=>tt},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Ii={click:e=>e instanceof MouseEvent};function b(e,t){Li(e)&&(e="100%");var r=Fi(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function q(e){return Math.min(1,Math.max(0,e))}function Li(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Fi(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _t(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e){return e<=1?"".concat(Number(e)*100,"%"):e}function A(e){return e.length===1?"0"+e:String(e)}function Ei(e,t,r){return{r:b(e,255)*255,g:b(t,255)*255,b:b(r,255)*255}}function Ie(e,t,r){e=b(e,255),t=b(t,255),r=b(r,255);var a=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=0,i=(a+n)/2;if(a===n)s=0,o=0;else{var d=a-n;switch(s=i>.5?d/(2-a-n):d/(a+n),a){case e:o=(t-r)/d+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ni(e,t,r){var a,n,o;if(e=b(e,360),t=b(t,100),r=b(r,100),t===0)n=r,o=r,a=r;else{var s=r<.5?r*(1+t):r+t-r*t,i=2*r-s;a=ae(i,s,e+1/3),n=ae(i,s,e),o=ae(i,s,e-1/3)}return{r:a*255,g:n*255,b:o*255}}function Le(e,t,r){e=b(e,255),t=b(t,255),r=b(r,255);var a=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=a,i=a-n,d=a===0?0:i/a;if(a===n)o=0;else{switch(a){case e:o=(t-r)/i+(t>16,g:(e&65280)>>8,b:e&255}}var le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Gi(e){var t={r:0,g:0,b:0},r=1,a=null,n=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Ki(e)),typeof e=="object"&&(C(e.r)&&C(e.g)&&C(e.b)?(t=Ei(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):C(e.h)&&C(e.s)&&C(e.v)?(a=G(e.s),n=G(e.v),t=Ri(e.h,a,n),s=!0,i="hsv"):C(e.h)&&C(e.s)&&C(e.l)&&(a=G(e.s),o=G(e.l),t=Ni(e.h,a,o),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=_t(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Ui="[-\\+]?\\d+%?",Zi="[-\\+]?\\d*\\.\\d+%?",S="(?:".concat(Zi,")|(?:").concat(Ui,")"),ne="[\\s|\\(]+(".concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")\\s*\\)?"),oe="[\\s|\\(]+(".concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")\\s*\\)?"),$={CSS_UNIT:new RegExp(S),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ki(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(le[e])e=le[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=$.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=$.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=$.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=$.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$.hex8.exec(e),r?{r:y(r[1]),g:y(r[2]),b:y(r[3]),a:Ee(r[4]),format:t?"name":"hex8"}:(r=$.hex6.exec(e),r?{r:y(r[1]),g:y(r[2]),b:y(r[3]),format:t?"name":"hex"}:(r=$.hex4.exec(e),r?{r:y(r[1]+r[1]),g:y(r[2]+r[2]),b:y(r[3]+r[3]),a:Ee(r[4]+r[4]),format:t?"name":"hex8"}:(r=$.hex3.exec(e),r?{r:y(r[1]+r[1]),g:y(r[2]+r[2]),b:y(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function C(e){return Boolean($.CSS_UNIT.exec(String(e)))}var Wi=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=qi(t)),this.originalInput=t;var n=Gi(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=r.format)!==null&&a!==void 0?a:n.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,a,n,o=t.r/255,s=t.g/255,i=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),.2126*r+.7152*a+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_t(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Le(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Le(this.r,this.g,this.b),r=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(r,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Ie(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Ie(this.r,this.g,this.b),r=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(r,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fe(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ji(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(a,")"):"rgba(".concat(t,", ").concat(r,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(b(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(b(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Fe(this.r,this.g,this.b,!1),r=0,a=Object.entries(le);r=0,o=!r&&n&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=q(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=q(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=q(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=q(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),a=(r.h+t)%360;return r.h=a<0?360+a:a,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var a=this.toRgb(),n=new e(t).toRgb(),o=r/100,s={r:(n.r-a.r)*o+a.r,g:(n.g-a.g)*o+a.g,b:(n.b-a.b)*o+a.b,a:(n.a-a.a)*o+a.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var a=this.toHsl(),n=360/r,o=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,o.push(new e(a));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),a=r.h,n=r.s,o=r.v,s=[],i=1/t;t--;)s.push(new e({h:a,s:n,v:o})),o=(o+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),a=new e(t).toRgb();return new e({r:a.r+(r.r-a.r)*r.a,g:a.g+(r.g-a.g)*r.a,b:a.b+(r.b-a.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),a=r.h,n=[this],o=360/t,s=1;s{let a={};const n=e.color;if(n){const o=new Wi(n),s=e.dark?o.tint(20).toString():M(o,20);if(e.plain)a=r.cssVarBlock({"bg-color":e.dark?M(o,90):o.tint(90).toString(),"text-color":n,"border-color":e.dark?M(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":n,"hover-border-color":n,"active-bg-color":s,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[r.cssVarBlockName("disabled-bg-color")]=e.dark?M(o,90):o.tint(90).toString(),a[r.cssVarBlockName("disabled-text-color")]=e.dark?M(o,50):o.tint(50).toString(),a[r.cssVarBlockName("disabled-border-color")]=e.dark?M(o,80):o.tint(80).toString());else{const i=e.dark?M(o,30):o.tint(30).toString(),d=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(a=r.cssVarBlock({"bg-color":n,"text-color":d,"border-color":n,"hover-bg-color":i,"hover-text-color":d,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const v=e.dark?M(o,50):o.tint(50).toString();a[r.cssVarBlockName("disabled-bg-color")]=v,a[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,a[r.cssVarBlockName("disabled-border-color")]=v}}}return a})}const Ji=["aria-disabled","disabled","autofocus","type"],Xi={name:"ElButton"},Qi=fe({...Xi,props:se,emits:Ii,setup(e,{expose:t,emit:r}){const a=e,n=St();$i({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},w(()=>a.type==="text"));const o=H(ct,void 0),s=R("button"),i=ee("button"),{form:d}=Si(),v=xi(w(()=>o==null?void 0:o.size)),m=ht(),x=z(),L=w(()=>a.type||(o==null?void 0:o.type)||""),j=w(()=>{var h,k,T;return(T=(k=a.autoInsertSpace)!=null?k:(h=s.value)==null?void 0:h.autoInsertSpace)!=null?T:!1}),te=w(()=>{var h;const k=(h=n.default)==null?void 0:h.call(n);if(j.value&&(k==null?void 0:k.length)===1){const T=k[0];if((T==null?void 0:T.type)===Ht){const vt=T.children;return/^\p{Unified_Ideograph}{2}$/u.test(vt.trim())}}return!1}),p=Yi(a),g=h=>{a.nativeType==="reset"&&(d==null||d.resetFields()),r("click",h)};return t({ref:x,size:v,type:L,disabled:m,shouldAddSpace:te}),(h,k)=>(c(),f("button",{ref_key:"_ref",ref:x,class:U([_(i).b(),_(i).m(_(L)),_(i).m(_(v)),_(i).is("disabled",_(m)),_(i).is("loading",h.loading),_(i).is("plain",h.plain),_(i).is("round",h.round),_(i).is("circle",h.circle),_(i).is("text",h.text),_(i).is("link",h.link),_(i).is("has-bg",h.bg)]),"aria-disabled":_(m)||h.loading,disabled:_(m)||h.loading,autofocus:h.autofocus,type:h.nativeType,style:Bt(_(p)),onClick:g},[h.loading?(c(),f(kt,{key:0},[h.$slots.loading?E(h.$slots,"loading",{key:0}):(c(),D(_(Ve),{key:1,class:U(_(i).is("loading"))},{default:ye(()=>[(c(),D(xe(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(c(),D(_(Ve),{key:1},{default:ye(()=>[h.icon?(c(),D(xe(h.icon),{key:0})):E(h.$slots,"icon",{key:1})]),_:3})):$e("v-if",!0),h.$slots.default?(c(),f("span",{key:2,class:U({[_(i).em("text","expand")]:_(te)})},[E(h.$slots,"default")],2)):$e("v-if",!0)],14,Ji))}});var es=be(Qi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ts={size:se.size,type:se.type},rs={name:"ElButtonGroup"},as=fe({...rs,props:ts,setup(e){const t=e;Re(ct,At({size:ie(t,"size"),type:ie(t,"type")}));const r=ee("button");return(a,n)=>(c(),f("div",{class:U(`${_(r).b("group")}`)},[E(a.$slots,"default")],2))}});var pt=be(as,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const x1=lt(es,{ButtonGroup:pt});mi(pt);export{xs as $,it as A,ve as B,ss as C,ha as D,Ve as E,vs as F,ut as G,y1 as H,g1 as I,ka as J,Mi as K,u1 as L,$i as M,Pe as N,R as O,Aa as P,Hi as Q,hs as R,yi as S,me as T,w1 as U,_a as V,xi as W,ca as X,Cs as Y,Hs as Z,be as _,us as a,m1 as a$,ys as a0,$s as a1,zs as a2,ms as a3,Ss as a4,tt as a5,Oe as a6,h1 as a7,d1 as a8,p1 as a9,de as aA,_e as aB,er as aC,De as aD,Pt as aE,mr as aF,I as aG,Ur as aH,P as aI,or as aJ,Ge as aK,o1 as aL,Gs as aM,Xs as aN,n1 as aO,ks as aP,r1 as aQ,Rs as aR,s1 as aS,i1 as aT,v1 as aU,ps as aV,Ps as aW,Ls as aX,Fs as aY,Ks as aZ,Ti as a_,Z as aa,br as ab,xr as ac,he as ad,ue as ae,V as af,Gt as ag,bi as ah,fs as ai,Ds as aj,t1 as ak,Ms as al,f1 as am,Qs as an,e1 as ao,fa as ap,Si as aq,_1 as ar,l1 as as,qs as at,_s as au,ds as av,ls as aw,cs as ax,is as ay,b1 as az,st as b,Is as b0,Vs as b1,Ws as b2,Js as b3,a1 as b4,Zs as b5,As as c,ot as d,at as e,Cn as f,Ln as g,Os as h,Qe as i,mi as j,os as k,Ns as l,Es as m,gs as n,ws as o,Ys as p,ht as q,x1 as r,Bs as s,bs as t,ee as u,Ts as v,lt as w,Us as x,js as y,c1 as z}; +import{a0 as Y,o as Ne,Z as gt,w as J,r as z,a3 as mt,a4 as bt,u as _,D as wt,a5 as ce,m as yt,a6 as xt,a as c,f,p as l,a7 as we,a8 as $t,N as zt,c as w,E as H,v as Re,x as ie,a9 as Ct,d as fe,g as E,z as Mt,G as St,aa as Ht,F as kt,b as D,e as ye,q as xe,n as U,k as $e,i as Bt,W as At}from"./index.43b3cbf5.js";var Ot=typeof global=="object"&&global&&global.Object===Object&&global,Pt=Ot,Tt=typeof self=="object"&&self&&self.Object===Object&&self,Vt=Pt||Tt||Function("return this")(),ue=Vt,It=ue.Symbol,V=It,je=Object.prototype,Lt=je.hasOwnProperty,Ft=je.toString,F=V?V.toStringTag:void 0;function Et(e){var t=Lt.call(e,F),r=e[F];try{e[F]=void 0;var a=!0}catch{}var n=Ft.call(e);return a&&(t?e[F]=r:delete e[F]),n}var Nt=Object.prototype,Rt=Nt.toString;function jt(e){return Rt.call(e)}var Dt="[object Null]",qt="[object Undefined]",ze=V?V.toStringTag:void 0;function De(e){return e==null?e===void 0?qt:Dt:ze&&ze in Object(e)?Et(e):jt(e)}function Gt(e){return e!=null&&typeof e=="object"}var Ut="[object Symbol]";function de(e){return typeof e=="symbol"||Gt(e)&&De(e)==Ut}function Zt(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r-1&&e%1==0&&e-1}function qr(e,t){var r=this.__data__,a=X(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function I(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ttypeof e!="undefined",ss=e=>typeof e=="boolean",_a=e=>typeof e=="number",ls=e=>typeof e=="string",cs=()=>{};ve&&((ke=window==null?void 0:window.navigator)==null?void 0:ke.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ge(e,t){function r(...a){e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})}return r}const Ke=e=>e();function pa(e,t={}){let r,a;return o=>{const s=_(e),i=_(t.maxWait);if(r&&clearTimeout(r),s<=0||i!==void 0&&i<=0)return a&&(clearTimeout(a),a=null),o();i&&!a&&(a=setTimeout(()=>{r&&clearTimeout(r),a=null,o()},i)),r=setTimeout(()=>{a&&clearTimeout(a),a=null,o()},s)}}function va(e,t=!0,r=!0){let a=0,n,o=!0;const s=()=>{n&&(clearTimeout(n),n=void 0)};return d=>{const v=_(e),m=Date.now()-a;if(s(),v<=0)return a=Date.now(),d();m>v&&(r||!o)?(a=Date.now(),d()):t&&(n=setTimeout(()=>{a=Date.now(),o=!0,s(),d()},v)),!r&&!n&&(n=setTimeout(()=>o=!0,v)),o=!1}}function ga(e=Ke){const t=z(!0);function r(){t.value=!1}function a(){t.value=!0}return{isActive:t,pause:r,resume:a,eventFilter:(...o)=>{t.value&&e(...o)}}}function ma(e,t=200,r={}){return ge(pa(t,r),e)}function fs(e,t=200,r={}){if(t<=0)return e;const a=z(e.value),n=ma(()=>{a.value=e.value},t,r);return J(e,()=>n()),a}function us(e,t=200,r=!0,a=!0){return ge(va(t,r,a),e)}function ds(e,t=!0){Y()?Ne(e):t?e():gt(e)}function hs(e,t,r={}){const{immediate:a=!0}=r,n=z(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function i(){n.value=!1,s()}function d(...v){s(),n.value=!0,o=setTimeout(()=>{n.value=!1,o=null,e(...v)},_(t))}return a&&(n.value=!0,ve&&d()),ha(i),{isPending:n,start:d,stop:i}}var Be=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,ya=(e,t)=>{var r={};for(var a in e)ba.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Be)for(var a of Be(e))t.indexOf(a)<0&&wa.call(e,a)&&(r[a]=e[a]);return r};function xa(e,t,r={}){const a=r,{eventFilter:n=Ke}=a,o=ya(a,["eventFilter"]);return J(e,ge(n,t),o)}var $a=Object.defineProperty,za=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ae=(e,t,r)=>t in e?$a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ma=(e,t)=>{for(var r in t||(t={}))We.call(t,r)&&Ae(e,r,t[r]);if(K)for(var r of K(t))Ye.call(t,r)&&Ae(e,r,t[r]);return e},Sa=(e,t)=>za(e,Ca(t)),Ha=(e,t)=>{var r={};for(var a in e)We.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&K)for(var a of K(e))t.indexOf(a)<0&&Ye.call(e,a)&&(r[a]=e[a]);return r};function _s(e,t,r={}){const a=r,{eventFilter:n}=a,o=Ha(a,["eventFilter"]),{eventFilter:s,pause:i,resume:d,isActive:v}=ga(n);return{stop:xa(e,t,Sa(Ma({},o),{eventFilter:s})),pause:i,resume:d,isActive:v}}const ka=e=>e===void 0,ps=e=>!e&&e!==0||wt(e)&&e.length===0||ce(e)&&!Object.keys(e).length,vs=e=>typeof Element=="undefined"?!1:e instanceof Element,Oe=e=>Object.keys(e),gs=e=>Object.entries(e),ms=(e,t,r)=>({get value(){return ca(e,t,r)},set value(a){da(e,t,a)}});class Ba extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function bs(e,t){throw new Ba(`[${e}] ${t}`)}function ws(e,t){}const Je=(e="")=>e.split(" ").filter(t=>!!t.trim()),ys=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},xs=(e,t)=>{!e||!t.trim()||e.classList.add(...Je(t))},$s=(e,t)=>{!e||!t.trim()||e.classList.remove(...Je(t))},zs=(e,t)=>{var r;if(!ve||!e||!t)return"";let a=xt(t);a==="float"&&(a="cssFloat");try{const n=e.style[a];if(n)return n;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[a]:""}catch{return e.style[a]}};function Aa(e,t="px"){if(!e)return"";if(yt(e))return e;if(_a(e))return`${e}${t}`}/*! Element Plus Icons Vue v2.0.6 */var u=(e,t)=>{let r=e.__vccOpts||e;for(let[a,n]of t)r[a]=n;return r},Oa={name:"ArrowDown"},Pa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ta=l("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Va=[Ta];function Ia(e,t,r,a,n,o){return c(),f("svg",Pa,Va)}var Cs=u(Oa,[["render",Ia],["__file","arrow-down.vue"]]),La={name:"ArrowLeft"},Fa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ea=l("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),Na=[Ea];function Ra(e,t,r,a,n,o){return c(),f("svg",Fa,Na)}var Ms=u(La,[["render",Ra],["__file","arrow-left.vue"]]),ja={name:"ArrowRight"},Da={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qa=l("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),Ga=[qa];function Ua(e,t,r,a,n,o){return c(),f("svg",Da,Ga)}var Ss=u(ja,[["render",Ua],["__file","arrow-right.vue"]]),Za={name:"ArrowUp"},Ka={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wa=l("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),Ya=[Wa];function Ja(e,t,r,a,n,o){return c(),f("svg",Ka,Ya)}var Hs=u(Za,[["render",Ja],["__file","arrow-up.vue"]]),Xa={name:"Avatar"},Qa={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},en=l("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),tn=[en];function rn(e,t,r,a,n,o){return c(),f("svg",Qa,tn)}var ks=u(Xa,[["render",rn],["__file","avatar.vue"]]),an={name:"Calendar"},nn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},on=l("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),sn=[on];function ln(e,t,r,a,n,o){return c(),f("svg",nn,sn)}var Bs=u(an,[["render",ln],["__file","calendar.vue"]]),cn={name:"CaretTop"},fn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},un=l("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),dn=[un];function hn(e,t,r,a,n,o){return c(),f("svg",fn,dn)}var As=u(cn,[["render",hn],["__file","caret-top.vue"]]),_n={name:"Check"},pn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vn=l("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),gn=[vn];function mn(e,t,r,a,n,o){return c(),f("svg",pn,gn)}var Os=u(_n,[["render",mn],["__file","check.vue"]]),bn={name:"CircleCheck"},wn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),xn=l("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),$n=[yn,xn];function zn(e,t,r,a,n,o){return c(),f("svg",wn,$n)}var Cn=u(bn,[["render",zn],["__file","circle-check.vue"]]),Mn={name:"CircleCloseFilled"},Sn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Hn=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),kn=[Hn];function Bn(e,t,r,a,n,o){return c(),f("svg",Sn,kn)}var Xe=u(Mn,[["render",Bn],["__file","circle-close-filled.vue"]]),An={name:"CircleClose"},On={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Pn=l("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Tn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Vn=[Pn,Tn];function In(e,t,r,a,n,o){return c(),f("svg",On,Vn)}var Ln=u(An,[["render",In],["__file","circle-close.vue"]]),Fn={name:"Clock"},En={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nn=l("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Rn=l("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),jn=l("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Dn=[Nn,Rn,jn];function qn(e,t,r,a,n,o){return c(),f("svg",En,Dn)}var Ps=u(Fn,[["render",qn],["__file","clock.vue"]]),Gn={name:"Close"},Un={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zn=l("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Kn=[Zn];function Wn(e,t,r,a,n,o){return c(),f("svg",Un,Kn)}var Qe=u(Gn,[["render",Wn],["__file","close.vue"]]),Yn={name:"Coin"},Jn={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xn=l("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),Qn=l("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),e0=l("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),t0=[Xn,Qn,e0];function r0(e,t,r,a,n,o){return c(),f("svg",Jn,t0)}var Ts=u(Yn,[["render",r0],["__file","coin.vue"]]),a0={name:"Collection"},n0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o0=l("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),i0=l("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),s0=[o0,i0];function l0(e,t,r,a,n,o){return c(),f("svg",n0,s0)}var Vs=u(a0,[["render",l0],["__file","collection.vue"]]),c0={name:"CopyDocument"},f0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},u0=l("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),d0=l("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),h0=[u0,d0];function _0(e,t,r,a,n,o){return c(),f("svg",f0,h0)}var Is=u(c0,[["render",_0],["__file","copy-document.vue"]]),p0={name:"DArrowLeft"},v0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g0=l("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),m0=[g0];function b0(e,t,r,a,n,o){return c(),f("svg",v0,m0)}var Ls=u(p0,[["render",b0],["__file","d-arrow-left.vue"]]),w0={name:"DArrowRight"},y0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x0=l("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),$0=[x0];function z0(e,t,r,a,n,o){return c(),f("svg",y0,$0)}var Fs=u(w0,[["render",z0],["__file","d-arrow-right.vue"]]),C0={name:"Delete"},M0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},S0=l("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),H0=[S0];function k0(e,t,r,a,n,o){return c(),f("svg",M0,H0)}var Es=u(C0,[["render",k0],["__file","delete.vue"]]),B0={name:"Document"},A0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},O0=l("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),P0=[O0];function T0(e,t,r,a,n,o){return c(),f("svg",A0,P0)}var Ns=u(B0,[["render",T0],["__file","document.vue"]]),V0={name:"Edit"},I0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},L0=l("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),F0=l("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),E0=[L0,F0];function N0(e,t,r,a,n,o){return c(),f("svg",I0,E0)}var Rs=u(V0,[["render",N0],["__file","edit.vue"]]),R0={name:"FolderOpened"},j0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D0=l("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),q0=[D0];function G0(e,t,r,a,n,o){return c(),f("svg",j0,q0)}var js=u(R0,[["render",G0],["__file","folder-opened.vue"]]),U0={name:"FullScreen"},Z0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K0=l("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),W0=[K0];function Y0(e,t,r,a,n,o){return c(),f("svg",Z0,W0)}var Ds=u(U0,[["render",Y0],["__file","full-screen.vue"]]),J0={name:"Hide"},X0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q0=l("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),eo=l("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),to=[Q0,eo];function ro(e,t,r,a,n,o){return c(),f("svg",X0,to)}var qs=u(J0,[["render",ro],["__file","hide.vue"]]),ao={name:"InfoFilled"},no={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oo=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),io=[oo];function so(e,t,r,a,n,o){return c(),f("svg",no,io)}var et=u(ao,[["render",so],["__file","info-filled.vue"]]),lo={name:"Key"},co={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fo=l("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),uo=[fo];function ho(e,t,r,a,n,o){return c(),f("svg",co,uo)}var Gs=u(lo,[["render",ho],["__file","key.vue"]]),_o={name:"Link"},po={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vo=l("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),go=[vo];function mo(e,t,r,a,n,o){return c(),f("svg",po,go)}var Us=u(_o,[["render",mo],["__file","link.vue"]]),bo={name:"Loading"},wo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yo=l("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),xo=[yo];function $o(e,t,r,a,n,o){return c(),f("svg",wo,xo)}var tt=u(bo,[["render",$o],["__file","loading.vue"]]),zo={name:"Minus"},Co={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Mo=l("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),So=[Mo];function Ho(e,t,r,a,n,o){return c(),f("svg",Co,So)}var Zs=u(zo,[["render",Ho],["__file","minus.vue"]]),ko={name:"MoreFilled"},Bo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ao=l("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),Oo=[Ao];function Po(e,t,r,a,n,o){return c(),f("svg",Bo,Oo)}var Ks=u(ko,[["render",Po],["__file","more-filled.vue"]]),To={name:"Notebook"},Vo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Io=l("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),Lo=l("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),Fo=[Io,Lo];function Eo(e,t,r,a,n,o){return c(),f("svg",Vo,Fo)}var Ws=u(To,[["render",Eo],["__file","notebook.vue"]]),No={name:"PictureFilled"},Ro={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jo=l("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Do=[jo];function qo(e,t,r,a,n,o){return c(),f("svg",Ro,Do)}var Ys=u(No,[["render",qo],["__file","picture-filled.vue"]]),Go={name:"Plus"},Uo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zo=l("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Ko=[Zo];function Wo(e,t,r,a,n,o){return c(),f("svg",Uo,Ko)}var Js=u(Go,[["render",Wo],["__file","plus.vue"]]),Yo={name:"QuestionFilled"},Jo={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xo=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Qo=[Xo];function e2(e,t,r,a,n,o){return c(),f("svg",Jo,Qo)}var Xs=u(Yo,[["render",e2],["__file","question-filled.vue"]]),t2={name:"RefreshLeft"},r2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},a2=l("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),n2=[a2];function o2(e,t,r,a,n,o){return c(),f("svg",r2,n2)}var Qs=u(t2,[["render",o2],["__file","refresh-left.vue"]]),i2={name:"RefreshRight"},s2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l2=l("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),c2=[l2];function f2(e,t,r,a,n,o){return c(),f("svg",s2,c2)}var e1=u(i2,[["render",f2],["__file","refresh-right.vue"]]),u2={name:"ScaleToOriginal"},d2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h2=l("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_2=[h2];function p2(e,t,r,a,n,o){return c(),f("svg",d2,_2)}var t1=u(u2,[["render",p2],["__file","scale-to-original.vue"]]),v2={name:"Search"},g2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m2=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),b2=[m2];function w2(e,t,r,a,n,o){return c(),f("svg",g2,b2)}var r1=u(v2,[["render",w2],["__file","search.vue"]]),y2={name:"Setting"},x2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$2=l("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),z2=[$2];function C2(e,t,r,a,n,o){return c(),f("svg",x2,z2)}var a1=u(y2,[["render",C2],["__file","setting.vue"]]),M2={name:"SuccessFilled"},S2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},H2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),k2=[H2];function B2(e,t,r,a,n,o){return c(),f("svg",S2,k2)}var rt=u(M2,[["render",B2],["__file","success-filled.vue"]]),A2={name:"Tickets"},O2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P2=l("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),T2=[P2];function V2(e,t,r,a,n,o){return c(),f("svg",O2,T2)}var n1=u(A2,[["render",V2],["__file","tickets.vue"]]),I2={name:"User"},L2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F2=l("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),E2=[F2];function N2(e,t,r,a,n,o){return c(),f("svg",L2,E2)}var o1=u(I2,[["render",N2],["__file","user.vue"]]),R2={name:"VideoPause"},j2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),q2=[D2];function G2(e,t,r,a,n,o){return c(),f("svg",j2,q2)}var i1=u(R2,[["render",G2],["__file","video-pause.vue"]]),U2={name:"VideoPlay"},Z2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K2=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),W2=[K2];function Y2(e,t,r,a,n,o){return c(),f("svg",Z2,W2)}var s1=u(U2,[["render",Y2],["__file","video-play.vue"]]),J2={name:"View"},X2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q2=l("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),ei=[Q2];function ti(e,t,r,a,n,o){return c(),f("svg",X2,ei)}var l1=u(J2,[["render",ti],["__file","view.vue"]]),ri={name:"WarningFilled"},ai={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ni=l("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),oi=[ni];function ii(e,t,r,a,n,o){return c(),f("svg",ai,oi)}var at=u(ri,[["render",ii],["__file","warning-filled.vue"]]),si={name:"ZoomIn"},li={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ci=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),fi=[ci];function ui(e,t,r,a,n,o){return c(),f("svg",li,fi)}var c1=u(si,[["render",ui],["__file","zoom-in.vue"]]),di={name:"ZoomOut"},hi={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_i=l("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),pi=[_i];function vi(e,t,r,a,n,o){return c(),f("svg",hi,pi)}var f1=u(di,[["render",vi],["__file","zoom-out.vue"]]);const nt="__epPropKey",ot=e=>e,gi=e=>ce(e)&&!!e[nt],it=(e,t)=>{if(!ce(e)||gi(e))return e;const{values:r,required:a,default:n,type:o,validator:s}=e,d={type:o,required:!!a,validator:r||s?v=>{let m=!1,x=[];if(r&&(x=Array.from(r),we(e,"default")&&x.push(n),m||(m=x.includes(v))),s&&(m||(m=s(v))),!m&&x.length>0){const L=[...new Set(x)].map(j=>JSON.stringify(j)).join(", ");$t(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${L}], got value ${JSON.stringify(v)}.`)}return m}:void 0,[nt]:!0};return we(e,"default")&&(d.default=n),d},st=e=>fa(Object.entries(e).map(([t,r])=>[t,it(r,t)])),Pe=ot([String,Object,Function]),u1={Close:Qe},d1={Close:Qe,SuccessFilled:rt,InfoFilled:et,WarningFilled:at,CircleCloseFilled:Xe},h1={success:rt,warning:at,error:Xe,info:et},_1={validating:tt,success:Cn,error:Ln},lt=(e,t)=>{if(e.install=r=>{for(const a of[e,...Object.values(t!=null?t:{})])r.component(a.name,a)},t)for(const[r,a]of Object.entries(t))e[r]=a;return e},p1=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),v1=(e,t)=>(e.install=r=>{r.directive(t,e)},e),mi=e=>(e.install=zt,e),g1={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},bi=["","default","small","large"],m1={large:40,default:32,small:24},ct=Symbol("buttonGroupContextKey"),ft=Symbol(),me=Symbol("formContextKey"),ut=Symbol("formItemContextKey"),dt=e=>{const t=Y();return w(()=>{var r,a;return(a=((r=t.proxy)==null?void 0:r.$props)[e])!=null?a:void 0})},W=z();function R(e,t=void 0){const r=Y()?H(ft,W):W;return e?w(()=>{var a,n;return(n=(a=r.value)==null?void 0:a[e])!=null?n:t}):r}const b1=(e,t,r=!1)=>{var a;const n=!!Y(),o=n?R():void 0,s=(a=t==null?void 0:t.provide)!=null?a:n?Re:void 0;if(!s)return;const i=w(()=>{const d=_(e);return o!=null&&o.value?wi(o.value,d):d});return s(ft,i),(r||!W.value)&&(W.value=i.value),i},wi=(e,t)=>{var r;const a=[...new Set([...Oe(e),...Oe(t)])],n={};for(const o of a)n[o]=(r=t[o])!=null?r:e[o];return n},yi=it({type:String,values:bi,required:!1}),xi=(e,t={})=>{const r=z(void 0),a=t.prop?r:dt("size"),n=t.global?r:R("size"),o=t.form?{size:void 0}:H(me,void 0),s=t.formItem?{size:void 0}:H(ut,void 0);return w(()=>a.value||_(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||n.value||"")},ht=e=>{const t=dt("disabled"),r=H(me,void 0);return w(()=>t.value||_(e)||(r==null?void 0:r.disabled)||!1)},$i=({from:e,replacement:t,scope:r,version:a,ref:n,type:o="API"},s)=>{J(()=>_(s),i=>{},{immediate:!0})},zi={prefix:Math.floor(Math.random()*1e4),current:0},Ci=Symbol("elIdInjection"),Mi=e=>{const t=H(Ci,zi);return w(()=>_(e)||`el-id-${t.prefix}-${t.current++}`)},Si=()=>{const e=H(me,void 0),t=H(ut,void 0);return{form:e,formItem:t}},w1=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:a})=>{r||(r=z(!1)),a||(a=z(!1));const n=z();let o;const s=w(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Ne(()=>{o=J([ie(e,"id"),r],([i,d])=>{const v=i!=null?i:d?void 0:Mi().value;v!==n.value&&(t!=null&&t.removeInputId&&(n.value&&t.removeInputId(n.value),!(a!=null&&a.value)&&!d&&v&&t.addInputId(v)),n.value=v)},{immediate:!0})}),Ct(()=>{o&&o(),t!=null&&t.removeInputId&&n.value&&t.removeInputId(n.value)}),{isLabeledByFormItem:s,inputId:n}},Hi="el",ki="is-",B=(e,t,r,a,n)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),a&&(o+=`__${a}`),n&&(o+=`--${n}`),o},ee=e=>{const t=R("namespace"),r=w(()=>t.value||Hi);return{namespace:r,b:(p="")=>B(_(r),e,p,"",""),e:p=>p?B(_(r),e,"",p,""):"",m:p=>p?B(_(r),e,"","",p):"",be:(p,g)=>p&&g?B(_(r),e,p,g,""):"",em:(p,g)=>p&&g?B(_(r),e,"",p,g):"",bm:(p,g)=>p&&g?B(_(r),e,p,"",g):"",bem:(p,g,h)=>p&&g&&h?B(_(r),e,p,g,h):"",is:(p,...g)=>{const h=g.length>=1?g[0]:!0;return p&&h?`${ki}${p}`:""},cssVar:p=>{const g={};for(const h in p)g[`--${r.value}-${h}`]=p[h];return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const h in p)g[`--${r.value}-${e}-${h}`]=p[h];return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Te=z(0),y1=()=>{const e=R("zIndex",2e3),t=w(()=>e.value+Te.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Te.value++,t.value)}};var be=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r};const Bi=st({size:{type:ot([Number,String])},color:{type:String}}),Ai={name:"ElIcon",inheritAttrs:!1},Oi=fe({...Ai,props:Bi,setup(e){const t=e,r=ee("icon"),a=w(()=>!t.size&&!t.color?{}:{fontSize:ka(t.size)?void 0:Aa(t.size),"--color":t.color});return(n,o)=>(c(),f("i",Mt({class:_(r).b(),style:_(a)},n.$attrs),[E(n.$slots,"default")],16))}});var Pi=be(Oi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ve=lt(Pi),Ti=["default","primary","success","warning","info","danger","text",""],Vi=["button","submit","reset"],se=st({size:yi,disabled:Boolean,type:{type:String,values:Ti,default:""},icon:{type:Pe,default:""},nativeType:{type:String,values:Vi,default:"button"},loading:Boolean,loadingIcon:{type:Pe,default:()=>tt},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Ii={click:e=>e instanceof MouseEvent};function b(e,t){Li(e)&&(e="100%");var r=Fi(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function q(e){return Math.min(1,Math.max(0,e))}function Li(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Fi(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _t(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e){return e<=1?"".concat(Number(e)*100,"%"):e}function A(e){return e.length===1?"0"+e:String(e)}function Ei(e,t,r){return{r:b(e,255)*255,g:b(t,255)*255,b:b(r,255)*255}}function Ie(e,t,r){e=b(e,255),t=b(t,255),r=b(r,255);var a=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=0,i=(a+n)/2;if(a===n)s=0,o=0;else{var d=a-n;switch(s=i>.5?d/(2-a-n):d/(a+n),a){case e:o=(t-r)/d+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ni(e,t,r){var a,n,o;if(e=b(e,360),t=b(t,100),r=b(r,100),t===0)n=r,o=r,a=r;else{var s=r<.5?r*(1+t):r+t-r*t,i=2*r-s;a=ae(i,s,e+1/3),n=ae(i,s,e),o=ae(i,s,e-1/3)}return{r:a*255,g:n*255,b:o*255}}function Le(e,t,r){e=b(e,255),t=b(t,255),r=b(r,255);var a=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=a,i=a-n,d=a===0?0:i/a;if(a===n)o=0;else{switch(a){case e:o=(t-r)/i+(t>16,g:(e&65280)>>8,b:e&255}}var le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Gi(e){var t={r:0,g:0,b:0},r=1,a=null,n=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Ki(e)),typeof e=="object"&&(C(e.r)&&C(e.g)&&C(e.b)?(t=Ei(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):C(e.h)&&C(e.s)&&C(e.v)?(a=G(e.s),n=G(e.v),t=Ri(e.h,a,n),s=!0,i="hsv"):C(e.h)&&C(e.s)&&C(e.l)&&(a=G(e.s),o=G(e.l),t=Ni(e.h,a,o),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=_t(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Ui="[-\\+]?\\d+%?",Zi="[-\\+]?\\d*\\.\\d+%?",S="(?:".concat(Zi,")|(?:").concat(Ui,")"),ne="[\\s|\\(]+(".concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")\\s*\\)?"),oe="[\\s|\\(]+(".concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")[,|\\s]+(").concat(S,")\\s*\\)?"),$={CSS_UNIT:new RegExp(S),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ki(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(le[e])e=le[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=$.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=$.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=$.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=$.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$.hex8.exec(e),r?{r:y(r[1]),g:y(r[2]),b:y(r[3]),a:Ee(r[4]),format:t?"name":"hex8"}:(r=$.hex6.exec(e),r?{r:y(r[1]),g:y(r[2]),b:y(r[3]),format:t?"name":"hex"}:(r=$.hex4.exec(e),r?{r:y(r[1]+r[1]),g:y(r[2]+r[2]),b:y(r[3]+r[3]),a:Ee(r[4]+r[4]),format:t?"name":"hex8"}:(r=$.hex3.exec(e),r?{r:y(r[1]+r[1]),g:y(r[2]+r[2]),b:y(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function C(e){return Boolean($.CSS_UNIT.exec(String(e)))}var Wi=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=qi(t)),this.originalInput=t;var n=Gi(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=r.format)!==null&&a!==void 0?a:n.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,a,n,o=t.r/255,s=t.g/255,i=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),.2126*r+.7152*a+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_t(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Le(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Le(this.r,this.g,this.b),r=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(r,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Ie(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Ie(this.r,this.g,this.b),r=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(r,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fe(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ji(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(a,")"):"rgba(".concat(t,", ").concat(r,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(b(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(b(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Fe(this.r,this.g,this.b,!1),r=0,a=Object.entries(le);r=0,o=!r&&n&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=q(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=q(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=q(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=q(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),a=(r.h+t)%360;return r.h=a<0?360+a:a,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var a=this.toRgb(),n=new e(t).toRgb(),o=r/100,s={r:(n.r-a.r)*o+a.r,g:(n.g-a.g)*o+a.g,b:(n.b-a.b)*o+a.b,a:(n.a-a.a)*o+a.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var a=this.toHsl(),n=360/r,o=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,o.push(new e(a));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),a=r.h,n=r.s,o=r.v,s=[],i=1/t;t--;)s.push(new e({h:a,s:n,v:o})),o=(o+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),a=new e(t).toRgb();return new e({r:a.r+(r.r-a.r)*r.a,g:a.g+(r.g-a.g)*r.a,b:a.b+(r.b-a.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),a=r.h,n=[this],o=360/t,s=1;s{let a={};const n=e.color;if(n){const o=new Wi(n),s=e.dark?o.tint(20).toString():M(o,20);if(e.plain)a=r.cssVarBlock({"bg-color":e.dark?M(o,90):o.tint(90).toString(),"text-color":n,"border-color":e.dark?M(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":n,"hover-border-color":n,"active-bg-color":s,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[r.cssVarBlockName("disabled-bg-color")]=e.dark?M(o,90):o.tint(90).toString(),a[r.cssVarBlockName("disabled-text-color")]=e.dark?M(o,50):o.tint(50).toString(),a[r.cssVarBlockName("disabled-border-color")]=e.dark?M(o,80):o.tint(80).toString());else{const i=e.dark?M(o,30):o.tint(30).toString(),d=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(a=r.cssVarBlock({"bg-color":n,"text-color":d,"border-color":n,"hover-bg-color":i,"hover-text-color":d,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const v=e.dark?M(o,50):o.tint(50).toString();a[r.cssVarBlockName("disabled-bg-color")]=v,a[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,a[r.cssVarBlockName("disabled-border-color")]=v}}}return a})}const Ji=["aria-disabled","disabled","autofocus","type"],Xi={name:"ElButton"},Qi=fe({...Xi,props:se,emits:Ii,setup(e,{expose:t,emit:r}){const a=e,n=St();$i({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},w(()=>a.type==="text"));const o=H(ct,void 0),s=R("button"),i=ee("button"),{form:d}=Si(),v=xi(w(()=>o==null?void 0:o.size)),m=ht(),x=z(),L=w(()=>a.type||(o==null?void 0:o.type)||""),j=w(()=>{var h,k,T;return(T=(k=a.autoInsertSpace)!=null?k:(h=s.value)==null?void 0:h.autoInsertSpace)!=null?T:!1}),te=w(()=>{var h;const k=(h=n.default)==null?void 0:h.call(n);if(j.value&&(k==null?void 0:k.length)===1){const T=k[0];if((T==null?void 0:T.type)===Ht){const vt=T.children;return/^\p{Unified_Ideograph}{2}$/u.test(vt.trim())}}return!1}),p=Yi(a),g=h=>{a.nativeType==="reset"&&(d==null||d.resetFields()),r("click",h)};return t({ref:x,size:v,type:L,disabled:m,shouldAddSpace:te}),(h,k)=>(c(),f("button",{ref_key:"_ref",ref:x,class:U([_(i).b(),_(i).m(_(L)),_(i).m(_(v)),_(i).is("disabled",_(m)),_(i).is("loading",h.loading),_(i).is("plain",h.plain),_(i).is("round",h.round),_(i).is("circle",h.circle),_(i).is("text",h.text),_(i).is("link",h.link),_(i).is("has-bg",h.bg)]),"aria-disabled":_(m)||h.loading,disabled:_(m)||h.loading,autofocus:h.autofocus,type:h.nativeType,style:Bt(_(p)),onClick:g},[h.loading?(c(),f(kt,{key:0},[h.$slots.loading?E(h.$slots,"loading",{key:0}):(c(),D(_(Ve),{key:1,class:U(_(i).is("loading"))},{default:ye(()=>[(c(),D(xe(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(c(),D(_(Ve),{key:1},{default:ye(()=>[h.icon?(c(),D(xe(h.icon),{key:0})):E(h.$slots,"icon",{key:1})]),_:3})):$e("v-if",!0),h.$slots.default?(c(),f("span",{key:2,class:U({[_(i).em("text","expand")]:_(te)})},[E(h.$slots,"default")],2)):$e("v-if",!0)],14,Ji))}});var es=be(Qi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ts={size:se.size,type:se.type},rs={name:"ElButtonGroup"},as=fe({...rs,props:ts,setup(e){const t=e;Re(ct,At({size:ie(t,"size"),type:ie(t,"type")}));const r=ee("button");return(a,n)=>(c(),f("div",{class:U(`${_(r).b("group")}`)},[E(a.$slots,"default")],2))}});var pt=be(as,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const x1=lt(es,{ButtonGroup:pt});mi(pt);export{xs as $,it as A,ve as B,ss as C,ha as D,Ve as E,vs as F,ut as G,y1 as H,g1 as I,ka as J,Mi as K,u1 as L,$i as M,Pe as N,R as O,Aa as P,Hi as Q,hs as R,yi as S,me as T,w1 as U,_a as V,xi as W,ca as X,Cs as Y,Hs as Z,be as _,us as a,Fs as a$,ys as a0,$s as a1,zs as a2,ms as a3,Ss as a4,tt as a5,Oe as a6,h1 as a7,d1 as a8,p1 as a9,de as aA,_e as aB,er as aC,De as aD,Pt as aE,mr as aF,I as aG,Ur as aH,P as aI,or as aJ,Ge as aK,o1 as aL,Gs as aM,Xs as aN,n1 as aO,ks as aP,Zs as aQ,Js as aR,r1 as aS,Rs as aT,s1 as aU,i1 as aV,Ks as aW,v1 as aX,ps as aY,Ps as aZ,Ls as a_,Z as aa,br as ab,xr as ac,he as ad,ue as ae,V as af,Gt as ag,bi as ah,fs as ai,Ds as aj,t1 as ak,Ms as al,f1 as am,Qs as an,e1 as ao,fa as ap,Si as aq,_1 as ar,l1 as as,qs as at,_s as au,ds as av,ls as aw,cs as ax,is as ay,b1 as az,st as b,Ti as b0,m1 as b1,Is as b2,Vs as b3,Ws as b4,a1 as b5,As as c,ot as d,at as e,Cn as f,Ln as g,Os as h,Qe as i,mi as j,os as k,Ns as l,Es as m,gs as n,ws as o,Ys as p,ht as q,x1 as r,Bs as s,bs as t,ee as u,Ts as v,lt as w,Us as x,js as y,c1 as z}; diff --git a/src/main/resources/static/assets/basic-setting.06f7761c.js b/src/main/resources/static/assets/basic-setting.31261c22.js similarity index 88% rename from src/main/resources/static/assets/basic-setting.06f7761c.js rename to src/main/resources/static/assets/basic-setting.31261c22.js index a750191..13a4a08 100644 --- a/src/main/resources/static/assets/basic-setting.06f7761c.js +++ b/src/main/resources/static/assets/basic-setting.31261c22.js @@ -1 +1 @@ -import{r as k}from"./base.d698891e.js";/* empty css */import{Z as y,a as h}from"./ZFormItem.7a4b4758.js";/* empty css */import{E as v}from"./radio.427cda7a.js";import{E as L}from"./switch.2393edfd.js";/* empty css */import{a as f,f as E,u as e,Q as m,b as z,e as l,p as T,h as a,R as u,I as U,k as g,J as i}from"./index.552205f5.js";import{u as x}from"./useLinkSetting.49293b3b.js";import{E as B}from"./index.4ab44dc8.js";import{v as R}from"./directive.e250a256.js";import"./index.c92ded65.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./event.776e7e11.js";import"./validator.6f3b33db.js";import"./admin-setting.158855e4.js";import"./request.3708b2c4.js";const S={class:"zfile-admin-down-link-body"},A=i(" \u76F4\u94FE\u8BBE\u7F6E "),C=i(" \u8FD9\u91CC\u53EF\u4EE5\u914D\u7F6E\u76F4\u94FE\u76F8\u5173\u8BBE\u7F6E "),D=i(" \u76F4\u94FE\u5730\u5740\u524D\u7F00, \u5982 http(s)://ip:port/${\u76F4\u94FE\u524D\u7F00}/path/filename "),N=i(" \u4EC5\u63A7\u5236\u662F\u5426\u663E\u793A\u76F4/\u77ED\u94FE\u751F\u6210\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u4F7F\u7528\u5141\u8BB8\u4F7F\u7528\u76F4/\u77ED\u94FE\u4E0B\u8F7D "),P=i(" \u662F\u5426\u8BB0\u5F55\u76F4\u94FE\u4E0B\u8F7D\u65E5\u5FD7 "),I=i(" \u63A7\u5236\u662F\u5426\u751F\u6210\u76F4\u94FE\u65F6\u663E\u793A\u77ED\u94FE\u8DEF\u5F84\u53CA\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u77ED\u94FE\u8FDB\u884C\u4E0B\u8F7D "),Z=i(" \u63A7\u5236\u662F\u5426\u751F\u6210\u76F4\u94FE\u65F6\u663E\u793A\u76F4\u94FE\u8DEF\u5F84\u53CA\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u76F4\u94FE\u8FDB\u884C\u4E0B\u8F7D "),F=i("\u4E0D\u542F\u7528 Referer \u9632\u76D7\u94FE"),J=i("\u542F\u7528\u767D\u540D\u5355"),Q=i("\u542F\u7528\u9ED1\u540D\u5355"),$=i(" \u9632\u76D7\u94FE\u652F\u6301\u8BBF\u95EE\u6587\u4EF6\u76F4\u94FE\u6216\u77ED\u94FE\u65F6\u6821\u9A8C\uFF0C\u5982\u7528\u6237\u76F4\u63A5\u8BBF\u95EE\u76F4\u94FE\u8DF3\u8F6C\u540E\u7684\u5B58\u50A8\u6E90\u539F\u59CB\u94FE\u63A5\uFF0C\u65E0\u6CD5\u8FDB\u884C\u6821\u9A8C\u548C\u62E6\u622A\u3002 "),j=i("\u5141\u8BB8 Referer \u4E3A\u7A7A"),q=i("\u7981\u6B62 Referer \u4E3A\u7A7A"),G=i(" \u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D\uFF0C\u652F\u6301 * \u901A\u914D\u7B26\uFF0C\u5982\u767D\u540D\u5355 *zfile.vip \u5C06\u53EA\u5141\u8BB8 zfile.vip\u3001www.zfile.vip\u3001demo.zfile.vip \u7B49\u7F51\u7AD9\u8BBF\u95EE\u3002 "),H=i(" \u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D\uFF0C\u652F\u6301 * \u901A\u914D\u7B26\uFF0C\u5982\u9ED1\u540D\u5355 *zfile.vip \u5C06\u7981\u6B62\u6240\u6709\u5982 zfile.vip\u3001www.zfile.vip\u3001demo.zfile.vip \u7B49\u7F51\u7AD9\u8BBF\u95EE\u3002 "),K={class:"dialog-footer"},M=i("\u4FDD\u5B58"),Ve={__name:"basic-setting",setup(O){const{data:o,saveData:_,saveLoading:V}=x();return(W,t)=>{const p=B,d=y,s=L,n=v,w=k,b=h,c=R;return f(),E("div",S,[e(o)?m((f(),z(b,{key:0,model:e(o),"element-loading-text":"\u4FDD\u5B58\u4E2D..."},{"form-title":l(()=>[A]),"form-sub-title":l(()=>[C]),footer:l(()=>[T("span",K,[a(w,{type:"primary",onClick:e(_)},{default:l(()=>[M]),_:1},8,["onClick"])])]),default:l(()=>[a(d,{label:"\u76F4\u94FE\u5730\u5740\u524D\u7F00"},{tips:l(()=>[D]),default:l(()=>[a(p,{modelValue:e(o).directLinkPrefix,"onUpdate:modelValue":t[0]||(t[0]=r=>e(o).directLinkPrefix=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u663E\u793A\u751F\u6210\u76F4/\u77ED\u94FE\u529F\u80FD"},{tips:l(()=>[N]),default:l(()=>[a(s,{modelValue:e(o).showLinkBtn,"onUpdate:modelValue":t[1]||(t[1]=r=>e(o).showLinkBtn=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u8BB0\u5F55\u4E0B\u8F7D\u65E5\u5FD7"},{tips:l(()=>[P]),default:l(()=>[a(s,{modelValue:e(o).recordDownloadLog,"onUpdate:modelValue":t[2]||(t[2]=r=>e(o).recordDownloadLog=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u77ED\u94FE"},{tips:l(()=>[I]),default:l(()=>[a(s,{modelValue:e(o).showShortLink,"onUpdate:modelValue":t[3]||(t[3]=r=>e(o).showShortLink=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u76F4\u94FE\uFF08\u8DEF\u5F84\uFF09"},{tips:l(()=>[Z]),default:l(()=>[a(s,{modelValue:e(o).showPathLink,"onUpdate:modelValue":t[4]||(t[4]=r=>e(o).showPathLink=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"Referer \u9632\u76D7\u94FE"},{tips:l(()=>[$]),default:l(()=>[a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[5]||(t[5]=r=>e(o).refererType=r),label:"off"},{default:l(()=>[F]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[6]||(t[6]=r=>e(o).refererType=r),label:"white_list"},{default:l(()=>[J]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[7]||(t[7]=r=>e(o).refererType=r),label:"black_list"},{default:l(()=>[Q]),_:1},8,["modelValue"])]),_:1}),m(a(d,{label:"Referer \u914D\u7F6E"},{default:l(()=>[a(n,{modelValue:e(o).refererAllowEmpty,"onUpdate:modelValue":t[8]||(t[8]=r=>e(o).refererAllowEmpty=r),label:!0},{default:l(()=>[j]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererAllowEmpty,"onUpdate:modelValue":t[9]||(t[9]=r=>e(o).refererAllowEmpty=r),label:!1},{default:l(()=>[q]),_:1},8,["modelValue"])]),_:1},512),[[u,e(o).refererType!=="no"]]),m(a(d,{label:"\u767D\u540D\u5355"},U({default:l(()=>[a(p,{type:"textarea",rows:6,placeholder:"\u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D",modelValue:e(o).refererValue,"onUpdate:modelValue":t[10]||(t[10]=r=>e(o).refererValue=r)},null,8,["modelValue"])]),_:2},[e(o).refererType==="white_list"?{name:"tips",fn:l(()=>[G])}:void 0,e(o).refererType==="black_list"?{name:"tips",fn:l(()=>[H])}:void 0]),1536),[[u,e(o).refererType!=="no"]])]),_:1},8,["model"])),[[c,e(V)]]):g("",!0)])}}};export{Ve as default}; +import{r as k}from"./base.4ef7f45b.js";/* empty css */import{Z as y,a as h}from"./ZFormItem.899c4541.js";/* empty css */import{E as v}from"./radio.35753592.js";import{E as L}from"./switch.87050cd5.js";/* empty css */import{a as f,f as E,u as e,Q as m,b as z,e as l,p as T,h as a,R as u,I as U,k as g,J as i}from"./index.43b3cbf5.js";import{u as x}from"./useLinkSetting.acb89768.js";import{E as B}from"./index.da7dbe5d.js";import{v as R}from"./directive.378eb0e0.js";import"./index.5cf4e3bb.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./event.776e7e11.js";import"./validator.b1ae6965.js";import"./admin-setting.28847312.js";import"./request.e2daed10.js";const S={class:"zfile-admin-down-link-body"},A=i(" \u76F4\u94FE\u8BBE\u7F6E "),C=i(" \u8FD9\u91CC\u53EF\u4EE5\u914D\u7F6E\u76F4\u94FE\u76F8\u5173\u8BBE\u7F6E "),D=i(" \u76F4\u94FE\u5730\u5740\u524D\u7F00, \u5982 http(s)://ip:port/${\u76F4\u94FE\u524D\u7F00}/path/filename "),N=i(" \u4EC5\u63A7\u5236\u662F\u5426\u663E\u793A\u76F4/\u77ED\u94FE\u751F\u6210\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u4F7F\u7528\u5141\u8BB8\u4F7F\u7528\u76F4/\u77ED\u94FE\u4E0B\u8F7D "),P=i(" \u662F\u5426\u8BB0\u5F55\u76F4\u94FE\u4E0B\u8F7D\u65E5\u5FD7 "),I=i(" \u63A7\u5236\u662F\u5426\u751F\u6210\u76F4\u94FE\u65F6\u663E\u793A\u77ED\u94FE\u8DEF\u5F84\u53CA\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u77ED\u94FE\u8FDB\u884C\u4E0B\u8F7D "),Z=i(" \u63A7\u5236\u662F\u5426\u751F\u6210\u76F4\u94FE\u65F6\u663E\u793A\u76F4\u94FE\u8DEF\u5F84\u53CA\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u76F4\u94FE\u8FDB\u884C\u4E0B\u8F7D "),F=i("\u4E0D\u542F\u7528 Referer \u9632\u76D7\u94FE"),J=i("\u542F\u7528\u767D\u540D\u5355"),Q=i("\u542F\u7528\u9ED1\u540D\u5355"),$=i(" \u9632\u76D7\u94FE\u652F\u6301\u8BBF\u95EE\u6587\u4EF6\u76F4\u94FE\u6216\u77ED\u94FE\u65F6\u6821\u9A8C\uFF0C\u5982\u7528\u6237\u76F4\u63A5\u8BBF\u95EE\u76F4\u94FE\u8DF3\u8F6C\u540E\u7684\u5B58\u50A8\u6E90\u539F\u59CB\u94FE\u63A5\uFF0C\u65E0\u6CD5\u8FDB\u884C\u6821\u9A8C\u548C\u62E6\u622A\u3002 "),j=i("\u5141\u8BB8 Referer \u4E3A\u7A7A"),q=i("\u7981\u6B62 Referer \u4E3A\u7A7A"),G=i(" \u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D\uFF0C\u652F\u6301 * \u901A\u914D\u7B26\uFF0C\u5982\u767D\u540D\u5355 *zfile.vip \u5C06\u53EA\u5141\u8BB8 zfile.vip\u3001www.zfile.vip\u3001demo.zfile.vip \u7B49\u7F51\u7AD9\u8BBF\u95EE\u3002 "),H=i(" \u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D\uFF0C\u652F\u6301 * \u901A\u914D\u7B26\uFF0C\u5982\u9ED1\u540D\u5355 *zfile.vip \u5C06\u7981\u6B62\u6240\u6709\u5982 zfile.vip\u3001www.zfile.vip\u3001demo.zfile.vip \u7B49\u7F51\u7AD9\u8BBF\u95EE\u3002 "),K={class:"dialog-footer"},M=i("\u4FDD\u5B58"),Ve={__name:"basic-setting",setup(O){const{data:o,saveData:_,saveLoading:V}=x();return(W,t)=>{const p=B,d=y,s=L,n=v,w=k,b=h,c=R;return f(),E("div",S,[e(o)?m((f(),z(b,{key:0,model:e(o),"element-loading-text":"\u4FDD\u5B58\u4E2D..."},{"form-title":l(()=>[A]),"form-sub-title":l(()=>[C]),footer:l(()=>[T("span",K,[a(w,{type:"primary",onClick:e(_)},{default:l(()=>[M]),_:1},8,["onClick"])])]),default:l(()=>[a(d,{label:"\u76F4\u94FE\u5730\u5740\u524D\u7F00"},{tips:l(()=>[D]),default:l(()=>[a(p,{modelValue:e(o).directLinkPrefix,"onUpdate:modelValue":t[0]||(t[0]=r=>e(o).directLinkPrefix=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u663E\u793A\u751F\u6210\u76F4/\u77ED\u94FE\u529F\u80FD"},{tips:l(()=>[N]),default:l(()=>[a(s,{modelValue:e(o).showLinkBtn,"onUpdate:modelValue":t[1]||(t[1]=r=>e(o).showLinkBtn=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u8BB0\u5F55\u4E0B\u8F7D\u65E5\u5FD7"},{tips:l(()=>[P]),default:l(()=>[a(s,{modelValue:e(o).recordDownloadLog,"onUpdate:modelValue":t[2]||(t[2]=r=>e(o).recordDownloadLog=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u77ED\u94FE"},{tips:l(()=>[I]),default:l(()=>[a(s,{modelValue:e(o).showShortLink,"onUpdate:modelValue":t[3]||(t[3]=r=>e(o).showShortLink=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"\u662F\u5426\u5141\u8BB8\u4F7F\u7528\u76F4\u94FE\uFF08\u8DEF\u5F84\uFF09"},{tips:l(()=>[Z]),default:l(()=>[a(s,{modelValue:e(o).showPathLink,"onUpdate:modelValue":t[4]||(t[4]=r=>e(o).showPathLink=r)},null,8,["modelValue"])]),_:1}),a(d,{label:"Referer \u9632\u76D7\u94FE"},{tips:l(()=>[$]),default:l(()=>[a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[5]||(t[5]=r=>e(o).refererType=r),label:"off"},{default:l(()=>[F]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[6]||(t[6]=r=>e(o).refererType=r),label:"white_list"},{default:l(()=>[J]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererType,"onUpdate:modelValue":t[7]||(t[7]=r=>e(o).refererType=r),label:"black_list"},{default:l(()=>[Q]),_:1},8,["modelValue"])]),_:1}),m(a(d,{label:"Referer \u914D\u7F6E"},{default:l(()=>[a(n,{modelValue:e(o).refererAllowEmpty,"onUpdate:modelValue":t[8]||(t[8]=r=>e(o).refererAllowEmpty=r),label:!0},{default:l(()=>[j]),_:1},8,["modelValue"]),a(n,{modelValue:e(o).refererAllowEmpty,"onUpdate:modelValue":t[9]||(t[9]=r=>e(o).refererAllowEmpty=r),label:!1},{default:l(()=>[q]),_:1},8,["modelValue"])]),_:1},512),[[u,e(o).refererType!=="no"]]),m(a(d,{label:"\u767D\u540D\u5355"},U({default:l(()=>[a(p,{type:"textarea",rows:6,placeholder:"\u6BCF\u884C\u8F93\u5165\u4E00\u4E2A\u57DF\u540D",modelValue:e(o).refererValue,"onUpdate:modelValue":t[10]||(t[10]=r=>e(o).refererValue=r)},null,8,["modelValue"])]),_:2},[e(o).refererType==="white_list"?{name:"tips",fn:l(()=>[G])}:void 0,e(o).refererType==="black_list"?{name:"tips",fn:l(()=>[H])}:void 0]),1536),[[u,e(o).refererType!=="no"]])]),_:1},8,["model"])),[[c,e(V)]]):g("",!0)])}}};export{Ve as default}; diff --git a/src/main/resources/static/assets/cancel.ba311fb8.svg b/src/main/resources/static/assets/cancel.ba311fb8.svg new file mode 100644 index 0000000..a8702e0 --- /dev/null +++ b/src/main/resources/static/assets/cancel.ba311fb8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/card.7b41c195.css b/src/main/resources/static/assets/card.7b41c195.css new file mode 100644 index 0000000..5d772eb --- /dev/null +++ b/src/main/resources/static/assets/card.7b41c195.css @@ -0,0 +1 @@ +.el-card{--el-card-border-color: var(--el-border-color-light);--el-card-border-radius: 4px;--el-card-padding: 20px;--el-card-bg-color: var(--el-fill-color-blank);border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:hover,.el-card.is-hover-shadow:focus{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)} diff --git a/src/main/resources/static/assets/card.d6fbde4d.js b/src/main/resources/static/assets/card.d6fbde4d.js new file mode 100644 index 0000000..78328c4 --- /dev/null +++ b/src/main/resources/static/assets/card.d6fbde4d.js @@ -0,0 +1 @@ +import{b as t,d as c,u as n,_ as i,w as p}from"./base.4ef7f45b.js";import{d as b,a as d,f as s,n as o,u as e,g as l,k as h,p as v,i as u,J as g,t as m}from"./index.43b3cbf5.js";const y=t({header:{type:String,default:""},bodyStyle:{type:c([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),f={name:"ElCard"},w=b({...f,props:y,setup(x){const a=n("card");return(r,k)=>(d(),s("div",{class:o([e(a).b(),e(a).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(d(),s("div",{key:0,class:o(e(a).e("header"))},[l(r.$slots,"header",{},()=>[g(m(r.header),1)])],2)):h("v-if",!0),v("div",{class:o(e(a).e("body")),style:u(r.bodyStyle)},[l(r.$slots,"default")],6)],2))}});var _=i(w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const E=p(_);export{E}; diff --git a/src/main/resources/static/assets/check.8203fabe.svg b/src/main/resources/static/assets/check.8203fabe.svg new file mode 100644 index 0000000..209fa77 --- /dev/null +++ b/src/main/resources/static/assets/check.8203fabe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/checkbox.cfb94aee.js b/src/main/resources/static/assets/checkbox.65d5353a.js similarity index 99% rename from src/main/resources/static/assets/checkbox.cfb94aee.js rename to src/main/resources/static/assets/checkbox.65d5353a.js index 6d43fec..e78e426 100644 --- a/src/main/resources/static/assets/checkbox.cfb94aee.js +++ b/src/main/resources/static/assets/checkbox.65d5353a.js @@ -1,4 +1,4 @@ -import{E as ie,c as A,m as Ge,D as kt,r as _,ah as Bl,Z as me,w as ne,a0 as J,d as xe,G as Pt,a as B,b as Se,e as pe,p as le,Q as _e,ai as Ye,u as w,f as G,S as ze,n as P,g as Le,F as Ue,J as Ze,t as we,k as ge,q as Bt,i as Ce,v as Kt,ad as It,a7 as $e,ae as se,aj as Vt,h as ve,y as St,a1 as Dt,o as Je,ak as jt,a9 as Gt,al as z,am as Ae,R as Et,ac as Kl,H as Il}from"./index.552205f5.js";import{E as Yt}from"./index.24f1077d.js";import{y as Vl,E as Dl}from"./popper.14a92806.js";import{S as Ut,T as jl,G as Gl,U as Xt,V as Xe,C as Ht,W as qe,o as qt,u as oe,_ as Oe,w as Qt,j as vt,H as Yl,X as Rt,B as Te,E as mt,Y as Ul,Z as Xl,$ as Zt,a0 as Be,a1 as at,a2 as Lt,a3 as ql,a4 as Jt,a5 as Ql}from"./base.d698891e.js";import{o as ot,a as rt}from"./event.3ec63147.js";import{d as Qe}from"./debounce.32892d61.js";import{U as et}from"./event.776e7e11.js";import{C as Zl}from"./scrollbar.97fa2ffd.js";import{u as el}from"./index.1e624cbf.js";import{u as Nt,c as Jl}from"./request.3708b2c4.js";var Wt=!1,ke,st,it,Ke,Ie,tl,Ve,ct,dt,ut,ll,ht,ft,ol,rl;function te(){if(!Wt){Wt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ht=/\b(iPhone|iP[ao]d)/.exec(e),ft=/\b(iP[ao]d)/.exec(e),ut=/Android/i.exec(e),ol=/FBAN\/\w+;/i.exec(e),rl=/Mobile/i.exec(e),ll=!!/Win64/.exec(e),t){ke=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ke&&document&&document.documentMode&&(ke=document.documentMode);var l=/(?:Trident\/(\d+.\d+))/.exec(e);tl=l?parseFloat(l[1])+4:ke,st=t[2]?parseFloat(t[2]):NaN,it=t[3]?parseFloat(t[3]):NaN,Ke=t[4]?parseFloat(t[4]):NaN,Ke?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ie=t&&t[1]?parseFloat(t[1]):NaN):Ie=NaN}else ke=st=it=Ie=Ke=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ve=n?parseFloat(n[1].replace("_",".")):!0}else Ve=!1;ct=!!o[2],dt=!!o[3]}else Ve=ct=dt=!1}}var bt={ie:function(){return te()||ke},ieCompatibilityMode:function(){return te()||tl>ke},ie64:function(){return bt.ie()&&ll},firefox:function(){return te()||st},opera:function(){return te()||it},webkit:function(){return te()||Ke},safari:function(){return bt.webkit()},chrome:function(){return te()||Ie},windows:function(){return te()||ct},osx:function(){return te()||Ve},linux:function(){return te()||dt},iphone:function(){return te()||ht},mobile:function(){return te()||ht||ft||ut||rl},nativeApp:function(){return te()||ol},android:function(){return te()||ut},ipad:function(){return te()||ft}},eo=bt,Pe=!!(typeof window<"u"&&window.document&&window.document.createElement),to={canUseDOM:Pe,canUseWorkers:typeof Worker<"u",canUseEventListeners:Pe&&!!(window.addEventListener||window.attachEvent),canUseViewport:Pe&&!!window.screen,isInWorker:!Pe},nl=to,al;nl.canUseDOM&&(al=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function lo(e,t){if(!nl.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,l=o in document;if(!l){var n=document.createElement("div");n.setAttribute(o,"return;"),l=typeof n[o]=="function"}return!l&&al&&e==="wheel"&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}var oo=lo,Ft=10,At=40,Mt=800;function sl(e){var t=0,o=0,l=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),l=t*Ft,n=o*Ft,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(l=e.deltaX),(l||n)&&e.deltaMode&&(e.deltaMode==1?(l*=At,n*=At):(l*=Mt,n*=Mt)),l&&!t&&(t=l<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:l,pixelY:n}}sl.getEventType=function(){return eo.firefox()?"DOMMouseScroll":oo("wheel")?"wheel":"mousewheel"};var ro=sl;/** +import{E as ie,c as A,m as Ge,D as kt,r as _,ah as Bl,Z as me,w as ne,a0 as J,d as xe,G as Pt,a as B,b as Se,e as pe,p as le,Q as _e,ai as Ye,u as w,f as G,S as ze,n as P,g as Le,F as Ue,J as Ze,t as we,k as ge,q as Bt,i as Ce,v as Kt,ad as It,a7 as $e,ae as se,aj as Vt,h as ve,y as St,a1 as Dt,o as Je,ak as jt,a9 as Gt,al as z,am as Ae,R as Et,ac as Kl,H as Il}from"./index.43b3cbf5.js";import{E as Yt}from"./index.88f36c37.js";import{y as Vl,E as Dl}from"./popper.718d36e0.js";import{S as Ut,T as jl,G as Gl,U as Xt,V as Xe,C as Ht,W as qe,o as qt,u as oe,_ as Oe,w as Qt,j as vt,H as Yl,X as Rt,B as Te,E as mt,Y as Ul,Z as Xl,$ as Zt,a0 as Be,a1 as at,a2 as Lt,a3 as ql,a4 as Jt,a5 as Ql}from"./base.4ef7f45b.js";import{o as ot,a as rt}from"./event.3ec63147.js";import{d as Qe}from"./debounce.014e7b6e.js";import{U as et}from"./event.776e7e11.js";import{C as Zl}from"./scrollbar.83fe9165.js";import{u as el}from"./index.566ad052.js";import{u as Nt,c as Jl}from"./request.e2daed10.js";var Wt=!1,ke,st,it,Ke,Ie,tl,Ve,ct,dt,ut,ll,ht,ft,ol,rl;function te(){if(!Wt){Wt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ht=/\b(iPhone|iP[ao]d)/.exec(e),ft=/\b(iP[ao]d)/.exec(e),ut=/Android/i.exec(e),ol=/FBAN\/\w+;/i.exec(e),rl=/Mobile/i.exec(e),ll=!!/Win64/.exec(e),t){ke=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ke&&document&&document.documentMode&&(ke=document.documentMode);var l=/(?:Trident\/(\d+.\d+))/.exec(e);tl=l?parseFloat(l[1])+4:ke,st=t[2]?parseFloat(t[2]):NaN,it=t[3]?parseFloat(t[3]):NaN,Ke=t[4]?parseFloat(t[4]):NaN,Ke?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ie=t&&t[1]?parseFloat(t[1]):NaN):Ie=NaN}else ke=st=it=Ie=Ke=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ve=n?parseFloat(n[1].replace("_",".")):!0}else Ve=!1;ct=!!o[2],dt=!!o[3]}else Ve=ct=dt=!1}}var bt={ie:function(){return te()||ke},ieCompatibilityMode:function(){return te()||tl>ke},ie64:function(){return bt.ie()&&ll},firefox:function(){return te()||st},opera:function(){return te()||it},webkit:function(){return te()||Ke},safari:function(){return bt.webkit()},chrome:function(){return te()||Ie},windows:function(){return te()||ct},osx:function(){return te()||Ve},linux:function(){return te()||dt},iphone:function(){return te()||ht},mobile:function(){return te()||ht||ft||ut||rl},nativeApp:function(){return te()||ol},android:function(){return te()||ut},ipad:function(){return te()||ft}},eo=bt,Pe=!!(typeof window<"u"&&window.document&&window.document.createElement),to={canUseDOM:Pe,canUseWorkers:typeof Worker<"u",canUseEventListeners:Pe&&!!(window.addEventListener||window.attachEvent),canUseViewport:Pe&&!!window.screen,isInWorker:!Pe},nl=to,al;nl.canUseDOM&&(al=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function lo(e,t){if(!nl.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,l=o in document;if(!l){var n=document.createElement("div");n.setAttribute(o,"return;"),l=typeof n[o]=="function"}return!l&&al&&e==="wheel"&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}var oo=lo,Ft=10,At=40,Mt=800;function sl(e){var t=0,o=0,l=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),l=t*Ft,n=o*Ft,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(l=e.deltaX),(l||n)&&e.deltaMode&&(e.deltaMode==1?(l*=At,n*=At):(l*=Mt,n*=Mt)),l&&!t&&(t=l<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:l,pixelY:n}}sl.getEventType=function(){return eo.firefox()?"DOMMouseScroll":oo("wheel")?"wheel":"mousewheel"};var ro=sl;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, diff --git a/src/main/resources/static/assets/clean.cc9d5116.svg b/src/main/resources/static/assets/clean.cc9d5116.svg new file mode 100644 index 0000000..e312190 --- /dev/null +++ b/src/main/resources/static/assets/clean.cc9d5116.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/common.0f75f163.js b/src/main/resources/static/assets/common.0f75f163.js deleted file mode 100644 index 31a13c1..0000000 --- a/src/main/resources/static/assets/common.0f75f163.js +++ /dev/null @@ -1 +0,0 @@ -import{an as s}from"./index.552205f5.js";var a=["icon-401","icon-403","icon-404","icon-add-file","icon-add-folder-back","icon-add-folder","icon-add","icon-admin-login","icon-aliyun","icon-baidu","icon-card-layout","icon-copy","icon-delete","icon-download","icon-edit","icon-empty","icon-file-type-apk","icon-file-type-archive","icon-file-type-audio","icon-file-type-back","icon-file-type-css","icon-file-type-deb","icon-file-type-dll","icon-file-type-doc","icon-file-type-document","icon-file-type-docx","icon-file-type-exe","icon-file-type-expression","icon-file-type-file","icon-file-type-folder","icon-file-type-html","icon-file-type-image","icon-file-type-java","icon-file-type-js","icon-file-type-less","icon-file-type-md","icon-file-type-office","icon-file-type-pdf","icon-file-type-php","icon-file-type-ppt","icon-file-type-pptx","icon-file-type-py","icon-file-type-rb","icon-file-type-root","icon-file-type-rpm","icon-file-type-rust","icon-file-type-script","icon-file-type-text","icon-file-type-vbs","icon-file-type-video","icon-file-type-xls","icon-file-type-xlsx","icon-file-type-xml","icon-file-type-yaml","icon-file-upload","icon-files","icon-ftp","icon-huawei","icon-image","icon-img-disable","icon-img-enable","icon-info","icon-install-step","icon-link","icon-local","icon-login","icon-minio","icon-move","icon-new-folder","icon-next","icon-onedrive-china","icon-onedrive","icon-prev","icon-preview","icon-qiniu","icon-refresh","icon-reset-password","icon-s3","icon-search","icon-select-all","icon-server","icon-settings","icon-sftp","icon-sharepoint-china","icon-sharepoint","icon-success","icon-table-layout","icon-target","icon-tencent","icon-test","icon-tool-close","icon-tool-close2","icon-tool-delete","icon-tool-download","icon-tool-edit","icon-tool-link","icon-tool-move","icon-tool-preview","icon-tool-setting","icon-ufile","icon-upload-1","icon-upload-folder","icon-upload","icon-upyun","icon-warning","icon-webdav","icon-zfile-basic","icon-zfile-horizontal","icon-zfile"];const c={image:["gif","jpg","jpeg","png","bmp","webp","ico"],video:["mp4","webm","m3u8","rmvb","avi","swf","3gp","mkv","flv"],audio:["mp3","wav","wma","ogg","aac","flac","m4a"],text:["scss","sass","kt","gitignore","bat","properties","yml","css","js","md","xml","txt","py","go","html","less","php","rb","rust","script","java","sh","sql"],executable:["exe","dll","com","vbs"],archive:["7z","zip","rar","tar","gz"],pdf:["pdf"],office:["doc","docx","csv","xls","xlsx","ppt","pptx"],document:["txt","pages","epub","numbers","keynote"]},d=["image","video","audio","text","office","pdf"],l=[];a.forEach(i=>{l.push(i.replace(/^icon-file-type-/,""))});let y={responseCode:{SUCCESS:0,FAIL:-1,REQUIRED_PASSWORD:405,INVALID_PASSWORD:406},version:s.version,constant:{fileTypeMap:c,iconFileType:l,previewFileType:d},openPage:i=>{window.open(i)},fileSizeFormat:i=>{if(i===0)return"0 B";let e=1024,o=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],t=Math.floor(Math.log(i)/Math.log(e));return(i/Math.pow(e,t)).toFixed(2)+" "+o[t]},fileSizeFilter:(i,e,o)=>i.type==="BACK"?"":i.type==="FOLDER"?"-":o===0?"0 B":y.fileSizeFormat(o),getFileIconName(i){let e;if(i.type==="BACK"||i.type==="FOLDER"||i.type==="ROOT")return i.type.toLowerCase();{let o=this.getFileSuffix(i.name),t=this.getFileType(i.name);l.indexOf(o)!==-1?e=o:t?e=t:e="file"}return e},getFileSuffix(i){let e=i.lastIndexOf(".");return e===-1?"other":i.substr(e+1).toLowerCase()},getFileType(i){let e;for(let o in c){let t=this.getFileSuffix(i);if(c[o].indexOf(t)!==-1){e=o;break}}return e},removeDuplicateSeparator(i){let e="";i.indexOf("http://")===0?e="http://":i.indexOf("https://")===0&&(e="https://");for(let o=e.length;o{l.push(i.replace(/^icon-file-type-/,""))});let y={responseCode:{SUCCESS:0,FAIL:-1,REQUIRED_PASSWORD:405,INVALID_PASSWORD:406},version:f.version,constant:{fileTypeMap:c,iconFileType:l,previewFileType:d},openPage:i=>{window.open(i)},fileSizeFormat:i=>{if(i===0)return"0 B";let e=1024,o=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(i)/Math.log(e));return(i/Math.pow(e,n)).toFixed(2)+" "+o[n]},fileSizeFilter:(i,e,o)=>i.type==="BACK"?"":i.type==="FOLDER"?"-":o===0?"0 B":y.fileSizeFormat(o),getFileIconName(i){let e;if(i.type==="BACK"||i.type==="FOLDER"||i.type==="ROOT")return i.type.toLowerCase();{let o=this.getFileSuffix(i.name),n=this.getFileType(i.name);l.indexOf(o)!==-1?e=o:n?e=n:e="file"}return e},getFileSuffix(i){let e=i.lastIndexOf(".");return e===-1?"other":i.substr(e+1).toLowerCase()},getFileType(i){let e;for(let o in c){let n=this.getFileSuffix(i);if(c[o].indexOf(n)!==-1){e=o;break}}return e},removeDuplicateSeparator(i){let e="";i.indexOf("http://")===0?e="http://":i.indexOf("https://")===0&&(e="https://");for(let o=e.length;or.get(e,{withCredentials:!1}),i=e=>t({url:"/api/parse/content",method:"get",data:e});export{i as a,s as g}; diff --git a/src/main/resources/static/assets/common.e7f4d4d2.js b/src/main/resources/static/assets/common.e7f4d4d2.js new file mode 100644 index 0000000..bdbd04a --- /dev/null +++ b/src/main/resources/static/assets/common.e7f4d4d2.js @@ -0,0 +1 @@ +import{e as t}from"./request.e2daed10.js";import{at as r}from"./index.43b3cbf5.js";const s=e=>r.get(e,{withCredentials:!1}),i=e=>t({url:"/api/parse/content",method:"get",data:e});export{i as a,s as g}; diff --git a/src/main/resources/static/assets/dayjs.min.79223755.js b/src/main/resources/static/assets/dayjs.min.78646b3b.js similarity index 99% rename from src/main/resources/static/assets/dayjs.min.79223755.js rename to src/main/resources/static/assets/dayjs.min.78646b3b.js index 6768beb..1c15ba4 100644 --- a/src/main/resources/static/assets/dayjs.min.79223755.js +++ b/src/main/resources/static/assets/dayjs.min.78646b3b.js @@ -1 +1 @@ -import{O as P}from"./index.552205f5.js";var z={exports:{}};(function(V,Q){(function(A,T){V.exports=T()})(P,function(){var A=1e3,T=6e4,U=36e5,j="millisecond",p="second",S="minute",w="hour",M="day",b="week",l="month",F="quarter",y="year",O="date",J="Invalid Date",q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|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,E={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("_")},k=function(u,e,t){var r=String(u);return!r||r.length>=e?u:""+Array(e+1-r.length).join(t)+u},G={s:k,z:function(u){var e=-u.utcOffset(),t=Math.abs(e),r=Math.floor(t/60),n=t%60;return(e<=0?"+":"-")+k(r,2,"0")+":"+k(n,2,"0")},m:function u(e,t){if(e.date()1)return u(i[0])}else{var a=e.name;D[a]=e,n=a}return!r&&n&&(Y=n),n||!r&&Y},c=function(u,e){if(I(u))return u.clone();var t=typeof e=="object"?e:{};return t.date=u,t.args=arguments,new W(t)},o=G;o.l=L,o.i=I,o.w=function(u,e){return c(u,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var W=function(){function u(t){this.$L=L(t.locale,null,!0),this.parse(t)}var e=u.prototype;return e.parse=function(t){this.$d=function(r){var n=r.date,s=r.utc;if(n===null)return new Date(NaN);if(o.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var i=n.match(q);if(i){var a=i[2]-1||0,f=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,f)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,f)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return o},e.isValid=function(){return this.$d.toString()!==J},e.isSame=function(t,r){var n=c(t);return this.startOf(r)<=n&&n<=this.endOf(r)},e.isAfter=function(t,r){return c(t)=e?u:""+Array(e+1-r.length).join(t)+u},G={s:k,z:function(u){var e=-u.utcOffset(),t=Math.abs(e),r=Math.floor(t/60),n=t%60;return(e<=0?"+":"-")+k(r,2,"0")+":"+k(n,2,"0")},m:function u(e,t){if(e.date()1)return u(i[0])}else{var a=e.name;D[a]=e,n=a}return!r&&n&&(Y=n),n||!r&&Y},c=function(u,e){if(I(u))return u.clone();var t=typeof e=="object"?e:{};return t.date=u,t.args=arguments,new W(t)},o=G;o.l=L,o.i=I,o.w=function(u,e){return c(u,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var W=function(){function u(t){this.$L=L(t.locale,null,!0),this.parse(t)}var e=u.prototype;return e.parse=function(t){this.$d=function(r){var n=r.date,s=r.utc;if(n===null)return new Date(NaN);if(o.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var i=n.match(q);if(i){var a=i[2]-1||0,f=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,f)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,f)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return o},e.isValid=function(){return this.$d.toString()!==J},e.isSame=function(t,r){var n=c(t);return this.startOf(r)<=n&&n<=this.endOf(r)},e.isAfter=function(t,r){return c(t)=r||a<0||d&&m>=l}function g(){var e=I();if(y(e))return b(e);i=setTimeout(g,A(e))}function b(e){return i=void 0,T&&u?x(e):(u=c=void 0,s)}function O(){i!==void 0&&clearTimeout(i),o=0,u=f=c=i=void 0}function C(){return i===void 0?s:b(I())}function v(){var e=I(),a=y(e);if(u=arguments,c=this,f=e,a){if(i===void 0)return W(f);if(d)return clearTimeout(i),i=setTimeout(g,r),x(f)}return i===void 0&&(i=setTimeout(g,r)),s}return v.cancel=O,v.flush=C,v}export{z as d}; +import{aA as L,aa as h,ae as M}from"./base.4ef7f45b.js";var N=/\s/;function $(n){for(var r=n.length;r--&&N.test(n.charAt(r)););return r}var B=/^\s+/;function R(n){return n&&n.slice(0,$(n)+1).replace(B,"")}var k=0/0,F=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,j=/^0o[0-7]+$/i,D=parseInt;function S(n){if(typeof n=="number")return n;if(L(n))return k;if(h(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=h(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=R(n);var t=_.test(n);return t||j.test(n)?D(n.slice(2),t?2:8):F.test(n)?k:+n}var H=function(){return M.Date.now()},I=H,P="Expected a function",U=Math.max,X=Math.min;function z(n,r,t){var u,c,l,s,i,f,o=0,p=!1,d=!1,T=!0;if(typeof n!="function")throw new TypeError(P);r=S(r)||0,h(t)&&(p=!!t.leading,d="maxWait"in t,l=d?U(S(t.maxWait)||0,r):l,T="trailing"in t?!!t.trailing:T);function x(e){var a=u,m=c;return u=c=void 0,o=e,s=n.apply(m,a),s}function W(e){return o=e,i=setTimeout(g,r),p?x(e):s}function A(e){var a=e-f,m=e-o,E=r-a;return d?X(E,l-m):E}function y(e){var a=e-f,m=e-o;return f===void 0||a>=r||a<0||d&&m>=l}function g(){var e=I();if(y(e))return b(e);i=setTimeout(g,A(e))}function b(e){return i=void 0,T&&u?x(e):(u=c=void 0,s)}function O(){i!==void 0&&clearTimeout(i),o=0,u=f=c=i=void 0}function C(){return i===void 0?s:b(I())}function v(){var e=I(),a=y(e);if(u=arguments,c=this,f=e,a){if(i===void 0)return W(f);if(d)return clearTimeout(i),i=setTimeout(g,r),x(f)}return i===void 0&&(i=setTimeout(g,r)),s}return v.cancel=O,v.flush=C,v}export{z as d}; diff --git a/src/main/resources/static/assets/default.6e40c15c.js b/src/main/resources/static/assets/default.a74f5529.js similarity index 72% rename from src/main/resources/static/assets/default.6e40c15c.js rename to src/main/resources/static/assets/default.a74f5529.js index 6b19876..4757564 100644 --- a/src/main/resources/static/assets/default.6e40c15c.js +++ b/src/main/resources/static/assets/default.a74f5529.js @@ -1 +1 @@ -import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";import{ae as r,a as t,b as a}from"./index.552205f5.js";const c={};function n(_,s){const e=r("router-view");return t(),a(e)}var p=o(c,[["render",n]]);export{p as default}; +import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";import{ae as r,a as t,b as a}from"./index.43b3cbf5.js";const c={};function n(_,s){const e=r("router-view");return t(),a(e)}var p=o(c,[["render",n]]);export{p as default}; diff --git a/src/main/resources/static/assets/dialog.04a5229a.js b/src/main/resources/static/assets/dialog.0ab1ba1d.js similarity index 91% rename from src/main/resources/static/assets/dialog.04a5229a.js rename to src/main/resources/static/assets/dialog.0ab1ba1d.js index 6be4ba3..edc8084 100644 --- a/src/main/resources/static/assets/dialog.04a5229a.js +++ b/src/main/resources/static/assets/dialog.0ab1ba1d.js @@ -1 +1 @@ -import{d as S,E as T,c as $,a as p,f as R,p as h,g as r,n as t,u as e,t as V,h as k,e as i,b as x,q as U,k as I,i as F,j as Z,G,r as z,v as J,Q,R as X,I as Y,T as H,X as W}from"./index.552205f5.js";import{u as ee,a as oe,E as ae}from"./index.0f572ca8.js";import{E as le,_ as M,L as te,M as ie,u as re,w as se}from"./base.d698891e.js";import{d as ne,a as de,b as ge,c as pe,u as ce}from"./overlay.7eff71c7.js";import{u as fe}from"./index.1e624cbf.js";import{F as me,E as ue}from"./focus-trap.58847c97.js";import{c as ve}from"./refs.4597d917.js";const L=Symbol("dialogInjectionKey"),be=["aria-label"],ye=["id"],he={name:"ElDialogContent"},ke=S({...he,props:ne,emits:de,setup(w){const C=w,{t:c}=fe(),{Close:_}=te,{dialogRef:s,headerRef:f,bodyId:E,ns:l,style:m}=T(L),{focusTrapRef:b}=T(me),y=ve(b,s),u=$(()=>C.draggable);return ee(s,f,u),(a,n)=>(p(),R("div",{ref:e(y),class:t([e(l).b(),e(l).is("fullscreen",a.fullscreen),e(l).is("draggable",e(u)),{[e(l).m("center")]:a.center},a.customClass]),style:F(e(m)),tabindex:"-1",onClick:n[1]||(n[1]=Z(()=>{},["stop"]))},[h("header",{ref_key:"headerRef",ref:f,class:t(e(l).e("header"))},[r(a.$slots,"header",{},()=>[h("span",{role:"heading",class:t(e(l).e("title"))},V(a.title),3)]),a.showClose?(p(),R("button",{key:0,"aria-label":e(c)("el.dialog.close"),class:t(e(l).e("headerbtn")),type:"button",onClick:n[0]||(n[0]=D=>a.$emit("close"))},[k(e(le),{class:t(e(l).e("close"))},{default:i(()=>[(p(),x(U(a.closeIcon||e(_))))]),_:1},8,["class"])],10,be)):I("v-if",!0)],2),h("div",{id:e(E),class:t(e(l).e("body"))},[r(a.$slots,"default")],10,ye),a.$slots.footer?(p(),R("footer",{key:0,class:t(e(l).e("footer"))},[r(a.$slots,"footer")],2)):I("v-if",!0)],6))}});var we=M(ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Ce=["aria-label","aria-labelledby","aria-describedby"],_e={name:"ElDialog"},Ee=S({..._e,props:ge,emits:pe,setup(w,{expose:C}){const c=w,_=G();ie({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$(()=>!!_.title));const s=re("dialog"),f=z(),E=z(),l=z(),{visible:m,titleId:b,bodyId:y,style:u,rendered:a,zIndex:n,afterEnter:D,afterLeave:B,beforeLeave:N,handleClose:A,onModalClick:j,onOpenAutoFocus:q,onCloseAutoFocus:O,onCloseRequested:K}=ce(c,f);J(L,{dialogRef:f,headerRef:E,bodyId:y,ns:s,rendered:a,style:u});const d=oe(j),P=$(()=>c.draggable&&!c.fullscreen);return C({visible:m,dialogContentRef:l}),(o,g)=>(p(),x(W,{to:"body",disabled:!o.appendToBody},[k(H,{name:"dialog-fade",onAfterEnter:e(D),onAfterLeave:e(B),onBeforeLeave:e(N),persisted:""},{default:i(()=>[Q(k(e(ae),{"custom-mask-event":"",mask:o.modal,"overlay-class":o.modalClass,"z-index":e(n)},{default:i(()=>[h("div",{role:"dialog","aria-modal":"true","aria-label":o.title||void 0,"aria-labelledby":o.title?void 0:e(b),"aria-describedby":e(y),class:t(`${e(s).namespace.value}-overlay-dialog`),onClick:g[0]||(g[0]=(...v)=>e(d).onClick&&e(d).onClick(...v)),onMousedown:g[1]||(g[1]=(...v)=>e(d).onMousedown&&e(d).onMousedown(...v)),onMouseup:g[2]||(g[2]=(...v)=>e(d).onMouseup&&e(d).onMouseup(...v))},[k(e(ue),{loop:"",trapped:e(m),"focus-start-el":"container",onFocusAfterTrapped:e(q),onFocusAfterReleased:e(O),onReleaseRequested:e(K)},{default:i(()=>[e(a)?(p(),x(we,{key:0,ref_key:"dialogContentRef",ref:l,"custom-class":o.customClass,center:o.center,"close-icon":o.closeIcon,draggable:e(P),fullscreen:o.fullscreen,"show-close":o.showClose,style:F(e(u)),title:o.title,onClose:e(A)},Y({header:i(()=>[o.$slots.title?r(o.$slots,"title",{key:1}):r(o.$slots,"header",{key:0,close:e(A),titleId:e(b),titleClass:e(s).e("title")})]),default:i(()=>[r(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:i(()=>[r(o.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):I("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,Ce)]),_:3},8,["mask","overlay-class","z-index"]),[[X,e(m)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Re=M(Ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Se=se(Re);export{Se as E}; +import{d as S,E as T,c as $,a as p,f as R,p as h,g as r,n as t,u as e,t as V,h as k,e as i,b as x,q as U,k as I,i as F,j as Z,G,r as z,v as J,Q,R as X,I as Y,T as H,X as W}from"./index.43b3cbf5.js";import{u as ee,a as oe,E as ae}from"./index.d46124aa.js";import{E as le,_ as M,L as te,M as ie,u as re,w as se}from"./base.4ef7f45b.js";import{d as ne,a as de,b as ge,c as pe,u as ce}from"./overlay.533d94fc.js";import{u as fe}from"./index.566ad052.js";import{F as me,E as ue}from"./focus-trap.4cfde4b4.js";import{c as ve}from"./refs.f6f7d296.js";const L=Symbol("dialogInjectionKey"),be=["aria-label"],ye=["id"],he={name:"ElDialogContent"},ke=S({...he,props:ne,emits:de,setup(w){const C=w,{t:c}=fe(),{Close:_}=te,{dialogRef:s,headerRef:f,bodyId:E,ns:l,style:m}=T(L),{focusTrapRef:b}=T(me),y=ve(b,s),u=$(()=>C.draggable);return ee(s,f,u),(a,n)=>(p(),R("div",{ref:e(y),class:t([e(l).b(),e(l).is("fullscreen",a.fullscreen),e(l).is("draggable",e(u)),{[e(l).m("center")]:a.center},a.customClass]),style:F(e(m)),tabindex:"-1",onClick:n[1]||(n[1]=Z(()=>{},["stop"]))},[h("header",{ref_key:"headerRef",ref:f,class:t(e(l).e("header"))},[r(a.$slots,"header",{},()=>[h("span",{role:"heading",class:t(e(l).e("title"))},V(a.title),3)]),a.showClose?(p(),R("button",{key:0,"aria-label":e(c)("el.dialog.close"),class:t(e(l).e("headerbtn")),type:"button",onClick:n[0]||(n[0]=D=>a.$emit("close"))},[k(e(le),{class:t(e(l).e("close"))},{default:i(()=>[(p(),x(U(a.closeIcon||e(_))))]),_:1},8,["class"])],10,be)):I("v-if",!0)],2),h("div",{id:e(E),class:t(e(l).e("body"))},[r(a.$slots,"default")],10,ye),a.$slots.footer?(p(),R("footer",{key:0,class:t(e(l).e("footer"))},[r(a.$slots,"footer")],2)):I("v-if",!0)],6))}});var we=M(ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Ce=["aria-label","aria-labelledby","aria-describedby"],_e={name:"ElDialog"},Ee=S({..._e,props:ge,emits:pe,setup(w,{expose:C}){const c=w,_=G();ie({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$(()=>!!_.title));const s=re("dialog"),f=z(),E=z(),l=z(),{visible:m,titleId:b,bodyId:y,style:u,rendered:a,zIndex:n,afterEnter:D,afterLeave:B,beforeLeave:N,handleClose:A,onModalClick:j,onOpenAutoFocus:q,onCloseAutoFocus:O,onCloseRequested:K}=ce(c,f);J(L,{dialogRef:f,headerRef:E,bodyId:y,ns:s,rendered:a,style:u});const d=oe(j),P=$(()=>c.draggable&&!c.fullscreen);return C({visible:m,dialogContentRef:l}),(o,g)=>(p(),x(W,{to:"body",disabled:!o.appendToBody},[k(H,{name:"dialog-fade",onAfterEnter:e(D),onAfterLeave:e(B),onBeforeLeave:e(N),persisted:""},{default:i(()=>[Q(k(e(ae),{"custom-mask-event":"",mask:o.modal,"overlay-class":o.modalClass,"z-index":e(n)},{default:i(()=>[h("div",{role:"dialog","aria-modal":"true","aria-label":o.title||void 0,"aria-labelledby":o.title?void 0:e(b),"aria-describedby":e(y),class:t(`${e(s).namespace.value}-overlay-dialog`),onClick:g[0]||(g[0]=(...v)=>e(d).onClick&&e(d).onClick(...v)),onMousedown:g[1]||(g[1]=(...v)=>e(d).onMousedown&&e(d).onMousedown(...v)),onMouseup:g[2]||(g[2]=(...v)=>e(d).onMouseup&&e(d).onMouseup(...v))},[k(e(ue),{loop:"",trapped:e(m),"focus-start-el":"container",onFocusAfterTrapped:e(q),onFocusAfterReleased:e(O),onReleaseRequested:e(K)},{default:i(()=>[e(a)?(p(),x(we,{key:0,ref_key:"dialogContentRef",ref:l,"custom-class":o.customClass,center:o.center,"close-icon":o.closeIcon,draggable:e(P),fullscreen:o.fullscreen,"show-close":o.showClose,style:F(e(u)),title:o.title,onClose:e(A)},Y({header:i(()=>[o.$slots.title?r(o.$slots,"title",{key:1}):r(o.$slots,"header",{key:0,close:e(A),titleId:e(b),titleClass:e(s).e("title")})]),default:i(()=>[r(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:i(()=>[r(o.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):I("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,Ce)]),_:3},8,["mask","overlay-class","z-index"]),[[X,e(m)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Re=M(Ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Se=se(Re);export{Se as E}; diff --git a/src/main/resources/static/assets/directive.e250a256.js b/src/main/resources/static/assets/directive.378eb0e0.js similarity index 95% rename from src/main/resources/static/assets/directive.e250a256.js rename to src/main/resources/static/assets/directive.378eb0e0.js index 4691cdd..8691a9f 100644 --- a/src/main/resources/static/assets/directive.e250a256.js +++ b/src/main/resources/static/assets/directive.378eb0e0.js @@ -1 +1 @@ -import{ad as S,r as w,W as T,aq as I,al as f,e as N,Q as V,R as E,h as P,T as O,Z as k,m as _,a5 as A,at as R,S as j}from"./index.552205f5.js";import{u as $,a1 as b,B as Z,H as q,a2 as m,$ as C}from"./base.d698891e.js";function H(t){let e;const l=$("loading"),a=w(!1),s=T({...t,originalPosition:"",originalOverflow:"",visible:!1});function n(o){s.text=o}function u(){const o=s.parent;if(!o.vLoadingAddClassList){let i=o.getAttribute("loading-number");i=Number.parseInt(i)-1,i?o.setAttribute("loading-number",i.toString()):(b(o,l.bm("parent","relative")),o.removeAttribute("loading-number")),b(o,l.bm("parent","hidden"))}d(),v.unmount()}function d(){var o,i;(i=(o=r.$el)==null?void 0:o.parentNode)==null||i.removeChild(r.$el)}function p(){var o;if(t.beforeClose&&!t.beforeClose())return;const i=s.parent;i.vLoadingAddClassList=void 0,a.value=!0,clearTimeout(e),e=window.setTimeout(()=>{a.value&&(a.value=!1,u())},400),s.visible=!1,(o=t.closed)==null||o.call(t)}function c(){!a.value||(a.value=!1,u())}const v=I({name:"ElLoading",setup(){return()=>{const o=s.spinner||s.svg,i=f("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"25 25 50 50",...o?{innerHTML:o}:{}},[f("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),B=s.text?f("p",{class:l.b("text")},[s.text]):void 0;return f(O,{name:l.b("fade"),onAfterLeave:c},{default:N(()=>[V(P("div",{style:{backgroundColor:s.background||""},class:[l.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[f("div",{class:l.b("spinner")},[i,B])]),[[E,s.visible]])])})}}}),r=v.mount(document.createElement("div"));return{...S(s),setText:n,removeElLoadingChild:d,close:p,handleAfterLeave:c,vm:r,get $el(){return r.$el}}}let g;const z=function(t={}){if(!Z)return;const e=D(t);if(e.fullscreen&&g)return g;const l=H({...e,closed:()=>{var s;(s=e.closed)==null||s.call(e),e.fullscreen&&(g=void 0)}});F(e,e.parent,l),L(e,e.parent,l),e.parent.vLoadingAddClassList=()=>L(e,e.parent,l);let a=e.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",e.parent.setAttribute("loading-number",a),e.parent.appendChild(l.$el),k(()=>l.visible.value=e.visible),e.fullscreen&&(g=l),l},D=t=>{var e,l,a,s;let n;return _(t.target)?n=(e=document.querySelector(t.target))!=null?e:document.body:n=t.target||document.body,{parent:n===document.body||t.body?document.body:n,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:n===document.body&&((l=t.fullscreen)!=null?l:!0),lock:(a=t.lock)!=null?a:!1,customClass:t.customClass||"",visible:(s=t.visible)!=null?s:!0,target:n}},F=async(t,e,l)=>{const{nextZIndex:a}=q(),s={};if(t.fullscreen)l.originalPosition.value=m(document.body,"position"),l.originalOverflow.value=m(document.body,"overflow"),s.zIndex=a();else if(t.parent===document.body){l.originalPosition.value=m(document.body,"position"),await k();for(const n of["top","left"]){const u=n==="top"?"scrollTop":"scrollLeft";s[n]=`${t.target.getBoundingClientRect()[n]+document.body[u]+document.documentElement[u]-Number.parseInt(m(document.body,`margin-${n}`),10)}px`}for(const n of["height","width"])s[n]=`${t.target.getBoundingClientRect()[n]}px`}else l.originalPosition.value=m(e,"position");for(const[n,u]of Object.entries(s))l.$el.style[n]=u},L=(t,e,l)=>{const a=$("loading");l.originalPosition.value!=="absolute"&&l.originalPosition.value!=="fixed"?C(e,a.bm("parent","relative")):b(e,a.bm("parent","relative")),t.fullscreen&&t.lock?C(e,a.bm("parent","hidden")):b(e,a.bm("parent","hidden"))},y=Symbol("ElLoading"),h=(t,e)=>{var l,a,s,n;const u=e.instance,d=r=>A(e.value)?e.value[r]:void 0,p=r=>{const o=_(r)&&(u==null?void 0:u[r])||r;return o&&w(o)},c=r=>p(d(r)||t.getAttribute(`element-loading-${R(r)}`)),x=(l=d("fullscreen"))!=null?l:e.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:x,target:(a=d("target"))!=null?a:x?void 0:t,body:(s=d("body"))!=null?s:e.modifiers.body,lock:(n=d("lock"))!=null?n:e.modifiers.lock};t[y]={options:v,instance:z(v)}},K=(t,e)=>{for(const l of Object.keys(e))j(e[l])&&(e[l].value=t[l])},W={mounted(t,e){e.value&&h(t,e)},updated(t,e){const l=t[y];e.oldValue!==e.value&&(e.value&&!e.oldValue?h(t,e):e.value&&e.oldValue?A(e.value)&&K(e.value,l.options):l==null||l.instance.close())},unmounted(t){var e;(e=t[y])==null||e.instance.close()}};export{z as L,W as v}; +import{ad as S,r as w,W as T,aq as I,al as f,e as N,Q as V,R as E,h as P,T as O,Z as k,m as _,a5 as A,au as R,S as j}from"./index.43b3cbf5.js";import{u as $,a1 as b,B as Z,H as q,a2 as m,$ as C}from"./base.4ef7f45b.js";function H(t){let e;const l=$("loading"),a=w(!1),s=T({...t,originalPosition:"",originalOverflow:"",visible:!1});function n(o){s.text=o}function u(){const o=s.parent;if(!o.vLoadingAddClassList){let i=o.getAttribute("loading-number");i=Number.parseInt(i)-1,i?o.setAttribute("loading-number",i.toString()):(b(o,l.bm("parent","relative")),o.removeAttribute("loading-number")),b(o,l.bm("parent","hidden"))}d(),v.unmount()}function d(){var o,i;(i=(o=r.$el)==null?void 0:o.parentNode)==null||i.removeChild(r.$el)}function p(){var o;if(t.beforeClose&&!t.beforeClose())return;const i=s.parent;i.vLoadingAddClassList=void 0,a.value=!0,clearTimeout(e),e=window.setTimeout(()=>{a.value&&(a.value=!1,u())},400),s.visible=!1,(o=t.closed)==null||o.call(t)}function c(){!a.value||(a.value=!1,u())}const v=I({name:"ElLoading",setup(){return()=>{const o=s.spinner||s.svg,i=f("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"25 25 50 50",...o?{innerHTML:o}:{}},[f("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),B=s.text?f("p",{class:l.b("text")},[s.text]):void 0;return f(O,{name:l.b("fade"),onAfterLeave:c},{default:N(()=>[V(P("div",{style:{backgroundColor:s.background||""},class:[l.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[f("div",{class:l.b("spinner")},[i,B])]),[[E,s.visible]])])})}}}),r=v.mount(document.createElement("div"));return{...S(s),setText:n,removeElLoadingChild:d,close:p,handleAfterLeave:c,vm:r,get $el(){return r.$el}}}let g;const z=function(t={}){if(!Z)return;const e=D(t);if(e.fullscreen&&g)return g;const l=H({...e,closed:()=>{var s;(s=e.closed)==null||s.call(e),e.fullscreen&&(g=void 0)}});F(e,e.parent,l),L(e,e.parent,l),e.parent.vLoadingAddClassList=()=>L(e,e.parent,l);let a=e.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",e.parent.setAttribute("loading-number",a),e.parent.appendChild(l.$el),k(()=>l.visible.value=e.visible),e.fullscreen&&(g=l),l},D=t=>{var e,l,a,s;let n;return _(t.target)?n=(e=document.querySelector(t.target))!=null?e:document.body:n=t.target||document.body,{parent:n===document.body||t.body?document.body:n,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:n===document.body&&((l=t.fullscreen)!=null?l:!0),lock:(a=t.lock)!=null?a:!1,customClass:t.customClass||"",visible:(s=t.visible)!=null?s:!0,target:n}},F=async(t,e,l)=>{const{nextZIndex:a}=q(),s={};if(t.fullscreen)l.originalPosition.value=m(document.body,"position"),l.originalOverflow.value=m(document.body,"overflow"),s.zIndex=a();else if(t.parent===document.body){l.originalPosition.value=m(document.body,"position"),await k();for(const n of["top","left"]){const u=n==="top"?"scrollTop":"scrollLeft";s[n]=`${t.target.getBoundingClientRect()[n]+document.body[u]+document.documentElement[u]-Number.parseInt(m(document.body,`margin-${n}`),10)}px`}for(const n of["height","width"])s[n]=`${t.target.getBoundingClientRect()[n]}px`}else l.originalPosition.value=m(e,"position");for(const[n,u]of Object.entries(s))l.$el.style[n]=u},L=(t,e,l)=>{const a=$("loading");l.originalPosition.value!=="absolute"&&l.originalPosition.value!=="fixed"?C(e,a.bm("parent","relative")):b(e,a.bm("parent","relative")),t.fullscreen&&t.lock?C(e,a.bm("parent","hidden")):b(e,a.bm("parent","hidden"))},y=Symbol("ElLoading"),h=(t,e)=>{var l,a,s,n;const u=e.instance,d=r=>A(e.value)?e.value[r]:void 0,p=r=>{const o=_(r)&&(u==null?void 0:u[r])||r;return o&&w(o)},c=r=>p(d(r)||t.getAttribute(`element-loading-${R(r)}`)),x=(l=d("fullscreen"))!=null?l:e.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:x,target:(a=d("target"))!=null?a:x?void 0:t,body:(s=d("body"))!=null?s:e.modifiers.body,lock:(n=d("lock"))!=null?n:e.modifiers.lock};t[y]={options:v,instance:z(v)}},K=(t,e)=>{for(const l of Object.keys(e))j(e[l])&&(e[l].value=t[l])},W={mounted(t,e){e.value&&h(t,e)},updated(t,e){const l=t[y];e.oldValue!==e.value&&(e.value&&!e.oldValue?h(t,e):e.value&&e.oldValue?A(e.value)&&K(e.value,l.options):l==null||l.instance.close())},unmounted(t){var e;(e=t[y])==null||e.instance.close()}};export{z as L,W as v}; diff --git a/src/main/resources/static/assets/download-mult.4332fce8.svg b/src/main/resources/static/assets/download-mult.4332fce8.svg new file mode 100644 index 0000000..875c3f7 --- /dev/null +++ b/src/main/resources/static/assets/download-mult.4332fce8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/download-package.62191a76.svg b/src/main/resources/static/assets/download-package.62191a76.svg new file mode 100644 index 0000000..3bd5746 --- /dev/null +++ b/src/main/resources/static/assets/download-package.62191a76.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/download.48c98cdb.svg b/src/main/resources/static/assets/download.48c98cdb.svg deleted file mode 100644 index c74dede..0000000 --- a/src/main/resources/static/assets/download.48c98cdb.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/src/main/resources/static/assets/download.f863f7c2.svg b/src/main/resources/static/assets/download.f863f7c2.svg new file mode 100644 index 0000000..d7d02fd --- /dev/null +++ b/src/main/resources/static/assets/download.f863f7c2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/dropdown-item.448534e1.js b/src/main/resources/static/assets/dropdown-item.dc1b3a74.js similarity index 88% rename from src/main/resources/static/assets/dropdown-item.448534e1.js rename to src/main/resources/static/assets/dropdown-item.dc1b3a74.js index 520f1a9..0a81ba3 100644 --- a/src/main/resources/static/assets/dropdown-item.448534e1.js +++ b/src/main/resources/static/assets/dropdown-item.dc1b3a74.js @@ -1 +1 @@ -import{b as be,d as q,I as h,_ as G,K as se,r as de,E as ie,Y as _e,u as x,P as he,W as Ie,w as ye,j as pe}from"./base.d698891e.js";import{E as Ee,O as Ce}from"./popper.14a92806.js";import{E as Te}from"./index.24f1077d.js";import{c as Fe,E as ke,d as $e,a as ue,C as Re,b as Oe,e as Se,f as Pe,g as De,F as Ne,L as Ke}from"./dropdown.d5503246.js";import{a as ze,o as Me,c as S,w as le}from"./event.3ec63147.js";import{d as B,r as E,E as y,c as T,v as V,af as Ge,x as L,u as C,w as Be,o as Ae,H as Le,g as D,ae as b,a as P,b as A,e as v,h as R,A as Ue,aA as Ye,Z as He,a0 as ce,f as J,I as Ve,z as U,n as Q,k as X,p as Je,q as We,F as je,i as qe}from"./index.552205f5.js";import{u as Ze}from"./index.1e624cbf.js";import{c as me}from"./refs.4597d917.js";import{F as Qe}from"./focus-trap.58847c97.js";const Xe=be({style:{type:q([String,Array,Object])},currentTabId:{type:q(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:q(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:xe,ElCollectionItem:eo,COLLECTION_INJECTION_KEY:ee,COLLECTION_ITEM_INJECTION_KEY:oo}=Fe("RovingFocusGroup"),oe=Symbol("elRovingFocusGroup"),fe=Symbol("elRovingFocusGroupItem"),no={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ro=(e,o)=>{if(o!=="rtl")return e;switch(e){case h.right:return h.left;case h.left:return h.right;default:return e}},to=(e,o,s)=>{const r=ro(e.key,s);if(!(o==="vertical"&&[h.left,h.right].includes(r))&&!(o==="horizontal"&&[h.up,h.down].includes(r)))return no[r]},lo=(e,o)=>e.map((s,r)=>e[(r+o)%e.length]),ne=e=>{const{activeElement:o}=document;for(const s of e)if(s===o||(s.focus(),o!==document.activeElement))return},ae="currentTabIdChange",Z="rovingFocusGroup.entryFocus",ao={bubbles:!1,cancelable:!0},so=B({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Xe,emits:[ae,"entryFocus"],setup(e,{emit:o}){var s;const r=E((s=e.currentTabId||e.defaultCurrentTabId)!=null?s:null),i=E(!1),u=E(!1),t=E(null),{getItems:l}=y(ee,void 0),c=T(()=>[{outline:"none"},e.style]),w=a=>{o(ae,a)},g=()=>{i.value=!0},_=S(a=>{var m;(m=e.onMousedown)==null||m.call(e,a)},()=>{u.value=!0}),I=S(a=>{var m;(m=e.onFocus)==null||m.call(e,a)},a=>{const m=!C(u),{target:N,currentTarget:F}=a;if(N===F&&m&&!C(i)){const K=new Event(Z,ao);if(F==null||F.dispatchEvent(K),!K.defaultPrevented){const f=l().filter($=>$.focusable),O=f.find($=>$.active),k=f.find($=>$.id===C(r)),M=[O,k,...f].filter(Boolean).map($=>$.ref);ne(M)}}u.value=!1}),n=S(a=>{var m;(m=e.onBlur)==null||m.call(e,a)},()=>{i.value=!1}),d=(...a)=>{o("entryFocus",...a)};V(oe,{currentTabbedId:Ge(r),loop:L(e,"loop"),tabIndex:T(()=>C(i)?-1:0),rovingFocusGroupRef:t,rovingFocusGroupRootStyle:c,orientation:L(e,"orientation"),dir:L(e,"dir"),onItemFocus:w,onItemShiftTab:g,onBlur:n,onFocus:I,onMousedown:_}),Be(()=>e.currentTabId,a=>{r.value=a!=null?a:null}),Ae(()=>{const a=C(t);ze(a,Z,d)}),Le(()=>{const a=C(t);Me(a,Z,d)})}});function io(e,o,s,r,i,u){return D(e.$slots,"default")}var po=G(so,[["render",io],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const uo=B({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:xe,ElRovingFocusGroupImpl:po}});function co(e,o,s,r,i,u){const t=b("el-roving-focus-group-impl"),l=b("el-focus-group-collection");return P(),A(l,null,{default:v(()=>[R(t,Ue(Ye(e.$attrs)),{default:v(()=>[D(e.$slots,"default")]),_:3},16)]),_:3})}var mo=G(uo,[["render",co],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const fo=B({components:{ElRovingFocusCollectionItem:eo},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:o}){const{currentTabbedId:s,loop:r,onItemFocus:i,onItemShiftTab:u}=y(oe,void 0),{getItems:t}=y(ee,void 0),l=se(),c=E(null),w=S(n=>{o("mousedown",n)},n=>{e.focusable?i(C(l)):n.preventDefault()}),g=S(n=>{o("focus",n)},()=>{i(C(l))}),_=S(n=>{o("keydown",n)},n=>{const{key:d,shiftKey:a,target:m,currentTarget:N}=n;if(d===h.tab&&a){u();return}if(m!==N)return;const F=to(n);if(F){n.preventDefault();let f=t().filter(O=>O.focusable).map(O=>O.ref);switch(F){case"last":{f.reverse();break}case"prev":case"next":{F==="prev"&&f.reverse();const O=f.indexOf(N);f=r.value?lo(f,O+1):f.slice(O+1);break}}He(()=>{ne(f)})}}),I=T(()=>s.value===C(l));return V(fe,{rovingFocusGroupItemRef:c,tabIndex:T(()=>C(I)?0:-1),handleMousedown:w,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:w}}});function vo(e,o,s,r,i,u){const t=b("el-roving-focus-collection-item");return P(),A(t,{id:e.id,focusable:e.focusable,active:e.active},{default:v(()=>[D(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var wo=G(fo,[["render",vo],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const W=Symbol("elDropdown"),{ButtonGroup:go}=de,bo=B({name:"ElDropdown",components:{ElButton:de,ElButtonGroup:go,ElScrollbar:Te,ElDropdownCollection:ke,ElTooltip:Ee,ElRovingFocusGroup:mo,ElOnlyChild:Ce,ElIcon:ie,ArrowDown:_e},props:$e,emits:["visible-change","click","command"],setup(e,{emit:o}){const s=ce(),r=x("dropdown"),{t:i}=Ze(),u=E(),t=E(),l=E(null),c=E(null),w=E(null),g=E(null),_=E(!1),I=[h.enter,h.space,h.down],n=T(()=>({maxHeight:he(e.maxHeight)})),d=T(()=>[r.m(f.value)]),a=se().value,m=T(()=>e.id||a);function N(){F()}function F(){var p;(p=l.value)==null||p.onClose()}function K(){var p;(p=l.value)==null||p.onOpen()}const f=Ie();function O(...p){o("command",...p)}function k(){}function z(){const p=C(c);p==null||p.focus(),g.value=null}function M(p){g.value=p}function $(p){_.value||(p.preventDefault(),p.stopImmediatePropagation())}function re(p){(p==null?void 0:p.type)==="keydown"&&c.value.focus(),o("visible-change",!0)}function Y(){o("visible-change",!1)}return V(W,{contentRef:c,role:T(()=>e.role),triggerId:m,isUsingKeyboard:_,onItemEnter:k,onItemLeave:z}),V("elDropdown",{instance:s,dropdownSize:f,handleClick:N,commandHandler:O,trigger:L(e,"trigger"),hideOnClick:L(e,"hideOnClick")}),{t:i,ns:r,scrollbar:w,wrapStyle:n,dropdownTriggerKls:d,dropdownSize:f,triggerId:m,triggerKeys:I,currentTabId:g,handleCurrentTabIdChange:M,handlerMainButtonClick:p=>{o("click",p)},handleEntryFocus:$,handleClose:F,handleOpen:K,handleShowTooltip:re,handleHideTooltip:Y,onFocusAfterTrapped:p=>{var j,te;p.preventDefault(),(te=(j=c.value)==null?void 0:j.focus)==null||te.call(j,{preventScroll:!0})},popperRef:l,contentRef:c,triggeringElementRef:u,referenceElementRef:t}}});function _o(e,o,s,r,i,u){var t;const l=b("el-dropdown-collection"),c=b("el-roving-focus-group"),w=b("el-scrollbar"),g=b("el-only-child"),_=b("el-tooltip"),I=b("el-button"),n=b("arrow-down"),d=b("el-icon"),a=b("el-button-group");return P(),J("div",{class:Q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(t=e.referenceElementRef)==null?void 0:t.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},Ve({content:v(()=>[R(w,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:v(()=>[R(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:v(()=>[R(l,null,{default:v(()=>[D(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:v(()=>[R(g,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:v(()=>[D(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onShow","onHide"]),e.splitButton?(P(),A(a,{key:0},{default:v(()=>[R(I,U({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:v(()=>[D(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(I,U({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:v(()=>[R(d,{class:Q(e.ns.e("icon"))},{default:v(()=>[R(n)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):X("v-if",!0)],2)}var ho=G(bo,[["render",_o],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Io=B({name:"DropdownItemImpl",components:{ElIcon:ie},props:ue,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:o}){const s=x("dropdown"),{role:r}=y(W,void 0),{collectionItemRef:i}=y(Re,void 0),{collectionItemRef:u}=y(oo,void 0),{rovingFocusGroupItemRef:t,tabIndex:l,handleFocus:c,handleKeydown:w,handleMousedown:g}=y(fe,void 0),_=me(i,u,t),I=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),n=S(d=>{const{code:a}=d;if(a===h.enter||a===h.space)return d.preventDefault(),d.stopImmediatePropagation(),o("clickimpl",d),!0},w);return{ns:s,itemRef:_,dataset:{[Oe]:""},role:I,tabIndex:l,handleFocus:c,handleKeydown:n,handleMousedown:g}}}),yo=["aria-disabled","tabindex","role"];function Eo(e,o,s,r,i,u){const t=b("el-icon");return P(),J(je,null,[e.divided?(P(),J("li",U({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):X("v-if",!0),Je("li",U({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:o[0]||(o[0]=l=>e.$emit("clickimpl",l)),onFocus:o[1]||(o[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:o[2]||(o[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:o[3]||(o[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:o[4]||(o[4]=l=>e.$emit("pointermove",l)),onPointerleave:o[5]||(o[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(P(),A(t,{key:0},{default:v(()=>[(P(),A(We(e.icon)))]),_:1})):X("v-if",!0),D(e.$slots,"default")],16,yo)],64)}var Co=G(Io,[["render",Eo],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const ve=()=>{const e=y("elDropdown",{}),o=T(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:o}},To=B({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Se,ElRovingFocusItem:wo,ElDropdownItemImpl:Co},inheritAttrs:!1,props:ue,emits:["pointermove","pointerleave","click"],setup(e,{emit:o,attrs:s}){const{elDropdown:r}=ve(),i=ce(),u=E(null),t=T(()=>{var n,d;return(d=(n=C(u))==null?void 0:n.textContent)!=null?d:""}),{onItemEnter:l,onItemLeave:c}=y(W,void 0),w=S(n=>(o("pointermove",n),n.defaultPrevented),le(n=>{var d;e.disabled?c(n):(l(n),n.defaultPrevented||(d=n.currentTarget)==null||d.focus())})),g=S(n=>(o("pointerleave",n),n.defaultPrevented),le(n=>{c(n)})),_=S(n=>(o("click",n),n.type!=="keydown"&&n.defaultPrevented),n=>{var d,a,m;if(e.disabled){n.stopImmediatePropagation();return}(d=r==null?void 0:r.hideOnClick)!=null&&d.value&&((a=r.handleClick)==null||a.call(r)),(m=r.commandHandler)==null||m.call(r,e.command,i,n)}),I=T(()=>({...e,...s}));return{handleClick:_,handlePointerMove:w,handlePointerLeave:g,textContent:t,propsAndAttrs:I}}});function Fo(e,o,s,r,i,u){var t;const l=b("el-dropdown-item-impl"),c=b("el-roving-focus-item"),w=b("el-dropdown-collection-item");return P(),A(w,{disabled:e.disabled,"text-value":(t=e.textValue)!=null?t:e.textContent},{default:v(()=>[R(c,{focusable:!e.disabled},{default:v(()=>[R(l,U(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:v(()=>[D(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var we=G(To,[["render",Fo],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const ko=B({name:"ElDropdownMenu",props:Pe,setup(e){const o=x("dropdown"),{_elDropdownSize:s}=ve(),r=s.value,{focusTrapRef:i,onKeydown:u}=y(Qe,void 0),{contentRef:t,role:l,triggerId:c}=y(W,void 0),{collectionRef:w,getItems:g}=y(De,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:I,tabIndex:n,onBlur:d,onFocus:a,onMousedown:m}=y(oe,void 0),{collectionRef:N}=y(ee,void 0),F=T(()=>[o.b("menu"),o.bm("menu",r==null?void 0:r.value)]),K=me(t,w,i,_,N),f=S(k=>{var z;(z=e.onKeydown)==null||z.call(e,k)},k=>{const{currentTarget:z,code:M,target:$}=k;if(z.contains($),h.tab===M&&k.stopImmediatePropagation(),k.preventDefault(),$!==C(t)||!Ne.includes(M))return;const Y=g().filter(H=>!H.disabled).map(H=>H.ref);Ke.includes(M)&&Y.reverse(),ne(Y)});return{size:r,rovingFocusGroupRootStyle:I,tabIndex:n,dropdownKls:F,role:l,triggerId:c,dropdownListWrapperRef:K,handleKeydown:k=>{f(k),u(k)},onBlur:d,onFocus:a,onMousedown:m}}}),$o=["role","aria-labelledby"];function Ro(e,o,s,r,i,u){return P(),J("ul",{ref:e.dropdownListWrapperRef,class:Q(e.dropdownKls),style:qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:o[0]||(o[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[1]||(o[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:o[2]||(o[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:o[3]||(o[3]=(...t)=>e.onMousedown&&e.onMousedown(...t))},[D(e.$slots,"default")],46,$o)}var ge=G(ko,[["render",Ro],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Ao=ye(ho,{DropdownItem:we,DropdownMenu:ge}),Lo=pe(we),Uo=pe(ge);export{Lo as E,Uo as a,Ao as b}; +import{b as be,d as q,I as h,_ as B,K as se,r as de,E as ie,Y as _e,u as x,P as he,W as Ie,w as ye,j as pe}from"./base.4ef7f45b.js";import{E as Ee,O as Ce}from"./popper.718d36e0.js";import{E as Te}from"./index.88f36c37.js";import{c as Fe,E as ke,d as $e,a as ue,C as Re,b as Oe,e as Se,f as Pe,g as De,F as Ne,L as Ke}from"./dropdown.2ef7612f.js";import{a as ze,o as Me,c as S,w as le}from"./event.3ec63147.js";import{d as G,r as E,E as y,c as T,v as V,af as Be,x as L,u as C,w as Ge,o as Ae,H as Le,g as D,ae as b,a as P,b as A,e as v,h as R,A as Ue,aB as Ye,Z as He,a0 as ce,f as J,I as Ve,z as U,n as Q,k as X,p as Je,q as We,F as je,i as qe}from"./index.43b3cbf5.js";import{u as Ze}from"./index.566ad052.js";import{c as me}from"./refs.f6f7d296.js";import{F as Qe}from"./focus-trap.4cfde4b4.js";const Xe=be({style:{type:q([String,Array,Object])},currentTabId:{type:q(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:q(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:xe,ElCollectionItem:eo,COLLECTION_INJECTION_KEY:ee,COLLECTION_ITEM_INJECTION_KEY:oo}=Fe("RovingFocusGroup"),oe=Symbol("elRovingFocusGroup"),fe=Symbol("elRovingFocusGroupItem"),no={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ro=(e,o)=>{if(o!=="rtl")return e;switch(e){case h.right:return h.left;case h.left:return h.right;default:return e}},to=(e,o,s)=>{const r=ro(e.key,s);if(!(o==="vertical"&&[h.left,h.right].includes(r))&&!(o==="horizontal"&&[h.up,h.down].includes(r)))return no[r]},lo=(e,o)=>e.map((s,r)=>e[(r+o)%e.length]),ne=e=>{const{activeElement:o}=document;for(const s of e)if(s===o||(s.focus(),o!==document.activeElement))return},ae="currentTabIdChange",Z="rovingFocusGroup.entryFocus",ao={bubbles:!1,cancelable:!0},so=G({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Xe,emits:[ae,"entryFocus"],setup(e,{emit:o}){var s;const r=E((s=e.currentTabId||e.defaultCurrentTabId)!=null?s:null),i=E(!1),u=E(!1),t=E(null),{getItems:l}=y(ee,void 0),c=T(()=>[{outline:"none"},e.style]),w=a=>{o(ae,a)},g=()=>{i.value=!0},_=S(a=>{var m;(m=e.onMousedown)==null||m.call(e,a)},()=>{u.value=!0}),I=S(a=>{var m;(m=e.onFocus)==null||m.call(e,a)},a=>{const m=!C(u),{target:N,currentTarget:F}=a;if(N===F&&m&&!C(i)){const K=new Event(Z,ao);if(F==null||F.dispatchEvent(K),!K.defaultPrevented){const f=l().filter($=>$.focusable),O=f.find($=>$.active),k=f.find($=>$.id===C(r)),M=[O,k,...f].filter(Boolean).map($=>$.ref);ne(M)}}u.value=!1}),n=S(a=>{var m;(m=e.onBlur)==null||m.call(e,a)},()=>{i.value=!1}),d=(...a)=>{o("entryFocus",...a)};V(oe,{currentTabbedId:Be(r),loop:L(e,"loop"),tabIndex:T(()=>C(i)?-1:0),rovingFocusGroupRef:t,rovingFocusGroupRootStyle:c,orientation:L(e,"orientation"),dir:L(e,"dir"),onItemFocus:w,onItemShiftTab:g,onBlur:n,onFocus:I,onMousedown:_}),Ge(()=>e.currentTabId,a=>{r.value=a!=null?a:null}),Ae(()=>{const a=C(t);ze(a,Z,d)}),Le(()=>{const a=C(t);Me(a,Z,d)})}});function io(e,o,s,r,i,u){return D(e.$slots,"default")}var po=B(so,[["render",io],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const uo=G({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:xe,ElRovingFocusGroupImpl:po}});function co(e,o,s,r,i,u){const t=b("el-roving-focus-group-impl"),l=b("el-focus-group-collection");return P(),A(l,null,{default:v(()=>[R(t,Ue(Ye(e.$attrs)),{default:v(()=>[D(e.$slots,"default")]),_:3},16)]),_:3})}var mo=B(uo,[["render",co],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const fo=G({components:{ElRovingFocusCollectionItem:eo},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:o}){const{currentTabbedId:s,loop:r,onItemFocus:i,onItemShiftTab:u}=y(oe,void 0),{getItems:t}=y(ee,void 0),l=se(),c=E(null),w=S(n=>{o("mousedown",n)},n=>{e.focusable?i(C(l)):n.preventDefault()}),g=S(n=>{o("focus",n)},()=>{i(C(l))}),_=S(n=>{o("keydown",n)},n=>{const{key:d,shiftKey:a,target:m,currentTarget:N}=n;if(d===h.tab&&a){u();return}if(m!==N)return;const F=to(n);if(F){n.preventDefault();let f=t().filter(O=>O.focusable).map(O=>O.ref);switch(F){case"last":{f.reverse();break}case"prev":case"next":{F==="prev"&&f.reverse();const O=f.indexOf(N);f=r.value?lo(f,O+1):f.slice(O+1);break}}He(()=>{ne(f)})}}),I=T(()=>s.value===C(l));return V(fe,{rovingFocusGroupItemRef:c,tabIndex:T(()=>C(I)?0:-1),handleMousedown:w,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:w}}});function vo(e,o,s,r,i,u){const t=b("el-roving-focus-collection-item");return P(),A(t,{id:e.id,focusable:e.focusable,active:e.active},{default:v(()=>[D(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var wo=B(fo,[["render",vo],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const W=Symbol("elDropdown"),{ButtonGroup:go}=de,bo=G({name:"ElDropdown",components:{ElButton:de,ElButtonGroup:go,ElScrollbar:Te,ElDropdownCollection:ke,ElTooltip:Ee,ElRovingFocusGroup:mo,ElOnlyChild:Ce,ElIcon:ie,ArrowDown:_e},props:$e,emits:["visible-change","click","command"],setup(e,{emit:o}){const s=ce(),r=x("dropdown"),{t:i}=Ze(),u=E(),t=E(),l=E(null),c=E(null),w=E(null),g=E(null),_=E(!1),I=[h.enter,h.space,h.down],n=T(()=>({maxHeight:he(e.maxHeight)})),d=T(()=>[r.m(f.value)]),a=se().value,m=T(()=>e.id||a);function N(){F()}function F(){var p;(p=l.value)==null||p.onClose()}function K(){var p;(p=l.value)==null||p.onOpen()}const f=Ie();function O(...p){o("command",...p)}function k(){}function z(){const p=C(c);p==null||p.focus(),g.value=null}function M(p){g.value=p}function $(p){_.value||(p.preventDefault(),p.stopImmediatePropagation())}function re(p){(p==null?void 0:p.type)==="keydown"&&c.value.focus(),o("visible-change",!0)}function Y(){o("visible-change",!1)}return V(W,{contentRef:c,role:T(()=>e.role),triggerId:m,isUsingKeyboard:_,onItemEnter:k,onItemLeave:z}),V("elDropdown",{instance:s,dropdownSize:f,handleClick:N,commandHandler:O,trigger:L(e,"trigger"),hideOnClick:L(e,"hideOnClick")}),{t:i,ns:r,scrollbar:w,wrapStyle:n,dropdownTriggerKls:d,dropdownSize:f,triggerId:m,triggerKeys:I,currentTabId:g,handleCurrentTabIdChange:M,handlerMainButtonClick:p=>{o("click",p)},handleEntryFocus:$,handleClose:F,handleOpen:K,handleShowTooltip:re,handleHideTooltip:Y,onFocusAfterTrapped:p=>{var j,te;p.preventDefault(),(te=(j=c.value)==null?void 0:j.focus)==null||te.call(j,{preventScroll:!0})},popperRef:l,contentRef:c,triggeringElementRef:u,referenceElementRef:t}}});function _o(e,o,s,r,i,u){var t;const l=b("el-dropdown-collection"),c=b("el-roving-focus-group"),w=b("el-scrollbar"),g=b("el-only-child"),_=b("el-tooltip"),I=b("el-button"),n=b("arrow-down"),d=b("el-icon"),a=b("el-button-group");return P(),J("div",{class:Q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(t=e.referenceElementRef)==null?void 0:t.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},Ve({content:v(()=>[R(w,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:v(()=>[R(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:v(()=>[R(l,null,{default:v(()=>[D(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:v(()=>[R(g,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:v(()=>[D(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onShow","onHide"]),e.splitButton?(P(),A(a,{key:0},{default:v(()=>[R(I,U({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:v(()=>[D(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(I,U({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:v(()=>[R(d,{class:Q(e.ns.e("icon"))},{default:v(()=>[R(n)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):X("v-if",!0)],2)}var ho=B(bo,[["render",_o],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Io=G({name:"DropdownItemImpl",components:{ElIcon:ie},props:ue,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:o}){const s=x("dropdown"),{role:r}=y(W,void 0),{collectionItemRef:i}=y(Re,void 0),{collectionItemRef:u}=y(oo,void 0),{rovingFocusGroupItemRef:t,tabIndex:l,handleFocus:c,handleKeydown:w,handleMousedown:g}=y(fe,void 0),_=me(i,u,t),I=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),n=S(d=>{const{code:a}=d;if(a===h.enter||a===h.space)return d.preventDefault(),d.stopImmediatePropagation(),o("clickimpl",d),!0},w);return{ns:s,itemRef:_,dataset:{[Oe]:""},role:I,tabIndex:l,handleFocus:c,handleKeydown:n,handleMousedown:g}}}),yo=["aria-disabled","tabindex","role"];function Eo(e,o,s,r,i,u){const t=b("el-icon");return P(),J(je,null,[e.divided?(P(),J("li",U({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):X("v-if",!0),Je("li",U({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:o[0]||(o[0]=l=>e.$emit("clickimpl",l)),onFocus:o[1]||(o[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:o[2]||(o[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:o[3]||(o[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:o[4]||(o[4]=l=>e.$emit("pointermove",l)),onPointerleave:o[5]||(o[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(P(),A(t,{key:0},{default:v(()=>[(P(),A(We(e.icon)))]),_:1})):X("v-if",!0),D(e.$slots,"default")],16,yo)],64)}var Co=B(Io,[["render",Eo],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const ve=()=>{const e=y("elDropdown",{}),o=T(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:o}},To=G({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Se,ElRovingFocusItem:wo,ElDropdownItemImpl:Co},inheritAttrs:!1,props:ue,emits:["pointermove","pointerleave","click"],setup(e,{emit:o,attrs:s}){const{elDropdown:r}=ve(),i=ce(),u=E(null),t=T(()=>{var n,d;return(d=(n=C(u))==null?void 0:n.textContent)!=null?d:""}),{onItemEnter:l,onItemLeave:c}=y(W,void 0),w=S(n=>(o("pointermove",n),n.defaultPrevented),le(n=>{var d;e.disabled?c(n):(l(n),n.defaultPrevented||(d=n.currentTarget)==null||d.focus())})),g=S(n=>(o("pointerleave",n),n.defaultPrevented),le(n=>{c(n)})),_=S(n=>(o("click",n),n.type!=="keydown"&&n.defaultPrevented),n=>{var d,a,m;if(e.disabled){n.stopImmediatePropagation();return}(d=r==null?void 0:r.hideOnClick)!=null&&d.value&&((a=r.handleClick)==null||a.call(r)),(m=r.commandHandler)==null||m.call(r,e.command,i,n)}),I=T(()=>({...e,...s}));return{handleClick:_,handlePointerMove:w,handlePointerLeave:g,textContent:t,propsAndAttrs:I}}});function Fo(e,o,s,r,i,u){var t;const l=b("el-dropdown-item-impl"),c=b("el-roving-focus-item"),w=b("el-dropdown-collection-item");return P(),A(w,{disabled:e.disabled,"text-value":(t=e.textValue)!=null?t:e.textContent},{default:v(()=>[R(c,{focusable:!e.disabled},{default:v(()=>[R(l,U(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:v(()=>[D(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var we=B(To,[["render",Fo],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const ko=G({name:"ElDropdownMenu",props:Pe,setup(e){const o=x("dropdown"),{_elDropdownSize:s}=ve(),r=s.value,{focusTrapRef:i,onKeydown:u}=y(Qe,void 0),{contentRef:t,role:l,triggerId:c}=y(W,void 0),{collectionRef:w,getItems:g}=y(De,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:I,tabIndex:n,onBlur:d,onFocus:a,onMousedown:m}=y(oe,void 0),{collectionRef:N}=y(ee,void 0),F=T(()=>[o.b("menu"),o.bm("menu",r==null?void 0:r.value)]),K=me(t,w,i,_,N),f=S(k=>{var z;(z=e.onKeydown)==null||z.call(e,k)},k=>{const{currentTarget:z,code:M,target:$}=k;if(z.contains($),h.tab===M&&k.stopImmediatePropagation(),k.preventDefault(),$!==C(t)||!Ne.includes(M))return;const Y=g().filter(H=>!H.disabled).map(H=>H.ref);Ke.includes(M)&&Y.reverse(),ne(Y)});return{size:r,rovingFocusGroupRootStyle:I,tabIndex:n,dropdownKls:F,role:l,triggerId:c,dropdownListWrapperRef:K,handleKeydown:k=>{f(k),u(k)},onBlur:d,onFocus:a,onMousedown:m}}}),$o=["role","aria-labelledby"];function Ro(e,o,s,r,i,u){return P(),J("ul",{ref:e.dropdownListWrapperRef,class:Q(e.dropdownKls),style:qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:o[0]||(o[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[1]||(o[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:o[2]||(o[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:o[3]||(o[3]=(...t)=>e.onMousedown&&e.onMousedown(...t))},[D(e.$slots,"default")],46,$o)}var ge=B(ko,[["render",Ro],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Ao=ye(ho,{DropdownItem:we,DropdownMenu:ge}),Lo=pe(we),Uo=pe(ge);export{Lo as E,Uo as a,Ao as b}; diff --git a/src/main/resources/static/assets/dropdown.d5503246.js b/src/main/resources/static/assets/dropdown.2ef7612f.js similarity index 91% rename from src/main/resources/static/assets/dropdown.d5503246.js rename to src/main/resources/static/assets/dropdown.2ef7612f.js index f32082b..70fe1db 100644 --- a/src/main/resources/static/assets/dropdown.d5503246.js +++ b/src/main/resources/static/assets/dropdown.2ef7612f.js @@ -1 +1 @@ -import{_ as I,b as f,d as t,N as O,I as o}from"./base.d698891e.js";import{u as y,a as S}from"./popper.14a92806.js";import{g as C,r as E,v as _,E as b,o as L,u as m,H as $}from"./index.552205f5.js";const h={inheritAttrs:!1};function M(n,l,c,s,a,u){return C(n.$slots,"default")}var w=I(h,[["render",M],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const v={name:"ElCollectionItem",inheritAttrs:!1};function P(n,l,c,s,a,u){return C(n.$slots,"default")}var A=I(v,[["render",P],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const B="data-el-collection-item",K=n=>{const l=`El${n}Collection`,c=`${l}Item`,s=Symbol(l),a=Symbol(c),u={...w,name:l,setup(){const d=E(null),i=new Map;_(s,{itemMap:i,getItems:()=>{const r=m(d);if(!r)return[];const e=Array.from(r.querySelectorAll(`[${B}]`));return[...i.values()].sort((g,N)=>e.indexOf(g.ref)-e.indexOf(N.ref))},collectionRef:d})}},T={...A,name:c,setup(d,{attrs:i}){const p=E(null),r=b(s,void 0);_(a,{collectionItemRef:p}),L(()=>{const e=m(p);e&&r.itemMap.set(e,{ref:e,...i})}),$(()=>{const e=m(p);r.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:u,ElCollectionItem:T}},R=f({trigger:y.trigger,effect:{...S.effect,default:"light"},type:{type:t(String)},placement:{type:t(String),default:"bottom"},popperOptions:{type:t(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:t([Number,String]),default:0},maxHeight:{type:t([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:t(Object)}}),D=f({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:O}}),H=f({onKeydown:{type:t(Function)}}),x=[o.down,o.pageDown,o.home],Y=[o.up,o.pageUp,o.end],U=[...x,...Y],{ElCollection:V,ElCollectionItem:q,COLLECTION_INJECTION_KEY:z,COLLECTION_ITEM_INJECTION_KEY:G}=K("Dropdown");export{G as C,V as E,U as F,Y as L,D as a,B as b,K as c,R as d,q as e,H as f,z as g}; +import{_ as I,b as f,d as t,N as O,I as o}from"./base.4ef7f45b.js";import{u as y,a as S}from"./popper.718d36e0.js";import{g as C,r as E,v as _,E as b,o as L,u as m,H as $}from"./index.43b3cbf5.js";const h={inheritAttrs:!1};function M(n,l,c,s,a,u){return C(n.$slots,"default")}var w=I(h,[["render",M],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const v={name:"ElCollectionItem",inheritAttrs:!1};function P(n,l,c,s,a,u){return C(n.$slots,"default")}var A=I(v,[["render",P],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const B="data-el-collection-item",K=n=>{const l=`El${n}Collection`,c=`${l}Item`,s=Symbol(l),a=Symbol(c),u={...w,name:l,setup(){const d=E(null),i=new Map;_(s,{itemMap:i,getItems:()=>{const r=m(d);if(!r)return[];const e=Array.from(r.querySelectorAll(`[${B}]`));return[...i.values()].sort((g,N)=>e.indexOf(g.ref)-e.indexOf(N.ref))},collectionRef:d})}},T={...A,name:c,setup(d,{attrs:i}){const p=E(null),r=b(s,void 0);_(a,{collectionItemRef:p}),L(()=>{const e=m(p);e&&r.itemMap.set(e,{ref:e,...i})}),$(()=>{const e=m(p);r.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:u,ElCollectionItem:T}},R=f({trigger:y.trigger,effect:{...S.effect,default:"light"},type:{type:t(String)},placement:{type:t(String),default:"bottom"},popperOptions:{type:t(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:t([Number,String]),default:0},maxHeight:{type:t([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:t(Object)}}),D=f({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:O}}),H=f({onKeydown:{type:t(Function)}}),x=[o.down,o.pageDown,o.home],Y=[o.up,o.pageUp,o.end],U=[...x,...Y],{ElCollection:V,ElCollectionItem:q,COLLECTION_INJECTION_KEY:z,COLLECTION_ITEM_INJECTION_KEY:G}=K("Dropdown");export{G as C,V as E,U as F,Y as L,D as a,B as b,K as c,R as d,q as e,H as f,z as g}; diff --git a/src/main/resources/static/assets/error.69207ff6.svg b/src/main/resources/static/assets/error.69207ff6.svg new file mode 100644 index 0000000..0c8a779 --- /dev/null +++ b/src/main/resources/static/assets/error.69207ff6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/file.1054f137.css b/src/main/resources/static/assets/file.1054f137.css deleted file mode 100644 index 9bc9965..0000000 --- a/src/main/resources/static/assets/file.1054f137.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.el-skeleton{--el-skeleton-color: var(--el-fill-color);--el-skeleton-to-color: var(--el-fill-color-darker)}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;animation:el-skeleton-loading 1.4s ease infinite}.el-skeleton{--el-skeleton-circle-size: var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.zfile-async-loading[data-v-0266aecc] .el-skeleton__item{height:100%}.zfile-async-loading .loading[data-v-0266aecc]{background:linear-gradient(100deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 60%) #ededed;background-size:200% 100%;background-position-x:180%;-webkit-animation:1s loading-0266aecc ease-in-out infinite;animation:1s loading-0266aecc ease-in-out infinite}@-webkit-keyframes loading-0266aecc{to{background-position-x:-20%}}@keyframes loading-0266aecc{to{background-position-x:-20%}}.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px #00000012,0 1px 5px #0000001a;border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{transform:scaleX(1);transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px #0003;background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden}.aplayer .aplayer-list.aplayer-list-hide{max-height:0!important}.aplayer .aplayer-list ol{list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list ol::-webkit-scrollbar{width:5px}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list ol li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list ol li:first-child{border-top:none}.aplayer .aplayer-list ol li:hover{background:#efefef}.aplayer .aplayer-list ol li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list ol li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-backtop{--el-backtop-bg-color: var(--el-bg-color-overlay);--el-backtop-text-color: var(--el-color-primary);--el-backtop-hover-bg-color: var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single{width:83.333333%}@media (min-width: 768px){.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single{width:24rem}}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single .el-form-item{margin-bottom:8px}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-multiple{width:83.333333%}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-link-tips{display:none}@media (min-width: 768px){.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-link-tips{display:block}}.el-upload{--el-upload-dragger-padding-horizontal: 40px;--el-upload-dragger-padding-vertical: 10px;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:none}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.el-upload--picture-card{--el-upload-picture-card-size: 148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:hover,.el-upload-list__item.is-success .el-upload-list__item-name:focus{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:not(.focusing):focus,.el-upload-list__item.is-success:active{outline-width:0}.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip,.el-upload-list__item.is-success:active .el-icon--close-tip{display:none}.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item:hover,.el-upload-list.is-disabled .el-upload-list__item-status-label{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size: 148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.zfile-file-upload-body[data-v-8c1e957c] .el-dialog__header{text-align:center}.zfile-file-upload-body[data-v-8c1e957c] .el-dialog__body{max-height:80vh;overflow-y:auto}.zfile-file-upload-body .drop-view[data-v-8c1e957c]{position:fixed;left:0px;bottom:0px;z-index:10;display:flex;height:100%;width:100%;flex-direction:row;align-items:center;justify-content:center;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-bg-opacity: .2}.zfile-file-upload-body .drop-view .drop-sub[data-v-8c1e957c]{display:flex;height:83.333333%;width:83.333333%;align-items:center;justify-content:center;border-radius:1rem;border-width:2px;border-style:dashed;--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity));font-size:1.5rem;line-height:2rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.el-table__body .el-table__row:nth-child(0){opacity:0;-webkit-animation:table-show .15s 0ms forwards linear;animation:table-show .15s 0ms forwards linear}.el-table__body .el-table__row:nth-child(1){opacity:0;-webkit-animation:table-show .15s 10ms forwards linear;animation:table-show .15s 10ms forwards linear}.el-table__body .el-table__row:nth-child(2){opacity:0;-webkit-animation:table-show .15s 20ms forwards linear;animation:table-show .15s 20ms forwards linear}.el-table__body .el-table__row:nth-child(3){opacity:0;-webkit-animation:table-show .15s 30ms forwards linear;animation:table-show .15s 30ms forwards linear}.el-table__body .el-table__row:nth-child(4){opacity:0;-webkit-animation:table-show .15s 40ms forwards linear;animation:table-show .15s 40ms forwards linear}.el-table__body .el-table__row:nth-child(5){opacity:0;-webkit-animation:table-show .15s 50ms forwards linear;animation:table-show .15s 50ms forwards linear}.el-table__body .el-table__row:nth-child(6){opacity:0;-webkit-animation:table-show .15s 60ms forwards linear;animation:table-show .15s 60ms forwards linear}.el-table__body .el-table__row:nth-child(7){opacity:0;-webkit-animation:table-show .15s 70ms forwards linear;animation:table-show .15s 70ms forwards linear}.el-table__body .el-table__row:nth-child(8){opacity:0;-webkit-animation:table-show .15s 80ms forwards linear;animation:table-show .15s 80ms forwards linear}.el-table__body .el-table__row:nth-child(9){opacity:0;-webkit-animation:table-show .15s 90ms forwards linear;animation:table-show .15s 90ms forwards linear}.el-table__body .el-table__row:nth-child(10){opacity:0;-webkit-animation:table-show .15s .1s forwards linear;animation:table-show .15s .1s forwards linear}.el-table__body .el-table__row:nth-child(11){opacity:0;-webkit-animation:table-show .15s .11s forwards linear;animation:table-show .15s .11s forwards linear}.el-table__body .el-table__row:nth-child(12){opacity:0;-webkit-animation:table-show .15s .12s forwards linear;animation:table-show .15s .12s forwards linear}.el-table__body .el-table__row:nth-child(13){opacity:0;-webkit-animation:table-show .15s .13s forwards linear;animation:table-show .15s .13s forwards linear}.el-table__body .el-table__row:nth-child(14){opacity:0;-webkit-animation:table-show .15s .14s forwards linear;animation:table-show .15s .14s forwards linear}.el-table__body .el-table__row:nth-child(15){opacity:0;-webkit-animation:table-show .15s .15s forwards linear;animation:table-show .15s .15s forwards linear}.el-table__body .el-table__row:nth-child(16){opacity:0;-webkit-animation:table-show .15s .16s forwards linear;animation:table-show .15s .16s forwards linear}.el-table__body .el-table__row:nth-child(17){opacity:0;-webkit-animation:table-show .15s .17s forwards linear;animation:table-show .15s .17s forwards linear}.el-table__body .el-table__row:nth-child(18){opacity:0;-webkit-animation:table-show .15s .18s forwards linear;animation:table-show .15s .18s forwards linear}.el-table__body .el-table__row:nth-child(19){opacity:0;-webkit-animation:table-show .15s .19s forwards linear;animation:table-show .15s .19s forwards linear}.el-table__body .el-table__row:nth-child(20){opacity:0;-webkit-animation:table-show .15s .2s forwards linear;animation:table-show .15s .2s forwards linear}.el-table__body .el-table__row:nth-child(21){opacity:0;-webkit-animation:table-show .15s .21s forwards linear;animation:table-show .15s .21s forwards linear}.el-table__body .el-table__row:nth-child(22){opacity:0;-webkit-animation:table-show .15s .22s forwards linear;animation:table-show .15s .22s forwards linear}.el-table__body .el-table__row:nth-child(23){opacity:0;-webkit-animation:table-show .15s .23s forwards linear;animation:table-show .15s .23s forwards linear}.el-table__body .el-table__row:nth-child(24){opacity:0;-webkit-animation:table-show .15s .24s forwards linear;animation:table-show .15s .24s forwards linear}.el-table__body .el-table__row:nth-child(25){opacity:0;-webkit-animation:table-show .15s .25s forwards linear;animation:table-show .15s .25s forwards linear}.el-table__body .el-table__row:nth-child(26){opacity:0;-webkit-animation:table-show .15s .26s forwards linear;animation:table-show .15s .26s forwards linear}.el-table__body .el-table__row:nth-child(27){opacity:0;-webkit-animation:table-show .15s .27s forwards linear;animation:table-show .15s .27s forwards linear}.el-table__body .el-table__row:nth-child(28){opacity:0;-webkit-animation:table-show .15s .28s forwards linear;animation:table-show .15s .28s forwards linear}.el-table__body .el-table__row:nth-child(29){opacity:0;-webkit-animation:table-show .15s .29s forwards linear;animation:table-show .15s .29s forwards linear}.el-table__body .el-table__row:nth-child(30){opacity:0;-webkit-animation:table-show .15s .3s forwards linear;animation:table-show .15s .3s forwards linear}.el-table__body .el-table__row:nth-child(31){opacity:0;-webkit-animation:table-show .15s .31s forwards linear;animation:table-show .15s .31s forwards linear}.el-table__body .el-table__row:nth-child(32){opacity:0;-webkit-animation:table-show .15s .32s forwards linear;animation:table-show .15s .32s forwards linear}.el-table__body .el-table__row:nth-child(33){opacity:0;-webkit-animation:table-show .15s .33s forwards linear;animation:table-show .15s .33s forwards linear}.el-table__body .el-table__row:nth-child(34){opacity:0;-webkit-animation:table-show .15s .34s forwards linear;animation:table-show .15s .34s forwards linear}.el-table__body .el-table__row:nth-child(35){opacity:0;-webkit-animation:table-show .15s .35s forwards linear;animation:table-show .15s .35s forwards linear}.el-table__body .el-table__row:nth-child(36){opacity:0;-webkit-animation:table-show .15s .36s forwards linear;animation:table-show .15s .36s forwards linear}.el-table__body .el-table__row:nth-child(37){opacity:0;-webkit-animation:table-show .15s .37s forwards linear;animation:table-show .15s .37s forwards linear}.el-table__body .el-table__row:nth-child(38){opacity:0;-webkit-animation:table-show .15s .38s forwards linear;animation:table-show .15s .38s forwards linear}.el-table__body .el-table__row:nth-child(39){opacity:0;-webkit-animation:table-show .15s .39s forwards linear;animation:table-show .15s .39s forwards linear}.el-table__body .el-table__row:nth-child(40){opacity:0;-webkit-animation:table-show .15s .4s forwards linear;animation:table-show .15s .4s forwards linear}.el-table__body .el-table__row:nth-child(41){opacity:0;-webkit-animation:table-show .15s .41s forwards linear;animation:table-show .15s .41s forwards linear}.el-table__body .el-table__row:nth-child(42){opacity:0;-webkit-animation:table-show .15s .42s forwards linear;animation:table-show .15s .42s forwards linear}.el-table__body .el-table__row:nth-child(43){opacity:0;-webkit-animation:table-show .15s .43s forwards linear;animation:table-show .15s .43s forwards linear}.el-table__body .el-table__row:nth-child(44){opacity:0;-webkit-animation:table-show .15s .44s forwards linear;animation:table-show .15s .44s forwards linear}.el-table__body .el-table__row:nth-child(45){opacity:0;-webkit-animation:table-show .15s .45s forwards linear;animation:table-show .15s .45s forwards linear}.el-table__body .el-table__row:nth-child(46){opacity:0;-webkit-animation:table-show .15s .46s forwards linear;animation:table-show .15s .46s forwards linear}.el-table__body .el-table__row:nth-child(47){opacity:0;-webkit-animation:table-show .15s .47s forwards linear;animation:table-show .15s .47s forwards linear}.el-table__body .el-table__row:nth-child(48){opacity:0;-webkit-animation:table-show .15s .48s forwards linear;animation:table-show .15s .48s forwards linear}.el-table__body .el-table__row:nth-child(49){opacity:0;-webkit-animation:table-show .15s .49s forwards linear;animation:table-show .15s .49s forwards linear}.el-table__body .el-table__row:nth-child(50){opacity:0;-webkit-animation:table-show .15s .5s forwards linear;animation:table-show .15s .5s forwards linear}.el-table__body .el-table__row:nth-child(51){opacity:0;-webkit-animation:table-show .15s .51s forwards linear;animation:table-show .15s .51s forwards linear}.el-table__body .el-table__row:nth-child(52){opacity:0;-webkit-animation:table-show .15s .52s forwards linear;animation:table-show .15s .52s forwards linear}.el-table__body .el-table__row:nth-child(53){opacity:0;-webkit-animation:table-show .15s .53s forwards linear;animation:table-show .15s .53s forwards linear}.el-table__body .el-table__row:nth-child(54){opacity:0;-webkit-animation:table-show .15s .54s forwards linear;animation:table-show .15s .54s forwards linear}.el-table__body .el-table__row:nth-child(55){opacity:0;-webkit-animation:table-show .15s .55s forwards linear;animation:table-show .15s .55s forwards linear}.el-table__body .el-table__row:nth-child(56){opacity:0;-webkit-animation:table-show .15s .56s forwards linear;animation:table-show .15s .56s forwards linear}.el-table__body .el-table__row:nth-child(57){opacity:0;-webkit-animation:table-show .15s .57s forwards linear;animation:table-show .15s .57s forwards linear}.el-table__body .el-table__row:nth-child(58){opacity:0;-webkit-animation:table-show .15s .58s forwards linear;animation:table-show .15s .58s forwards linear}.el-table__body .el-table__row:nth-child(59){opacity:0;-webkit-animation:table-show .15s .59s forwards linear;animation:table-show .15s .59s forwards linear}.el-table__body .el-table__row:nth-child(60){opacity:0;-webkit-animation:table-show .15s .6s forwards linear;animation:table-show .15s .6s forwards linear}.el-table__body .el-table__row:nth-child(61){opacity:0;-webkit-animation:table-show .15s .61s forwards linear;animation:table-show .15s .61s forwards linear}.el-table__body .el-table__row:nth-child(62){opacity:0;-webkit-animation:table-show .15s .62s forwards linear;animation:table-show .15s .62s forwards linear}.el-table__body .el-table__row:nth-child(63){opacity:0;-webkit-animation:table-show .15s .63s forwards linear;animation:table-show .15s .63s forwards linear}.el-table__body .el-table__row:nth-child(64){opacity:0;-webkit-animation:table-show .15s .64s forwards linear;animation:table-show .15s .64s forwards linear}.el-table__body .el-table__row:nth-child(65){opacity:0;-webkit-animation:table-show .15s .65s forwards linear;animation:table-show .15s .65s forwards linear}.el-table__body .el-table__row:nth-child(66){opacity:0;-webkit-animation:table-show .15s .66s forwards linear;animation:table-show .15s .66s forwards linear}.el-table__body .el-table__row:nth-child(67){opacity:0;-webkit-animation:table-show .15s .67s forwards linear;animation:table-show .15s .67s forwards linear}.el-table__body .el-table__row:nth-child(68){opacity:0;-webkit-animation:table-show .15s .68s forwards linear;animation:table-show .15s .68s forwards linear}.el-table__body .el-table__row:nth-child(69){opacity:0;-webkit-animation:table-show .15s .69s forwards linear;animation:table-show .15s .69s forwards linear}.el-table__body .el-table__row:nth-child(70){opacity:0;-webkit-animation:table-show .15s .7s forwards linear;animation:table-show .15s .7s forwards linear}.el-table__body .el-table__row:nth-child(71){opacity:0;-webkit-animation:table-show .15s .71s forwards linear;animation:table-show .15s .71s forwards linear}.el-table__body .el-table__row:nth-child(72){opacity:0;-webkit-animation:table-show .15s .72s forwards linear;animation:table-show .15s .72s forwards linear}.el-table__body .el-table__row:nth-child(73){opacity:0;-webkit-animation:table-show .15s .73s forwards linear;animation:table-show .15s .73s forwards linear}.el-table__body .el-table__row:nth-child(74){opacity:0;-webkit-animation:table-show .15s .74s forwards linear;animation:table-show .15s .74s forwards linear}.el-table__body .el-table__row:nth-child(75){opacity:0;-webkit-animation:table-show .15s .75s forwards linear;animation:table-show .15s .75s forwards linear}.el-table__body .el-table__row:nth-child(76){opacity:0;-webkit-animation:table-show .15s .76s forwards linear;animation:table-show .15s .76s forwards linear}.el-table__body .el-table__row:nth-child(77){opacity:0;-webkit-animation:table-show .15s .77s forwards linear;animation:table-show .15s .77s forwards linear}.el-table__body .el-table__row:nth-child(78){opacity:0;-webkit-animation:table-show .15s .78s forwards linear;animation:table-show .15s .78s forwards linear}.el-table__body .el-table__row:nth-child(79){opacity:0;-webkit-animation:table-show .15s .79s forwards linear;animation:table-show .15s .79s forwards linear}.el-table__body .el-table__row:nth-child(80){opacity:0;-webkit-animation:table-show .15s .8s forwards linear;animation:table-show .15s .8s forwards linear}.el-table__body .el-table__row:nth-child(81){opacity:0;-webkit-animation:table-show .15s .81s forwards linear;animation:table-show .15s .81s forwards linear}.el-table__body .el-table__row:nth-child(82){opacity:0;-webkit-animation:table-show .15s .82s forwards linear;animation:table-show .15s .82s forwards linear}.el-table__body .el-table__row:nth-child(83){opacity:0;-webkit-animation:table-show .15s .83s forwards linear;animation:table-show .15s .83s forwards linear}.el-table__body .el-table__row:nth-child(84){opacity:0;-webkit-animation:table-show .15s .84s forwards linear;animation:table-show .15s .84s forwards linear}.el-table__body .el-table__row:nth-child(85){opacity:0;-webkit-animation:table-show .15s .85s forwards linear;animation:table-show .15s .85s forwards linear}.el-table__body .el-table__row:nth-child(86){opacity:0;-webkit-animation:table-show .15s .86s forwards linear;animation:table-show .15s .86s forwards linear}.el-table__body .el-table__row:nth-child(87){opacity:0;-webkit-animation:table-show .15s .87s forwards linear;animation:table-show .15s .87s forwards linear}.el-table__body .el-table__row:nth-child(88){opacity:0;-webkit-animation:table-show .15s .88s forwards linear;animation:table-show .15s .88s forwards linear}.el-table__body .el-table__row:nth-child(89){opacity:0;-webkit-animation:table-show .15s .89s forwards linear;animation:table-show .15s .89s forwards linear}.el-table__body .el-table__row:nth-child(90){opacity:0;-webkit-animation:table-show .15s .9s forwards linear;animation:table-show .15s .9s forwards linear}.el-table__body .el-table__row:nth-child(91){opacity:0;-webkit-animation:table-show .15s .91s forwards linear;animation:table-show .15s .91s forwards linear}.el-table__body .el-table__row:nth-child(92){opacity:0;-webkit-animation:table-show .15s .92s forwards linear;animation:table-show .15s .92s forwards linear}.el-table__body .el-table__row:nth-child(93){opacity:0;-webkit-animation:table-show .15s .93s forwards linear;animation:table-show .15s .93s forwards linear}.el-table__body .el-table__row:nth-child(94){opacity:0;-webkit-animation:table-show .15s .94s forwards linear;animation:table-show .15s .94s forwards linear}.el-table__body .el-table__row:nth-child(95){opacity:0;-webkit-animation:table-show .15s .95s forwards linear;animation:table-show .15s .95s forwards linear}.el-table__body .el-table__row:nth-child(96){opacity:0;-webkit-animation:table-show .15s .96s forwards linear;animation:table-show .15s .96s forwards linear}.el-table__body .el-table__row:nth-child(97){opacity:0;-webkit-animation:table-show .15s .97s forwards linear;animation:table-show .15s .97s forwards linear}.el-table__body .el-table__row:nth-child(98){opacity:0;-webkit-animation:table-show .15s .98s forwards linear;animation:table-show .15s .98s forwards linear}.el-table__body .el-table__row:nth-child(99){opacity:0;-webkit-animation:table-show .15s .99s forwards linear;animation:table-show .15s .99s forwards linear}@-webkit-keyframes table-show{0%{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes table-show{0%{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}@font-face{font-family:v-contextmenu;src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=#iefix) format("embedded-opentype"),url(data:font/woff;base64,d09GRgABAAAAAAUAAAsAAAAAB1gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kgMY21hcAAAAYAAAABeAAABhpnABr5nbHlmAAAB4AAAAS4AAAE8h1VEkmhlYWQAAAMQAAAALwAAADYPY7HCaGhlYQAAA0AAAAAcAAAAJAfeA4RobXR4AAADXAAAAAwAAAAMC+kAAGxvY2EAAANoAAAACAAAAAgAdgCebWF4cAAAA3AAAAAfAAAAIAESAF1uYW1lAAADkAAAAUUAAAJtPlT+fXBvc3QAAATYAAAAKAAAADlBG9LpeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sE4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDxTYm7438AQw9zA0AAUZgTJAQAl4gyOeJzFkMENgDAMAy9t6QMxRV88GIgXc3TirlFMKA8mqCXHimMpUYAFiOIhJrAL48Ep19yPrO4nz2SpEait9K7+U0U0y65BJTMNNm/1H5vXfXT6CnVQJ7byknADpO8MFwAAeJwVjL1Kw1AARu93Y/7a3MTe/KdN2yS2V6kGjLEKYru4KA6Cgzj6ALp2cegiODj4DCKIr1D6AL6A7qIP4BNE48fhwFk+IhPy+yktpYDYZJ1skyNyRgiUEVKTxkhEmdMR3ER2fceURCYSNUtz6RB+qjheMS6HvqIqFkx0sZMUY5FTgd1yQg9QeDEQtqNzPuhw6RGNQHTvqhP6BLeXdazJVnW8OXWKvq3NDM5Dzh80RZY1SlcsE9e+p8t6Q6meZStyl70N2oMRiuj0kvXb/Oq+vIkHvg7M57DbffNl2opaNbeRZ/NQXWVaELFszcHsuxnYRjz8IvXwL/pBf0irDkeFkmO8pyPHBD48+s6qVzMJwLBfvTEEKcMFw5wb1aKJMGEQECwJ0awWRv30B+KIMJEAAHicY2BkYGAA4sM/urfH89t8ZeBmYQCBa0pmzxD0/4csDMwSQC4HAxNIFABNGgrfAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAAA+kAAAQAAAAAAAAAAHYAnnicY2BkYGBgZghkYGUAASYg5gJCBob/YD4DABD3AXAAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYGxgjuxqCi/XLcoMz2jhIEBAC8dBRY=) format("woff"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4i7dfDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=) format("truetype"),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0A%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%20%3E%0A%3C!--%0A2013-9-30%3A%20Created.%0A--%3E%0A%3Csvg%3E%0A%3Cmetadata%3E%0ACreated%20by%20iconfont%0A%3C%2Fmetadata%3E%0A%3Cdefs%3E%0A%0A%3Cfont%20id%3D%22iconfont%22%20horiz-adv-x%3D%221024%22%20%3E%0A%20%20%3Cfont-face%0A%20%20%20%20font-family%3D%22iconfont%22%0A%20%20%20%20font-weight%3D%22500%22%0A%20%20%20%20font-stretch%3D%22normal%22%0A%20%20%20%20units-per-em%3D%221024%22%0A%20%20%20%20ascent%3D%22896%22%0A%20%20%20%20descent%3D%22-128%22%0A%20%20%2F%3E%0A%20%20%20%20%3Cmissing-glyph%20%2F%3E%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22x%22%20unicode%3D%22x%22%20horiz-adv-x%3D%221001%22%0Ad%3D%22M281%20543q-27%20-1%20-53%20-1h-83q-18%200%20-36.5%20-6t-32.5%20-18.5t-23%20-32t-9%20-45.5v-76h912v41q0%2016%20-0.5%2030t-0.5%2018q0%2013%20-5%2029t-17%2029.5t-31.5%2022.5t-49.5%209h-133v-97h-438v97zM955%20310v-52q0%20-23%200.5%20-52t0.5%20-58t-10.5%20-47.5t-26%20-30t-33%20-16t-31.5%20-4.5q-14%20-1%20-29.5%20-0.5%0At-29.5%200.5h-32l-45%20128h-439l-44%20-128h-29h-34q-20%200%20-45%201q-25%200%20-41%209.5t-25.5%2023t-13.5%2029.5t-4%2030v167h911zM163%20247q-12%200%20-21%20-8.5t-9%20-21.5t9%20-21.5t21%20-8.5q13%200%2022%208.5t9%2021.5t-9%2021.5t-22%208.5zM316%20123q-8%20-26%20-14%20-48q-5%20-19%20-10.5%20-37t-7.5%20-25t-3%20-15t1%20-14.5%0At9.5%20-10.5t21.5%20-4h37h67h81h80h64h36q23%200%2034%2012t2%2038q-5%2013%20-9.5%2030.5t-9.5%2034.5q-5%2019%20-11%2039h-368zM336%20498v228q0%2011%202.5%2023t10%2021.5t20.5%2015.5t34%206h188q31%200%2051.5%20-14.5t20.5%20-52.5v-227h-327z%22%20%2F%3E%0A%20%20%20%20%0A%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22arrow-right%22%20unicode%3D%22%26%2358914%3B%22%20d%3D%22M725.3399071604938%20383.8342991012345a41.425224691358025%2041.425224691358025%200%200%200-12.924670103703681-30.074713125925918l-343.82936493827134-325.2708642765434a41.425224691358025%2041.425224691358025%200%200%200-56.91825872592596%2060.23227670123452l312.0976428246912%20295.1961511506175-312.0976428246914%20295.4447024987654a41.50807514074074%2041.50807514074074%200%200%200-1.6570089876543506%2058.575267713580246c15.74158538271605%2016.570089876543207%2042.00517783703699%2017.315743920987664%2058.575267713580246%201.6570089876543506l343.8293649382716-325.6022660740737a41.425224691358025%2041.425224691358025%200%200%200%2012.924670103703713-30.15756357530862z%22%20%20horiz-adv-x%3D%221024%22%20%2F%3E%0A%0A%20%20%20%20%0A%0A%0A%20%20%3C%2Ffont%3E%0A%3C%2Fdefs%3E%3C%2Fsvg%3E%0A) format("svg")}.v-contextmenu-icon{font-family:v-contextmenu!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.v-contextmenu-icon-right-arrow:before{content:"\e622"}.v-contextmenu{position:absolute;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;-webkit-box-shadow:2px 2px 8px 0 rgba(150,150,150,.2);box-shadow:2px 2px 8px #96969633;font-size:14px;white-space:nowrap;line-height:1;z-index:2020;-webkit-tap-highlight-color:transparent}.v-contextmenu-inner{padding:5px 0;margin:0;list-style:none}.v-contextmenu-item{padding:5px 14px;line-height:1;color:#333;cursor:pointer}.v-contextmenu-item--hover{color:#fff;background-color:#46a0fc}.v-contextmenu-item--disabled{color:#3336;cursor:not-allowed}.v-contextmenu-divider{height:0;margin:5px 0;border-bottom:1px solid #e8e8e8}.v-contextmenu-group__title{padding:5px 14px 2.5px;color:#3333338c;font-size:60%}.v-contextmenu-group__menus{padding:0 5px;margin:0;list-style:none}.v-contextmenu-group__menus .v-contextmenu-item{display:inline-block;padding:5px 9px}.v-contextmenu-submenu{position:relative}.v-contextmenu-submenu__title{padding-right:22.4px}.v-contextmenu-submenu__menus{position:absolute}.v-contextmenu-submenu__menus--left{left:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.v-contextmenu-submenu__menus--right{right:0;-webkit-transform:translateX(100%);transform:translate(100%)}.v-contextmenu-submenu__menus--top{top:-6px}.v-contextmenu-submenu__menus--bottom{bottom:-6px}.v-contextmenu-submenu__arrow{position:absolute;right:5px}.v-contextmenu-enter-active{-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.v-contextmenu-leave-active{-webkit-transition:opacity .3s cubic-bezier(1,.5,.8,1);transition:opacity .3s cubic-bezier(1,.5,.8,1)}.v-contextmenu-enter-from,.v-contextmenu-leave-to{opacity:0}.zfile-index-body-wrapper[data-v-c8a7dd96],.zfile-index-body[data-v-c8a7dd96]{height:100%}@media (min-width: 768px){.zfile-index-body[data-v-c8a7dd96]{padding-left:1rem;padding-right:1rem}}.zfile-index-table-center[data-v-c8a7dd96]{margin-left:10%;width:80%}.el-table[data-v-c8a7dd96]{overflow-y:hidden}.el-table[data-v-c8a7dd96] .el-table__inner-wrapper,.el-table[data-v-c8a7dd96] .el-table__body-wrapper{height:100%}.el-table .el-table__header-wrapper .el-icon[data-v-c8a7dd96]{top:.125rem;margin-right:1rem;font-size:.875rem;line-height:1.25rem}.el-table .el-table__body-wrapper .zfile-table-col-name svg[data-v-c8a7dd96]{position:relative;top:-1.5px;margin-right:.375rem;display:inline;vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.el-table[data-v-c8a7dd96] tr{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table.el-table--default .el-table__header-wrapper .el-icon[data-v-c8a7dd96]{font-size:1rem;line-height:1.5rem}.el-table.el-table--default .el-table__body-wrapper .zfile-table-col-name svg[data-v-c8a7dd96]{font-size:1.5rem;line-height:2rem}.el-table.el-table--large .el-table__header-wrapper .el-icon[data-v-c8a7dd96]{font-size:1.25rem;line-height:1.75rem}.el-table.el-table--large .el-table__body-wrapper .zfile-table-col-name svg[data-v-c8a7dd96]{font-size:1.875rem;line-height:2.25rem}.zfile-index-body[data-v-c8a7dd96] .el-table__empty-block{margin-top:-2.5rem;margin-bottom:2.5rem}.zfile-index-body[data-v-c8a7dd96] .el-table__empty-text{width:100%}.zfile-index-body[data-v-c8a7dd96] .empty-icon{display:initial;height:20rem;width:20rem}.zfile-index-body[data-v-c8a7dd96] .el-dialog__header{margin-top:-.75rem;margin-left:.5rem;padding-top:.25rem;padding-bottom:.25rem;text-align:center}.zfile-index-body[data-v-c8a7dd96] .el-dialog__title{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.zfile-index-body[data-v-c8a7dd96] .el-dialog__header .el-dialog__headerbtn{margin-top:-.75rem}.zfile-index-body[data-v-c8a7dd96] .el-overlay-dialog{overflow:hidden}.zfile-index-body[data-v-c8a7dd96] .el-dialog{margin-top:1.5rem!important}@media (min-width: 640px){.zfile-index-body[data-v-c8a7dd96] .el-dialog{margin-top:2rem!important}}.zfile-index-body[data-v-c8a7dd96] .zfile-video-dialog{width:91.666667%}.zfile-index-body[data-v-c8a7dd96] .zfile-video-dialog .el-dialog__body{padding:0}@media (min-width: 640px){.zfile-index-body[data-v-c8a7dd96] .zfile-video-dialog .el-dialog__body{padding-top:.5rem}}.zfile-index-body[data-v-c8a7dd96] .zfile-text-dialog{width:91.666667%}.zfile-index-body[data-v-c8a7dd96] .zfile-text-dialog .el-dialog__body{padding:1rem .25rem}.zfile-index-body[data-v-c8a7dd96] .zfile-pdf-dialog .el-dialog__body{height:80vh;overflow:auto}@media (min-width: 640px){.zfile-index-body[data-v-c8a7dd96] .zfile-pdf-dialog .el-dialog__body{height:85vh}}.zfile-index-body[data-v-c8a7dd96] .select-row{background-color:var(--el-table-row-hover-bg-color)}.v-contextmenu-item[data-v-c8a7dd96] label{margin-left:.625rem}.v-contextmenu-item[data-v-c8a7dd96] .contextmenu-icon{top:1px;padding-top:1px}.zfile-index-body[data-v-c8a7dd96] .v-md-editor-preview .github-markdown-body{padding:unset}.zfile-index-announcement[data-v-c8a7dd96]{margin:10px 0}.zfile-index-body .zfile-index-hover-tools[data-v-c8a7dd96]{position:absolute;bottom:0px;left:0px;right:0px;z-index:10;margin-left:auto;margin-right:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media (min-width: 640px){.zfile-index-body .zfile-index-hover-tools[data-v-c8a7dd96]{bottom:2.5rem}}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-c8a7dd96]{margin-left:auto;margin-right:auto;height:3rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-c8a7dd96]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-c8a7dd96]{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity));padding:.5rem 1.25rem;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body svg[data-v-c8a7dd96]{display:inline;cursor:pointer;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body svg[data-v-c8a7dd96]:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))} diff --git a/src/main/resources/static/assets/file.1d5fdc69.js b/src/main/resources/static/assets/file.1d5fdc69.js deleted file mode 100644 index 3861108..0000000 --- a/src/main/resources/static/assets/file.1d5fdc69.js +++ /dev/null @@ -1 +0,0 @@ -import{d as re,r as G,v as at,o as Fe,a as u,f as k,g as ae,n as I,u as t,E as ot,ad as Ne,p as v,b as N,e as _,q as zt,t as be,a0 as St,G as Vt,c as z,i as se,ae as we,h as m,Q as pe,R as Ie,k as P,j as Be,T as Ct,X as Et,W as Ae,w as de,ak as $t,B as Se,m as je,D as It,Z as Pe,s as Bt,S as Me,al as Nt,F as ue,y as ge,$ as Pt,P as He,L as nt,U as Mt,V as Tt,M as Lt,J as W,a1 as Ft,aI as At}from"./index.552205f5.js";import{b as me,N as Rt,u as le,_ as oe,d as fe,E as Te,w as xe,j as ke,i as Ut,M as Kt,P as jt,S as Ye,V as te,k as ye,aq as it,J as Ve,W as st,q as Yt,Y as Ht,b5 as Ot,Z as Xt,b3 as Wt,o as Le,I as qt,t as Gt,U as Jt,r as Zt}from"./base.d698891e.js";import{b as Qt,c as Dt,u as er}from"./overlay.7eff71c7.js";import{E as tr}from"./switch.2393edfd.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as Oe}from"./popper.14a92806.js";import{S as dt}from"./SvgIcon.c7a5ac24.js";import"./scrollbar.97fa2ffd.js";import{E as ut,a as ct}from"./select.ff52a9e1.js";import{u as rr,f as lr,E as mt,l as ar}from"./request.3708b2c4.js";import{a as Xe,b as ze,i as We,r as or,j as nr,u as ir,g as sr,d as dr,e as ur,l as cr}from"./useFileUpload.b18c246f.js";import{_ as qe}from"./plugin-vue_export-helper.21dcd24c.js";import{E as mr}from"./index.4ab44dc8.js";import{C as Ge,I as Re,U as ve}from"./event.776e7e11.js";import{u as Je}from"./index.1e624cbf.js";import{v as Qe}from"./index.7fa0be7b.js";import{d as De}from"./debounce.32892d61.js";import{E as fr}from"./index.0f572ca8.js";import{E as pr}from"./focus-trap.58847c97.js";import{E as gr,a as br,b as vr}from"./dropdown-item.448534e1.js";/* empty css */import{E as hr}from"./index.11692625.js";import{r as _r}from"./MenuIcon.aa2f9509.js";import{E as wr}from"./index.24f1077d.js";import{c as Ce}from"./common.0f75f163.js";import"./validator.6f3b33db.js";import"./event.3ec63147.js";import"./index.3eb5cbdf.js";import"./scroll.cbf731df.js";import"./isEqual.fe8e5f6f.js";import"./directive.e250a256.js";import"./dropdown.d5503246.js";import"./refs.4597d917.js";const ft=Symbol("breadcrumbKey"),pt=Symbol("sliderContextKey"),yr=me({separator:{type:String,default:"/"},separatorIcon:{type:Rt,default:""}}),xr={name:"ElBreadcrumb"},kr=re({...xr,props:yr,setup(e){const r=e,a=le("breadcrumb"),l=G();return at(ft,r),Fe(()=>{const n=l.value.querySelectorAll(`.${a.e("item")}`);n.length&&n[n.length-1].setAttribute("aria-current","page")}),(n,d)=>(u(),k("div",{ref_key:"breadcrumb",ref:l,class:I(t(a).b()),"aria-label":"Breadcrumb",role:"navigation"},[ae(n.$slots,"default")],2))}});var zr=oe(kr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Sr=me({to:{type:fe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Vr={name:"ElBreadcrumbItem"},Cr=re({...Vr,props:Sr,setup(e){const r=e,a=St(),l=ot(ft,void 0),n=le("breadcrumb"),{separator:d,separatorIcon:p}=Ne(l),b=a.appContext.config.globalProperties.$router,x=G(),c=()=>{!r.to||!b||(r.replace?b.replace(r.to):b.push(r.to))};return(f,i)=>(u(),k("span",{class:I(t(n).e("item"))},[v("span",{ref_key:"link",ref:x,class:I([t(n).e("inner"),t(n).is("link",!!f.to)]),role:"link",onClick:c},[ae(f.$slots,"default")],2),t(p)?(u(),N(t(Te),{key:0,class:I(t(n).e("separator"))},{default:_(()=>[(u(),N(zt(t(p))))]),_:1},8,["class"])):(u(),k("span",{key:1,class:I(t(n).e("separator")),role:"presentation"},be(t(d)),3))],2))}});var gt=oe(Cr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Er=xe(zr,{BreadcrumbItem:gt}),$r=ke(gt),Ir={name:"ElContainer"},Br=re({...Ir,props:{direction:{type:String}},setup(e){const r=e,a=Vt(),l=le("container"),n=z(()=>r.direction==="vertical"?!0:r.direction==="horizontal"?!1:a&&a.default?a.default().some(p=>{const b=p.type.name;return b==="ElHeader"||b==="ElFooter"}):!1);return(d,p)=>(u(),k("section",{class:I([t(l).b(),t(l).is("vertical",t(n))])},[ae(d.$slots,"default")],2))}});var Nr=oe(Br,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Pr={name:"ElAside"},Mr=re({...Pr,props:{width:{type:String,default:null}},setup(e){const r=e,a=le("aside"),l=z(()=>r.width?a.cssVarBlock({width:r.width}):{});return(n,d)=>(u(),k("aside",{class:I(t(a).b()),style:se(t(l))},[ae(n.$slots,"default")],6))}});var bt=oe(Mr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Tr={name:"ElFooter"},Lr=re({...Tr,props:{height:{type:String,default:null}},setup(e){const r=e,a=le("footer"),l=z(()=>r.height?a.cssVarBlock({height:r.height}):{});return(n,d)=>(u(),k("footer",{class:I(t(a).b()),style:se(t(l))},[ae(n.$slots,"default")],6))}});var vt=oe(Lr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Fr={name:"ElHeader"},Ar=re({...Fr,props:{height:{type:String,default:null}},setup(e){const r=e,a=le("header"),l=z(()=>r.height?a.cssVarBlock({height:r.height}):{});return(n,d)=>(u(),k("header",{class:I(t(a).b()),style:se(t(l))},[ae(n.$slots,"default")],6))}});var ht=oe(Ar,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Rr={name:"ElMain"},Ur=re({...Rr,setup(e){const r=le("main");return(a,l)=>(u(),k("main",{class:I(t(r).b())},[ae(a.$slots,"default")],2))}});var _t=oe(Ur,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Kr=xe(Nr,{Aside:bt,Footer:vt,Header:ht,Main:_t});ke(bt);const jr=ke(vt),Yr=ke(ht),Hr=ke(_t),Or=me({...Qt,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Xr=Dt,Wr=re({name:"ElDrawer",components:{ElOverlay:fr,ElFocusTrap:pr,ElIcon:Te,Close:Ut},props:Or,emits:Xr,setup(e,{slots:r}){Kt({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},z(()=>!!r.title));const a=G(),l=G(),n=le("drawer"),{t:d}=Je(),p=z(()=>e.direction==="rtl"||e.direction==="ltr"),b=z(()=>jt(e.size));return{...er(e,a),drawerRef:a,focusStartRef:l,isHorizontal:p,drawerSize:b,ns:n,t:d}}}),qr=["aria-label","aria-labelledby","aria-describedby"],Gr=["id"],Jr=["aria-label"],Zr=["id"];function Qr(e,r,a,l,n,d){const p=we("close"),b=we("el-icon"),x=we("el-focus-trap"),c=we("el-overlay");return u(),N(Et,{to:"body",disabled:!e.appendToBody},[m(Ct,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:_(()=>[pe(m(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:_(()=>[m(x,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:_(()=>[v("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:I([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:se(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:r[1]||(r[1]=Be(()=>{},["stop"]))},[v("span",{ref:"focusStartRef",class:I(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(u(),k("header",{key:0,class:I(e.ns.e("header"))},[e.$slots.title?ae(e.$slots,"title",{key:1},()=>[P(" DEPRECATED SLOT ")]):ae(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?P("v-if",!0):(u(),k("span",{key:0,id:e.titleId,role:"heading",class:I(e.ns.e("title"))},be(e.title),11,Gr))]),e.showClose?(u(),k("button",{key:2,"aria-label":e.t("el.drawer.close"),class:I(e.ns.e("close-btn")),type:"button",onClick:r[0]||(r[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[m(b,{class:I(e.ns.e("close"))},{default:_(()=>[m(p)]),_:1},8,["class"])],10,Jr)):P("v-if",!0)],2)):P("v-if",!0),e.rendered?(u(),k("div",{key:1,id:e.bodyId,class:I(e.ns.e("body"))},[ae(e.$slots,"default")],10,Zr)):P("v-if",!0),e.$slots.footer?(u(),k("div",{key:2,class:I(e.ns.e("footer"))},[ae(e.$slots,"footer")],2)):P("v-if",!0)],14,qr)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ie,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Dr=oe(Wr,[["render",Qr],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const el=xe(Dr),tl=me({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:Ye,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||te(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)}}),rl={[Ge]:(e,r)=>e!==r,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Re]:e=>te(e)||ye(e),[ve]:e=>te(e)||ye(e)},ll=["aria-label","onKeydown"],al=["aria-label","onKeydown"],ol={name:"ElInputNumber"},nl=re({...ol,props:tl,emits:rl,setup(e,{expose:r,emit:a}){const l=e,{t:n}=Je(),d=le("input-number"),p=G(),b=Ae({currentValue:l.modelValue,userInput:null}),{formItem:x}=it(),c=z(()=>te(l.modelValue)&&M(l.modelValue,-1)te(l.modelValue)&&M(l.modelValue)>l.max),i=z(()=>{const o=A(l.step);return Ve(l.precision)?Math.max(A(l.modelValue),o):(o>l.precision,l.precision)}),S=z(()=>l.controls&&l.controlsPosition==="right"),L=st(),T=Yt(),j=z(()=>{if(b.userInput!==null)return b.userInput;let o=b.currentValue;if(ye(o))return"";if(te(o)){if(Number.isNaN(o))return"";Ve(l.precision)||(o=o.toFixed(l.precision))}return o}),H=(o,g)=>{if(Ve(g)&&(g=i.value),g===0)return Math.round(o);let $=String(o);const B=$.indexOf(".");if(B===-1||!$.replace(".","").split("")[B+g])return o;const C=$.length;return $.charAt(C-1)==="5"&&($=`${$.slice(0,Math.max(0,C-1))}6`),Number.parseFloat(Number($).toFixed(g))},A=o=>{if(ye(o))return 0;const g=o.toString(),$=g.indexOf(".");let B=0;return $!==-1&&(B=g.length-$-1),B},M=(o,g=1)=>te(o)?H(o+l.step*g):b.currentValue,Y=()=>{if(T.value||f.value)return;const o=l.modelValue||0,g=M(o);X(g)},s=()=>{if(T.value||c.value)return;const o=l.modelValue||0,g=M(o,-1);X(g)},w=(o,g)=>{const{max:$,min:B,step:F,precision:K,stepStrictly:C,valueOnClear:O}=l;let R=Number(o);if(ye(o)||Number.isNaN(R))return null;if(o===""){if(O===null)return null;R=je(O)?{min:B,max:$}[O]:O}return C&&(R=Math.round(R/F)*F),Ve(K)||(R=H(R,K)),(R>$||R$?$:B,g&&a("update:modelValue",R)),R},X=o=>{var g;const $=b.currentValue,B=w(o);$!==B&&(b.userInput=null,a("update:modelValue",B),a("input",B),a("change",B,$),(g=x==null?void 0:x.validate)==null||g.call(x,"change").catch(F=>Le()),b.currentValue=B)},Z=o=>b.userInput=o,Q=o=>{const g=o!==""?Number(o):"";(te(g)&&!Number.isNaN(g)||o==="")&&X(g),b.userInput=null},D=()=>{var o,g;(g=(o=p.value)==null?void 0:o.focus)==null||g.call(o)},ee=()=>{var o,g;(g=(o=p.value)==null?void 0:o.blur)==null||g.call(o)},h=o=>{a("focus",o)},V=o=>{var g;a("blur",o),(g=x==null?void 0:x.validate)==null||g.call(x,"blur").catch($=>Le())};return de(()=>l.modelValue,o=>{b.currentValue=w(o,!0),b.userInput=null},{immediate:!0}),Fe(()=>{var o;const{min:g,max:$,modelValue:B}=l,F=(o=p.value)==null?void 0:o.input;if(F.setAttribute("role","spinbutton"),Number.isFinite($)?F.setAttribute("aria-valuemax",String($)):F.removeAttribute("aria-valuemax"),Number.isFinite(g)?F.setAttribute("aria-valuemin",String(g)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",String(b.currentValue)),F.setAttribute("aria-disabled",String(T.value)),!te(B)&&B!=null){let K=Number(B);Number.isNaN(K)&&(K=null),a("update:modelValue",K)}}),$t(()=>{var o;const g=(o=p.value)==null?void 0:o.input;g==null||g.setAttribute("aria-valuenow",`${b.currentValue}`)}),r({focus:D,blur:ee}),(o,g)=>(u(),k("div",{class:I([t(d).b(),t(d).m(t(L)),t(d).is("disabled",t(T)),t(d).is("without-controls",!o.controls),t(d).is("controls-right",t(S))]),onDragstart:g[0]||(g[0]=Be(()=>{},["prevent"]))},[o.controls?pe((u(),k("span",{key:0,role:"button","aria-label":t(n)("el.inputNumber.decrease"),class:I([t(d).e("decrease"),t(d).is("disabled",t(c))]),onKeydown:Se(s,["enter"])},[m(t(Te),null,{default:_(()=>[t(S)?(u(),N(t(Ht),{key:0})):(u(),N(t(Ot),{key:1}))]),_:1})],42,ll)),[[t(Qe),s]]):P("v-if",!0),o.controls?pe((u(),k("span",{key:1,role:"button","aria-label":t(n)("el.inputNumber.increase"),class:I([t(d).e("increase"),t(d).is("disabled",t(f))]),onKeydown:Se(Y,["enter"])},[m(t(Te),null,{default:_(()=>[t(S)?(u(),N(t(Xt),{key:0})):(u(),N(t(Wt),{key:1}))]),_:1})],42,al)),[[t(Qe),Y]]):P("v-if",!0),m(t(mr),{id:o.id,ref_key:"input",ref:p,type:"number",step:o.step,"model-value":t(j),placeholder:o.placeholder,disabled:t(T),size:t(L),max:o.max,min:o.min,name:o.name,label:o.label,"validate-event":!1,onKeydown:[Se(Be(Y,["prevent"]),["up"]),Se(Be(s,["prevent"]),["down"])],onBlur:V,onFocus:h,onInput:Z,onChange:Q},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var il=oe(nl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const wt=xe(il),sl=me({modelValue:{type:fe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ye,inputSize:Ye,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:fe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:fe(Function),default:void 0},tooltipClass:{type:String,default:void 0},marks:{type:fe(Object)}}),Ue=e=>te(e)||It(e)&&e.every(te),dl={[ve]:Ue,[Re]:Ue,[Ge]:Ue},ul=(e,r,a)=>{const l=G();return Fe(async()=>{e.range?(Array.isArray(e.modelValue)?(r.firstValue=Math.max(e.min,e.modelValue[0]),r.secondValue=Math.min(e.max,e.modelValue[1])):(r.firstValue=e.min,r.secondValue=e.max),r.oldValue=[r.firstValue,r.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?r.firstValue=e.min:r.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),r.oldValue=r.firstValue),rr(window,"resize",a),await Pe(),a()}),{sliderWrapper:l}},cl=e=>z(()=>e.marks?Object.keys(e.marks).map(parseFloat).sort((a,l)=>a-l).filter(a=>a<=e.max&&a>=e.min).map(a=>({point:a,position:(a-e.min)*100/(e.max-e.min),mark:e.marks[a]})):[]),ml=(e,r,a)=>{const{form:l,formItem:n}=it(),d=Bt(),p=G(),b=G(),x={firstButton:p,secondButton:b},c=z(()=>e.disabled||(l==null?void 0:l.disabled)||!1),f=z(()=>Math.min(r.firstValue,r.secondValue)),i=z(()=>Math.max(r.firstValue,r.secondValue)),S=z(()=>e.range?`${100*(i.value-f.value)/(e.max-e.min)}%`:`${100*(r.firstValue-e.min)/(e.max-e.min)}%`),L=z(()=>e.range?`${100*(f.value-e.min)/(e.max-e.min)}%`:"0%"),T=z(()=>e.vertical?{height:e.height}:{}),j=z(()=>e.vertical?{height:S.value,bottom:L.value}:{width:S.value,left:L.value}),H=()=>{d.value&&(r.sliderSize=d.value[`client${e.vertical?"Height":"Width"}`])},A=h=>{const V=e.min+h*(e.max-e.min)/100;if(!e.range)return p;let o;return Math.abs(f.value-V)r.secondValue?"firstButton":"secondButton",x[o]},M=h=>{const V=A(h);return V.value.setPosition(h),V},Y=h=>{r.firstValue=h,w(e.range?[f.value,i.value]:h)},s=h=>{r.secondValue=h,e.range&&w([f.value,i.value])},w=h=>{a(ve,h),a(Re,h)},X=async()=>{await Pe(),a(Ge,e.range?[f.value,i.value]:e.modelValue)},Z=h=>{var V,o,g,$,B,F;if(c.value||r.dragging)return;H();let K=0;if(e.vertical){const C=(g=(o=(V=h.touches)==null?void 0:V.item(0))==null?void 0:o.clientY)!=null?g:h.clientY;K=(d.value.getBoundingClientRect().bottom-C)/r.sliderSize*100}else{const C=(F=(B=($=h.touches)==null?void 0:$.item(0))==null?void 0:B.clientX)!=null?F:h.clientX,O=d.value.getBoundingClientRect().left;K=(C-O)/r.sliderSize*100}if(!(K<0||K>100))return M(K)};return{elFormItem:n,slider:d,firstButton:p,secondButton:b,sliderDisabled:c,minValue:f,maxValue:i,runwayStyle:T,barStyle:j,resetSize:H,setPosition:M,emitChange:X,onSliderWrapperPrevent:h=>{var V,o;(((V=x.firstButton.value)==null?void 0:V.dragging)||((o=x.secondButton.value)==null?void 0:o.dragging))&&h.preventDefault()},onSliderClick:h=>{Z(h)&&X()},onSliderDown:async h=>{const V=Z(h);V&&(await Pe(),V.value.onButtonDown(h))},setFirstValue:Y,setSecondValue:s}},{left:fl,down:pl,right:gl,up:bl,home:vl,end:hl,pageUp:_l,pageDown:wl}=qt,yl=(e,r,a)=>{const l=G(),n=G(!1),d=z(()=>r.value instanceof Function),p=z(()=>d.value&&r.value(e.modelValue)||e.modelValue),b=De(()=>{a.value&&(n.value=!0)},50),x=De(()=>{a.value&&(n.value=!1)},50);return{tooltip:l,tooltipVisible:n,formatValue:p,displayTooltip:b,hideTooltip:x}},xl=(e,r,a)=>{const{disabled:l,min:n,max:d,step:p,showTooltip:b,precision:x,sliderSize:c,formatTooltip:f,emitChange:i,resetSize:S,updateDragging:L}=ot(pt),{tooltip:T,tooltipVisible:j,formatValue:H,displayTooltip:A,hideTooltip:M}=yl(e,f,b),Y=G(),s=z(()=>`${(e.modelValue-n.value)/(d.value-n.value)*100}%`),w=z(()=>e.vertical?{bottom:s.value}:{left:s.value}),X=()=>{r.hovering=!0,A()},Z=()=>{r.hovering=!1,r.dragging||M()},Q=y=>{l.value||(y.preventDefault(),K(y),window.addEventListener("mousemove",C),window.addEventListener("touchmove",C),window.addEventListener("mouseup",O),window.addEventListener("touchend",O),window.addEventListener("contextmenu",O),Y.value.focus())},D=y=>{l.value||(r.newPosition=Number.parseFloat(s.value)+y/(d.value-n.value)*100,R(r.newPosition),i())},ee=()=>{D(-p.value)},h=()=>{D(p.value)},V=()=>{D(-p.value*4)},o=()=>{D(p.value*4)},g=()=>{l.value||(R(0),i())},$=()=>{l.value||(R(100),i())},B=y=>{let U=!0;[fl,pl].includes(y.key)?ee():[gl,bl].includes(y.key)?h():y.key===vl?g():y.key===hl?$():y.key===wl?V():y.key===_l?o():U=!1,U&&y.preventDefault()},F=y=>{let U,ne;return y.type.startsWith("touch")?(ne=y.touches[0].clientY,U=y.touches[0].clientX):(ne=y.clientY,U=y.clientX),{clientX:U,clientY:ne}},K=y=>{r.dragging=!0,r.isClick=!0;const{clientX:U,clientY:ne}=F(y);e.vertical?r.startY=ne:r.startX=U,r.startPosition=Number.parseFloat(s.value),r.newPosition=r.startPosition},C=y=>{if(r.dragging){r.isClick=!1,A(),S();let U;const{clientX:ne,clientY:ce}=F(y);e.vertical?(r.currentY=ce,U=(r.startY-r.currentY)/c.value*100):(r.currentX=ne,U=(r.currentX-r.startX)/c.value*100),r.newPosition=r.startPosition+U,R(r.newPosition)}},O=()=>{r.dragging&&(setTimeout(()=>{r.dragging=!1,r.hovering||M(),r.isClick||(R(r.newPosition),i())},0),window.removeEventListener("mousemove",C),window.removeEventListener("touchmove",C),window.removeEventListener("mouseup",O),window.removeEventListener("touchend",O),window.removeEventListener("contextmenu",O))},R=async y=>{if(y===null||Number.isNaN(+y))return;y<0?y=0:y>100&&(y=100);const U=100/((d.value-n.value)/p.value);let ce=Math.round(y/U)*U*(d.value-n.value)*.01+n.value;ce=Number.parseFloat(ce.toFixed(x.value)),a(ve,ce),!r.dragging&&e.modelValue!==r.oldValue&&(r.oldValue=e.modelValue),await Pe(),r.dragging&&A(),T.value.updatePopper()};return de(()=>r.dragging,y=>{L(y)}),{button:Y,tooltip:T,tooltipVisible:j,showTooltip:b,wrapperStyle:w,formatValue:H,handleMouseEnter:X,handleMouseLeave:Z,onButtonDown:Q,onKeyDown:B,setPosition:R}},kl=(e,r,a,l)=>({stops:z(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const p=(e.max-e.min)/e.step,b=100*e.step/(e.max-e.min),x=Array.from({length:p-1}).map((c,f)=>(f+1)*b);return e.range?x.filter(c=>c<100*(a.value-e.min)/(e.max-e.min)||c>100*(l.value-e.min)/(e.max-e.min)):x.filter(c=>c>100*(r.firstValue-e.min)/(e.max-e.min))}),getStopStyle:p=>e.vertical?{bottom:`${p}%`}:{left:`${p}%`}}),zl=(e,r,a,l,n,d)=>{const p=c=>{n(ve,c),n(Re,c)},b=()=>e.range?![a.value,l.value].every((c,f)=>c===r.oldValue[f]):e.modelValue!==r.oldValue,x=()=>{var c,f;if(e.min>e.max){Gt("Slider","min should not be greater than max.");return}const i=e.modelValue;e.range&&Array.isArray(i)?i[1]e.max?p([e.max,e.max]):i[0]e.max?p([i[0],e.max]):(r.firstValue=i[0],r.secondValue=i[1],b()&&((c=d==null?void 0:d.validate)==null||c.call(d,"change").catch(S=>Le()),r.oldValue=i.slice())):!e.range&&typeof i=="number"&&!Number.isNaN(i)&&(ie.max?p(e.max):(r.firstValue=i,b()&&((f=d==null?void 0:d.validate)==null||f.call(d,"change").catch(S=>Le()),r.oldValue=i)))};x(),de(()=>r.dragging,c=>{c||x()}),de(()=>e.modelValue,(c,f)=>{r.dragging||Array.isArray(c)&&Array.isArray(f)&&c.every((i,S)=>i===f[S])&&r.firstValue===c[0]&&r.secondValue===c[1]||x()},{deep:!0}),de(()=>[e.min,e.max],()=>{x()})},Sl=me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String}),Vl={[ve]:e=>te(e)},Cl={name:"ElSliderButton"},El=re({...Cl,props:Sl,emits:Vl,setup(e,{expose:r,emit:a}){const l=e,n=le("slider"),d=Ae({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:l.modelValue}),{button:p,tooltip:b,showTooltip:x,tooltipVisible:c,wrapperStyle:f,formatValue:i,handleMouseEnter:S,handleMouseLeave:L,onButtonDown:T,onKeyDown:j,setPosition:H}=xl(l,d,a),{hovering:A,dragging:M}=Ne(d);return r({onButtonDown:T,onKeyDown:j,setPosition:H,hovering:A,dragging:M}),(Y,s)=>(u(),k("div",{ref_key:"button",ref:p,class:I([t(n).e("button-wrapper"),{hover:t(A),dragging:t(M)}]),style:se(t(f)),tabindex:"0",onMouseenter:s[1]||(s[1]=(...w)=>t(S)&&t(S)(...w)),onMouseleave:s[2]||(s[2]=(...w)=>t(L)&&t(L)(...w)),onMousedown:s[3]||(s[3]=(...w)=>t(T)&&t(T)(...w)),onTouchstart:s[4]||(s[4]=(...w)=>t(T)&&t(T)(...w)),onFocus:s[5]||(s[5]=(...w)=>t(S)&&t(S)(...w)),onBlur:s[6]||(s[6]=(...w)=>t(L)&&t(L)(...w)),onKeydown:s[7]||(s[7]=(...w)=>t(j)&&t(j)(...w))},[m(t(Oe),{ref_key:"tooltip",ref:b,visible:t(c),"onUpdate:visible":s[0]||(s[0]=w=>Me(c)?c.value=w:null),placement:"top","stop-popper-mouse-event":!1,"popper-class":Y.tooltipClass,disabled:!t(x),persistent:""},{content:_(()=>[v("span",null,be(t(i)),1)]),default:_(()=>[v("div",{class:I([t(n).e("button"),{hover:t(A),dragging:t(M)}])},null,2)]),_:1},8,["visible","popper-class","disabled"])],38))}});var et=oe(El,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const $l=me({mark:{type:fe([String,Object]),default:void 0}});var Il=re({name:"ElSliderMarker",props:$l,setup(e){const r=le("slider"),a=z(()=>je(e.mark)?e.mark:e.mark.label),l=z(()=>je(e.mark)?void 0:e.mark.style);return()=>Nt("div",{class:r.e("marks-text"),style:l},a.value)}});const Bl=["id","role","aria-label","aria-labelledby"],Nl={key:1},Pl={name:"ElSlider"},Ml=re({...Pl,props:sl,emits:dl,setup(e,{expose:r,emit:a}){const l=e,n=le("slider"),{t:d}=Je(),p=Ae({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:b,slider:x,firstButton:c,secondButton:f,sliderDisabled:i,minValue:S,maxValue:L,runwayStyle:T,barStyle:j,resetSize:H,emitChange:A,onSliderWrapperPrevent:M,onSliderClick:Y,onSliderDown:s,setFirstValue:w,setSecondValue:X}=ml(l,p,a),{stops:Z,getStopStyle:Q}=kl(l,p,S,L),{inputId:D,isLabeledByFormItem:ee}=Jt(l,{formItemContext:b}),h=st(),V=z(()=>l.inputSize||h.value),o=z(()=>l.label||d("el.slider.defaultLabel",{min:l.min,max:l.max})),g=z(()=>l.range?l.rangeStartLabel||d("el.slider.defaultRangeStartLabel"):o.value),$=z(()=>l.formatValueText?l.formatValueText(y.value):`${y.value}`),B=z(()=>l.rangeEndLabel||d("el.slider.defaultRangeEndLabel")),F=z(()=>l.formatValueText?l.formatValueText(U.value):`${U.value}`),K=z(()=>[n.b(),n.m(h.value),n.is("vertical",l.vertical),{[n.m("with-input")]:l.showInput}]),C=cl(l);zl(l,p,S,L,a,b);const O=z(()=>{const E=[l.min,l.max,l.step].map(ie=>{const he=`${ie}`.split(".")[1];return he?he.length:0});return Math.max.apply(null,E)}),{sliderWrapper:R}=ul(l,p,H),{firstValue:y,secondValue:U,sliderSize:ne}=Ne(p),ce=E=>{p.dragging=E};return at(pt,{...Ne(l),sliderSize:ne,disabled:i,precision:O,emitChange:A,resetSize:H,updateDragging:ce}),r({onSliderClick:Y}),(E,ie)=>{var he,Ze;return u(),k("div",{id:E.range?t(D):void 0,ref_key:"sliderWrapper",ref:R,class:I(t(K)),role:E.range?"group":void 0,"aria-label":E.range&&!t(ee)?t(o):void 0,"aria-labelledby":E.range&&t(ee)?(he=t(b))==null?void 0:he.labelId:void 0,onTouchstart:ie[2]||(ie[2]=(...q)=>t(M)&&t(M)(...q)),onTouchmove:ie[3]||(ie[3]=(...q)=>t(M)&&t(M)(...q))},[v("div",{ref_key:"slider",ref:x,class:I([t(n).e("runway"),{"show-input":E.showInput&&!E.range},t(n).is("disabled",t(i))]),style:se(t(T)),onMousedown:ie[0]||(ie[0]=(...q)=>t(s)&&t(s)(...q)),onTouchstart:ie[1]||(ie[1]=(...q)=>t(s)&&t(s)(...q))},[v("div",{class:I(t(n).e("bar")),style:se(t(j))},null,6),m(et,{id:E.range?void 0:t(D),ref_key:"firstButton",ref:c,"model-value":t(y),vertical:E.vertical,"tooltip-class":E.tooltipClass,role:"slider","aria-label":E.range||!t(ee)?t(g):void 0,"aria-labelledby":!E.range&&t(ee)?(Ze=t(b))==null?void 0:Ze.labelId:void 0,"aria-valuemin":E.min,"aria-valuemax":E.range?t(U):E.max,"aria-valuenow":t(y),"aria-valuetext":t($),"aria-orientation":E.vertical?"vertical":"horizontal","aria-disabled":t(i),"onUpdate:modelValue":t(w)},null,8,["id","model-value","vertical","tooltip-class","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),E.range?(u(),N(et,{key:0,ref_key:"secondButton",ref:f,"model-value":t(U),vertical:E.vertical,"tooltip-class":E.tooltipClass,role:"slider","aria-label":t(B),"aria-valuemin":t(y),"aria-valuemax":E.max,"aria-valuenow":t(U),"aria-valuetext":t(F),"aria-orientation":E.vertical?"vertical":"horizontal","aria-disabled":t(i),"onUpdate:modelValue":t(X)},null,8,["model-value","vertical","tooltip-class","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):P("v-if",!0),E.showStops?(u(),k("div",Nl,[(u(!0),k(ue,null,ge(t(Z),(q,_e)=>(u(),k("div",{key:_e,class:I(t(n).e("stop")),style:se(t(Q)(q))},null,6))),128))])):P("v-if",!0),t(C).length>0?(u(),k(ue,{key:2},[v("div",null,[(u(!0),k(ue,null,ge(t(C),(q,_e)=>(u(),k("div",{key:_e,style:se(t(Q)(q.position)),class:I([t(n).e("stop"),t(n).e("marks-stop")])},null,6))),128))]),v("div",{class:I(t(n).e("marks"))},[(u(!0),k(ue,null,ge(t(C),(q,_e)=>(u(),N(t(Il),{key:_e,mark:q.mark,style:se(t(Q)(q.position))},null,8,["mark","style"]))),128))],2)],64)):P("v-if",!0)],38),E.showInput&&!E.range?(u(),N(t(wt),{key:0,ref:"input","model-value":t(y),class:I(t(n).e("input")),step:E.step,disabled:t(i),controls:E.showInputControls,min:E.min,max:E.max,debounce:E.debounce,size:t(V),"onUpdate:modelValue":t(w),onChange:t(A)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):P("v-if",!0)],42,Bl)}}});var Tl=oe(Ml,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Ll=xe(Tl);const tt=G(!1),{isMobile:Fl}=Xe();let yt={view:{size:2},gallery:{column:Fl.value?1:3,mobileColumn:1,columnSpacing:50,rowSpacing:10,showInfo:!0,showInfoMode:"hover",roundedBorder:!0,showBackTop:!0},imagePreview:{mode:"full",gallery:!0}};const xt=(e,r)=>{r=r||globalThis;for(let a in e)r[a]===void 0?r[a]=e[a]:e[a]instanceof Object&&r[a]instanceof Object&&xt(e[a],r[a])},rt=lr("zfile-setting-cache",yt);function kt(){const e=()=>{tt.value=!0};return xt(yt,rt.value),{visible:tt,zfileSettingCache:rt,openSettingVisible:e}}const J=e=>(Mt("data-v-46b851ef"),e=e(),Tt(),e),Al={class:"zfile-index-setting-drawer"},Rl={class:"zfile-index-setting-drawer-body"},Ul={key:0,class:"zfile-index-setting-drawer-group"},Kl=J(()=>v("div",{class:"zfile-index-setting-drawer-title"},"\u5B58\u50A8\u6E90",-1)),jl={class:"w-full"},Yl={class:"zfile-index-setting-drawer-group"},Hl=J(()=>v("div",{class:"zfile-index-setting-drawer-title"},"\u89C6\u56FE",-1)),Ol={class:"zfile-index-setting-drawer-blockCheckbox"},Xl={class:"zfile-index-setting-drawer-item current"},Wl={class:"zfile-index-setting-drawer-item"},ql={class:"px-2.5"},Gl={class:"zfile-index-setting-drawer-group"},Jl=J(()=>v("div",{class:"zfile-index-setting-drawer-title"},"\u753B\u5ECA",-1)),Zl=J(()=>v("div",{class:"text-gray-400 text-sm"},"\u5982\u5DF2\u5904\u4E8E\u753B\u5ECA\u6A21\u5F0F\uFF0C\u9700\u91CD\u65B0\u542F\u7528\u753B\u5ECA\u6A21\u5F0F\u751F\u6548.",-1)),Ql={class:"flex justify-between"},Dl=J(()=>v("div",{class:"text-lg font-medium"},"\u56FE\u7247\u5217\u6570",-1)),ea={class:"flex justify-between"},ta=J(()=>v("div",{class:"text-lg font-medium"},"\u5217\u95F4\u8DDD",-1)),ra={class:"flex justify-between"},la=J(()=>v("div",{class:"text-lg font-medium"},"\u884C\u95F4\u8DDD",-1)),aa={class:"flex justify-between"},oa=J(()=>v("div",{class:"text-lg font-medium"},"\u56FE\u7247\u662F\u5426\u5E26\u5706\u89D2\u8FB9\u6846",-1)),na={class:"flex justify-between"},ia=J(()=>v("div",{class:"text-lg font-medium"},"\u663E\u793A\u540D\u79F0",-1)),sa={class:"flex justify-between"},da=J(()=>v("div",{class:"text-lg font-medium"},"\u540D\u79F0\u663E\u793A\u6A21\u5F0F",-1)),ua={class:"flex justify-between"},ca=J(()=>v("div",{class:"text-lg font-medium"},"\u53CC\u51FB\u9884\u89C8\u6A21\u5F0F",-1)),ma={class:"flex justify-between"},fa=J(()=>v("div",{class:"text-lg font-medium"},"\u70B9\u51FB\u653E\u5927\u9884\u89C8",-1)),pa={class:"flex justify-between"},ga=J(()=>v("div",{class:"text-lg font-medium"},"\u56DE\u5230\u9876\u90E8\u6309\u94AE",-1)),ba=J(()=>v("div",{class:"text-gray-400 text-sm mt-10"}," Tips: \u8BBE\u7F6E\u4F1A\u81EA\u52A8\u4FDD\u5B58\uFF0C\u5237\u65B0\u540E\u4ECD\u6709\u6548. ",-1)),va={__name:"Setting",setup(e){const{visible:r,zfileSettingCache:a}=kt();let l=Pt(),n=ze();const d=Ae({1:"\u5C0F",2:"\u4E2D",3:"\u5927"}),p={1:"small",2:"default",3:"large"};de(()=>a.value,f=>{var i,S;l.zfileConfig.gallery.column=f.gallery.column,l.zfileConfig.gallery.columnSpacing=f.gallery.columnSpacing,l.zfileConfig.gallery.rowSpacing=f.gallery.rowSpacing,l.zfileConfig.gallery.showInfo=f.gallery.showInfo,l.zfileConfig.gallery.showInfoMode=f.gallery.showInfoMode,l.zfileConfig.gallery.roundedBorder=f.gallery.roundedBorder,l.zfileConfig.gallery.showBackTop=f.gallery.showBackTop,(i=f==null?void 0:f.view)!=null&&i.size&&(n.globalConfig.tableSize=p[f.view.size]),n.globalConfig.tableSize||(n.globalConfig.tableSize="defualt"),(S=f==null?void 0:f.imagePreview)!=null&&S.mode&&(l.zfileConfig.imagePreview.mode=f.imagePreview.mode),l.zfileConfig.imagePreview.gallery=f.imagePreview.gallery},{immediate:!0,deep:!0}),He(),nt();const{isMobile:b}=Xe(),{currentStorageKey:x,storageList:c}=We();return(f,i)=>{const S=ut,L=ct,T=dt,j=Oe,H=Ll,A=wt,M=tr,Y=el;return u(),k("div",Al,[m(Y,{modelValue:t(r),"onUpdate:modelValue":i[11]||(i[11]=s=>Me(r)?r.value=s:null),title:"\u4E2A\u4EBA\u8BBE\u7F6E","custom-class":"text-left","with-header":!1,direction:"rtl"},{default:_(()=>[v("div",Rl,[t(b)?(u(),k("div",Ul,[Kl,v("div",jl,[m(L,{size:"large",class:"w-full",modelValue:t(x),"onUpdate:modelValue":i[0]||(i[0]=s=>Me(x)?x.value=s:null),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u6E90"},{default:_(()=>[(u(!0),k(ue,null,ge(t(c),s=>(u(),N(S,{key:s.key,label:s.name,value:s.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])])):P("",!0),v("div",Yl,[Hl,v("div",Ol,[m(j,{effect:"dark",content:"\u5217\u8868\u6A21\u5F0F",placement:"bottom"},{default:_(()=>[v("div",Xl,[m(T,{name:"table-layout"})])]),_:1}),m(j,{effect:"dark",content:"\u56FE\u6807\u6A21\u5F0F\uFF08\u6682\u672A\u5B9E\u73B0\uFF09",placement:"bottom"},{default:_(()=>[v("div",Wl,[m(T,{name:"card-layout"})])]),_:1})]),v("div",ql,[m(H,{size:"large","show-tooltip":!1,marks:d,modelValue:t(a).view.size,"onUpdate:modelValue":i[1]||(i[1]=s=>t(a).view.size=s),step:1,min:1,max:3,"show-stops":""},null,8,["marks","modelValue"])])]),v("div",Gl,[Jl,Zl,v("div",Ql,[Dl,m(A,{modelValue:t(a).gallery.column,"onUpdate:modelValue":i[2]||(i[2]=s=>t(a).gallery.column=s),min:1},null,8,["modelValue"])]),v("div",ea,[ta,m(A,{modelValue:t(a).gallery.columnSpacing,"onUpdate:modelValue":i[3]||(i[3]=s=>t(a).gallery.columnSpacing=s),min:0},null,8,["modelValue"])]),v("div",ra,[la,m(A,{modelValue:t(a).gallery.rowSpacing,"onUpdate:modelValue":i[4]||(i[4]=s=>t(a).gallery.rowSpacing=s),min:0},null,8,["modelValue"])]),v("div",aa,[oa,m(M,{modelValue:t(a).gallery.roundedBorder,"onUpdate:modelValue":i[5]||(i[5]=s=>t(a).gallery.roundedBorder=s)},null,8,["modelValue"])]),v("div",na,[ia,m(M,{modelValue:t(a).gallery.showInfo,"onUpdate:modelValue":i[6]||(i[6]=s=>t(a).gallery.showInfo=s)},null,8,["modelValue"])]),v("div",sa,[da,m(L,{class:"w-[150px]",modelValue:t(a).gallery.showInfoMode,"onUpdate:modelValue":i[7]||(i[7]=s=>t(a).gallery.showInfoMode=s)},{default:_(()=>[m(S,{label:"\u60AC\u6D6E\u663E\u793A",value:"hover"}),m(S,{label:"\u5E95\u90E8\u663E\u793A",value:"bottom"})]),_:1},8,["modelValue"])]),v("div",ua,[ca,m(L,{class:"w-[150px]",modelValue:t(a).imagePreview.mode,"onUpdate:modelValue":i[8]||(i[8]=s=>t(a).imagePreview.mode=s)},{default:_(()=>[m(S,{label:"\u663E\u793A\u5168\u90E8",value:"full"}),m(S,{label:"\u663E\u793A\u5355\u5F20",value:"only"})]),_:1},8,["modelValue"])]),v("div",ma,[fa,m(M,{modelValue:t(a).imagePreview.gallery,"onUpdate:modelValue":i[9]||(i[9]=s=>t(a).imagePreview.gallery=s)},null,8,["modelValue"])]),v("div",pa,[ga,m(M,{modelValue:t(a).gallery.showBackTop,"onUpdate:modelValue":i[10]||(i[10]=s=>t(a).gallery.showBackTop=s)},null,8,["modelValue"])])]),ba])]),_:1},8,["modelValue"])])}}};var ha=qe(va,[["__scopeId","data-v-46b851ef"]]);const _a={"data-v-280b1501":"",xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-settings"},wa=v("circle",{"data-v-280b1501":"",cx:"12",cy:"12",r:"3"},null,-1),ya=v("path",{"data-v-280b1501":"",d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},null,-1),xa=[wa,ya];function ka(e,r){return u(),k("svg",_a,xa)}var za={name:"custom-tool-setting",render:ka};function Sa(){return{resetAdminPwd:()=>{hr.confirm("\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u540E\u53F0\u7BA1\u7406\u5458\u5BC6\u7801\uFF1F\u91CD\u7F6E\u540E\u7528\u6237\u540D/\u5BC6\u7801\u5C06\u5F3A\u5236\u4FEE\u6539\u4E3A admin 123456","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:r=>{r==="confirm"&&or().then(a=>{a.code===0&&mt.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u8BF7\u53CA\u65F6\u5173\u95ED debug \u529F\u80FD\uFF0C\u9632\u6B62\u51FA\u73B0\u5B89\u5168\u95EE\u9898\uFF01")})}})}}}let Va=ze(),{fullpath:Ke,storageKey:Ee}=Lt(),$e=G([]),lt=!1;function Ca(){let e=Va.globalConfig.rootShowStorage,r=()=>{if($e.value=[],e){let{findStorageByKey:l}=We(),n=l(Ee.value);n&&$e.value.push({name:n.name,fullPath:"/"+n.key})}Ke.value&&Ke.value.forEach((l,n,d)=>{let p={name:l,fullPath:nr("/"+Ee.value+"/"+d.slice(0,n+1).join("/"))};$e.value.push(p)})},a=z(()=>"/"+(e?"":Ee.value));return lt||(de(()=>Ke.value,()=>{r()}),de(()=>Ee.value,()=>{r()})),lt=!0,{rootPath:a,breadcrumbData:$e,buildBreadcrumbData:r}}const Ea={class:"zfile-header"},$a={class:"zfile-header-breadcrumb box animate__animated animate__fadeIn"},Ia=W(be("\u9996\u9875")),Ba={class:"zfile-header-right box animate__animated animate__fadeIn"},Na={key:0,class:"zfile-header-btn"},Pa=W(" \u6B64\u529F\u80FD\u4E3A DEBUG \u6A21\u5F0F\u4E0B\u91CD\u7F6E\u7BA1\u7406\u5458\u5BC6\u7801\u529F\u80FD, \u4F7F\u7528\u5B8C\u540E\u8BF7\u5173\u95ED DEBUG \u6A21\u5F0F\u5E76\u91CD\u542F\u670D\u52A1. "),Ma=W(" \u91CD\u7F6E\u7BA1\u7406\u5458\u5BC6\u7801 "),Ta=W(" \u540E\u53F0\u7BA1\u7406 "),La=W(" \u65B0\u5EFA\u6587\u4EF6\u5939 "),Fa=W(" \u4E0A\u4F20\u6587\u4EF6 "),Aa=W(" \u4E0A\u4F20\u6587\u4EF6\u5939 "),Ra={key:1,class:"zfile-header-storage-select"},Ua={key:0},Ka=W(" \u540E\u53F0\u7BA1\u7406 "),ja=W(" \u65B0\u5EFA\u6587\u4EF6\u5939 "),Ya=W(" \u4E0A\u4F20\u6587\u4EF6 "),Ha=W(" \u4E0A\u4F20\u6587\u4EF6\u5939 "),Oa=W(" \u6253\u5F00\u753B\u5ECA\u6A21\u5F0F "),Xa=W(" \u5173\u95ED\u753B\u5ECA\u6A21\u5F0F "),Wa=W(" \u66F4\u591A\u8BBE\u7F6E "),qa={__name:"Header",setup(e){He();let r=nt();const{resetAdminPwd:a}=Sa(),{loadStorageSourceList:l,currentStorageKey:n,storageList:d}=We(),{buildBreadcrumbData:p,rootPath:b,breadcrumbData:x}=Ca();let c=ze(),f=ir();Fe(()=>{l().then(()=>{p()})}),de(()=>r.params.storageKey,s=>{s===void 0&&(n.value="")});const{newFolder:i}=sr(),{openUploadDialog:S,openUploadFolderDialog:L}=dr(),{openSettingVisible:T}=kt(),{isNotMobile:j,isMobile:H,encodeAllIgnoreSlashes:A}=Xe();let{initStorageConfig:M}=ur();de(()=>[c.folderConfig.defaultSwitchToImgMode,f.oldStorageKey],(s,w)=>{let X=s[0],Z=s[1],Q=w[1];Z!==Q&&(f.imgMode=X)});const Y=()=>{window.location.href="/login"};if(c.globalConfig.customCss)try{ar(c.globalConfig.customCss)}catch(s){console.error("\u52A0\u8F7D\u81EA\u5B9A\u4E49 css \u52A0\u8F7D\u5931\u8D25:",c.globalConfig.customCss,s)}if(c.globalConfig.customJs)try{let s=document.createElement("script");s.type="text/javascript",s.text=c.globalConfig.customJs,document.getElementsByTagName("head")[0].appendChild(s)}catch(s){console.log("\u52A0\u8F7D\u81EA\u5B9A\u4E49 js \u5931\u8D25: ",c.globalConfig.customJs,s)}return(s,w)=>{const X=$r,Z=Er,Q=wr,D=Zt,ee=Oe,h=dt,V=gr,o=br,g=vr,$=za,B=ut,F=ct,K=ha;return u(),k(ue,null,[v("div",Ea,[m(Q,null,{default:_(()=>[v("div",$a,[m(Z,{separator:"/","separator-class":"ArrowRight"},{default:_(()=>[m(X,{to:t(b)},{default:_(()=>[Ia]),_:1},8,["to"]),(u(!0),k(ue,null,ge(t(x),C=>(u(),N(X,{to:{path:t(A)(C.fullPath)},key:C.fullPath,class:"hidden-xs-only"},{default:_(()=>[W(be(C.name),1)]),_:2},1032,["to"]))),128))]),_:1})])]),_:1}),v("div",Ba,[t(j)&&t(M)?(u(),k("div",Na,[t(c).globalConfig.debugMode?(u(),N(ee,{key:0,placement:"bottom"},{content:_(()=>[Pa]),default:_(()=>[m(D,{onClick:t(a),type:"danger"},{default:_(()=>[Ma]),_:1},8,["onClick"])]),_:1})):P("",!0),t(c).globalConfig.showLogin?(u(),N(ee,{key:1,placement:"bottom"},{content:_(()=>[Ta]),default:_(()=>[v("div",{onClick:Y},[m(h,{class:"text-2xl text-gray-500 hover:text-blue-500",name:"login"})])]),_:1})):P("",!0),t(c).permission.upload||t(c).permission.newFolder?(u(),N(g,{key:2,trigger:"click","popper-class":"zfile-header-dropdown"},{dropdown:_(()=>[m(o,{class:"font-medium"},{default:_(()=>[t(c).permission.newFolder?(u(),N(V,{key:0,onClick:t(i)},{default:_(()=>[m(h,{class:"text-[17px] mr-3",name:"add-folder"}),La]),_:1},8,["onClick"])):P("",!0),t(c).permission.upload?(u(),k(ue,{key:1},[m(V,{onClick:t(S),divided:t(c).permission.upload&&t(c).permission.newFolder},{default:_(()=>[m(h,{class:"text-[17px] mr-3",name:"upload"}),Fa]),_:1},8,["onClick","divided"]),m(V,{onClick:t(L)},{default:_(()=>[m(h,{class:"text-[17px] mr-3",name:"upload-folder"}),Aa]),_:1},8,["onClick"])],64)):P("",!0)]),_:1})]),default:_(()=>[pe(v("div",null,[m(h,{class:"text-2xl text-gray-500 hover:text-blue-500",name:"add"})],512),[[Ie,t(r).params.storageKey]])]),_:1})):P("",!0),pe(v("div",{onClick:w[0]||(w[0]=C=>t(f).imgMode=!t(f).imgMode)},[t(f).imgMode?(u(),N(h,{key:0,class:"text-4xl",name:"img-enable"})):(u(),N(h,{key:1,class:"text-4xl",name:"img-disable"}))],512),[[Ie,t(r).params.storageKey]]),v("div",{onClick:w[1]||(w[1]=(...C)=>t(T)&&t(T)(...C))},[m($)])])):P("",!0),t(j)?(u(),k("div",Ra,[m(F,{size:"default",modelValue:t(n),"onUpdate:modelValue":w[2]||(w[2]=C=>Me(n)?n.value=C:null),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u6E90"},{default:_(()=>[(u(!0),k(ue,null,ge(t(d),C=>(u(),N(B,{key:C.key,label:C.name,value:C.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):P("",!0)]),t(H)?pe((u(),k("div",Ua,[m(g,{trigger:"click",class:"top-3"},{dropdown:_(()=>[m(o,null,{default:_(()=>[t(c).globalConfig.showLogin?(u(),N(V,{key:0,onClick:Y},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"login"}),Ka]),_:1})):P("",!0),t(c).permission.newFolder?(u(),N(V,{key:1,onClick:t(i)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"add-folder"}),ja]),_:1},8,["onClick"])):P("",!0),t(c).permission.upload?(u(),N(V,{key:2,onClick:t(S)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"upload"}),Ya]),_:1},8,["onClick"])):P("",!0),t(c).permission.upload?(u(),N(V,{key:3,onClick:t(L)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"upload-folder"}),Ha]),_:1},8,["onClick"])):P("",!0),t(f).imgMode?t(f).imgMode?(u(),N(V,{key:5,onClick:w[4]||(w[4]=C=>t(f).imgMode=!1)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"image"}),Xa]),_:1})):P("",!0):(u(),N(V,{key:4,onClick:w[3]||(w[3]=C=>t(f).imgMode=!0)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"image"}),Oa]),_:1})),m(V,{onClick:t(T)},{default:_(()=>[m(h,{class:"text-base mr-2 text-gray-500",name:"tool-setting"}),Wa]),_:1},8,["onClick"])]),_:1})]),default:_(()=>[m(t(_r),{class:"block h-6 w-6","aria-hidden":"true"})]),_:1})],512)),[[Ie,t(r).params.storageKey]]):P("",!0)]),m(K)],64)}}};var Ga=qe(qa,[["__scopeId","data-v-1f5350f4"]]);const Ja={target:"_blank",class:"text-gray-500",href:"https://beian.miit.gov.cn/"},Za={__name:"Footer",setup(e){let r=ze();return(a,l)=>{var n;return u(),k("div",null,[v("a",Ja,be((n=t(r).globalConfig)==null?void 0:n.icp),1)])}}};const Qa={__name:"file",setup(e){let r=ze();Ft(()=>{n()});let a=He(),l=G(!1);const n=()=>{cr().then(d=>{if(!d.data.installed){a.push("/install");return}r.updateGlobalConfig(d.data),d.data.customAudioSuffix&&(Ce.constant.fileTypeMap.audio=d.data.customAudioSuffix.split(",")),d.data.customImageSuffix&&(Ce.constant.fileTypeMap.image=d.data.customImageSuffix.split(",")),d.data.customTextSuffix&&(Ce.constant.fileTypeMap.text=d.data.customTextSuffix.split(",")),d.data.customVideoSuffix&&(Ce.constant.fileTypeMap.video=d.data.customVideoSuffix.split(",")),l.value=!0}).catch(d=>{d.message==="Network Error"&&mt.error("\u52A0\u8F7D\u5931\u8D25\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\u7AEF\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458.")})};return(d,p)=>{const b=Yr,x=we("router-view"),c=Hr,f=jr,i=Kr;return t(l)?(u(),N(i,{key:0},{default:_(()=>[m(b,null,{default:_(()=>[(u(),N(At,null,{default:_(()=>[m(Ga)]),_:1}))]),_:1}),m(c,null,{default:_(()=>[m(x)]),_:1}),m(f,null,{default:_(()=>[m(Za)]),_:1})]),_:1})):P("",!0)}}};var Mo=qe(Qa,[["__scopeId","data-v-3908aa5c"]]);export{Mo as default}; diff --git a/src/main/resources/static/assets/file.44c1b3cd.css b/src/main/resources/static/assets/file.44c1b3cd.css new file mode 100644 index 0000000..6a79b85 --- /dev/null +++ b/src/main/resources/static/assets/file.44c1b3cd.css @@ -0,0 +1 @@ +@charset "UTF-8";.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.el-skeleton{--el-skeleton-color: var(--el-fill-color);--el-skeleton-to-color: var(--el-fill-color-darker)}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;animation:el-skeleton-loading 1.4s ease infinite}.el-skeleton{--el-skeleton-circle-size: var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.zfile-async-loading[data-v-0266aecc] .el-skeleton__item{height:100%}.zfile-async-loading .loading[data-v-0266aecc]{background:linear-gradient(100deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 60%) #ededed;background-size:200% 100%;background-position-x:180%;-webkit-animation:1s loading-0266aecc ease-in-out infinite;animation:1s loading-0266aecc ease-in-out infinite}@-webkit-keyframes loading-0266aecc{to{background-position-x:-20%}}@keyframes loading-0266aecc{to{background-position-x:-20%}}.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px #00000012,0 1px 5px #0000001a;border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{transform:scaleX(1);transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px #0003;background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden}.aplayer .aplayer-list.aplayer-list-hide{max-height:0!important}.aplayer .aplayer-list ol{list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list ol::-webkit-scrollbar{width:5px}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list ol li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list ol li:first-child{border-top:none}.aplayer .aplayer-list ol li:hover{background:#efefef}.aplayer .aplayer-list ol li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list ol li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-backtop{--el-backtop-bg-color: var(--el-bg-color-overlay);--el-backtop-text-color: var(--el-color-primary);--el-backtop-hover-bg-color: var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single{width:83.333333%}@media (min-width: 768px){.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single{width:24rem}}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-single .el-form-item{margin-bottom:8px}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-file-download-link-dialog-multiple{width:83.333333%}.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-link-tips{display:none}@media (min-width: 768px){.zfile-file-download-link-body[data-v-5c9f65f2] .zfile-link-tips{display:block}}.el-upload{--el-upload-dragger-padding-horizontal: 40px;--el-upload-dragger-padding-vertical: 10px;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:none}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.el-upload--picture-card{--el-upload-picture-card-size: 148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:hover,.el-upload-list__item.is-success .el-upload-list__item-name:focus{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:not(.focusing):focus,.el-upload-list__item.is-success:active{outline-width:0}.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip,.el-upload-list__item.is-success:active .el-icon--close-tip{display:none}.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item:hover,.el-upload-list.is-disabled .el-upload-list__item-status-label{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size: 148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.zfile-file-upload-body[data-v-46d584f4] .el-dialog__header{text-align:center}.zfile-file-upload-body[data-v-46d584f4] .el-dialog__body{max-height:80vh;overflow-y:auto}.zfile-file-upload-body[data-v-46d584f4] .el-upload-dragger{border-width:2px;border-style:dashed}.zfile-file-upload-body .drop-view[data-v-46d584f4]{position:fixed;left:0px;bottom:0px;z-index:10;display:flex;height:100%;width:100%;flex-direction:row;align-items:center;justify-content:center;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-bg-opacity: .2}.zfile-file-upload-body .drop-view .drop-sub[data-v-46d584f4]{display:flex;height:83.333333%;width:83.333333%;align-items:center;justify-content:center;border-radius:1rem;border-width:2px;border-style:dashed;--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity));font-size:1.5rem;line-height:2rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.el-table__body .el-table__row:nth-child(0){opacity:0;-webkit-animation:table-show .15s 0ms forwards linear;animation:table-show .15s 0ms forwards linear}.el-table__body .el-table__row:nth-child(1){opacity:0;-webkit-animation:table-show .15s 10ms forwards linear;animation:table-show .15s 10ms forwards linear}.el-table__body .el-table__row:nth-child(2){opacity:0;-webkit-animation:table-show .15s 20ms forwards linear;animation:table-show .15s 20ms forwards linear}.el-table__body .el-table__row:nth-child(3){opacity:0;-webkit-animation:table-show .15s 30ms forwards linear;animation:table-show .15s 30ms forwards linear}.el-table__body .el-table__row:nth-child(4){opacity:0;-webkit-animation:table-show .15s 40ms forwards linear;animation:table-show .15s 40ms forwards linear}.el-table__body .el-table__row:nth-child(5){opacity:0;-webkit-animation:table-show .15s 50ms forwards linear;animation:table-show .15s 50ms forwards linear}.el-table__body .el-table__row:nth-child(6){opacity:0;-webkit-animation:table-show .15s 60ms forwards linear;animation:table-show .15s 60ms forwards linear}.el-table__body .el-table__row:nth-child(7){opacity:0;-webkit-animation:table-show .15s 70ms forwards linear;animation:table-show .15s 70ms forwards linear}.el-table__body .el-table__row:nth-child(8){opacity:0;-webkit-animation:table-show .15s 80ms forwards linear;animation:table-show .15s 80ms forwards linear}.el-table__body .el-table__row:nth-child(9){opacity:0;-webkit-animation:table-show .15s 90ms forwards linear;animation:table-show .15s 90ms forwards linear}.el-table__body .el-table__row:nth-child(10){opacity:0;-webkit-animation:table-show .15s .1s forwards linear;animation:table-show .15s .1s forwards linear}.el-table__body .el-table__row:nth-child(11){opacity:0;-webkit-animation:table-show .15s .11s forwards linear;animation:table-show .15s .11s forwards linear}.el-table__body .el-table__row:nth-child(12){opacity:0;-webkit-animation:table-show .15s .12s forwards linear;animation:table-show .15s .12s forwards linear}.el-table__body .el-table__row:nth-child(13){opacity:0;-webkit-animation:table-show .15s .13s forwards linear;animation:table-show .15s .13s forwards linear}.el-table__body .el-table__row:nth-child(14){opacity:0;-webkit-animation:table-show .15s .14s forwards linear;animation:table-show .15s .14s forwards linear}.el-table__body .el-table__row:nth-child(15){opacity:0;-webkit-animation:table-show .15s .15s forwards linear;animation:table-show .15s .15s forwards linear}.el-table__body .el-table__row:nth-child(16){opacity:0;-webkit-animation:table-show .15s .16s forwards linear;animation:table-show .15s .16s forwards linear}.el-table__body .el-table__row:nth-child(17){opacity:0;-webkit-animation:table-show .15s .17s forwards linear;animation:table-show .15s .17s forwards linear}.el-table__body .el-table__row:nth-child(18){opacity:0;-webkit-animation:table-show .15s .18s forwards linear;animation:table-show .15s .18s forwards linear}.el-table__body .el-table__row:nth-child(19){opacity:0;-webkit-animation:table-show .15s .19s forwards linear;animation:table-show .15s .19s forwards linear}.el-table__body .el-table__row:nth-child(20){opacity:0;-webkit-animation:table-show .15s .2s forwards linear;animation:table-show .15s .2s forwards linear}.el-table__body .el-table__row:nth-child(21){opacity:0;-webkit-animation:table-show .15s .21s forwards linear;animation:table-show .15s .21s forwards linear}.el-table__body .el-table__row:nth-child(22){opacity:0;-webkit-animation:table-show .15s .22s forwards linear;animation:table-show .15s .22s forwards linear}.el-table__body .el-table__row:nth-child(23){opacity:0;-webkit-animation:table-show .15s .23s forwards linear;animation:table-show .15s .23s forwards linear}.el-table__body .el-table__row:nth-child(24){opacity:0;-webkit-animation:table-show .15s .24s forwards linear;animation:table-show .15s .24s forwards linear}.el-table__body .el-table__row:nth-child(25){opacity:0;-webkit-animation:table-show .15s .25s forwards linear;animation:table-show .15s .25s forwards linear}.el-table__body .el-table__row:nth-child(26){opacity:0;-webkit-animation:table-show .15s .26s forwards linear;animation:table-show .15s .26s forwards linear}.el-table__body .el-table__row:nth-child(27){opacity:0;-webkit-animation:table-show .15s .27s forwards linear;animation:table-show .15s .27s forwards linear}.el-table__body .el-table__row:nth-child(28){opacity:0;-webkit-animation:table-show .15s .28s forwards linear;animation:table-show .15s .28s forwards linear}.el-table__body .el-table__row:nth-child(29){opacity:0;-webkit-animation:table-show .15s .29s forwards linear;animation:table-show .15s .29s forwards linear}.el-table__body .el-table__row:nth-child(30){opacity:0;-webkit-animation:table-show .15s .3s forwards linear;animation:table-show .15s .3s forwards linear}.el-table__body .el-table__row:nth-child(31){opacity:0;-webkit-animation:table-show .15s .31s forwards linear;animation:table-show .15s .31s forwards linear}.el-table__body .el-table__row:nth-child(32){opacity:0;-webkit-animation:table-show .15s .32s forwards linear;animation:table-show .15s .32s forwards linear}.el-table__body .el-table__row:nth-child(33){opacity:0;-webkit-animation:table-show .15s .33s forwards linear;animation:table-show .15s .33s forwards linear}.el-table__body .el-table__row:nth-child(34){opacity:0;-webkit-animation:table-show .15s .34s forwards linear;animation:table-show .15s .34s forwards linear}.el-table__body .el-table__row:nth-child(35){opacity:0;-webkit-animation:table-show .15s .35s forwards linear;animation:table-show .15s .35s forwards linear}.el-table__body .el-table__row:nth-child(36){opacity:0;-webkit-animation:table-show .15s .36s forwards linear;animation:table-show .15s .36s forwards linear}.el-table__body .el-table__row:nth-child(37){opacity:0;-webkit-animation:table-show .15s .37s forwards linear;animation:table-show .15s .37s forwards linear}.el-table__body .el-table__row:nth-child(38){opacity:0;-webkit-animation:table-show .15s .38s forwards linear;animation:table-show .15s .38s forwards linear}.el-table__body .el-table__row:nth-child(39){opacity:0;-webkit-animation:table-show .15s .39s forwards linear;animation:table-show .15s .39s forwards linear}.el-table__body .el-table__row:nth-child(40){opacity:0;-webkit-animation:table-show .15s .4s forwards linear;animation:table-show .15s .4s forwards linear}.el-table__body .el-table__row:nth-child(41){opacity:0;-webkit-animation:table-show .15s .41s forwards linear;animation:table-show .15s .41s forwards linear}.el-table__body .el-table__row:nth-child(42){opacity:0;-webkit-animation:table-show .15s .42s forwards linear;animation:table-show .15s .42s forwards linear}.el-table__body .el-table__row:nth-child(43){opacity:0;-webkit-animation:table-show .15s .43s forwards linear;animation:table-show .15s .43s forwards linear}.el-table__body .el-table__row:nth-child(44){opacity:0;-webkit-animation:table-show .15s .44s forwards linear;animation:table-show .15s .44s forwards linear}.el-table__body .el-table__row:nth-child(45){opacity:0;-webkit-animation:table-show .15s .45s forwards linear;animation:table-show .15s .45s forwards linear}.el-table__body .el-table__row:nth-child(46){opacity:0;-webkit-animation:table-show .15s .46s forwards linear;animation:table-show .15s .46s forwards linear}.el-table__body .el-table__row:nth-child(47){opacity:0;-webkit-animation:table-show .15s .47s forwards linear;animation:table-show .15s .47s forwards linear}.el-table__body .el-table__row:nth-child(48){opacity:0;-webkit-animation:table-show .15s .48s forwards linear;animation:table-show .15s .48s forwards linear}.el-table__body .el-table__row:nth-child(49){opacity:0;-webkit-animation:table-show .15s .49s forwards linear;animation:table-show .15s .49s forwards linear}.el-table__body .el-table__row:nth-child(50){opacity:0;-webkit-animation:table-show .15s .5s forwards linear;animation:table-show .15s .5s forwards linear}.el-table__body .el-table__row:nth-child(51){opacity:0;-webkit-animation:table-show .15s .51s forwards linear;animation:table-show .15s .51s forwards linear}.el-table__body .el-table__row:nth-child(52){opacity:0;-webkit-animation:table-show .15s .52s forwards linear;animation:table-show .15s .52s forwards linear}.el-table__body .el-table__row:nth-child(53){opacity:0;-webkit-animation:table-show .15s .53s forwards linear;animation:table-show .15s .53s forwards linear}.el-table__body .el-table__row:nth-child(54){opacity:0;-webkit-animation:table-show .15s .54s forwards linear;animation:table-show .15s .54s forwards linear}.el-table__body .el-table__row:nth-child(55){opacity:0;-webkit-animation:table-show .15s .55s forwards linear;animation:table-show .15s .55s forwards linear}.el-table__body .el-table__row:nth-child(56){opacity:0;-webkit-animation:table-show .15s .56s forwards linear;animation:table-show .15s .56s forwards linear}.el-table__body .el-table__row:nth-child(57){opacity:0;-webkit-animation:table-show .15s .57s forwards linear;animation:table-show .15s .57s forwards linear}.el-table__body .el-table__row:nth-child(58){opacity:0;-webkit-animation:table-show .15s .58s forwards linear;animation:table-show .15s .58s forwards linear}.el-table__body .el-table__row:nth-child(59){opacity:0;-webkit-animation:table-show .15s .59s forwards linear;animation:table-show .15s .59s forwards linear}.el-table__body .el-table__row:nth-child(60){opacity:0;-webkit-animation:table-show .15s .6s forwards linear;animation:table-show .15s .6s forwards linear}.el-table__body .el-table__row:nth-child(61){opacity:0;-webkit-animation:table-show .15s .61s forwards linear;animation:table-show .15s .61s forwards linear}.el-table__body .el-table__row:nth-child(62){opacity:0;-webkit-animation:table-show .15s .62s forwards linear;animation:table-show .15s .62s forwards linear}.el-table__body .el-table__row:nth-child(63){opacity:0;-webkit-animation:table-show .15s .63s forwards linear;animation:table-show .15s .63s forwards linear}.el-table__body .el-table__row:nth-child(64){opacity:0;-webkit-animation:table-show .15s .64s forwards linear;animation:table-show .15s .64s forwards linear}.el-table__body .el-table__row:nth-child(65){opacity:0;-webkit-animation:table-show .15s .65s forwards linear;animation:table-show .15s .65s forwards linear}.el-table__body .el-table__row:nth-child(66){opacity:0;-webkit-animation:table-show .15s .66s forwards linear;animation:table-show .15s .66s forwards linear}.el-table__body .el-table__row:nth-child(67){opacity:0;-webkit-animation:table-show .15s .67s forwards linear;animation:table-show .15s .67s forwards linear}.el-table__body .el-table__row:nth-child(68){opacity:0;-webkit-animation:table-show .15s .68s forwards linear;animation:table-show .15s .68s forwards linear}.el-table__body .el-table__row:nth-child(69){opacity:0;-webkit-animation:table-show .15s .69s forwards linear;animation:table-show .15s .69s forwards linear}.el-table__body .el-table__row:nth-child(70){opacity:0;-webkit-animation:table-show .15s .7s forwards linear;animation:table-show .15s .7s forwards linear}.el-table__body .el-table__row:nth-child(71){opacity:0;-webkit-animation:table-show .15s .71s forwards linear;animation:table-show .15s .71s forwards linear}.el-table__body .el-table__row:nth-child(72){opacity:0;-webkit-animation:table-show .15s .72s forwards linear;animation:table-show .15s .72s forwards linear}.el-table__body .el-table__row:nth-child(73){opacity:0;-webkit-animation:table-show .15s .73s forwards linear;animation:table-show .15s .73s forwards linear}.el-table__body .el-table__row:nth-child(74){opacity:0;-webkit-animation:table-show .15s .74s forwards linear;animation:table-show .15s .74s forwards linear}.el-table__body .el-table__row:nth-child(75){opacity:0;-webkit-animation:table-show .15s .75s forwards linear;animation:table-show .15s .75s forwards linear}.el-table__body .el-table__row:nth-child(76){opacity:0;-webkit-animation:table-show .15s .76s forwards linear;animation:table-show .15s .76s forwards linear}.el-table__body .el-table__row:nth-child(77){opacity:0;-webkit-animation:table-show .15s .77s forwards linear;animation:table-show .15s .77s forwards linear}.el-table__body .el-table__row:nth-child(78){opacity:0;-webkit-animation:table-show .15s .78s forwards linear;animation:table-show .15s .78s forwards linear}.el-table__body .el-table__row:nth-child(79){opacity:0;-webkit-animation:table-show .15s .79s forwards linear;animation:table-show .15s .79s forwards linear}.el-table__body .el-table__row:nth-child(80){opacity:0;-webkit-animation:table-show .15s .8s forwards linear;animation:table-show .15s .8s forwards linear}.el-table__body .el-table__row:nth-child(81){opacity:0;-webkit-animation:table-show .15s .81s forwards linear;animation:table-show .15s .81s forwards linear}.el-table__body .el-table__row:nth-child(82){opacity:0;-webkit-animation:table-show .15s .82s forwards linear;animation:table-show .15s .82s forwards linear}.el-table__body .el-table__row:nth-child(83){opacity:0;-webkit-animation:table-show .15s .83s forwards linear;animation:table-show .15s .83s forwards linear}.el-table__body .el-table__row:nth-child(84){opacity:0;-webkit-animation:table-show .15s .84s forwards linear;animation:table-show .15s .84s forwards linear}.el-table__body .el-table__row:nth-child(85){opacity:0;-webkit-animation:table-show .15s .85s forwards linear;animation:table-show .15s .85s forwards linear}.el-table__body .el-table__row:nth-child(86){opacity:0;-webkit-animation:table-show .15s .86s forwards linear;animation:table-show .15s .86s forwards linear}.el-table__body .el-table__row:nth-child(87){opacity:0;-webkit-animation:table-show .15s .87s forwards linear;animation:table-show .15s .87s forwards linear}.el-table__body .el-table__row:nth-child(88){opacity:0;-webkit-animation:table-show .15s .88s forwards linear;animation:table-show .15s .88s forwards linear}.el-table__body .el-table__row:nth-child(89){opacity:0;-webkit-animation:table-show .15s .89s forwards linear;animation:table-show .15s .89s forwards linear}.el-table__body .el-table__row:nth-child(90){opacity:0;-webkit-animation:table-show .15s .9s forwards linear;animation:table-show .15s .9s forwards linear}.el-table__body .el-table__row:nth-child(91){opacity:0;-webkit-animation:table-show .15s .91s forwards linear;animation:table-show .15s .91s forwards linear}.el-table__body .el-table__row:nth-child(92){opacity:0;-webkit-animation:table-show .15s .92s forwards linear;animation:table-show .15s .92s forwards linear}.el-table__body .el-table__row:nth-child(93){opacity:0;-webkit-animation:table-show .15s .93s forwards linear;animation:table-show .15s .93s forwards linear}.el-table__body .el-table__row:nth-child(94){opacity:0;-webkit-animation:table-show .15s .94s forwards linear;animation:table-show .15s .94s forwards linear}.el-table__body .el-table__row:nth-child(95){opacity:0;-webkit-animation:table-show .15s .95s forwards linear;animation:table-show .15s .95s forwards linear}.el-table__body .el-table__row:nth-child(96){opacity:0;-webkit-animation:table-show .15s .96s forwards linear;animation:table-show .15s .96s forwards linear}.el-table__body .el-table__row:nth-child(97){opacity:0;-webkit-animation:table-show .15s .97s forwards linear;animation:table-show .15s .97s forwards linear}.el-table__body .el-table__row:nth-child(98){opacity:0;-webkit-animation:table-show .15s .98s forwards linear;animation:table-show .15s .98s forwards linear}.el-table__body .el-table__row:nth-child(99){opacity:0;-webkit-animation:table-show .15s .99s forwards linear;animation:table-show .15s .99s forwards linear}@-webkit-keyframes table-show{0%{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes table-show{0%{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}@font-face{font-family:v-contextmenu;src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAFgHAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAr5f4wwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4l69fDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=#iefix) format("embedded-opentype"),url(data:font/woff;base64,d09GRgABAAAAAAUAAAsAAAAAB1gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kgMY21hcAAAAYAAAABeAAABhpnABr5nbHlmAAAB4AAAAS4AAAE8h1VEkmhlYWQAAAMQAAAALwAAADYPY7HCaGhlYQAAA0AAAAAcAAAAJAfeA4RobXR4AAADXAAAAAwAAAAMC+kAAGxvY2EAAANoAAAACAAAAAgAdgCebWF4cAAAA3AAAAAfAAAAIAESAF1uYW1lAAADkAAAAUUAAAJtPlT+fXBvc3QAAATYAAAAKAAAADlBG9LpeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sE4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDxTYm7438AQw9zA0AAUZgTJAQAl4gyOeJzFkMENgDAMAy9t6QMxRV88GIgXc3TirlFMKA8mqCXHimMpUYAFiOIhJrAL48Ep19yPrO4nz2SpEait9K7+U0U0y65BJTMNNm/1H5vXfXT6CnVQJ7byknADpO8MFwAAeJwVjL1Kw1AARu93Y/7a3MTe/KdN2yS2V6kGjLEKYru4KA6Cgzj6ALp2cegiODj4DCKIr1D6AL6A7qIP4BNE48fhwFk+IhPy+yktpYDYZJ1skyNyRgiUEVKTxkhEmdMR3ER2fceURCYSNUtz6RB+qjheMS6HvqIqFkx0sZMUY5FTgd1yQg9QeDEQtqNzPuhw6RGNQHTvqhP6BLeXdazJVnW8OXWKvq3NDM5Dzh80RZY1SlcsE9e+p8t6Q6meZStyl70N2oMRiuj0kvXb/Oq+vIkHvg7M57DbffNl2opaNbeRZ/NQXWVaELFszcHsuxnYRjz8IvXwL/pBf0irDkeFkmO8pyPHBD48+s6qVzMJwLBfvTEEKcMFw5wb1aKJMGEQECwJ0awWRv30B+KIMJEAAHicY2BkYGAA4sM/urfH89t8ZeBmYQCBa0pmzxD0/4csDMwSQC4HAxNIFABNGgrfAHicY2BkYGBu+N/AEMPCAAJAkpEBFTADAEcJAmwEAAAAA+kAAAQAAAAAAAAAAHYAnnicY2BkYGBgZghkYGUAASYg5gJCBob/YD4DABD3AXAAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAmZGJkZmRhYGxgjuxqCi/XLcoMz2jhIEBAC8dBRY=) format("woff"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kgMAAABfAAAAFZjbWFwmcAGvgAAAeAAAAGGZ2x5ZodVRJIAAANwAAABPGhlYWQPY7HCAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAvpAAAAAAHUAAAADGxvY2EAdgCeAAADaAAAAAhtYXhwARIAXQAAARgAAAAgbmFtZT5U/n0AAASsAAACbXBvc3RBG9LpAAAHHAAAADkAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAAMP4i7dfDzz1AAsEAAAAAADWIjbmAAAAANYiNuYAAP/hBAADGAAAAAgAAgAAAAAAAAABAAAAAwBRAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP4AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjmIgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAgB45iL//wAAAHjmIv//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAKAAAAAAAAAACAAAAeAAAAHgAAAABAADmIgAA5iIAAAACAAAAAAAAAHYAngAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAEAAAAAAtYC8AARAAABFAcBBi4BNjcJAS4BPgEXARYC1Q3+qQ4hGAENATj+yA0BGCINAVcNAYASDP66CwEZIQ0BJwEnDSEZAQv+ugwAAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAIABUAAQAAAAAAAgAHAB0AAQAAAAAAAwAIACQAAQAAAAAABAAIACwAAQAAAAAABQALADQAAQAAAAAABgAIAD8AAQAAAAAACgArAEcAAQAAAAAACwATAHIAAwABBAkAAAAqAIUAAwABBAkAAQAQAK8AAwABBAkAAgAOAL8AAwABBAkAAwAQAM0AAwABBAkABAAQAN0AAwABBAkABQAWAO0AAwABBAkABgAQAQMAAwABBAkACgBWARMAAwABBAkACwAmAWkKQ3JlYXRlZCBieSBpY29uZm9udAppY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAGkAYwBvAG4AZgBvAG4AdABSAGUAZwB1AGwAYQByAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAVgBlAHIAcwBpAG8AbgAgADEALgAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQIBAwEEAAF4C2Fycm93LXJpZ2h0AAAAAAA=) format("truetype"),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%0A%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%20%3E%0A%3C!--%0A2013-9-30%3A%20Created.%0A--%3E%0A%3Csvg%3E%0A%3Cmetadata%3E%0ACreated%20by%20iconfont%0A%3C%2Fmetadata%3E%0A%3Cdefs%3E%0A%0A%3Cfont%20id%3D%22iconfont%22%20horiz-adv-x%3D%221024%22%20%3E%0A%20%20%3Cfont-face%0A%20%20%20%20font-family%3D%22iconfont%22%0A%20%20%20%20font-weight%3D%22500%22%0A%20%20%20%20font-stretch%3D%22normal%22%0A%20%20%20%20units-per-em%3D%221024%22%0A%20%20%20%20ascent%3D%22896%22%0A%20%20%20%20descent%3D%22-128%22%0A%20%20%2F%3E%0A%20%20%20%20%3Cmissing-glyph%20%2F%3E%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22x%22%20unicode%3D%22x%22%20horiz-adv-x%3D%221001%22%0Ad%3D%22M281%20543q-27%20-1%20-53%20-1h-83q-18%200%20-36.5%20-6t-32.5%20-18.5t-23%20-32t-9%20-45.5v-76h912v41q0%2016%20-0.5%2030t-0.5%2018q0%2013%20-5%2029t-17%2029.5t-31.5%2022.5t-49.5%209h-133v-97h-438v97zM955%20310v-52q0%20-23%200.5%20-52t0.5%20-58t-10.5%20-47.5t-26%20-30t-33%20-16t-31.5%20-4.5q-14%20-1%20-29.5%20-0.5%0At-29.5%200.5h-32l-45%20128h-439l-44%20-128h-29h-34q-20%200%20-45%201q-25%200%20-41%209.5t-25.5%2023t-13.5%2029.5t-4%2030v167h911zM163%20247q-12%200%20-21%20-8.5t-9%20-21.5t9%20-21.5t21%20-8.5q13%200%2022%208.5t9%2021.5t-9%2021.5t-22%208.5zM316%20123q-8%20-26%20-14%20-48q-5%20-19%20-10.5%20-37t-7.5%20-25t-3%20-15t1%20-14.5%0At9.5%20-10.5t21.5%20-4h37h67h81h80h64h36q23%200%2034%2012t2%2038q-5%2013%20-9.5%2030.5t-9.5%2034.5q-5%2019%20-11%2039h-368zM336%20498v228q0%2011%202.5%2023t10%2021.5t20.5%2015.5t34%206h188q31%200%2051.5%20-14.5t20.5%20-52.5v-227h-327z%22%20%2F%3E%0A%20%20%20%20%0A%0A%20%20%20%20%0A%20%20%20%20%3Cglyph%20glyph-name%3D%22arrow-right%22%20unicode%3D%22%26%2358914%3B%22%20d%3D%22M725.3399071604938%20383.8342991012345a41.425224691358025%2041.425224691358025%200%200%200-12.924670103703681-30.074713125925918l-343.82936493827134-325.2708642765434a41.425224691358025%2041.425224691358025%200%200%200-56.91825872592596%2060.23227670123452l312.0976428246912%20295.1961511506175-312.0976428246914%20295.4447024987654a41.50807514074074%2041.50807514074074%200%200%200-1.6570089876543506%2058.575267713580246c15.74158538271605%2016.570089876543207%2042.00517783703699%2017.315743920987664%2058.575267713580246%201.6570089876543506l343.8293649382716-325.6022660740737a41.425224691358025%2041.425224691358025%200%200%200%2012.924670103703713-30.15756357530862z%22%20%20horiz-adv-x%3D%221024%22%20%2F%3E%0A%0A%20%20%20%20%0A%0A%0A%20%20%3C%2Ffont%3E%0A%3C%2Fdefs%3E%3C%2Fsvg%3E%0A) format("svg")}.v-contextmenu-icon{font-family:v-contextmenu!important;font-size:inherit;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.v-contextmenu-icon-right-arrow:before{content:"\e622"}.v-contextmenu{position:absolute;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;-webkit-box-shadow:2px 2px 8px 0 rgba(150,150,150,.2);box-shadow:2px 2px 8px #96969633;font-size:14px;white-space:nowrap;line-height:1;z-index:2020;-webkit-tap-highlight-color:transparent}.v-contextmenu-inner{padding:5px 0;margin:0;list-style:none}.v-contextmenu-item{padding:5px 14px;line-height:1;color:#333;cursor:pointer}.v-contextmenu-item--hover{color:#fff;background-color:#46a0fc}.v-contextmenu-item--disabled{color:#3336;cursor:not-allowed}.v-contextmenu-divider{height:0;margin:5px 0;border-bottom:1px solid #e8e8e8}.v-contextmenu-group__title{padding:5px 14px 2.5px;color:#3333338c;font-size:60%}.v-contextmenu-group__menus{padding:0 5px;margin:0;list-style:none}.v-contextmenu-group__menus .v-contextmenu-item{display:inline-block;padding:5px 9px}.v-contextmenu-submenu{position:relative}.v-contextmenu-submenu__title{padding-right:22.4px}.v-contextmenu-submenu__menus{position:absolute}.v-contextmenu-submenu__menus--left{left:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}.v-contextmenu-submenu__menus--right{right:0;-webkit-transform:translateX(100%);transform:translate(100%)}.v-contextmenu-submenu__menus--top{top:-6px}.v-contextmenu-submenu__menus--bottom{bottom:-6px}.v-contextmenu-submenu__arrow{position:absolute;right:5px}.v-contextmenu-enter-active{-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.v-contextmenu-leave-active{-webkit-transition:opacity .3s cubic-bezier(1,.5,.8,1);transition:opacity .3s cubic-bezier(1,.5,.8,1)}.v-contextmenu-enter-from,.v-contextmenu-leave-to{opacity:0}.zfile-index-body-wrapper[data-v-149d5da8],.zfile-index-body[data-v-149d5da8]{height:100%}@media (min-width: 768px){.zfile-index-body[data-v-149d5da8]{padding-left:1rem;padding-right:1rem}}.zfile-index-table-center[data-v-149d5da8]{margin-left:10%;width:80%}.el-table[data-v-149d5da8]{overflow-y:hidden}.el-table[data-v-149d5da8] .el-table__inner-wrapper{height:100%}.el-table[data-v-149d5da8] .el-table__body-wrapper{height:100%;font-weight:450}.el-table .el-table__header-wrapper .el-icon[data-v-149d5da8]{top:.125rem;margin-right:1rem;font-size:.875rem;line-height:1.25rem}.el-table .el-table__body-wrapper .zfile-table-col-name svg[data-v-149d5da8]{position:relative;top:-1.5px;margin-right:.375rem;display:inline;vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.el-table[data-v-149d5da8] tr{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table.el-table--default .el-table__header-wrapper .el-icon[data-v-149d5da8]{font-size:1rem;line-height:1.5rem}.el-table.el-table--default .el-table__body-wrapper .zfile-table-col-name svg[data-v-149d5da8]{font-size:1.5rem;line-height:2rem}.el-table.el-table--large .el-table__header-wrapper .el-icon[data-v-149d5da8]{font-size:1.25rem;line-height:1.75rem}.el-table.el-table--large .el-table__body-wrapper .zfile-table-col-name svg[data-v-149d5da8]{font-size:1.875rem;line-height:2.25rem}.zfile-index-body[data-v-149d5da8] .el-table__empty-block{margin-top:-2.5rem;margin-bottom:2.5rem}.zfile-index-body[data-v-149d5da8] .el-table__empty-text{width:100%}.zfile-index-body[data-v-149d5da8] .empty-icon{display:initial;height:20rem;width:20rem}.zfile-index-body[data-v-149d5da8] .el-dialog__header{margin-top:-.75rem;margin-left:.5rem;padding-top:.25rem;padding-bottom:.25rem;text-align:center}.zfile-index-body[data-v-149d5da8] .el-dialog__title{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.zfile-index-body[data-v-149d5da8] .el-dialog__header .el-dialog__headerbtn{margin-top:-.75rem}.zfile-index-body[data-v-149d5da8] .el-overlay-dialog{overflow:hidden}.zfile-index-body[data-v-149d5da8] .el-dialog{margin-top:1.5rem!important}@media (min-width: 640px){.zfile-index-body[data-v-149d5da8] .el-dialog{margin-top:2rem!important}}.zfile-index-body[data-v-149d5da8] .zfile-video-dialog{width:91.666667%}.zfile-index-body[data-v-149d5da8] .zfile-video-dialog .el-dialog__body{padding:0}@media (min-width: 640px){.zfile-index-body[data-v-149d5da8] .zfile-video-dialog .el-dialog__body{padding-top:.5rem}}.zfile-index-body[data-v-149d5da8] .zfile-text-dialog{width:91.666667%}.zfile-index-body[data-v-149d5da8] .zfile-text-dialog .el-dialog__body{padding:1rem .25rem}.zfile-index-body[data-v-149d5da8] .zfile-pdf-dialog .el-dialog__body{height:80vh;overflow:auto}@media (min-width: 640px){.zfile-index-body[data-v-149d5da8] .zfile-pdf-dialog .el-dialog__body{height:85vh}}.zfile-index-body[data-v-149d5da8] .select-row{background-color:var(--el-table-row-hover-bg-color)}.v-contextmenu-item[data-v-149d5da8] label{margin-left:.625rem}.v-contextmenu-item[data-v-149d5da8] .contextmenu-icon{top:1px;padding-top:1px}.zfile-index-body[data-v-149d5da8] .v-md-editor-preview .github-markdown-body{padding:unset}.zfile-index-announcement[data-v-149d5da8]{margin:10px 0}.zfile-index-body .zfile-index-hover-tools[data-v-149d5da8]{position:absolute;bottom:0px;left:0px;right:0px;z-index:10;margin-left:auto;margin-right:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media (min-width: 640px){.zfile-index-body .zfile-index-hover-tools[data-v-149d5da8]{bottom:2.5rem}}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-149d5da8]{margin-left:auto;margin-right:auto;height:3rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-149d5da8]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body[data-v-149d5da8]{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity));padding:.5rem 1.25rem;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body svg[data-v-149d5da8]{display:inline;cursor:pointer;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.zfile-index-body .zfile-index-hover-tools .zfile-index-hover-body svg[data-v-149d5da8]:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))} diff --git a/src/main/resources/static/assets/file.0293c443.js b/src/main/resources/static/assets/file.59ec637e.js similarity index 58% rename from src/main/resources/static/assets/file.0293c443.js rename to src/main/resources/static/assets/file.59ec637e.js index ceda77c..e6e6ddb 100644 --- a/src/main/resources/static/assets/file.0293c443.js +++ b/src/main/resources/static/assets/file.59ec637e.js @@ -1,20 +1,20 @@ -import{r as Lt,o as uo,w as Jn,d as ar,s as Za,c as ft,a as xe,b as ze,e as me,f as Le,g as Bt,h as oe,u as E,n as He,i as on,j as Qn,k as Ie,T as As,l as yd,m as D0,p as be,t as Pt,q as Dc,v as Sa,x as Bc,F as Ca,y as Yi,z as $i,A as _d,N as qt,B as Ic,C as wd,D as bd,E as ms,G as Ed,H as Rc,I as B0,J as xr,K as Td,L as fo,M as Mc,O as Va,P as vs,Q as it,R as ct,S as Dn,U as Pc,V as Lc,W as kd,X as Sd,Y as Fd,Z as Nc,_ as wa,$ as Cd,a0 as Od,a1 as Dd,a2 as tn}from"./index.552205f5.js";import{u as sn,t as ho,c as Uc,E as Vr,_ as wn,a as Bd,w as oi,b as bn,d as mt,e as Id,f as jc,g as Rd,h as zc,i as Hc,p as Md,j as Pd,k as Ld,l as gs,z as Nd,m as Ud,n as jd,o as zd,q as Hd,r as Gd,s as Gc,v as Vc,x as I0,y as R0}from"./base.d698891e.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as xs}from"./popper.14a92806.js";import{E as ys}from"./dialog.04a5229a.js";import"./overlay.7eff71c7.js";import{E as Wc,a as Yc}from"./checkbox.cfb94aee.js";import"./scrollbar.97fa2ffd.js";/* empty css */import{E as Vd}from"./table-column.0ede6c12.js";import{E as Wd}from"./alert.36ada7cc.js";import{c as Xn}from"./common.0f75f163.js";import{_ as ta}from"./plugin-vue_export-helper.21dcd24c.js";import{S as er}from"./SvgIcon.c7a5ac24.js";import{u as _s,a as ws,b as po,s as Yd,c as Ao,d as $c,e as $d,f as Qd,g as Xd,h as qd}from"./useFileUpload.b18c246f.js";import{u as Jd,m as us,a as Kd,E as Wi}from"./request.3708b2c4.js";/* empty css */import{E as Zd,a as ep}from"./form-item.1544fca0.js";/* empty css */import{E as tp}from"./image-viewer.65ed4853.js";import{t as rp}from"./vue3-clipboard.esm-bundler.34366eba.js";import{E as np}from"./index.4ab44dc8.js";import{u as ap}from"./index.1e624cbf.js";import{b as M0}from"./route-block.9b0645f8.js";import{v as ip}from"./directive.e250a256.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./refs.4597d917.js";import"./event.776e7e11.js";import"./index.24f1077d.js";import"./debounce.32892d61.js";import"./index.11692625.js";import"./validator.6f3b33db.js";import"./index.c92ded65.js";import"./isEqual.fe8e5f6f.js";const P0=e=>e**3,op=e=>e<.5?P0(e*2)/2:1-P0((1-e)*2)/2,sp=Symbol("rowContextKey"),Qc=Symbol("uploadContextKey"),lp=(e,r=0)=>{if(r===0)return e;const t=Lt(!1);let n=0;const a=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{t.value=e.value},r)};return uo(a),Jn(()=>e.value,o=>{o?a():t.value=o}),t},cp={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},up={click:e=>e instanceof MouseEvent},fp=["onClick"],hp={name:"ElBacktop"},dp=ar({...hp,props:cp,emits:up,setup(e,{emit:r}){const t=e,n="ElBacktop",a=sn("backtop"),o=Za(),s=Za(),c=Lt(!1),h=ft(()=>({right:`${t.right}px`,bottom:`${t.bottom}px`})),f=()=>{if(!o.value)return;const m=Date.now(),x=o.value.scrollTop,v=()=>{if(!o.value)return;const _=(Date.now()-m)/500;_<1?(o.value.scrollTop=x*(1-op(_)),requestAnimationFrame(v)):o.value.scrollTop=0};requestAnimationFrame(v)},u=()=>{o.value&&(c.value=o.value.scrollTop>=t.visibilityHeight)},p=m=>{f(),r("click",m)},A=Bd(u,300);return Jd(s,"scroll",A),uo(()=>{var m;s.value=document,o.value=document.documentElement,t.target&&(o.value=(m=document.querySelector(t.target))!=null?m:void 0,o.value||ho(n,`target is not existed: ${t.target}`),s.value=o.value)}),(m,x)=>(xe(),ze(As,{name:`${E(a).namespace.value}-fade-in`},{default:me(()=>[c.value?(xe(),Le("div",{key:0,style:on(E(h)),class:He(E(a).b()),onClick:Qn(p,["stop"])},[Bt(m.$slots,"default",{},()=>[oe(E(Vr),{class:He(E(a).e("icon"))},{default:me(()=>[oe(E(Uc))]),_:1},8,["class"])])],14,fp)):Ie("v-if",!0)]),_:3},8,["name"]))}});var pp=wn(dp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Ap=oi(pp),mp=bn({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:mt(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:mt([String,Array,Function]),default:""},format:{type:mt(Function),default:e=>`${e}%`}}),vp=["aria-valuenow"],gp={viewBox:"0 0 100 100"},xp=["d","stroke","stroke-width"],yp=["d","stroke","opacity","stroke-linecap","stroke-width"],_p={key:0},wp={name:"ElProgress"},bp=ar({...wp,props:mp,setup(e){const r=e,t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=sn("progress"),a=ft(()=>({width:`${r.percentage}%`,animationDuration:`${r.duration}s`,backgroundColor:T(r.percentage)})),o=ft(()=>(r.strokeWidth/r.width*100).toFixed(1)),s=ft(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),c=ft(()=>{const b=s.value,P=r.type==="dashboard";return` +import{r as Lt,o as co,w as Jn,d as ar,s as ei,c as ft,a as ve,b as Pe,e as me,f as Re,g as It,h as ae,u as E,n as He,i as An,j as Xn,k as Ie,T as As,l as yd,m as B0,p as be,t as Et,q as Bc,v as Sa,x as Ic,F as Ca,y as Wi,z as Yi,A as _d,N as qt,B as Rc,C as wd,D as bd,E as ms,G as Ed,H as Mc,I as I0,J as xr,K as Td,L as uo,M as Pc,O as Wa,P as vs,Q as ct,R as ut,S as Bn,U as Lc,V as Nc,W as kd,X as Sd,Y as Fd,Z as Uc,_ as wa,$ as Cd,a0 as Od,a1 as Dd,a2 as tn}from"./index.43b3cbf5.js";import{u as on,t as fo,c as jc,E as Vr,_ as wn,a as Bd,w as si,b as bn,d as mt,e as Id,f as zc,g as Rd,h as Hc,i as Gc,p as Md,j as Pd,k as Ld,l as gs,z as Nd,m as Ud,n as jd,o as zd,q as Hd,r as Gd,s as Vc,v as Wc,x as R0,y as M0}from"./base.4ef7f45b.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as xs}from"./popper.718d36e0.js";import{E as ys}from"./dialog.0ab1ba1d.js";import"./overlay.533d94fc.js";import{E as Yc,a as $c}from"./checkbox.65d5353a.js";/* empty css */import"./scrollbar.83fe9165.js";/* empty css *//* empty css */import{E as Vd}from"./card.d6fbde4d.js";import{E as Wd}from"./alert.b0fac511.js";import{c as Oa}from"./common.72335e7c.js";import{_ as ta}from"./plugin-vue_export-helper.21dcd24c.js";import{S as er}from"./SvgIcon.eefd5347.js";import{u as ho,a as _s,b as po,s as Yd,c as Ao,d as Qc,e as $d,f as Qd,g as Xd,h as qd}from"./useFileUpload.72c71760.js";import{u as Jd,m as us,a as Kd,E as Vi}from"./request.e2daed10.js";/* empty css */import{E as Zd,a as ep}from"./form-item.2dea3b0a.js";/* empty css */import{E as tp}from"./image-viewer.ed2baaff.js";import{t as rp}from"./vue3-clipboard.esm-bundler.34366eba.js";import{E as np}from"./index.da7dbe5d.js";import{u as ap}from"./index.566ad052.js";import{b as P0}from"./route-block.9b0645f8.js";import{v as ip}from"./directive.378eb0e0.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./refs.f6f7d296.js";import"./event.776e7e11.js";import"./index.88f36c37.js";import"./debounce.014e7b6e.js";import"./index.439070da.js";import"./validator.b1ae6965.js";import"./index.e7e80979.js";import"./index.5cf4e3bb.js";import"./isEqual.2263846a.js";const L0=e=>e**3,op=e=>e<.5?L0(e*2)/2:1-L0((1-e)*2)/2,sp=Symbol("rowContextKey"),Xc=Symbol("uploadContextKey"),lp=(e,r=0)=>{if(r===0)return e;const t=Lt(!1);let n=0;const a=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{t.value=e.value},r)};return co(a),Jn(()=>e.value,o=>{o?a():t.value=o}),t},cp={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},up={click:e=>e instanceof MouseEvent},fp=["onClick"],hp={name:"ElBacktop"},dp=ar({...hp,props:cp,emits:up,setup(e,{emit:r}){const t=e,n="ElBacktop",a=on("backtop"),o=ei(),s=ei(),c=Lt(!1),h=ft(()=>({right:`${t.right}px`,bottom:`${t.bottom}px`})),f=()=>{if(!o.value)return;const m=Date.now(),y=o.value.scrollTop,v=()=>{if(!o.value)return;const _=(Date.now()-m)/500;_<1?(o.value.scrollTop=y*(1-op(_)),requestAnimationFrame(v)):o.value.scrollTop=0};requestAnimationFrame(v)},u=()=>{o.value&&(c.value=o.value.scrollTop>=t.visibilityHeight)},p=m=>{f(),r("click",m)},A=Bd(u,300);return Jd(s,"scroll",A),co(()=>{var m;s.value=document,o.value=document.documentElement,t.target&&(o.value=(m=document.querySelector(t.target))!=null?m:void 0,o.value||fo(n,`target is not existed: ${t.target}`),s.value=o.value)}),(m,y)=>(ve(),Pe(As,{name:`${E(a).namespace.value}-fade-in`},{default:me(()=>[c.value?(ve(),Re("div",{key:0,style:An(E(h)),class:He(E(a).b()),onClick:Xn(p,["stop"])},[It(m.$slots,"default",{},()=>[ae(E(Vr),{class:He(E(a).e("icon"))},{default:me(()=>[ae(E(jc))]),_:1},8,["class"])])],14,fp)):Ie("v-if",!0)]),_:3},8,["name"]))}});var pp=wn(dp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Ap=si(pp),mp=bn({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:mt(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:mt([String,Array,Function]),default:""},format:{type:mt(Function),default:e=>`${e}%`}}),vp=["aria-valuenow"],gp={viewBox:"0 0 100 100"},xp=["d","stroke","stroke-width"],yp=["d","stroke","opacity","stroke-linecap","stroke-width"],_p={key:0},wp={name:"ElProgress"},bp=ar({...wp,props:mp,setup(e){const r=e,t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=on("progress"),a=ft(()=>({width:`${r.percentage}%`,animationDuration:`${r.duration}s`,backgroundColor:T(r.percentage)})),o=ft(()=>(r.strokeWidth/r.width*100).toFixed(1)),s=ft(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),c=ft(()=>{const b=s.value,L=r.type==="dashboard";return` M 50 50 - m 0 ${P?"":"-"}${b} - a ${b} ${b} 0 1 1 0 ${P?"-":""}${b*2} - a ${b} ${b} 0 1 1 0 ${P?"":"-"}${b*2} - `}),h=ft(()=>2*Math.PI*s.value),f=ft(()=>r.type==="dashboard"?.75:1),u=ft(()=>`${-1*h.value*(1-f.value)/2}px`),p=ft(()=>({strokeDasharray:`${h.value*f.value}px, ${h.value}px`,strokeDashoffset:u.value})),A=ft(()=>({strokeDasharray:`${h.value*f.value*(r.percentage/100)}px, ${h.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=ft(()=>{let b;return r.color?b=T(r.percentage):b=t[r.status]||t.default,b}),x=ft(()=>r.status==="warning"?Id:r.type==="line"?r.status==="success"?jc:Rd:r.status==="success"?zc:Hc),v=ft(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),_=ft(()=>r.format(r.percentage));function I(b){const P=100/b.length;return b.map((O,M)=>D0(O)?{color:O,percentage:(M+1)*P}:O).sort((O,M)=>O.percentage-M.percentage)}const T=b=>{var P;const{color:j}=r;if(yd(j))return j(b);if(D0(j))return j;{const O=I(j);for(const M of O)if(M.percentage>b)return M.color;return(P=O[O.length-1])==null?void 0:P.color}};return(b,P)=>(xe(),Le("div",{class:He([E(n).b(),E(n).m(b.type),E(n).is(b.status),{[E(n).m("without-text")]:!b.showText,[E(n).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(xe(),Le("div",{key:0,class:He(E(n).b("bar"))},[be("div",{class:He(E(n).be("bar","outer")),style:on({height:`${b.strokeWidth}px`})},[be("div",{class:He([E(n).be("bar","inner"),{[E(n).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:on(E(a))},[(b.showText||b.$slots.default)&&b.textInside?(xe(),Le("div",{key:0,class:He(E(n).be("bar","innerText"))},[Bt(b.$slots,"default",{percentage:b.percentage},()=>[be("span",null,Pt(E(_)),1)])],2)):Ie("v-if",!0)],6)],6)],2)):(xe(),Le("div",{key:1,class:He(E(n).b("circle")),style:on({height:`${b.width}px`,width:`${b.width}px`})},[(xe(),Le("svg",gp,[be("path",{class:He(E(n).be("circle","track")),d:E(c),stroke:`var(${E(n).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":E(o),fill:"none",style:on(E(p))},null,14,xp),be("path",{class:He(E(n).be("circle","path")),d:E(c),stroke:E(m),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":E(o),style:on(E(A))},null,14,yp)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(xe(),Le("div",{key:2,class:He(E(n).e("text")),style:on({fontSize:`${E(v)}px`})},[Bt(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(xe(),ze(E(Vr),{key:1},{default:me(()=>[(xe(),ze(Dc(E(x))))]),_:1})):(xe(),Le("span",_p,Pt(E(_)),1))])],6)):Ie("v-if",!0)],10,vp))}});var Ep=wn(bp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Xc=oi(Ep),Tp=["start","center","end","space-around","space-between","space-evenly"],kp=["top","middle","bottom"],Sp=bn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Tp,default:"start"},align:{type:String,values:kp,default:"top"}}),Fp={name:"ElRow"},Cp=ar({...Fp,props:Sp,setup(e){const r=e,t=sn("row"),n=ft(()=>r.gutter);Sa(sp,{gutter:n});const a=ft(()=>{const o={};return r.gutter&&(o.marginRight=o.marginLeft=`-${r.gutter/2}px`),o});return(o,s)=>(xe(),ze(Dc(o.tag),{class:He([E(t).b(),E(t).is(`justify-${r.justify}`,o.justify!=="start"),E(t).is(`align-${r.align}`,o.align!=="top")]),style:on(E(a))},{default:me(()=>[Bt(o.$slots,"default")]),_:3},8,["class","style"]))}});var Op=wn(Cp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Dp=oi(Op),Bp=bn({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Ip=bn({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Rp={name:"ElSkeletonItem"},Mp=ar({...Rp,props:Ip,setup(e){const r=sn("skeleton");return(t,n)=>(xe(),Le("div",{class:He([E(r).e("item"),E(r).e(t.variant)])},[t.variant==="image"?(xe(),ze(E(Md),{key:0})):Ie("v-if",!0)],2))}});var Qi=wn(Mp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Pp={name:"ElSkeleton"},Lp=ar({...Pp,props:Bp,setup(e,{expose:r}){const t=e,n=sn("skeleton"),a=lp(Bc(t,"loading"),t.throttle);return r({uiLoading:a}),(o,s)=>E(a)?(xe(),Le("div",$i({key:0,class:[E(n).b(),E(n).is("animated",o.animated)]},o.$attrs),[(xe(!0),Le(Ca,null,Yi(o.count,c=>(xe(),Le(Ca,{key:c},[o.loading?Bt(o.$slots,"template",{key:c},()=>[oe(Qi,{class:He(E(n).is("first")),variant:"p"},null,8,["class"]),(xe(!0),Le(Ca,null,Yi(o.rows,h=>(xe(),ze(Qi,{key:h,class:He([E(n).e("paragraph"),E(n).is("last",h===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Ie("v-if",!0)],64))),128))],16)):Bt(o.$slots,"default",_d($i({key:1},o.$attrs)))}});var Np=wn(Lp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const si=oi(Np,{SkeletonItem:Qi}),bs=Pd(Qi),Up="ElUpload";class jp extends Error{constructor(r,t,n,a){super(r),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}}function L0(e,r,t){let n;return t.response?n=`${t.response.error||t.response}`:t.responseText?n=`${t.responseText}`:n=`fail to ${r.method} ${e} ${t.status}`,new jp(n,t.status,r.method,e)}function zp(e){const r=e.responseText||e.response;if(!r)return r;try{return JSON.parse(r)}catch{return r}}const Hp=e=>{typeof XMLHttpRequest=="undefined"&&ho(Up,"XMLHttpRequest is undefined");const r=new XMLHttpRequest,t=e.action;r.upload&&r.upload.addEventListener("progress",o=>{const s=o;s.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(s)});const n=new FormData;if(e.data)for(const[o,s]of Object.entries(e.data))Array.isArray(s)?n.append(o,...s):n.append(o,s);n.append(e.filename,e.file,e.file.name),r.addEventListener("error",()=>{e.onError(L0(t,e,r))}),r.addEventListener("load",()=>{if(r.status<200||r.status>=300)return e.onError(L0(t,e,r));e.onSuccess(zp(r))}),r.open(e.method,t,!0),e.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,s)=>r.setRequestHeader(s,o));else for(const[o,s]of Object.entries(a))Ld(s)||r.setRequestHeader(o,String(s));return r.send(n),r},qc=["text","picture","picture-card"];let Gp=1;const Jc=()=>Date.now()+Gp++,Kc=bn({action:{type:String,default:"#"},headers:{type:mt(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>us({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:mt(Array),default:()=>us([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:qc,default:"text"},httpRequest:{type:mt(Function),default:Hp},disabled:Boolean,limit:Number}),Vp=bn({...Kc,beforeUpload:{type:mt(Function),default:qt},beforeRemove:{type:mt(Function)},onRemove:{type:mt(Function),default:qt},onChange:{type:mt(Function),default:qt},onPreview:{type:mt(Function),default:qt},onSuccess:{type:mt(Function),default:qt},onProgress:{type:mt(Function),default:qt},onError:{type:mt(Function),default:qt},onExceed:{type:mt(Function),default:qt}}),Wp=bn({files:{type:mt(Array),default:()=>us([])},disabled:{type:Boolean,default:!1},handlePreview:{type:mt(Function),default:qt},listType:{type:String,values:qc,default:"text"}}),Yp={remove:e=>!!e},$p=["onKeydown"],Qp=["src"],Xp=["onClick"],qp=["onClick"],Jp=["onClick"],Kp={name:"ElUploadList"},Zp=ar({...Kp,props:Wp,emits:Yp,setup(e,{emit:r}){const t=e,{t:n}=ap(),a=sn("upload"),o=sn("icon"),s=sn("list"),c=Lt(!1),h=u=>{t.handlePreview(u)},f=u=>{r("remove",u)};return(u,p)=>(xe(),ze(wd,{tag:"ul",class:He([E(a).b("list"),E(a).bm("list",u.listType),E(a).is("disabled",u.disabled)]),name:E(s).b()},{default:me(()=>[(xe(!0),Le(Ca,null,Yi(u.files,A=>(xe(),Le("li",{key:A.uid||A.name,class:He([E(a).be("list","item"),E(a).is(A.status),{focusing:c.value}]),tabindex:"0",onKeydown:Ic(m=>!u.disabled&&f(A),["delete"]),onFocus:p[0]||(p[0]=m=>c.value=!0),onBlur:p[1]||(p[1]=m=>c.value=!1),onClick:p[2]||(p[2]=m=>c.value=!1)},[Bt(u.$slots,"default",{file:A},()=>[u.listType==="picture"||A.status!=="uploading"&&u.listType==="picture-card"?(xe(),Le("img",{key:0,class:He(E(a).be("list","item-thumbnail")),src:A.url,alt:""},null,10,Qp)):Ie("v-if",!0),u.listType!=="picture"&&(A.status==="uploading"||u.listType!=="picture-card")?(xe(),Le("div",{key:1,class:He(E(a).be("list","item-info"))},[be("a",{class:He(E(a).be("list","item-name")),onClick:Qn(m=>h(A),["prevent"])},[oe(E(Vr),{class:He(E(o).m("document"))},{default:me(()=>[oe(E(gs))]),_:1},8,["class"]),be("span",{class:He(E(a).be("list","item-file-name"))},Pt(A.name),3)],10,Xp),A.status==="uploading"?(xe(),ze(E(Xc),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(A.percentage),style:on(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Ie("v-if",!0)],2)):Ie("v-if",!0),be("label",{class:He(E(a).be("list","item-status-label"))},[u.listType==="text"?(xe(),ze(E(Vr),{key:0,class:He([E(o).m("upload-success"),E(o).m("circle-check")])},{default:me(()=>[oe(E(jc))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(xe(),ze(E(Vr),{key:1,class:He([E(o).m("upload-success"),E(o).m("check")])},{default:me(()=>[oe(E(zc))]),_:1},8,["class"])):Ie("v-if",!0)],2),u.disabled?Ie("v-if",!0):(xe(),ze(E(Vr),{key:2,class:He(E(o).m("close")),onClick:m=>f(A)},{default:me(()=>[oe(E(Hc))]),_:2},1032,["class","onClick"])),Ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Ie(" This is a bug which needs to be fixed "),Ie(" TODO: Fix the incorrect navigation interaction "),u.disabled?Ie("v-if",!0):(xe(),Le("i",{key:3,class:He(E(o).m("close-tip"))},Pt(E(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(xe(),Le("span",{key:4,class:He(E(a).be("list","item-actions"))},[be("span",{class:He(E(a).be("list","item-preview")),onClick:m=>u.handlePreview(A)},[oe(E(Vr),{class:He(E(o).m("zoom-in"))},{default:me(()=>[oe(E(Nd))]),_:1},8,["class"])],10,qp),u.disabled?Ie("v-if",!0):(xe(),Le("span",{key:0,class:He(E(a).be("list","item-delete")),onClick:m=>f(A)},[oe(E(Vr),{class:He(E(o).m("delete"))},{default:me(()=>[oe(E(Ud))]),_:1},8,["class"])],10,Jp))],2)):Ie("v-if",!0)])],42,$p))),128)),Bt(u.$slots,"append")]),_:3},8,["class","name"]))}});var N0=wn(Zp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const eA=bn({disabled:{type:Boolean,default:!1}}),tA={file:e=>bd(e)},rA=["onDrop","onDragover"],nA={name:"ElUploadDrag"},aA=ar({...nA,props:eA,emits:tA,setup(e,{emit:r}){const t=e,n="ElUploadDrag",a=ms(Qc);a||ho(n,"usage: ");const o=sn("upload"),s=Lt(!1),c=f=>{if(t.disabled)return;s.value=!1;const u=Array.from(f.dataTransfer.files),p=a.accept.value;if(!p){r("file",u);return}const A=u.filter(m=>{const{type:x,name:v}=m,_=v.includes(".")?`.${v.split(".").pop()}`:"",I=x.replace(/\/.*$/,"");return p.split(",").map(T=>T.trim()).filter(T=>T).some(T=>T.startsWith(".")?_===T:/\/\*$/.test(T)?I===T.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(T)?x===T:!1)});r("file",A)},h=()=>{t.disabled||(s.value=!0)};return(f,u)=>(xe(),Le("div",{class:He([E(o).b("dragger"),E(o).is("dragover",s.value)]),onDrop:Qn(c,["prevent"]),onDragover:Qn(h,["prevent"]),onDragleave:u[0]||(u[0]=Qn(p=>s.value=!1,["prevent"]))},[Bt(f.$slots,"default")],42,rA))}});var iA=wn(aA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const oA=bn({...Kc,beforeUpload:{type:mt(Function),default:qt},onRemove:{type:mt(Function),default:qt},onStart:{type:mt(Function),default:qt},onSuccess:{type:mt(Function),default:qt},onProgress:{type:mt(Function),default:qt},onError:{type:mt(Function),default:qt},onExceed:{type:mt(Function),default:qt}}),sA=["onKeydown"],lA=["name","multiple","accept"],cA={name:"ElUploadContent",inheritAttrs:!1},uA=ar({...cA,props:oA,setup(e,{expose:r}){const t=e,n=sn("upload"),a=Za({}),o=Za(),s=m=>{if(m.length===0)return;const{autoUpload:x,limit:v,fileList:_,multiple:I,onStart:T,onExceed:b}=t;if(v&&_.length+m.length>v){b(m,_);return}I||(m=m.slice(0,1));for(const P of m){const j=P;j.uid=Jc(),T(j),x&&c(j)}},c=async m=>{if(o.value.value="",!t.beforeUpload)return h(m);let x;try{x=await t.beforeUpload(m)}catch{x=!1}if(x===!1){t.onRemove(m);return}let v=m;x instanceof Blob&&(x instanceof File?v=x:v=new File([x],m.name,{type:m.type})),h(Object.assign(v,{uid:m.uid}))},h=m=>{const{headers:x,data:v,method:_,withCredentials:I,name:T,action:b,onProgress:P,onSuccess:j,onError:O,httpRequest:M}=t,{uid:q}=m,U={headers:x||{},withCredentials:I,file:m,data:v,method:_,filename:T,action:b,onProgress:he=>{P(he,m)},onSuccess:he=>{j(he,m),delete a.value[q]},onError:he=>{O(he,m),delete a.value[q]}},le=M(U);a.value[q]=le,le instanceof Promise&&le.then(U.onSuccess,U.onError)},f=m=>{const x=m.target.files;!x||s(Array.from(x))},u=()=>{t.disabled||(o.value.value="",o.value.click())},p=()=>{u()};return r({abort:m=>{jd(a.value).filter(m?([v])=>String(m.uid)===v:()=>!0).forEach(([v,_])=>{_ instanceof XMLHttpRequest&&_.abort(),delete a.value[v]})},upload:c}),(m,x)=>(xe(),Le("div",{class:He([E(n).b(),E(n).m(m.listType),E(n).is("drag",m.drag)]),tabindex:"0",onClick:u,onKeydown:Ic(Qn(p,["self"]),["enter","space"])},[m.drag?(xe(),ze(iA,{key:0,disabled:m.disabled,onFile:s},{default:me(()=>[Bt(m.$slots,"default")]),_:3},8,["disabled"])):Bt(m.$slots,"default",{key:1}),be("input",{ref_key:"inputRef",ref:o,class:He(E(n).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:f,onClick:x[0]||(x[0]=Qn(()=>{},["stop"]))},null,42,lA)],42,sA))}});var U0=wn(uA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const j0="ElUpload",fA=e=>{var r;(r=e.url)!=null&&r.startsWith("blob:")&&URL.revokeObjectURL(e.url)},hA=(e,r)=>{const t=Kd(e,"fileList",void 0,{passive:!0}),n=A=>t.value.find(m=>m.uid===A.uid);function a(A){var m;(m=r.value)==null||m.abort(A)}function o(A=["ready","uploading","success","fail"]){t.value=t.value.filter(m=>!A.includes(m.status))}const s=(A,m)=>{const x=n(m);!x||(console.error(A),x.status="fail",t.value.splice(t.value.indexOf(x),1),e.onError(A,x,t.value),e.onChange(x,t.value))},c=(A,m)=>{const x=n(m);!x||(e.onProgress(A,x,t.value),x.status="uploading",x.percentage=Math.round(A.percent))},h=(A,m)=>{const x=n(m);!x||(x.status="success",x.response=A,e.onSuccess(A,x,t.value),e.onChange(x,t.value))},f=A=>{const m={name:A.name,percentage:0,status:"ready",size:A.size,raw:A,uid:A.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(A)}catch(x){zd(j0,x.message),e.onError(x,m,t.value)}t.value.push(m),e.onChange(m,t.value)},u=async A=>{const m=A instanceof File?n(A):A;m||ho(j0,"file to be removed not found");const x=v=>{a(v);const _=t.value;_.splice(_.indexOf(v),1),e.onRemove(v,_),fA(v)};e.beforeRemove?await e.beforeRemove(m,t.value)!==!1&&x(m):x(m)};function p(){t.value.filter(({status:A})=>A==="ready").forEach(({raw:A})=>{var m;return A&&((m=r.value)==null?void 0:m.upload(A))})}return Jn(()=>e.listType,A=>{A!=="picture-card"&&A!=="picture"||(t.value=t.value.map(m=>{const{raw:x,url:v}=m;if(!v&&x)try{m.url=URL.createObjectURL(x)}catch(_){e.onError(_,m,t.value)}return m}))}),Jn(t,A=>{for(const m of A)m.uid||(m.uid=Jc()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:t,abort:a,clearFiles:o,handleError:s,handleProgress:c,handleStart:f,handleSuccess:h,handleRemove:u,submit:p}},dA={name:"ElUpload"},pA=ar({...dA,props:Vp,setup(e,{expose:r}){const t=e,n=Ed(),a=Hd(),o=Za(),{abort:s,submit:c,clearFiles:h,uploadFiles:f,handleStart:u,handleError:p,handleRemove:A,handleSuccess:m,handleProgress:x}=hA(t,o),v=ft(()=>t.listType==="picture-card"),_=ft(()=>({...t,onStart:u,onProgress:x,onSuccess:m,onError:p,onRemove:A}));return Rc(()=>{f.value.forEach(({url:I})=>{I!=null&&I.startsWith("blob:")&&URL.revokeObjectURL(I)})}),Sa(Qc,{accept:Bc(t,"accept")}),r({abort:s,submit:c,clearFiles:h,handleStart:u,handleRemove:A}),(I,T)=>(xe(),Le("div",null,[E(v)&&I.showFileList?(xe(),ze(N0,{key:0,disabled:E(a),"list-type":I.listType,files:E(f),"handle-preview":I.onPreview,onRemove:E(A)},B0({append:me(()=>[I.listType==="picture-card"?(xe(),ze(U0,$i({key:0,ref_key:"uploadRef",ref:o},E(_)),{default:me(()=>[E(n).trigger?Bt(I.$slots,"trigger",{key:0}):Ie("v-if",!0),!E(n).trigger&&E(n).default?Bt(I.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)):Ie("v-if",!0)]),_:2},[I.$slots.file?{name:"default",fn:me(({file:b})=>[Bt(I.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ie("v-if",!0),I.listType!=="picture-card"?(xe(),ze(U0,$i({key:1,ref_key:"uploadRef",ref:o},E(_)),{default:me(()=>[E(n).trigger?Bt(I.$slots,"trigger",{key:0}):Ie("v-if",!0),!E(n).trigger&&E(n).default?Bt(I.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)):Ie("v-if",!0),I.$slots.trigger?Bt(I.$slots,"default",{key:2}):Ie("v-if",!0),Bt(I.$slots,"tip"),!E(v)&&I.showFileList?(xe(),ze(N0,{key:3,disabled:E(a),"list-type":I.listType,files:E(f),"handle-preview":I.onPreview,onRemove:E(A)},B0({_:2},[I.$slots.file?{name:"default",fn:me(({file:b})=>[Bt(I.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ie("v-if",!0)]))}});var AA=wn(pA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const mA=oi(AA);const vA={t:"1659437514490",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2261",width:"128",height:"128"},gA=be("path",{d:"M934.4 206.933333c-17.066667-4.266667-34.133333 6.4-38.4 23.466667l-23.466667 87.466667C797.866667 183.466667 654.933333 96 497.066667 96 264.533333 96 74.666667 281.6 74.666667 512s189.866667 416 422.4 416c179.2 0 339.2-110.933333 398.933333-275.2 6.4-17.066667-2.133333-34.133333-19.2-40.533333-17.066667-6.4-34.133333 2.133333-40.533333 19.2-51.2 138.666667-187.733333 232.533333-339.2 232.533333C298.666667 864 138.666667 706.133333 138.666667 512S300.8 160 497.066667 160c145.066667 0 277.333333 87.466667 330.666666 217.6l-128-36.266667c-17.066667-4.266667-34.133333 6.4-38.4 23.466667-4.266667 17.066667 6.4 34.133333 23.466667 38.4l185.6 49.066667c2.133333 0 6.4 2.133333 8.533333 2.133333 6.4 0 10.666667-2.133333 17.066667-4.266667 6.4-4.266667 12.8-10.666667 14.933333-19.2l49.066667-185.6c0-17.066667-8.533333-34.133333-25.6-38.4z","p-id":"2262"},null,-1),xA=[gA];function yA(e,r){return xe(),Le("svg",vA,xA)}var _A={name:"custom-refresh",render:yA};const wA={fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"17px",height:"17px",viewBox:"0 -2 14 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"preview-list-icon vue-feather group-hover-text-theme"},bA=be("path",{d:"M0,10.6420028 C0,8.60583431 0,5.5515816 0,1.47924466 C0,0.662280392 0.633305625,0 1.4145277,0 L4.95084696,0 L6.36537467,2.21886699 L12.7307493,2.21886699 C13.5119714,2.21886699 14.145277,2.88114738 14.145277,3.69811164 C14.145277,7.76603445 14.145277,7.76603445 14.145277,11.8339573 C14.145277,12.6509215 13.5119714,13.3132019 12.7307493,13.3132019 C11.9928651,13.3132019 12.1671651,13.3132019 11.798223,13.3132019",id:"Path"},null,-1),EA=xr(),TA=be("polyline",{id:"Path-Copy-8",points:"9.49893123 9.53496452 6.74946561 6.60112928 4 9.53496452"},null,-1),kA=xr(),SA=be("line",{x1:"6.74946561",y1:"6.60112928",x2:"6.74946561",y2:"13.2022586",id:"Path-Copy-7"},null,-1),FA=[bA,EA,TA,kA,SA];function CA(e,r){return xe(),Le("svg",wA,FA)}var OA={name:"custom-upload-folder",render:CA};const DA={xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"vue-feather group-hover-text-theme feather feather-upload-cloud"},BA=be("polyline",{points:"16 16 12 12 8 16"},null,-1),IA=be("line",{x1:"12",y1:"12",x2:"12",y2:"21"},null,-1),RA=be("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"},null,-1),MA=be("polyline",{points:"16 16 12 12 8 16"},null,-1),PA=[BA,IA,RA,MA];function LA(e,r){return xe(),Le("svg",DA,PA)}var NA={name:"custom-upload",render:LA};const UA={t:"1642829350870",class:"icon",viewBox:"0 0 900 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4709",width:"200",height:"200"},jA=be("path",{d:"M680.554667 508.586667l-38.464-38.165334-102.997334 103.808V85.333333h-54.186666v488.896L381.866667 470.421333l-38.464 38.186667L512 678.442667 680.533333 508.586667z"},null,-1),zA=be("path",{d:"M340.224 294.4H341.333333v51.2c-30.293333 0-51.477333 0-67.989333 1.365333-16.192 1.322667-25.6 3.797333-32.810667 7.466667a81.066667 81.066667 0 0 0-35.434666 35.413333c-3.669333 7.210667-6.144 16.64-7.466667 32.853334C196.266667 439.189333 196.266667 460.373333 196.266667 490.666667v213.333333c0 30.293333 0 51.477333 1.365333 67.968 1.322667 16.213333 3.797333 25.642667 7.466667 32.853333a81.066667 81.066667 0 0 0 35.413333 35.413334c7.210667 3.669333 16.64 6.144 32.853333 7.466666 16.490667 1.344 37.674667 1.365333 67.968 1.365334h341.333334c30.293333 0 51.477333 0 67.968-1.365334 16.213333-1.322667 25.642667-3.797333 32.832-7.466666a81.066667 81.066667 0 0 0 35.413333-35.413334c3.690667-7.210667 6.165333-16.64 7.466667-32.853333 1.365333-16.490667 1.386667-37.674667 1.386666-67.968V490.666667c0-30.293333-0.021333-51.477333-1.365333-67.968-1.322667-16.213333-3.797333-25.642667-7.466667-32.853334a81.066667 81.066667 0 0 0-35.434666-35.413333c-7.189333-3.669333-16.64-6.144-32.832-7.466667-16.490667-1.344-37.674667-1.365333-67.968-1.365333v-51.2h1.088c28.949333 0 52.224 0 71.04 1.536 19.370667 1.578667 36.288 4.906667 51.925333 12.885333a132.266667 132.266667 0 0 1 57.792 57.813334c7.957333 15.594667 11.306667 32.512 12.885333 51.882666 1.536 18.837333 1.536 42.112 1.536 71.04v215.530667c0 28.949333 0 52.224-1.536 71.04-1.6 19.392-4.906667 36.309333-12.885333 51.925333a132.266667 132.266667 0 0 1-57.813333 57.813334c-15.616 7.936-32.533333 11.285333-51.882667 12.864-18.837333 1.536-42.112 1.536-71.04 1.536H340.202667c-28.928 0-52.202667 0-71.04-1.536-19.370667-1.578667-36.266667-4.906667-51.904-12.885334a132.266667 132.266667 0 0 1-57.813334-57.813333c-7.936-15.594667-11.285333-32.512-12.864-51.882667-1.536-18.837333-1.536-42.112-1.536-71.04V489.557333c0-28.928 0-52.202667 1.536-71.04 1.578667-19.370667 4.906667-36.266667 12.885334-51.904a132.266667 132.266667 0 0 1 57.813333-57.813333c15.594667-7.936 32.512-11.285333 51.882667-12.864 18.837333-1.536 42.112-1.536 71.04-1.536z"},null,-1),HA=[jA,zA];function GA(e,r){return xe(),Le("svg",UA,HA)}var VA={name:"custom-download",render:GA};const WA={t:"1641821720546",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4070",width:"200",height:"200"},YA=be("defs",null,null,-1),$A=be("path",{d:"M128 128v768h369.6v-64H192V192h640v288h64V128H128z m120 160h427.936v64H288V288z m0 160h209.6v64H288v-64z m0 160h122.304v64H288v-64z","p-id":"4071"},null,-1),QA=be("path",{d:"M664.832 544a120.8 120.8 0 1 0 0 241.6 120.8 120.8 0 0 0 0-241.6zM480 664.832a184.832 184.832 0 1 1 336.16 106.08L896 850.752 850.752 896l-79.84-79.84a184.8 184.8 0 0 1-290.88-151.36z","p-id":"4072"},null,-1),XA=[YA,$A,QA];function qA(e,r){return xe(),Le("svg",WA,XA)}var JA={name:"custom-preview",render:qA};const KA={},ZA={class:"w-full h-full"},em=be("br",null,null,-1);function tm(e,r){const t=bs,n=si;return xe(),Le("div",ZA,[oe(n,{animated:""},{template:me(()=>[oe(t,{variant:"p",class:"!w-1/4"}),em,oe(t,{variant:"p",class:"!w-1/2"})]),_:1})])}var rm=ta(KA,[["render",tm]]);const nm={},am={class:"p-5 w-full h-[75vh]"};function im(e,r){const t=si;return xe(),Le("div",am,[oe(t,{animated:"",count:"5"})])}var z0=ta(nm,[["render",im]]);const om={class:"zfile-async-loading"},sm={class:"flex justify-center items-center h-full loading"},lm={__name:"VideoPlayerAsyncLoading",setup(e){return uo(()=>{document.querySelector(".el-dialog .el-dialog__title").innerHTML="\u52A0\u8F7D\u4E2D..."}),(r,t)=>{const n=er,a=si;return xe(),Le("div",om,[oe(a,{class:"w-full h-[40vh] sm:h-[80vh]",animated:""},{template:me(()=>[be("div",sm,[oe(n,{name:"file-type-video",class:"w-12 h-12"})])]),_:1})])}}};var cm=ta(lm,[["__scopeId","data-v-0266aecc"]]);const um={},fm={class:"zfile-async-loading p-10 h-[75vh] w-full"},hm={class:"flex justify-between h-full"},dm={class:"w-1/4"},pm={class:"w-20 h-full"};function Am(e,r){const t=si,n=bs;return xe(),Le("div",fm,[be("div",hm,[be("div",dm,[oe(t,{animated:"",count:"6"})]),be("div",pm,[oe(t,{animated:"",class:"h-full"},{template:me(()=>[oe(n,{variant:"rect",class:"!h-full"})]),_:1})])])])}var mm=ta(um,[["render",Am]]),Zc={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(window,function(){return function(t){var n={};function a(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=t,a.c=n,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:c})},a.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="/",a(a.s=41)}([function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=/mobile/i.test(window.navigator.userAgent),s={secondToTime:function(c){var h=Math.floor(c/3600),f=Math.floor((c-3600*h)/60),u=Math.floor(c-3600*h-60*f);return(h>0?[h,f,u]:[f,u]).map(function(p){return p<10?"0"+p:""+p}).join(":")},getElementViewLeft:function(c){var h=c.offsetLeft,f=c.offsetParent,u=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;f!==null&&f!==c;)h+=f.offsetLeft,f=f.offsetParent;else for(;f!==null;)h+=f.offsetLeft,f=f.offsetParent;return h-u},getElementViewTop:function(c,h){for(var f,u=c.offsetTop,p=c.offsetParent;p!==null;)u+=p.offsetTop,p=p.offsetParent;return f=document.body.scrollTop+document.documentElement.scrollTop,h?u:u-f},isMobile:o,storage:{set:function(c,h){localStorage.setItem(c,h)},get:function(c){return localStorage.getItem(c)}},nameMap:{dragStart:o?"touchstart":"mousedown",dragMove:o?"touchmove":"mousemove",dragEnd:o?"touchend":"mouseup"},randomOrder:function(c){return function(h){for(var f=h.length-1;f>=0;f--){var u=Math.floor(Math.random()*(f+1)),p=h[u];h[u]=h[f],h[f]=p}return h}([].concat(function(h){if(Array.isArray(h)){for(var f=0,u=Array(h.length);f2*Math.PI*s.value),f=ft(()=>r.type==="dashboard"?.75:1),u=ft(()=>`${-1*h.value*(1-f.value)/2}px`),p=ft(()=>({strokeDasharray:`${h.value*f.value}px, ${h.value}px`,strokeDashoffset:u.value})),A=ft(()=>({strokeDasharray:`${h.value*f.value*(r.percentage/100)}px, ${h.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=ft(()=>{let b;return r.color?b=T(r.percentage):b=t[r.status]||t.default,b}),y=ft(()=>r.status==="warning"?Id:r.type==="line"?r.status==="success"?zc:Rd:r.status==="success"?Hc:Gc),v=ft(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),_=ft(()=>r.format(r.percentage));function I(b){const L=100/b.length;return b.map((O,R)=>B0(O)?{color:O,percentage:(R+1)*L}:O).sort((O,R)=>O.percentage-R.percentage)}const T=b=>{var L;const{color:j}=r;if(yd(j))return j(b);if(B0(j))return j;{const O=I(j);for(const R of O)if(R.percentage>b)return R.color;return(L=O[O.length-1])==null?void 0:L.color}};return(b,L)=>(ve(),Re("div",{class:He([E(n).b(),E(n).m(b.type),E(n).is(b.status),{[E(n).m("without-text")]:!b.showText,[E(n).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(ve(),Re("div",{key:0,class:He(E(n).b("bar"))},[be("div",{class:He(E(n).be("bar","outer")),style:An({height:`${b.strokeWidth}px`})},[be("div",{class:He([E(n).be("bar","inner"),{[E(n).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:An(E(a))},[(b.showText||b.$slots.default)&&b.textInside?(ve(),Re("div",{key:0,class:He(E(n).be("bar","innerText"))},[It(b.$slots,"default",{percentage:b.percentage},()=>[be("span",null,Et(E(_)),1)])],2)):Ie("v-if",!0)],6)],6)],2)):(ve(),Re("div",{key:1,class:He(E(n).b("circle")),style:An({height:`${b.width}px`,width:`${b.width}px`})},[(ve(),Re("svg",gp,[be("path",{class:He(E(n).be("circle","track")),d:E(c),stroke:`var(${E(n).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":E(o),fill:"none",style:An(E(p))},null,14,xp),be("path",{class:He(E(n).be("circle","path")),d:E(c),stroke:E(m),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":E(o),style:An(E(A))},null,14,yp)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(ve(),Re("div",{key:2,class:He(E(n).e("text")),style:An({fontSize:`${E(v)}px`})},[It(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(ve(),Pe(E(Vr),{key:1},{default:me(()=>[(ve(),Pe(Bc(E(y))))]),_:1})):(ve(),Re("span",_p,Et(E(_)),1))])],6)):Ie("v-if",!0)],10,vp))}});var Ep=wn(bp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ws=si(Ep),Tp=["start","center","end","space-around","space-between","space-evenly"],kp=["top","middle","bottom"],Sp=bn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Tp,default:"start"},align:{type:String,values:kp,default:"top"}}),Fp={name:"ElRow"},Cp=ar({...Fp,props:Sp,setup(e){const r=e,t=on("row"),n=ft(()=>r.gutter);Sa(sp,{gutter:n});const a=ft(()=>{const o={};return r.gutter&&(o.marginRight=o.marginLeft=`-${r.gutter/2}px`),o});return(o,s)=>(ve(),Pe(Bc(o.tag),{class:He([E(t).b(),E(t).is(`justify-${r.justify}`,o.justify!=="start"),E(t).is(`align-${r.align}`,o.align!=="top")]),style:An(E(a))},{default:me(()=>[It(o.$slots,"default")]),_:3},8,["class","style"]))}});var Op=wn(Cp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Dp=si(Op),Bp=bn({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Ip=bn({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Rp={name:"ElSkeletonItem"},Mp=ar({...Rp,props:Ip,setup(e){const r=on("skeleton");return(t,n)=>(ve(),Re("div",{class:He([E(r).e("item"),E(r).e(t.variant)])},[t.variant==="image"?(ve(),Pe(E(Md),{key:0})):Ie("v-if",!0)],2))}});var $i=wn(Mp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Pp={name:"ElSkeleton"},Lp=ar({...Pp,props:Bp,setup(e,{expose:r}){const t=e,n=on("skeleton"),a=lp(Ic(t,"loading"),t.throttle);return r({uiLoading:a}),(o,s)=>E(a)?(ve(),Re("div",Yi({key:0,class:[E(n).b(),E(n).is("animated",o.animated)]},o.$attrs),[(ve(!0),Re(Ca,null,Wi(o.count,c=>(ve(),Re(Ca,{key:c},[o.loading?It(o.$slots,"template",{key:c},()=>[ae($i,{class:He(E(n).is("first")),variant:"p"},null,8,["class"]),(ve(!0),Re(Ca,null,Wi(o.rows,h=>(ve(),Pe($i,{key:h,class:He([E(n).e("paragraph"),E(n).is("last",h===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Ie("v-if",!0)],64))),128))],16)):It(o.$slots,"default",_d(Yi({key:1},o.$attrs)))}});var Np=wn(Lp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const li=si(Np,{SkeletonItem:$i}),bs=Pd($i),Up="ElUpload";class jp extends Error{constructor(r,t,n,a){super(r),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}}function N0(e,r,t){let n;return t.response?n=`${t.response.error||t.response}`:t.responseText?n=`${t.responseText}`:n=`fail to ${r.method} ${e} ${t.status}`,new jp(n,t.status,r.method,e)}function zp(e){const r=e.responseText||e.response;if(!r)return r;try{return JSON.parse(r)}catch{return r}}const Hp=e=>{typeof XMLHttpRequest=="undefined"&&fo(Up,"XMLHttpRequest is undefined");const r=new XMLHttpRequest,t=e.action;r.upload&&r.upload.addEventListener("progress",o=>{const s=o;s.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(s)});const n=new FormData;if(e.data)for(const[o,s]of Object.entries(e.data))Array.isArray(s)?n.append(o,...s):n.append(o,s);n.append(e.filename,e.file,e.file.name),r.addEventListener("error",()=>{e.onError(N0(t,e,r))}),r.addEventListener("load",()=>{if(r.status<200||r.status>=300)return e.onError(N0(t,e,r));e.onSuccess(zp(r))}),r.open(e.method,t,!0),e.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,s)=>r.setRequestHeader(s,o));else for(const[o,s]of Object.entries(a))Ld(s)||r.setRequestHeader(o,String(s));return r.send(n),r},qc=["text","picture","picture-card"];let Gp=1;const Jc=()=>Date.now()+Gp++,Kc=bn({action:{type:String,default:"#"},headers:{type:mt(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>us({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:mt(Array),default:()=>us([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:qc,default:"text"},httpRequest:{type:mt(Function),default:Hp},disabled:Boolean,limit:Number}),Vp=bn({...Kc,beforeUpload:{type:mt(Function),default:qt},beforeRemove:{type:mt(Function)},onRemove:{type:mt(Function),default:qt},onChange:{type:mt(Function),default:qt},onPreview:{type:mt(Function),default:qt},onSuccess:{type:mt(Function),default:qt},onProgress:{type:mt(Function),default:qt},onError:{type:mt(Function),default:qt},onExceed:{type:mt(Function),default:qt}}),Wp=bn({files:{type:mt(Array),default:()=>us([])},disabled:{type:Boolean,default:!1},handlePreview:{type:mt(Function),default:qt},listType:{type:String,values:qc,default:"text"}}),Yp={remove:e=>!!e},$p=["onKeydown"],Qp=["src"],Xp=["onClick"],qp=["onClick"],Jp=["onClick"],Kp={name:"ElUploadList"},Zp=ar({...Kp,props:Wp,emits:Yp,setup(e,{emit:r}){const t=e,{t:n}=ap(),a=on("upload"),o=on("icon"),s=on("list"),c=Lt(!1),h=u=>{t.handlePreview(u)},f=u=>{r("remove",u)};return(u,p)=>(ve(),Pe(wd,{tag:"ul",class:He([E(a).b("list"),E(a).bm("list",u.listType),E(a).is("disabled",u.disabled)]),name:E(s).b()},{default:me(()=>[(ve(!0),Re(Ca,null,Wi(u.files,A=>(ve(),Re("li",{key:A.uid||A.name,class:He([E(a).be("list","item"),E(a).is(A.status),{focusing:c.value}]),tabindex:"0",onKeydown:Rc(m=>!u.disabled&&f(A),["delete"]),onFocus:p[0]||(p[0]=m=>c.value=!0),onBlur:p[1]||(p[1]=m=>c.value=!1),onClick:p[2]||(p[2]=m=>c.value=!1)},[It(u.$slots,"default",{file:A},()=>[u.listType==="picture"||A.status!=="uploading"&&u.listType==="picture-card"?(ve(),Re("img",{key:0,class:He(E(a).be("list","item-thumbnail")),src:A.url,alt:""},null,10,Qp)):Ie("v-if",!0),u.listType!=="picture"&&(A.status==="uploading"||u.listType!=="picture-card")?(ve(),Re("div",{key:1,class:He(E(a).be("list","item-info"))},[be("a",{class:He(E(a).be("list","item-name")),onClick:Xn(m=>h(A),["prevent"])},[ae(E(Vr),{class:He(E(o).m("document"))},{default:me(()=>[ae(E(gs))]),_:1},8,["class"]),be("span",{class:He(E(a).be("list","item-file-name"))},Et(A.name),3)],10,Xp),A.status==="uploading"?(ve(),Pe(E(ws),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(A.percentage),style:An(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Ie("v-if",!0)],2)):Ie("v-if",!0),be("label",{class:He(E(a).be("list","item-status-label"))},[u.listType==="text"?(ve(),Pe(E(Vr),{key:0,class:He([E(o).m("upload-success"),E(o).m("circle-check")])},{default:me(()=>[ae(E(zc))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(ve(),Pe(E(Vr),{key:1,class:He([E(o).m("upload-success"),E(o).m("check")])},{default:me(()=>[ae(E(Hc))]),_:1},8,["class"])):Ie("v-if",!0)],2),u.disabled?Ie("v-if",!0):(ve(),Pe(E(Vr),{key:2,class:He(E(o).m("close")),onClick:m=>f(A)},{default:me(()=>[ae(E(Gc))]),_:2},1032,["class","onClick"])),Ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Ie(" This is a bug which needs to be fixed "),Ie(" TODO: Fix the incorrect navigation interaction "),u.disabled?Ie("v-if",!0):(ve(),Re("i",{key:3,class:He(E(o).m("close-tip"))},Et(E(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(ve(),Re("span",{key:4,class:He(E(a).be("list","item-actions"))},[be("span",{class:He(E(a).be("list","item-preview")),onClick:m=>u.handlePreview(A)},[ae(E(Vr),{class:He(E(o).m("zoom-in"))},{default:me(()=>[ae(E(Nd))]),_:1},8,["class"])],10,qp),u.disabled?Ie("v-if",!0):(ve(),Re("span",{key:0,class:He(E(a).be("list","item-delete")),onClick:m=>f(A)},[ae(E(Vr),{class:He(E(o).m("delete"))},{default:me(()=>[ae(E(Ud))]),_:1},8,["class"])],10,Jp))],2)):Ie("v-if",!0)])],42,$p))),128)),It(u.$slots,"append")]),_:3},8,["class","name"]))}});var U0=wn(Zp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const eA=bn({disabled:{type:Boolean,default:!1}}),tA={file:e=>bd(e)},rA=["onDrop","onDragover"],nA={name:"ElUploadDrag"},aA=ar({...nA,props:eA,emits:tA,setup(e,{emit:r}){const t=e,n="ElUploadDrag",a=ms(Xc);a||fo(n,"usage: ");const o=on("upload"),s=Lt(!1),c=f=>{if(t.disabled)return;s.value=!1;const u=Array.from(f.dataTransfer.files),p=a.accept.value;if(!p){r("file",u);return}const A=u.filter(m=>{const{type:y,name:v}=m,_=v.includes(".")?`.${v.split(".").pop()}`:"",I=y.replace(/\/.*$/,"");return p.split(",").map(T=>T.trim()).filter(T=>T).some(T=>T.startsWith(".")?_===T:/\/\*$/.test(T)?I===T.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(T)?y===T:!1)});r("file",A)},h=()=>{t.disabled||(s.value=!0)};return(f,u)=>(ve(),Re("div",{class:He([E(o).b("dragger"),E(o).is("dragover",s.value)]),onDrop:Xn(c,["prevent"]),onDragover:Xn(h,["prevent"]),onDragleave:u[0]||(u[0]=Xn(p=>s.value=!1,["prevent"]))},[It(f.$slots,"default")],42,rA))}});var iA=wn(aA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const oA=bn({...Kc,beforeUpload:{type:mt(Function),default:qt},onRemove:{type:mt(Function),default:qt},onStart:{type:mt(Function),default:qt},onSuccess:{type:mt(Function),default:qt},onProgress:{type:mt(Function),default:qt},onError:{type:mt(Function),default:qt},onExceed:{type:mt(Function),default:qt}}),sA=["onKeydown"],lA=["name","multiple","accept"],cA={name:"ElUploadContent",inheritAttrs:!1},uA=ar({...cA,props:oA,setup(e,{expose:r}){const t=e,n=on("upload"),a=ei({}),o=ei(),s=m=>{if(m.length===0)return;const{autoUpload:y,limit:v,fileList:_,multiple:I,onStart:T,onExceed:b}=t;if(v&&_.length+m.length>v){b(m,_);return}I||(m=m.slice(0,1));for(const L of m){const j=L;j.uid=Jc(),T(j),y&&c(j)}},c=async m=>{if(o.value.value="",!t.beforeUpload)return h(m);let y;try{y=await t.beforeUpload(m)}catch{y=!1}if(y===!1){t.onRemove(m);return}let v=m;y instanceof Blob&&(y instanceof File?v=y:v=new File([y],m.name,{type:m.type})),h(Object.assign(v,{uid:m.uid}))},h=m=>{const{headers:y,data:v,method:_,withCredentials:I,name:T,action:b,onProgress:L,onSuccess:j,onError:O,httpRequest:R}=t,{uid:H}=m,U={headers:y||{},withCredentials:I,file:m,data:v,method:_,filename:T,action:b,onProgress:he=>{L(he,m)},onSuccess:he=>{j(he,m),delete a.value[H]},onError:he=>{O(he,m),delete a.value[H]}},le=R(U);a.value[H]=le,le instanceof Promise&&le.then(U.onSuccess,U.onError)},f=m=>{const y=m.target.files;!y||s(Array.from(y))},u=()=>{t.disabled||(o.value.value="",o.value.click())},p=()=>{u()};return r({abort:m=>{jd(a.value).filter(m?([v])=>String(m.uid)===v:()=>!0).forEach(([v,_])=>{_ instanceof XMLHttpRequest&&_.abort(),delete a.value[v]})},upload:c}),(m,y)=>(ve(),Re("div",{class:He([E(n).b(),E(n).m(m.listType),E(n).is("drag",m.drag)]),tabindex:"0",onClick:u,onKeydown:Rc(Xn(p,["self"]),["enter","space"])},[m.drag?(ve(),Pe(iA,{key:0,disabled:m.disabled,onFile:s},{default:me(()=>[It(m.$slots,"default")]),_:3},8,["disabled"])):It(m.$slots,"default",{key:1}),be("input",{ref_key:"inputRef",ref:o,class:He(E(n).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:f,onClick:y[0]||(y[0]=Xn(()=>{},["stop"]))},null,42,lA)],42,sA))}});var j0=wn(uA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const z0="ElUpload",fA=e=>{var r;(r=e.url)!=null&&r.startsWith("blob:")&&URL.revokeObjectURL(e.url)},hA=(e,r)=>{const t=Kd(e,"fileList",void 0,{passive:!0}),n=A=>t.value.find(m=>m.uid===A.uid);function a(A){var m;(m=r.value)==null||m.abort(A)}function o(A=["ready","uploading","success","fail"]){t.value=t.value.filter(m=>!A.includes(m.status))}const s=(A,m)=>{const y=n(m);!y||(console.error(A),y.status="fail",t.value.splice(t.value.indexOf(y),1),e.onError(A,y,t.value),e.onChange(y,t.value))},c=(A,m)=>{const y=n(m);!y||(e.onProgress(A,y,t.value),y.status="uploading",y.percentage=Math.round(A.percent))},h=(A,m)=>{const y=n(m);!y||(y.status="success",y.response=A,e.onSuccess(A,y,t.value),e.onChange(y,t.value))},f=A=>{const m={name:A.name,percentage:0,status:"ready",size:A.size,raw:A,uid:A.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(A)}catch(y){zd(z0,y.message),e.onError(y,m,t.value)}t.value.push(m),e.onChange(m,t.value)},u=async A=>{const m=A instanceof File?n(A):A;m||fo(z0,"file to be removed not found");const y=v=>{a(v);const _=t.value;_.splice(_.indexOf(v),1),e.onRemove(v,_),fA(v)};e.beforeRemove?await e.beforeRemove(m,t.value)!==!1&&y(m):y(m)};function p(){t.value.filter(({status:A})=>A==="ready").forEach(({raw:A})=>{var m;return A&&((m=r.value)==null?void 0:m.upload(A))})}return Jn(()=>e.listType,A=>{A!=="picture-card"&&A!=="picture"||(t.value=t.value.map(m=>{const{raw:y,url:v}=m;if(!v&&y)try{m.url=URL.createObjectURL(y)}catch(_){e.onError(_,m,t.value)}return m}))}),Jn(t,A=>{for(const m of A)m.uid||(m.uid=Jc()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:t,abort:a,clearFiles:o,handleError:s,handleProgress:c,handleStart:f,handleSuccess:h,handleRemove:u,submit:p}},dA={name:"ElUpload"},pA=ar({...dA,props:Vp,setup(e,{expose:r}){const t=e,n=Ed(),a=Hd(),o=ei(),{abort:s,submit:c,clearFiles:h,uploadFiles:f,handleStart:u,handleError:p,handleRemove:A,handleSuccess:m,handleProgress:y}=hA(t,o),v=ft(()=>t.listType==="picture-card"),_=ft(()=>({...t,onStart:u,onProgress:y,onSuccess:m,onError:p,onRemove:A}));return Mc(()=>{f.value.forEach(({url:I})=>{I!=null&&I.startsWith("blob:")&&URL.revokeObjectURL(I)})}),Sa(Xc,{accept:Ic(t,"accept")}),r({abort:s,submit:c,clearFiles:h,handleStart:u,handleRemove:A}),(I,T)=>(ve(),Re("div",null,[E(v)&&I.showFileList?(ve(),Pe(U0,{key:0,disabled:E(a),"list-type":I.listType,files:E(f),"handle-preview":I.onPreview,onRemove:E(A)},I0({append:me(()=>[I.listType==="picture-card"?(ve(),Pe(j0,Yi({key:0,ref_key:"uploadRef",ref:o},E(_)),{default:me(()=>[E(n).trigger?It(I.$slots,"trigger",{key:0}):Ie("v-if",!0),!E(n).trigger&&E(n).default?It(I.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)):Ie("v-if",!0)]),_:2},[I.$slots.file?{name:"default",fn:me(({file:b})=>[It(I.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ie("v-if",!0),I.listType!=="picture-card"?(ve(),Pe(j0,Yi({key:1,ref_key:"uploadRef",ref:o},E(_)),{default:me(()=>[E(n).trigger?It(I.$slots,"trigger",{key:0}):Ie("v-if",!0),!E(n).trigger&&E(n).default?It(I.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)):Ie("v-if",!0),I.$slots.trigger?It(I.$slots,"default",{key:2}):Ie("v-if",!0),It(I.$slots,"tip"),!E(v)&&I.showFileList?(ve(),Pe(U0,{key:3,disabled:E(a),"list-type":I.listType,files:E(f),"handle-preview":I.onPreview,onRemove:E(A)},I0({_:2},[I.$slots.file?{name:"default",fn:me(({file:b})=>[It(I.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ie("v-if",!0)]))}});var AA=wn(pA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const mA=si(AA);const vA={t:"1659437514490",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2261",width:"128",height:"128"},gA=be("path",{d:"M934.4 206.933333c-17.066667-4.266667-34.133333 6.4-38.4 23.466667l-23.466667 87.466667C797.866667 183.466667 654.933333 96 497.066667 96 264.533333 96 74.666667 281.6 74.666667 512s189.866667 416 422.4 416c179.2 0 339.2-110.933333 398.933333-275.2 6.4-17.066667-2.133333-34.133333-19.2-40.533333-17.066667-6.4-34.133333 2.133333-40.533333 19.2-51.2 138.666667-187.733333 232.533333-339.2 232.533333C298.666667 864 138.666667 706.133333 138.666667 512S300.8 160 497.066667 160c145.066667 0 277.333333 87.466667 330.666666 217.6l-128-36.266667c-17.066667-4.266667-34.133333 6.4-38.4 23.466667-4.266667 17.066667 6.4 34.133333 23.466667 38.4l185.6 49.066667c2.133333 0 6.4 2.133333 8.533333 2.133333 6.4 0 10.666667-2.133333 17.066667-4.266667 6.4-4.266667 12.8-10.666667 14.933333-19.2l49.066667-185.6c0-17.066667-8.533333-34.133333-25.6-38.4z","p-id":"2262"},null,-1),xA=[gA];function yA(e,r){return ve(),Re("svg",vA,xA)}var _A={name:"custom-refresh",render:yA};const wA={fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"17px",height:"17px",viewBox:"0 -2 14 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"preview-list-icon vue-feather group-hover-text-theme"},bA=be("path",{d:"M0,10.6420028 C0,8.60583431 0,5.5515816 0,1.47924466 C0,0.662280392 0.633305625,0 1.4145277,0 L4.95084696,0 L6.36537467,2.21886699 L12.7307493,2.21886699 C13.5119714,2.21886699 14.145277,2.88114738 14.145277,3.69811164 C14.145277,7.76603445 14.145277,7.76603445 14.145277,11.8339573 C14.145277,12.6509215 13.5119714,13.3132019 12.7307493,13.3132019 C11.9928651,13.3132019 12.1671651,13.3132019 11.798223,13.3132019",id:"Path"},null,-1),EA=xr(),TA=be("polyline",{id:"Path-Copy-8",points:"9.49893123 9.53496452 6.74946561 6.60112928 4 9.53496452"},null,-1),kA=xr(),SA=be("line",{x1:"6.74946561",y1:"6.60112928",x2:"6.74946561",y2:"13.2022586",id:"Path-Copy-7"},null,-1),FA=[bA,EA,TA,kA,SA];function CA(e,r){return ve(),Re("svg",wA,FA)}var OA={name:"custom-upload-folder",render:CA};const DA={xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"vue-feather group-hover-text-theme feather feather-upload-cloud"},BA=be("polyline",{points:"16 16 12 12 8 16"},null,-1),IA=be("line",{x1:"12",y1:"12",x2:"12",y2:"21"},null,-1),RA=be("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"},null,-1),MA=be("polyline",{points:"16 16 12 12 8 16"},null,-1),PA=[BA,IA,RA,MA];function LA(e,r){return ve(),Re("svg",DA,PA)}var NA={name:"custom-upload",render:LA};const UA={t:"1659779241057",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9132",width:"128",height:"128"},jA=be("path",{d:"M800 384c16.954 0 32.986 6.696 45.145 18.855C857.304 415.014 864 431.046 864 448v384c0 16.954-6.696 32.986-18.855 45.145C832.986 889.304 816.954 896 800 896H224c-16.954 0-32.986-6.696-45.145-18.855C166.696 864.986 160 848.954 160 832V448c0-16.954 6.696-32.986 18.855-45.145C191.014 390.696 207.046 384 224 384h576m0-64H224c-70.4 0-128 57.6-128 128v384c0 70.4 57.6 128 128 128h576c70.4 0 128-57.6 128-128V448c0-70.4-57.6-128-128-128zM832 256H192c-17.6 0-32-14.4-32-32s14.4-32 32-32h640c17.6 0 32 14.4 32 32s-14.4 32-32 32zM768 128H256c-17.6 0-32-14.4-32-32s14.4-32 32-32h512c17.6 0 32 14.4 32 32s-14.4 32-32 32z","p-id":"9133"},null,-1),zA=be("path",{d:"M662.51 649.49c-12.445-12.445-32.81-12.445-45.255 0L544 722.745V480c0-17.6-14.4-32-32-32s-32 14.4-32 32v242.745l-73.255-73.255c-12.445-12.445-32.81-12.445-45.255 0s-12.445 32.81 0 45.255L489.255 822.51a31.834 31.834 0 0 0 4.489 3.723C498.931 829.861 505.226 832 512 832c6.774 0 13.069-2.139 18.256-5.767a31.834 31.834 0 0 0 4.489-3.723L662.51 694.745c12.445-12.445 12.445-32.81 0-45.255z","p-id":"9134"},null,-1),HA=[jA,zA];function GA(e,r){return ve(),Re("svg",UA,HA)}var VA={name:"custom-download-mult",render:GA};const WA={t:"1659780366086",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2427",width:"128",height:"128"},YA=be("path",{d:"M938.855808 638.776382l0 270.299169c0 27.41028-22.210861 49.634444-49.621141 49.634444l-754.442728 0c-27.41028 0-49.647747-22.224164-49.647747-49.634444L85.144192 638.776382c0-27.41028 22.224164-49.634444 49.634444-49.634444s49.634444 22.224164 49.634444 49.634444l0 220.664725 655.17384 0L839.58692 638.776382c0-27.41028 22.224164-49.634444 49.634444-49.634444S938.855808 611.366102 938.855808 638.776382zM476.55165 701.027168c9.335622 9.534144 22.116717 14.905478 35.46063 14.905478 13.344936 0 26.121937-5.371334 35.461653-14.905478l198.014866-202.167442c19.179828-19.583011 18.85544-51.006697-0.732687-70.190619-19.587104-19.175735-51.016931-18.85544-70.196759 0.731664l-112.924909 115.285676L561.634444 114.924449c0-27.41028-22.224164-49.634444-49.634444-49.634444-27.41028 0-49.634444 22.224164-49.634444 49.634444l0 429.754834L349.473393 429.40077c-19.179828-19.583011-50.590212-19.902282-70.186526-0.731664-19.583011 19.179828-19.910469 50.603515-0.730641 70.190619L476.55165 701.027168z","p-id":"2428"},null,-1),$A=[YA];function QA(e,r){return ve(),Re("svg",WA,$A)}var XA={name:"custom-download",render:QA};const qA={t:"1641821720546",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4070",width:"200",height:"200"},JA=be("defs",null,null,-1),KA=be("path",{d:"M128 128v768h369.6v-64H192V192h640v288h64V128H128z m120 160h427.936v64H288V288z m0 160h209.6v64H288v-64z m0 160h122.304v64H288v-64z","p-id":"4071"},null,-1),ZA=be("path",{d:"M664.832 544a120.8 120.8 0 1 0 0 241.6 120.8 120.8 0 0 0 0-241.6zM480 664.832a184.832 184.832 0 1 1 336.16 106.08L896 850.752 850.752 896l-79.84-79.84a184.8 184.8 0 0 1-290.88-151.36z","p-id":"4072"},null,-1),em=[JA,KA,ZA];function tm(e,r){return ve(),Re("svg",qA,em)}var rm={name:"custom-preview",render:tm};const nm={},am={class:"w-full h-full"},im=be("br",null,null,-1);function om(e,r){const t=bs,n=li;return ve(),Re("div",am,[ae(n,{animated:""},{template:me(()=>[ae(t,{variant:"p",class:"!w-1/4"}),im,ae(t,{variant:"p",class:"!w-1/2"})]),_:1})])}var sm=ta(nm,[["render",om]]);const lm={},cm={class:"p-5 w-full h-[75vh]"};function um(e,r){const t=li;return ve(),Re("div",cm,[ae(t,{animated:"",count:"5"})])}var H0=ta(lm,[["render",um]]);const fm={class:"zfile-async-loading"},hm={class:"flex justify-center items-center h-full loading"},dm={__name:"VideoPlayerAsyncLoading",setup(e){return co(()=>{document.querySelector(".el-dialog .el-dialog__title").innerHTML="\u52A0\u8F7D\u4E2D..."}),(r,t)=>{const n=er,a=li;return ve(),Re("div",fm,[ae(a,{class:"w-full h-[40vh] sm:h-[80vh]",animated:""},{template:me(()=>[be("div",hm,[ae(n,{name:"file-type-video",class:"w-12 h-12"})])]),_:1})])}}};var pm=ta(dm,[["__scopeId","data-v-0266aecc"]]);const Am={},mm={class:"zfile-async-loading p-10 h-[75vh] w-full"},vm={class:"flex justify-between h-full"},gm={class:"w-1/4"},xm={class:"w-20 h-full"};function ym(e,r){const t=li,n=bs;return ve(),Re("div",mm,[be("div",vm,[be("div",gm,[ae(t,{animated:"",count:"6"})]),be("div",xm,[ae(t,{animated:"",class:"h-full"},{template:me(()=>[ae(n,{variant:"rect",class:"!h-full"})]),_:1})])])])}var _m=ta(Am,[["render",ym]]),Zc={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(window,function(){return function(t){var n={};function a(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=t,a.c=n,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:c})},a.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="/",a(a.s=41)}([function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=/mobile/i.test(window.navigator.userAgent),s={secondToTime:function(c){var h=Math.floor(c/3600),f=Math.floor((c-3600*h)/60),u=Math.floor(c-3600*h-60*f);return(h>0?[h,f,u]:[f,u]).map(function(p){return p<10?"0"+p:""+p}).join(":")},getElementViewLeft:function(c){var h=c.offsetLeft,f=c.offsetParent,u=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;f!==null&&f!==c;)h+=f.offsetLeft,f=f.offsetParent;else for(;f!==null;)h+=f.offsetLeft,f=f.offsetParent;return h-u},getElementViewTop:function(c,h){for(var f,u=c.offsetTop,p=c.offsetParent;p!==null;)u+=p.offsetTop,p=p.offsetParent;return f=document.body.scrollTop+document.documentElement.scrollTop,h?u:u-f},isMobile:o,storage:{set:function(c,h){localStorage.setItem(c,h)},get:function(c){return localStorage.getItem(c)}},nameMap:{dragStart:o?"touchstart":"mousedown",dragMove:o?"touchmove":"mousemove",dragEnd:o?"touchend":"mouseup"},randomOrder:function(c){return function(h){for(var f=h.length-1;f>=0;f--){var u=Math.floor(Math.random()*(f+1)),p=h[u];h[u]=h[f],h[f]=p}return h}([].concat(function(h){if(Array.isArray(h)){for(var f=0,u=Array(h.length);f - `,c+=u(x+A),c+=` + `,c+=u(y+A),c+=` `,c+=u(m.name),c+=` `,c+=u(m.artist),c+=` -`}),c}},function(t,n,a){t.exports=a(15)},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=P(a(33)),s=P(a(32)),c=P(a(31)),h=P(a(30)),f=P(a(29)),u=P(a(28)),p=P(a(27)),A=P(a(26)),m=P(a(25)),x=P(a(24)),v=P(a(23)),_=P(a(22)),I=P(a(21)),T=P(a(20)),b=P(a(19));function P(O){return O&&O.__esModule?O:{default:O}}var j={play:o.default,pause:s.default,volumeUp:c.default,volumeDown:h.default,volumeOff:f.default,orderRandom:u.default,orderList:p.default,menu:A.default,loopAll:m.default,loopOne:x.default,loopNone:v.default,loading:_.default,right:I.default,skip:T.default,lrc:b.default};n.default=j},function(t,n,a){var o,s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{(typeof window=="undefined"?"undefined":s(window))==="object"&&(o=window)}t.exports=o},function(t,n,a){var o,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};(s=typeof(o=function(){if((typeof window=="undefined"?"undefined":c(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var h=function(p,A,m,x){return m>x?A:p+(A-p)*((v=m/x)<.5?4*v*v*v:(v-1)*(2*v-2)*(2*v-2)+1);var v},f=function(p,A,m,x){A=A||500;var v=(x=x||window).scrollTop||window.pageYOffset;if(typeof p=="number")var _=parseInt(p);else var _=function(b,P){return b.nodeName==="HTML"?-P:b.getBoundingClientRect().top+P}(p,v);var I=Date.now(),T=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(b){window.setTimeout(b,15)};(function b(){var P=Date.now()-I;x!==window?x.scrollTop=h(v,_,P,A):window.scroll(0,h(v,_,P,A)),P>A?typeof m=="function"&&m(p):T(b)})()},u=function(p){if(!p.defaultPrevented){p.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var A=document.getElementById(this.hash.substring(1));if(!A)return;f(A,500,function(m){location.replace("#"+m.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var p,A=document.querySelectorAll('a[href^="#"]:not([href="#"])'),m=A.length;p=A[--m];)p.addEventListener("click",u,!1)}),f}})=="function"?o.call(n,a,n,t):o)===void 0||(t.exports=s)},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(A,m){for(var x=0;x1),x=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,s.default)({theme:this.player.options.theme,audio:A,index:this.audios.length+1}),this.audios=this.audios.concat(A),m&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=c.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=A.theme||this.player.options.theme,x&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(A){if(this.player.events.trigger("listremove",{index:A}),this.audios[A])if(this.audios.length>1){var m=this.player.container.querySelectorAll(".aplayer-list li");m[A].remove(),this.audios.splice(A,1),this.player.lrc&&this.player.lrc.remove(A),A===this.index&&(this.audios[A]?this.switch(A):this.switch(A-1)),this.index>A&&this.index--;for(var x=A;xf&&!h.player.audio.paused&&(h.player.container.classList.remove("aplayer-loading"),p=!1),f=u)},100)}},{key:"enable",value:function(h){this["enable"+h+"Checker"]=!0,h==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(h){this["enable"+h+"Checker"]=!1}},{key:"destroy",value:function(){var h=this;this.types.forEach(function(f){h["enable"+f+"Checker"]=!1,h[f+"Checker"]&&clearInterval(h[f+"Checker"])})}}]),c}();n.default=s},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function u(p,A){for(var m=0;m1?p.player.options.loop==="one"?(p.player.options.loop="none",p.player.template.loop.innerHTML=c.default.loopNone):p.player.options.loop==="none"?(p.player.options.loop="all",p.player.template.loop.innerHTML=c.default.loopAll):p.player.options.loop==="all"&&(p.player.options.loop="one",p.player.template.loop.innerHTML=c.default.loopOne):p.player.options.loop==="one"||p.player.options.loop==="all"?(p.player.options.loop="none",p.player.template.loop.innerHTML=c.default.loopNone):p.player.options.loop==="none"&&(p.player.options.loop="all",p.player.template.loop.innerHTML=c.default.loopAll)})}},{key:"initMenuButton",value:function(){var p=this;this.player.template.menu.addEventListener("click",function(){p.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var p=this;this.player.template.miniSwitcher.addEventListener("click",function(){p.player.setMode(p.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var p=this;this.player.template.skipBackButton.addEventListener("click",function(){p.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){p.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){p.player.toggle()})}},{key:"initLrcButton",value:function(){var p=this;this.player.template.lrcButton.addEventListener("click",function(){p.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(p.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),p.player.lrc&&p.player.lrc.show()):(p.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),p.player.lrc&&p.player.lrc.hide())})}}]),u}();n.default=f},function(t,n,a){var o=a(2);t.exports=function(s){s=s||{};var c="",h=o.$each,f=s.lyrics,u=(s.$value,s.$index,o.$escape);return h(f,function(p,A){c+=` +`}),c}},function(t,n,a){t.exports=a(15)},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=L(a(33)),s=L(a(32)),c=L(a(31)),h=L(a(30)),f=L(a(29)),u=L(a(28)),p=L(a(27)),A=L(a(26)),m=L(a(25)),y=L(a(24)),v=L(a(23)),_=L(a(22)),I=L(a(21)),T=L(a(20)),b=L(a(19));function L(O){return O&&O.__esModule?O:{default:O}}var j={play:o.default,pause:s.default,volumeUp:c.default,volumeDown:h.default,volumeOff:f.default,orderRandom:u.default,orderList:p.default,menu:A.default,loopAll:m.default,loopOne:y.default,loopNone:v.default,loading:_.default,right:I.default,skip:T.default,lrc:b.default};n.default=j},function(t,n,a){var o,s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{(typeof window=="undefined"?"undefined":s(window))==="object"&&(o=window)}t.exports=o},function(t,n,a){var o,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};(s=typeof(o=function(){if((typeof window=="undefined"?"undefined":c(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var h=function(p,A,m,y){return m>y?A:p+(A-p)*((v=m/y)<.5?4*v*v*v:(v-1)*(2*v-2)*(2*v-2)+1);var v},f=function(p,A,m,y){A=A||500;var v=(y=y||window).scrollTop||window.pageYOffset;if(typeof p=="number")var _=parseInt(p);else var _=function(b,L){return b.nodeName==="HTML"?-L:b.getBoundingClientRect().top+L}(p,v);var I=Date.now(),T=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(b){window.setTimeout(b,15)};(function b(){var L=Date.now()-I;y!==window?y.scrollTop=h(v,_,L,A):window.scroll(0,h(v,_,L,A)),L>A?typeof m=="function"&&m(p):T(b)})()},u=function(p){if(!p.defaultPrevented){p.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var A=document.getElementById(this.hash.substring(1));if(!A)return;f(A,500,function(m){location.replace("#"+m.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var p,A=document.querySelectorAll('a[href^="#"]:not([href="#"])'),m=A.length;p=A[--m];)p.addEventListener("click",u,!1)}),f}})=="function"?o.call(n,a,n,t):o)===void 0||(t.exports=s)},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(A,m){for(var y=0;y1),y=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,s.default)({theme:this.player.options.theme,audio:A,index:this.audios.length+1}),this.audios=this.audios.concat(A),m&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=c.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=A.theme||this.player.options.theme,y&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(A){if(this.player.events.trigger("listremove",{index:A}),this.audios[A])if(this.audios.length>1){var m=this.player.container.querySelectorAll(".aplayer-list li");m[A].remove(),this.audios.splice(A,1),this.player.lrc&&this.player.lrc.remove(A),A===this.index&&(this.audios[A]?this.switch(A):this.switch(A-1)),this.index>A&&this.index--;for(var y=A;yf&&!h.player.audio.paused&&(h.player.container.classList.remove("aplayer-loading"),p=!1),f=u)},100)}},{key:"enable",value:function(h){this["enable"+h+"Checker"]=!0,h==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(h){this["enable"+h+"Checker"]=!1}},{key:"destroy",value:function(){var h=this;this.types.forEach(function(f){h["enable"+f+"Checker"]=!1,h[f+"Checker"]&&clearInterval(h[f+"Checker"])})}}]),c}();n.default=s},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function u(p,A){for(var m=0;m1?p.player.options.loop==="one"?(p.player.options.loop="none",p.player.template.loop.innerHTML=c.default.loopNone):p.player.options.loop==="none"?(p.player.options.loop="all",p.player.template.loop.innerHTML=c.default.loopAll):p.player.options.loop==="all"&&(p.player.options.loop="one",p.player.template.loop.innerHTML=c.default.loopOne):p.player.options.loop==="one"||p.player.options.loop==="all"?(p.player.options.loop="none",p.player.template.loop.innerHTML=c.default.loopNone):p.player.options.loop==="none"&&(p.player.options.loop="all",p.player.template.loop.innerHTML=c.default.loopAll)})}},{key:"initMenuButton",value:function(){var p=this;this.player.template.menu.addEventListener("click",function(){p.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var p=this;this.player.template.miniSwitcher.addEventListener("click",function(){p.player.setMode(p.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var p=this;this.player.template.skipBackButton.addEventListener("click",function(){p.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){p.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){p.player.toggle()})}},{key:"initLrcButton",value:function(){var p=this;this.player.template.lrcButton.addEventListener("click",function(){p.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(p.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),p.player.lrc&&p.player.lrc.show()):(p.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),p.player.lrc&&p.player.lrc.hide())})}}]),u}();n.default=f},function(t,n,a){var o=a(2);t.exports=function(s){s=s||{};var c="",h=o.$each,f=s.lyrics,u=(s.$value,s.$index,o.$escape);return h(f,function(p,A){c+=` -`}),c}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o,s=function(){function u(p,A){for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||p=this.current[this.index+1][0])for(var A=0;A=this.current[A][0]&&(!this.current[A+1]||p=200&&m.status<300||m.status===304?A.parsed[p]=A.parse(m.responseText):(A.player.notice("LRC file request fails: status "+m.status),A.parsed[p]=[["00:00","Not available"]]),A.container.innerHTML=(0,h.default)({lyrics:A.parsed[p]}),A.update(0),A.current=A.parsed[p])};var x=this.player.list.audios[p].lrc;m.open("get",x,!0),m.send(null)}else this.player.list.audios[p].lrc?this.parsed[p]=this.parse(this.player.list.audios[p].lrc):this.parsed[p]=[["00:00","Not available"]];this.container.innerHTML=(0,h.default)({lyrics:this.parsed[p]}),this.update(0),this.current=this.parsed[p]}},{key:"parse",value:function(p){if(p){for(var A=(p=p.replace(/([^\]^\n])\[/g,function(O,M){return M+` +`}),c}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o,s=function(){function u(p,A){for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||p=this.current[this.index+1][0])for(var A=0;A=this.current[A][0]&&(!this.current[A+1]||p=200&&m.status<300||m.status===304?A.parsed[p]=A.parse(m.responseText):(A.player.notice("LRC file request fails: status "+m.status),A.parsed[p]=[["00:00","Not available"]]),A.container.innerHTML=(0,h.default)({lyrics:A.parsed[p]}),A.update(0),A.current=A.parsed[p])};var y=this.player.list.audios[p].lrc;m.open("get",y,!0),m.send(null)}else this.player.list.audios[p].lrc?this.parsed[p]=this.parse(this.player.list.audios[p].lrc):this.parsed[p]=[["00:00","Not available"]];this.container.innerHTML=(0,h.default)({lyrics:this.parsed[p]}),this.update(0),this.current=this.parsed[p]}},{key:"parse",value:function(p){if(p){for(var A=(p=p.replace(/([^\]^\n])\[/g,function(O,R){return R+` [`})).split(` -`),m=[],x=A.length,v=0;v/g,"").replace(/^\s+|\s+$/g,"");if(_)for(var T=_.length,b=0;b]/;c.$escape=function(f){return function(u){var p=""+u,A=h.exec(p);if(!A)return u;var m="",x=void 0,v=void 0,_=void 0;for(x=A.index,v=0;x/g,"").replace(/^\s+|\s+$/g,"");if(_)for(var T=_.length,b=0;b]/;c.$escape=function(f){return function(u){var p=""+u,A=h.exec(p);if(!A)return u;var m="",y=void 0,v=void 0,_=void 0;for(y=A.index,v=0;y `,A(a(1)(m({theme:h.theme,audio:h.audio,index:1}))),c+=` @@ -154,216 +154,216 @@ import{r as Lt,o as uo,w as Jn,d as ar,s as Za,c as ft,a as xe,b as ze,e as me,f `,A(a(1)(m({theme:h.theme,audio:h.audio,index:1}))),c+=` -`),c}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function u(p,A){for(var m=0;m'},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n,a){var o,s,c=t.exports={};function h(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function u(b){if(o===setTimeout)return setTimeout(b,0);if((o===h||!o)&&setTimeout)return o=setTimeout,setTimeout(b,0);try{return o(b,0)}catch{try{return o.call(null,b,0)}catch{return o.call(this,b,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:h}catch{o=h}try{s=typeof clearTimeout=="function"?clearTimeout:f}catch{s=f}})();var p,A=[],m=!1,x=-1;function v(){m&&p&&(m=!1,p.length?A=p.concat(A):x=-1,A.length&&_())}function _(){if(!m){var b=u(v);m=!0;for(var P=A.length;P;){for(p=A,A=[];++x1)for(var j=1;j=0&&(c._idleTimeoutId=setTimeout(function(){c._onTimeout&&c._onTimeout()},h))},a(35),n.setImmediate=setImmediate,n.clearImmediate=clearImmediate},function(t,n,a){(function(o){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},c=setTimeout;function h(){}function f(v){if(!(this instanceof f))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],x(v,this)}function u(v,_){for(;v._state===3;)v=v._value;v._state!==0?(v._handled=!0,f._immediateFn(function(){var I=v._state===1?_.onFulfilled:_.onRejected;if(I!==null){var T;try{T=I(v._value)}catch(b){return void A(_.promise,b)}p(_.promise,T)}else(v._state===1?p:A)(_.promise,v._value)})):v._deferreds.push(_)}function p(v,_){try{if(_===v)throw new TypeError("A promise cannot be resolved with itself.");if(_&&((_===void 0?"undefined":s(_))==="object"||typeof _=="function")){var I=_.then;if(_ instanceof f)return v._state=3,v._value=_,void m(v);if(typeof I=="function")return void x((T=I,b=_,function(){T.apply(b,arguments)}),v)}v._state=1,v._value=_,m(v)}catch(P){A(v,P)}var T,b}function A(v,_){v._state=2,v._value=_,m(v)}function m(v){v._state===2&&v._deferreds.length===0&&f._immediateFn(function(){v._handled||f._unhandledRejectionFn(v._value)});for(var _=0,I=v._deferreds.length;_1&&this.container.classList.add("aplayer-withlist"),c.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var M=this.container.getElementsByClassName("aplayer-lrc-content"),q=0;q1?(O.notice("An audio error has occurred, player will skip forward in 2 seconds."),M=setTimeout(function(){O.skipForward(),O.paused||O.play()},2e3)):O.list.audios.length===1&&O.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){M&&clearTimeout(M)}),this.on("ended",function(){O.options.loop==="none"?O.options.order==="list"?O.list.index0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[M]&&(this.list.audios[M].theme=O),this.template.listCurs[M]&&(this.template.listCurs[M].style.backgroundColor=O),M===this.list.index&&(this.template.pic.style.backgroundColor=O,this.template.played.style.background=O,this.template.thumb.style.background=O,this.template.volume.style.background=O)}},{key:"seek",value:function(O){O=Math.max(O,0),O=Math.min(O,this.duration),this.audio.currentTime=O,this.bar.set("played",O/this.duration,"width"),this.template.ptime.innerHTML=c.default.secondToTime(O)}},{key:"setUIPlaying",value:function(){var O=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){O.template.button.innerHTML=h.default.pause},100),this.template.skipPlayButton.innerHTML=h.default.pause),this.timer.enable("loading"),this.options.mutex)for(var M=0;M=.95?this.template.volumeButton.innerHTML=h.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=h.default.volumeDown:this.template.volumeButton.innerHTML=h.default.volumeOff}},{key:"volume",value:function(O,M){return O=parseFloat(O),isNaN(O)||(O=Math.max(O,0),O=Math.min(O,1),this.bar.set("volume",O,"height"),M||this.storage.set("volume",O),this.audio.volume=O,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(O,M){this.events.on(O,M)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(O){this.list.switch(O)}},{key:"addAudio",value:function(O){this.list.add(O)}},{key:"removeAudio",value:function(O){this.list.remove(O)}},{key:"destroy",value:function(){b.splice(b.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=O,O==="mini"?this.container.classList.add("aplayer-narrow"):O==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(O){var M=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=O,this.template.notice.style.opacity=U,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:O}),q&&(this.noticeTime=setTimeout(function(){M.template.notice.style.opacity=0,M.events.trigger("noticehide")},q))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var O=this.randomOrder.indexOf(this.list.index);return O===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[O-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var O=this.randomOrder.indexOf(this.list.index);return O===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[O+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),j}();n.default=P},,function(t,n,a){},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),a(40);var o,s=a(38),c=(o=s)&&o.__esModule?o:{default:o};console.log(` +`),c}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function u(p,A){for(var m=0;m'},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n){t.exports=''},function(t,n,a){var o,s,c=t.exports={};function h(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function u(b){if(o===setTimeout)return setTimeout(b,0);if((o===h||!o)&&setTimeout)return o=setTimeout,setTimeout(b,0);try{return o(b,0)}catch{try{return o.call(null,b,0)}catch{return o.call(this,b,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:h}catch{o=h}try{s=typeof clearTimeout=="function"?clearTimeout:f}catch{s=f}})();var p,A=[],m=!1,y=-1;function v(){m&&p&&(m=!1,p.length?A=p.concat(A):y=-1,A.length&&_())}function _(){if(!m){var b=u(v);m=!0;for(var L=A.length;L;){for(p=A,A=[];++y1)for(var j=1;j=0&&(c._idleTimeoutId=setTimeout(function(){c._onTimeout&&c._onTimeout()},h))},a(35),n.setImmediate=setImmediate,n.clearImmediate=clearImmediate},function(t,n,a){(function(o){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},c=setTimeout;function h(){}function f(v){if(!(this instanceof f))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],y(v,this)}function u(v,_){for(;v._state===3;)v=v._value;v._state!==0?(v._handled=!0,f._immediateFn(function(){var I=v._state===1?_.onFulfilled:_.onRejected;if(I!==null){var T;try{T=I(v._value)}catch(b){return void A(_.promise,b)}p(_.promise,T)}else(v._state===1?p:A)(_.promise,v._value)})):v._deferreds.push(_)}function p(v,_){try{if(_===v)throw new TypeError("A promise cannot be resolved with itself.");if(_&&((_===void 0?"undefined":s(_))==="object"||typeof _=="function")){var I=_.then;if(_ instanceof f)return v._state=3,v._value=_,void m(v);if(typeof I=="function")return void y((T=I,b=_,function(){T.apply(b,arguments)}),v)}v._state=1,v._value=_,m(v)}catch(L){A(v,L)}var T,b}function A(v,_){v._state=2,v._value=_,m(v)}function m(v){v._state===2&&v._deferreds.length===0&&f._immediateFn(function(){v._handled||f._unhandledRejectionFn(v._value)});for(var _=0,I=v._deferreds.length;_1&&this.container.classList.add("aplayer-withlist"),c.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var R=this.container.getElementsByClassName("aplayer-lrc-content"),H=0;H1?(O.notice("An audio error has occurred, player will skip forward in 2 seconds."),R=setTimeout(function(){O.skipForward(),O.paused||O.play()},2e3)):O.list.audios.length===1&&O.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){R&&clearTimeout(R)}),this.on("ended",function(){O.options.loop==="none"?O.options.order==="list"?O.list.index0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[R]&&(this.list.audios[R].theme=O),this.template.listCurs[R]&&(this.template.listCurs[R].style.backgroundColor=O),R===this.list.index&&(this.template.pic.style.backgroundColor=O,this.template.played.style.background=O,this.template.thumb.style.background=O,this.template.volume.style.background=O)}},{key:"seek",value:function(O){O=Math.max(O,0),O=Math.min(O,this.duration),this.audio.currentTime=O,this.bar.set("played",O/this.duration,"width"),this.template.ptime.innerHTML=c.default.secondToTime(O)}},{key:"setUIPlaying",value:function(){var O=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){O.template.button.innerHTML=h.default.pause},100),this.template.skipPlayButton.innerHTML=h.default.pause),this.timer.enable("loading"),this.options.mutex)for(var R=0;R=.95?this.template.volumeButton.innerHTML=h.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=h.default.volumeDown:this.template.volumeButton.innerHTML=h.default.volumeOff}},{key:"volume",value:function(O,R){return O=parseFloat(O),isNaN(O)||(O=Math.max(O,0),O=Math.min(O,1),this.bar.set("volume",O,"height"),R||this.storage.set("volume",O),this.audio.volume=O,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(O,R){this.events.on(O,R)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(O){this.list.switch(O)}},{key:"addAudio",value:function(O){this.list.add(O)}},{key:"removeAudio",value:function(O){this.list.remove(O)}},{key:"destroy",value:function(){b.splice(b.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=O,O==="mini"?this.container.classList.add("aplayer-narrow"):O==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(O){var R=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=O,this.template.notice.style.opacity=U,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:O}),H&&(this.noticeTime=setTimeout(function(){R.template.notice.style.opacity=0,R.events.trigger("noticehide")},H))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var O=this.randomOrder.indexOf(this.list.index);return O===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[O-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var O=this.randomOrder.indexOf(this.list.index);return O===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[O+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),j}();n.default=L},,function(t,n,a){},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),a(40);var o,s=a(38),c=(o=s)&&o.__esModule?o:{default:o};console.log(` %c APlayer v1.10.1 af84efb %c http://aplayer.js.org -`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),n.default=c.default}]).default})})(Zc);var vm=Td(Zc.exports);const gm={id:"aplayer"},xm={__name:"AudioPlayer",setup(e){let r=_s(),t=fo();Jn(()=>r.audioArray,s=>{let c=[],h=0;s.forEach((f,u)=>{f.name===r.currentClickRow.name&&(h=u),c.push({name:f.name,artist:" ",url:f.url,cover:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAVqElEQVR4Xu1dXWxcx3U+s1wmkWTAlE0GsOLClB6CwHIQGlIBA4EjGXYDe5naDJAo6EtMPtl9Eol26eShFdUCccx9EPUUt30QmZciTgFTjrlMbAemkhgNUKmh4MhAC1iiAcdGw5XFAibtdH9OcS53qd17Z+6dO3t3788cPnLn95vz3fMzM2cE8B8jwAgoERCMDSPACKgRYIKwdDACPggwQVg8GAEmCMsAI2CGAGsQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9x6Umvo8edH82Lgvsrq7KWedMCNhkaACRIasnAVWkIvBIwhiCEQcJJaEIijIMSobmsIsNast4EgNhBgPQf43mZ5dl23DS4XHgEmSHjMlDWGTp4bGthfOyF2STAmYJcMPf9DdAgjdkl0iUkTHeJMkC6wbCeEQDwJQox10VxkVRFgCxDXUOSW6/Xqpa2ff38jssYta4gJYrDgdxdKTwnASSHEhEH1/ldBJIIsVBv1i0yWcPAzQTTxGinMk3Y4jUJMCIAhzWq+xRDhPQBHeJV/Qgjq6ytR9EdtIOKyo1m2By5urc1sRdVuVtthgvisLJlQg/urTwPAdBiHutVkiwC7/oHYghys1Wq1DdOvOI0nf0dtDBs4KoAcfDxpSiAywwTicrVRP2s6nqySon1eTBDJKjuCuL92GgRMh9EWRAghYK2BuFZv1Nf6KXjD3yidxAZO5ISgwEA4jYO4CADn2bn3CgMTpA0TE2IgwkUEXO43Ify+3k7wYN//UdDgpAAxIQTcp/O1d0LJAs5WXi06IWX+A2CCAIABMa4iwGJtO7+YBjv+7idemMjlchRQIHMx8I+IIhBnWKMwQcARHiHOBfkYZD41NcVCP02nQGkOUWA3LF2lIANF4E4EVUWAhdp2/mwaPgJBczH93VoN4uxwD+QvBG3mNYkxd7M8S3Z6Zv7IZ4EGzgUSBXGjgThzc/W55cxMPsRErCTIcKF0RgiY88Mpq8Rwz5k+FIMDecLC1/wis6tWr02lVXuG4ERHUasI0tzLuOC3420LMUyIQqFhJG2SMW3qRx5rCHJ3YZ7s7nOqsC0i/i+AWKiUi76axfRLlJZ6ZHoJhAXfUDHiYnVncMYG3yTzBGlu9pETPqkSUgrV1hq1advMBz/SDo+XpgEdH+VOaTlEOkU8lfVIV6YJEmRSOTvdOZjkuL+cKk4gI5dfEAKekpWwweTKLEGIHCjEmz474UvV7fy0DWZCt+adY54CLPhok8XN8uxUt/0ksX4mCeLnb5CvgQDTNjmaUQieo42FoFC3/BgLYiZJkjmCEDlyQlxQCMVVQJzMut0cBSFkbTj+3IEaOfDSkLATCt7OfzNLWjlTBBkpzJ8GIWgBZX9sUkXEHF+TC3G9ujP4SFZIkhmCjBTmaX9DFala2lwpKqNYEcmNVc04Ph6d2ZJFuTJEkkwQZLhQmhMCzsgktIE4xf5Gb7hrA0lSTxA/n4PJ0RtitLfaPKpC57S8znsGNEmqCaIihxOpQpy09YBd72nR2UPTeac7JDKSpDq6lVqCNMOOv5NuYAl4hDf/+kuTrJIklQTx2wRks6q/xOgwt3bDwFJN0kA8f7M8Ox3f6Mx6Th1Bmmer3pSdyGVymAlBlLX8HPdGo/HNtJm9qSOIKpyb1i9UlMKZlLZUJKGzW7V67cE0HQpNFUF8Ila8z5EUdjTHofQREdc3y7MPJmy4yuGkhiA+fsfVzZViIlJ+pmXR+zVOOjIvAM65+0uTtk8FQVR+B4Vza436WJpUdr+EMyn9DBdKy7Lj8piSSGMqCHJ3YX4hJ8Rpz5cohU5fUgS3X+NoplRad+fmcvyR7fzhpJ/ZSjxBfPY72O/ol5R32Y9qDdNgaiWeIMPjJbr05H5n42p1O38y6V+fLuUqU9WV5+UQH0zy9YNEE0Tl5KXFfs2UhEcwmZHxEt1j7ziOQieCKyvFRyJovidNJJYgju16oHbDfWU2DWq5JyuVgUabGVPedE8FAWYqK0XVPZ5YZ55YgoyMl+h6Z8fNNSdqtTM4yqZVrDLTVefSdU2ww55IgjSPUN+QxM/5bkdX4hl/5d2oVnXDfdEKEc4mMSdZIgmi0B6XKuXZ/jyKGb8cZXoEMt8yqWHfxBFEpT3YMc8WZ4YLpQ3P3kgCtUjiCMLaI1tEUM1Gdq4uiVokUQRh7WEHOVqzTIMWSRRBZEdKEJF9j4zyJg1aJDEEUe17sO+RUXY0pyXTIkm6+JYYgijuevBR9mzzAxRaJDG764khiOxYdJK+JBmX09imp9oXqdZrh5NwjSERBFE559Xt/EHeNY9NdvvWsWJ3PRHHTxJBEMWhRD7O3jcRjbej5jPVL3eMAnFjszx7ON6RJeQZ6JHC/O/cWUrSmAEj7sVMc/8yZx0ScBQ+dg0iu0xDhxIr5dmhNC84jz0cArIQfxJObsdOEJl5lQRgwi0vl+4WAakfmgAzK36CSC71895Ht+KWzvoyMyvuaFbsBBkZL6F7OTdXirGPK50ilu5Ry6JZcYf6YxVE2Q0zPlqSbiHvZvTSaBZArNHMeAkiefgmqRdnull4rquHQDND/K0khXtjJsg8PeF1wgVIorNc6C01lzJFQJbYIU4/JFaCuP0PDu+ailV26inCvbFdtY6NILKwHvsf2RF005nI/JA4ze7YCCJ30JN5cd90sbleeATkG8dwsVIuToRvrfsa8RFE5qAnOD9S91BzC7oIeEL/MT6ZEBtBpLcHU5LxW3ehuZwZArINw7j2xmIjyHDBG8GKM1phtpRcqxcIJEk24iPIeOmWO61oXF+JXiwyt2mOQJKsi9gIIgnxcnIGc5nKVE1pYrmYcmYxQTIlWtmYTJIinLEQRHEHhDVINuS761lYTxBFGvxYD6V1varcQGQIMEG+UTopEDreiYhztzSyleWGIkFARpC4LtHFYmIl6QsRyYpqNjJcKJ0BAfQ08hAiLtca9ZkkpLbRHH7fiiXJBGeC9GnZpW/0JeBKaZ+mH7qbpEQ5mSChly58BZ+XeoGzt8jxZIJY5IPI0hq1xCIu2zo8zftbgwliCUGUzx835Y2P+LMG8SBgi5PuZ1q1g8JHbLwkYQ1igQbxM606RCIBGQT7a0AF98YEyThBgkyrdhFJ8jvhwaLcmxKpJwiZDygEvWM+JgA8r88iwBoArAvEpc3y7Ho7jFk3sXRNqzZM+BSBi2c6BKEsKAMH6k8JbEwIgDEQYtSlmUnu1hsglm+WixdNqBw6zOsIdwMveAbj1zviBubEVOXVIpEGLCCIJxm37+LwfogHHj+COPkMcgNnQIhJXaGnB0IBYaG2kz8f5kkNbYI0n0h7WaYtQgxyrVavTeXz+dGsHjUJY1q148ZvoXRKkYogdBpBCJjTlTl3OSIKNhpTN1efW9ZpQ4sgTXPqTfcFJ50OZAMExKIQ4l867PCYzvubzEFVR8O0WgIAMks9f5yPOIgg8BYAbgohIknegAhzlXLxbND6BxJEcfK2o92hoQNw8OD+vf/durUDW1vbQX27zMX0ZzTxi1q19juGC/NbQog7PR+ODHwgQi14QOEODULZmwV8DAB3+FU7fHhk7+dPP63Chx9u+feCuLhZnp3yK+RLED/N8dnP5uH48SNw/M+PwKFDBz19fPDBLbj8H9fh8uXr8Kc/1bxfTGfOt//SfprXz7SihHi1Rn2MDibK7lsTCrxh6KNBEAGEXFSJFA8//CU4+sC9Hhn75JMqXLv2Prz+2tvKD3ZQBDGIIFJn8/77vwB/+eQxuOuuA4EfDRrkSz/5d3jnnT9I7IrbE08zQYJMq/ZFUBGJbOPKStH7pQlEOJsFWhpExQ36QE9OnYAjRz6vBcBvfvNf8LNX/lNa1s+8VRJE8W4gHDt2GE595yGtQbUXeuXiFXjrrf9W1ks5QZRRK7dm8DVZecNwTz6IIK13MdxCes89Q/DMs4/Bvn2DoeSQrJoXf/SG16LxybslJUgzYnXD7ZSbkqM1i5d+8lu4cuVGp+9BphYCIKTTB9E1rVqTlmYwb/4Y91sYoaStx4Vl78ZQl6Q5pmcKWtaLbIjXfv8+/PjHv/b8pMJeShDZ4+7kiE/PPBGate0jIXNr4dyqxx50vhQpdFLDmFbtOEgfrAQAPtl7G6WRQgk7nNTmT888+6i2WaXisNSaUWgRKUGGJc+iffvUQ3D8ePev8l6+fAN++tJvO7XIri49WykXjePbPf6gSZvXiVrJKspeUnLKxZhiMw78/PocHi+hWzjJIX/2rx/reqj0oX7+B8seU0uWuFBKELd6I7X2D//47a4H1mrg7//up57BNRq5F26u/s33Iuukxw2FNa06NMh4ia7dnpMNkU/27qIiM7Gi+khT+zJzX2ZmeQgicyIpavX05NciEznZ4ADE0ubK32ofHYhsMAYNmZpWra786vOG4S5Kw4V5FK7Q7tzZb3Vl4rcvtcwXkQWKtAjy6GMPwNe//mUDUZJXee21t+GXb/ze9WOqCKIdtVKBpnJC0xzNi0xAJBokaiuGIlrnF37eMWTZXpSHIDIHPWqCKGLSv9hcKT4eJci9aKsb06rDzJIk7951Q+J7C6MXeJm26f6AROV/tI/nudl/DU8QmQBETZDr1/8I//TiLzsH14BLldWi59i8KcC9qNetadU+JlmCZocgvGEo9UGYIOkgSNemVYskiiePnZ/5GQivk84ESThBojKtWgSRvdHY+i1sKiBnY3df9Su90JpBbdY+Gbwa5n5FUHut39nESpGJFaVp1emHlDaEgPvcQhNmw5CijoBA93SGdIUvynLO/QrEmZvl2cUo22WC9IEgI4X50ygEXcfsmW/TzSlc2YbsrqOOWpnuVUeCohRU3baiNguZID0miOnNPl2BaAry3jH2MPVaZf3GqLNhOFyYfzmqC0Qm42+vE3RsPGz7TJBeE0TyxFvYRQoq361Q+J3sDdow1LnIFjT+KH8P6zcF9c0E6TFBVBtxQQuj+7uuGRTUnnLD0OdJbOdE8P4qRdQ6s3gEddaj3xHhvdpOfixKZ50J0mOCqG7uRSEj7TcEu21vZLxEqWlkEShlKqB+mI+686KNzVqjNh31Mw5MkB4TxLkuDGJZFiXSXXxZOSIHAkxHFbVRbRiCIhVQYEQtI2/NM0F6TBASbifKc0dtDBrRRLEQG+v1Tz6zFqUpITva0yKmLBXQ8HiJsstIo3JZOqbCBOkDQbrRFP2qG+btENU16L2I2s7gaJTk7RcGsn6YIEyQPbnQSQUUtOfRbUQtTjIwQVwIpPWwYq+ESCcVkN+eR1QRtV7Nz6Rd1iCsQdo0SGlOCDjjFqTWyd7APY8MZkNhgjBBbhNE8ix260faMPRLFp7VC1ZMECbIHkH8UgFRIgcQYkweco5+g87EHOpFHSYIE6RDrnw2DJXyF3QcpReC2682mSBMEDdB6Li4NPO7QntcrJSLkWQ675fQh+mHCcIE6ZAXvz0Oj/NOybAztOfBYV4O8wZ+PIOOkLQ3kLU9DyYIEySQIFRA8wTy1c2VotRp1+okJYXYxGITyyOqWieQM7jnwRqENYjWdzvoGHuYu+paHSa4EGsQ1iAe8fRLBdSLS0kJ5ofH3OS0PwlP+9MPYYoyFVA/xtvLPliDsAaRypcs00mW7nnokooJwgSRygodOxnYX50TAE6mewRYrO8MzmXlngcTRAMBPu6uAZLlRViDuDRIowFLN1eLqXgfxHLZ7cv0mSBuEyuFbxT2RVIs7YQJwgSxVPT1pm01QXSfv9KDkktlEYHkEkRyuy3qB3RkT7BFnboyi0Jj05zcBDl0zxCcnnkiMgjopdu5M//W0Z7WE2yy+89f/eoX4cmnjkU2ONk71Vm+/BMZcBY1JLtA9sL8X0WGgCySKjvK43mjULabe/DgAfje95+MbHA/fP4VuHVru7M9Sw7hRQZixhuSHdw8Pf04HDp0MJKZy97J1HrllnofLngfdolqcB99tA0v/PAVl2qD9yrlYiISMUeCPjfSNQKyC2RRWjLnz63CBx9uBX6kPRqEasjyxR458nl45tlHu5740tKv4J1rf+hox6ZTql0DaEkDMkvmc58bhNPTT8Bddx3oCgVFkEj6kZYSRHW77bvffRiOPnCv8eBkA3MaY/PKGNMsV5RZMvcf/QI8/fTXjKdNzvn5hVWviQ8gzaYvJQj1PjJe8iQRIAaTFjGxA+nhdnr6+dNPq27zKtPJB4xXkiuCKmFeN1FVkkFy0Nv/nOcsFHf8lQRRHb0mkpw69VAoTUIDWlr8lYccNMio37ZjucoWAqpblseOHYZT33lIe7KkOf75xTe8fodjwMDZSrk4J2tMSZCmLzKZE+KCrCIN8LG/+LKvPUgO+Ruvvw1XrtyQTsSG5APaK8gFpQjQhzqfG1gXQtzpLkDRVSIJ+cd+fxSxev21t6UfaADwvePvSxCVqdU+GNrAOfrAn8E9hw7Cvn2DQEz98INb8O67/+NRZa5JKF9QYllhBNoRCMpNTES5/+i9zse6Zf5ff/eP8NFHH8O1a++riEGvCQemTwokiA5JDJaTyWEAms1V6KEhAbAg0yQmuNAVZgE4sVmepSfwlH9aBKHaYRKb+XXIZpXJcnId50Md0bN6dKSktjM4oXMJTZsgtwfosPhE2CWjQUFOzFVeLa6FrcvlGYEWAs5DQvtr0wA4HVabkNZAwLkw70uGIkhrkE2bcBIRJ/wGSTaeEGIZBSwyMVjIo0SAnPeB3MB0Tgh6r1H2SvBed87HWYjl2nZ+UUdrtI/TiCBuBwrrjSEhcnvZ/uixSzGQ22JSRCkS3JYKASfSlc+PdjzWKmALBKzXPs6vhyVFpAThZWMEsoxA1xoky+Dw3BgBJgjLACMQRZiXUWQEbESANYiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRuD/ARWqF5us10LbAAAAAElFTkSuQmCC"})}),o(c,h)});let n="",a,o=(s,c)=>{if(s.length!==0)if(a)n!==t.params.fullpath&&(a.list.clear(),a.list.add(s)),n=t.params.fullpath,a.list.switch(c),a.play();else{const h=document.getElementById("aplayer");a=new vm({container:h,audio:s,fixed:!0,autoplay:!1,preload:"none"}),h.getElementsByClassName("aplayer-miniswitcher")[0].click(),h.getElementsByClassName("aplayer-icon-order")[0].setAttribute("title","\u64AD\u653E\u987A\u5E8F"),h.getElementsByClassName("aplayer-icon-loop")[0].setAttribute("title","\u5FAA\u73AF\u6A21\u5F0F"),h.getElementsByClassName("aplayer-icon-menu")[0].setAttribute("title","\u64AD\u653E\u5217\u8868"),h.getElementsByClassName("aplayer-icon-lrc")[0].style.display="none",a.play(),n=t.params.fullpath}};return(s,c)=>(xe(),Le("div",gm))}};const ym={__name:"BackTop",setup(e){return(r,t)=>{const n=Vr,a=xs,o=Ap;return xe(),ze(o,{bottom:50,target:".el-main"},{default:me(()=>[oe(a,{placement:"top",content:"\u56DE\u5230\u9876\u90E8"},{default:me(()=>[oe(As,{name:"fade"},{default:me(()=>[oe(n,null,{default:me(()=>[oe(E(Uc))]),_:1})]),_:1})]),_:1})]),_:1})}}};var On={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(window,function(){return function(t){var n={};function a(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=t,a.c=n,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var h in o)a.d(c,h,function(f){return o[f]}.bind(null,h));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="/",a(a.s=11)}([function(t,n,a){var o=a(5),s=typeof self=="object"&&self&&self.Object===Object&&self,c=o.a||s||Function("return this")();n.a=c},function(t,n,a){(function(o){var s=a(5),c=r&&!r.nodeType&&r,h=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=h&&h.exports===c&&s.a.process,u=function(){try{var p=h&&h.require&&h.require("util").types;return p||f&&f.binding&&f.binding("util")}catch{}}();n.a=u}).call(this,a(6)(t))},function(t,n,a){function o(T){this._maxSize=T,this.clear()}o.prototype.clear=function(){this._size=0,this._values=Object.create(null)},o.prototype.get=function(T){return this._values[T]},o.prototype.set=function(T,b){return this._size>=this._maxSize&&this.clear(),T in this._values||this._size++,this._values[T]=b};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,c=/^\d+$/,h=/^\d/,f=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,p=new o(512),A=new o(512),m=new o(512);function x(T){return p.get(T)||p.set(T,v(T).map(function(b){return b.replace(u,"$2")}))}function v(T){return T.match(s)}function _(T){return typeof T=="string"&&T&&["'",'"'].indexOf(T.charAt(0))!==-1}function I(T){return!_(T)&&(function(b){return b.match(h)&&!b.match(c)}(T)||function(b){return f.test(b)}(T))}t.exports={Cache:o,split:v,normalizePath:x,setter:function(T){var b=x(T);return A.get(T)||A.set(T,function(P,j){for(var O=0,M=b.length;O-1},Xt=function(i,l){var d=this.__data__,g=wt(d,i);return g<0?(++this.size,d.push([i,l])):d[g][1]=l,this};function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l-1&&i%1==0&&i-1&&i%1==0&&i<=9007199254740991},w=function(i){if(typeof i=="string"||O(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l},D=function(i,l,d){for(var g=-1,y=(l=yi(l,i)).length,S=!1;++g=0||(y[d]=i[d]);return y}var Ho=a(4),Ph=/\$\{\s*(\w+)\s*\}/g,Lh=function(i){return function(l){return i.replace(Ph,function(d,g){return ha(l[g])})}};function Rr(i,l,d,g){var y=this;this.name="ValidationError",this.value=l,this.path=d,this.type=g,this.errors=[],this.inner=[],i&&[].concat(i).forEach(function(S){y.errors=y.errors.concat(S.errors||S),S.inner&&(y.inner=y.inner.concat(S.inner.length?S.inner:S))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Rr)}Rr.prototype=Object.create(Error.prototype),Rr.prototype.constructor=Rr,Rr.isError=function(i){return i&&i.name==="ValidationError"},Rr.formatError=function(i,l){typeof i=="string"&&(i=Lh(i));var d=function(g){return g.path=g.label||g.path||"this",typeof i=="function"?i(g):i};return arguments.length===1?d:d(l)};var xl=function(i){return i?Ho.SynchronousPromise:Promise};function yl(i,l){return i?null:function(d){return l.push(d),d.value}}function Nh(i){var l=i.validations,d=i.value,g=i.path,y=i.sync,S=i.errors,B=i.sort;return S=function(C){return C===void 0&&(C=[]),C.inner&&C.inner.length?C.inner:[].concat(C)}(S),function(C,V){var G=xl(V);return G.all(C.map(function(X){return G.resolve(X).then(function(J){return{fulfilled:!0,value:J}},function(J){return{fulfilled:!1,value:J}})}))}(l,y).then(function(C){var V=C.filter(function(G){return!G.fulfilled}).reduce(function(G,X){var J=X.value;if(!Rr.isError(J))throw J;return G.concat(J)},[]);if(B&&V.sort(B),(S=V.concat(S)).length)throw new Rr(S,d,g);return d})}function Ti(i){var l,d,g,y=i.endEarly,S=zo(i,["endEarly"]);return y?(l=S.validations,d=S.value,g=S.sync,xl(g).all(l).catch(function(B){throw B.name==="ValidationError"&&(B.value=d),B}).then(function(){return d})):Nh(S)}var _l=function(i){return Object.prototype.toString.call(i)==="[object Object]"},Uh=function(i){return function(l,d,g){for(var y=-1,S=Object(l),B=g(l),C=B.length;C--;){var V=B[i?C:++y];if(d(S[V],V,S)===!1)break}return l}}(),wl=function(i,l){return i&&Uh(i,l,ua)},jh=function(i){return this.__data__.set(i,"__lodash_hash_undefined__"),this},zh=function(i){return this.__data__.has(i)};function ki(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new un;++lC))return!1;var G=S.get(i);if(G&&S.get(l))return G==l;var X=-1,J=!0,ae=2&d?new Hh:void 0;for(S.set(i,l),S.set(l,i);++X=d.length)throw new Error("Yup.reach cannot resolve an array item at index: "+C+", in the path: "+l+". because there is no value at that index. ");y=d,d=d&&d[J],i=i.innerType}if(!G){if(!i.fields||!i.fields[X])throw new Error("The schema does not contain the path: "+l+". (failed at: "+B+' which is a type: "'+i._type+'")');y=d,d=d&&d[X],i=i.fields[X]}S=X,B=V?"["+C+"]":"."+C}),{schema:i,parent:y,parentPath:S}):{parent:y,parentPath:l,schema:i}}var Rl=function(){function i(){this.list=new Set,this.refs=new Map}var l,d,g=i.prototype;return g.describe=function(){var y=[],S=this.list,B=Array.isArray(S),C=0;for(S=B?S:S[Symbol.iterator]();;){var V;if(B){if(C>=S.length)break;V=S[C++]}else{if((C=S.next()).done)break;V=C.value}var G=V;y.push(G)}var X=this.refs,J=Array.isArray(X),ae=0;for(X=J?X:X[Symbol.iterator]();;){var fe;if(J){if(ae>=X.length)break;fe=X[ae++]}else{if((ae=X.next()).done)break;fe=ae.value}var H=fe[1];y.push(H.describe())}return y},g.toArray=function(){return pl(this.list).concat(pl(this.refs.values()))},g.add=function(y){kn.isRef(y)?this.refs.set(y.key,y):this.list.add(y)},g.delete=function(y){kn.isRef(y)?this.refs.delete(y.key):this.list.delete(y)},g.has=function(y,S){if(this.list.has(y))return!0;for(var B,C=this.refs.values();!(B=C.next()).done;)if(S(B.value)===y)return!0;return!1},g.clone=function(){var y=new i;return y.list=new Set(this.list),y.refs=new Map(this.refs),y},g.merge=function(y,S){var B=this.clone();return y.list.forEach(function(C){return B.add(C)}),y.refs.forEach(function(C){return B.add(C)}),S.list.forEach(function(C){return B.delete(C)}),S.refs.forEach(function(C){return B.delete(C)}),B},l=i,(d=[{key:"size",get:function(){return this.list.size+this.refs.size}}])&&s(l.prototype,d),i}();function Ue(i){var l=this;if(i===void 0&&(i={}),!(this instanceof Ue))return new Ue;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new Rl,this._blacklist=new Rl,this.tests=[],this.transforms=[],this.withMutation(function(){l.typeError(da.notType)}),k(i,"default")&&(this._defaultDefault=i.default),this.type=i.type||"mixed",this._type=i.type||"mixed"}for(var Hn=Ue.prototype={__isYupSchema__:!0,constructor:Ue,clone:function(){var i=this;return this._mutate?this:il(this,function(l){if(pa(l)&&l!==i)return l})},label:function(i){var l=this.clone();return l._label=i,l},meta:function(i){if(arguments.length===0)return this._meta;var l=this.clone();return l._meta=o(l._meta||{},i),l},withMutation:function(i){var l=this._mutate;this._mutate=!0;var d=i(this);return this._mutate=l,d},concat:function(i){if(!i||i===this)return this;if(i._type!==this._type&&this._type!=="mixed")throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+i._type);var l=function d(g,y){for(var S in y)if(k(y,S)){var B=y[S],C=g[S];if(C===void 0)g[S]=B;else{if(C===B)continue;pa(C)?pa(B)&&(g[S]=B.concat(C)):_l(C)?_l(B)&&(g[S]=d(C,B)):Array.isArray(C)&&Array.isArray(B)&&(g[S]=B.concat(C))}}return g}(i.clone(),this);return k(i,"_default")&&(l._default=i._default),l.tests=this.tests,l._exclusive=this._exclusive,l._whitelist=this._whitelist.merge(i._whitelist,i._blacklist),l._blacklist=this._blacklist.merge(i._blacklist,i._whitelist),l.withMutation(function(d){i.tests.forEach(function(g){d.test(g.OPTIONS)})}),l},isType:function(i){return!(!this._nullable||i!==null)||!this._typeCheck||this._typeCheck(i)},resolve:function(i){var l=this;if(l._conditions.length){var d=l._conditions;(l=l.clone())._conditions=[],l=(l=d.reduce(function(g,y){return y.resolve(g,i)},l)).resolve(i)}return l},cast:function(i,l){l===void 0&&(l={});var d=this.resolve(o({},l,{value:i})),g=d._cast(i,l);if(i!==void 0&&l.assert!==!1&&d.isType(g)!==!0){var y=ha(i),S=ha(g);throw new TypeError("The value of "+(l.path||"field")+' could not be cast to a value that satisfies the schema type: "'+d._type+`". +`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),n.default=c.default}]).default})})(Zc);var wm=Td(Zc.exports);const bm={id:"aplayer"},Em={__name:"AudioPlayer",setup(e){let r=ho(),t=uo();Jn(()=>r.audioArray,s=>{let c=[],h=0;s.forEach((f,u)=>{f.name===r.currentClickRow.name&&(h=u),c.push({name:f.name,artist:" ",url:f.url,cover:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAVqElEQVR4Xu1dXWxcx3U+s1wmkWTAlE0GsOLClB6CwHIQGlIBA4EjGXYDe5naDJAo6EtMPtl9Eol26eShFdUCccx9EPUUt30QmZciTgFTjrlMbAemkhgNUKmh4MhAC1iiAcdGw5XFAibtdH9OcS53qd17Z+6dO3t3788cPnLn95vz3fMzM2cE8B8jwAgoERCMDSPACKgRYIKwdDACPggwQVg8GAEmCMsAI2CGAGsQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9y4liUIMEEsWWiephkCTBAz3LiWJQgwQSxZaJ6mGQJMEDPcuJYlCDBBLFlonqYZAkwQM9x6Umvo8edH82Lgvsrq7KWedMCNhkaACRIasnAVWkIvBIwhiCEQcJJaEIijIMSobmsIsNast4EgNhBgPQf43mZ5dl23DS4XHgEmSHjMlDWGTp4bGthfOyF2STAmYJcMPf9DdAgjdkl0iUkTHeJMkC6wbCeEQDwJQox10VxkVRFgCxDXUOSW6/Xqpa2ff38jssYta4gJYrDgdxdKTwnASSHEhEH1/ldBJIIsVBv1i0yWcPAzQTTxGinMk3Y4jUJMCIAhzWq+xRDhPQBHeJV/Qgjq6ytR9EdtIOKyo1m2By5urc1sRdVuVtthgvisLJlQg/urTwPAdBiHutVkiwC7/oHYghys1Wq1DdOvOI0nf0dtDBs4KoAcfDxpSiAywwTicrVRP2s6nqySon1eTBDJKjuCuL92GgRMh9EWRAghYK2BuFZv1Nf6KXjD3yidxAZO5ISgwEA4jYO4CADn2bn3CgMTpA0TE2IgwkUEXO43Ify+3k7wYN//UdDgpAAxIQTcp/O1d0LJAs5WXi06IWX+A2CCAIABMa4iwGJtO7+YBjv+7idemMjlchRQIHMx8I+IIhBnWKMwQcARHiHOBfkYZD41NcVCP02nQGkOUWA3LF2lIANF4E4EVUWAhdp2/mwaPgJBczH93VoN4uxwD+QvBG3mNYkxd7M8S3Z6Zv7IZ4EGzgUSBXGjgThzc/W55cxMPsRErCTIcKF0RgiY88Mpq8Rwz5k+FIMDecLC1/wis6tWr02lVXuG4ERHUasI0tzLuOC3420LMUyIQqFhJG2SMW3qRx5rCHJ3YZ7s7nOqsC0i/i+AWKiUi76axfRLlJZ6ZHoJhAXfUDHiYnVncMYG3yTzBGlu9pETPqkSUgrV1hq1advMBz/SDo+XpgEdH+VOaTlEOkU8lfVIV6YJEmRSOTvdOZjkuL+cKk4gI5dfEAKekpWwweTKLEGIHCjEmz474UvV7fy0DWZCt+adY54CLPhok8XN8uxUt/0ksX4mCeLnb5CvgQDTNjmaUQieo42FoFC3/BgLYiZJkjmCEDlyQlxQCMVVQJzMut0cBSFkbTj+3IEaOfDSkLATCt7OfzNLWjlTBBkpzJ8GIWgBZX9sUkXEHF+TC3G9ujP4SFZIkhmCjBTmaX9DFala2lwpKqNYEcmNVc04Ph6d2ZJFuTJEkkwQZLhQmhMCzsgktIE4xf5Gb7hrA0lSTxA/n4PJ0RtitLfaPKpC57S8znsGNEmqCaIihxOpQpy09YBd72nR2UPTeac7JDKSpDq6lVqCNMOOv5NuYAl4hDf/+kuTrJIklQTx2wRks6q/xOgwt3bDwFJN0kA8f7M8Ox3f6Mx6Th1Bmmer3pSdyGVymAlBlLX8HPdGo/HNtJm9qSOIKpyb1i9UlMKZlLZUJKGzW7V67cE0HQpNFUF8Ila8z5EUdjTHofQREdc3y7MPJmy4yuGkhiA+fsfVzZViIlJ+pmXR+zVOOjIvAM65+0uTtk8FQVR+B4Vza436WJpUdr+EMyn9DBdKy7Lj8piSSGMqCHJ3YX4hJ8Rpz5cohU5fUgS3X+NoplRad+fmcvyR7fzhpJ/ZSjxBfPY72O/ol5R32Y9qDdNgaiWeIMPjJbr05H5n42p1O38y6V+fLuUqU9WV5+UQH0zy9YNEE0Tl5KXFfs2UhEcwmZHxEt1j7ziOQieCKyvFRyJovidNJJYgju16oHbDfWU2DWq5JyuVgUabGVPedE8FAWYqK0XVPZ5YZ55YgoyMl+h6Z8fNNSdqtTM4yqZVrDLTVefSdU2ww55IgjSPUN+QxM/5bkdX4hl/5d2oVnXDfdEKEc4mMSdZIgmi0B6XKuXZ/jyKGb8cZXoEMt8yqWHfxBFEpT3YMc8WZ4YLpQ3P3kgCtUjiCMLaI1tEUM1Gdq4uiVokUQRh7WEHOVqzTIMWSRRBZEdKEJF9j4zyJg1aJDEEUe17sO+RUXY0pyXTIkm6+JYYgijuevBR9mzzAxRaJDG764khiOxYdJK+JBmX09imp9oXqdZrh5NwjSERBFE559Xt/EHeNY9NdvvWsWJ3PRHHTxJBEMWhRD7O3jcRjbej5jPVL3eMAnFjszx7ON6RJeQZ6JHC/O/cWUrSmAEj7sVMc/8yZx0ScBQ+dg0iu0xDhxIr5dmhNC84jz0cArIQfxJObsdOEJl5lQRgwi0vl+4WAakfmgAzK36CSC71895Ht+KWzvoyMyvuaFbsBBkZL6F7OTdXirGPK50ilu5Ry6JZcYf6YxVE2Q0zPlqSbiHvZvTSaBZArNHMeAkiefgmqRdnull4rquHQDND/K0khXtjJsg8PeF1wgVIorNc6C01lzJFQJbYIU4/JFaCuP0PDu+ailV26inCvbFdtY6NILKwHvsf2RF005nI/JA4ze7YCCJ30JN5cd90sbleeATkG8dwsVIuToRvrfsa8RFE5qAnOD9S91BzC7oIeEL/MT6ZEBtBpLcHU5LxW3ehuZwZArINw7j2xmIjyHDBG8GKM1phtpRcqxcIJEk24iPIeOmWO61oXF+JXiwyt2mOQJKsi9gIIgnxcnIGc5nKVE1pYrmYcmYxQTIlWtmYTJIinLEQRHEHhDVINuS761lYTxBFGvxYD6V1varcQGQIMEG+UTopEDreiYhztzSyleWGIkFARpC4LtHFYmIl6QsRyYpqNjJcKJ0BAfQ08hAiLtca9ZkkpLbRHH7fiiXJBGeC9GnZpW/0JeBKaZ+mH7qbpEQ5mSChly58BZ+XeoGzt8jxZIJY5IPI0hq1xCIu2zo8zftbgwliCUGUzx835Y2P+LMG8SBgi5PuZ1q1g8JHbLwkYQ1igQbxM606RCIBGQT7a0AF98YEyThBgkyrdhFJ8jvhwaLcmxKpJwiZDygEvWM+JgA8r88iwBoArAvEpc3y7Ho7jFk3sXRNqzZM+BSBi2c6BKEsKAMH6k8JbEwIgDEQYtSlmUnu1hsglm+WixdNqBw6zOsIdwMveAbj1zviBubEVOXVIpEGLCCIJxm37+LwfogHHj+COPkMcgNnQIhJXaGnB0IBYaG2kz8f5kkNbYI0n0h7WaYtQgxyrVavTeXz+dGsHjUJY1q148ZvoXRKkYogdBpBCJjTlTl3OSIKNhpTN1efW9ZpQ4sgTXPqTfcFJ50OZAMExKIQ4l867PCYzvubzEFVR8O0WgIAMks9f5yPOIgg8BYAbgohIknegAhzlXLxbND6BxJEcfK2o92hoQNw8OD+vf/durUDW1vbQX27zMX0ZzTxi1q19juGC/NbQog7PR+ODHwgQi14QOEODULZmwV8DAB3+FU7fHhk7+dPP63Chx9u+feCuLhZnp3yK+RLED/N8dnP5uH48SNw/M+PwKFDBz19fPDBLbj8H9fh8uXr8Kc/1bxfTGfOt//SfprXz7SihHi1Rn2MDibK7lsTCrxh6KNBEAGEXFSJFA8//CU4+sC9Hhn75JMqXLv2Prz+2tvKD3ZQBDGIIFJn8/77vwB/+eQxuOuuA4EfDRrkSz/5d3jnnT9I7IrbE08zQYJMq/ZFUBGJbOPKStH7pQlEOJsFWhpExQ36QE9OnYAjRz6vBcBvfvNf8LNX/lNa1s+8VRJE8W4gHDt2GE595yGtQbUXeuXiFXjrrf9W1ks5QZRRK7dm8DVZecNwTz6IIK13MdxCes89Q/DMs4/Bvn2DoeSQrJoXf/SG16LxybslJUgzYnXD7ZSbkqM1i5d+8lu4cuVGp+9BphYCIKTTB9E1rVqTlmYwb/4Y91sYoaStx4Vl78ZQl6Q5pmcKWtaLbIjXfv8+/PjHv/b8pMJeShDZ4+7kiE/PPBGate0jIXNr4dyqxx50vhQpdFLDmFbtOEgfrAQAPtl7G6WRQgk7nNTmT888+6i2WaXisNSaUWgRKUGGJc+iffvUQ3D8ePev8l6+fAN++tJvO7XIri49WykXjePbPf6gSZvXiVrJKspeUnLKxZhiMw78/PocHi+hWzjJIX/2rx/reqj0oX7+B8seU0uWuFBKELd6I7X2D//47a4H1mrg7//up57BNRq5F26u/s33Iuukxw2FNa06NMh4ia7dnpMNkU/27qIiM7Gi+khT+zJzX2ZmeQgicyIpavX05NciEznZ4ADE0ubK32ofHYhsMAYNmZpWra786vOG4S5Kw4V5FK7Q7tzZb3Vl4rcvtcwXkQWKtAjy6GMPwNe//mUDUZJXee21t+GXb/ze9WOqCKIdtVKBpnJC0xzNi0xAJBokaiuGIlrnF37eMWTZXpSHIDIHPWqCKGLSv9hcKT4eJci9aKsb06rDzJIk7951Q+J7C6MXeJm26f6AROV/tI/nudl/DU8QmQBETZDr1/8I//TiLzsH14BLldWi59i8KcC9qNetadU+JlmCZocgvGEo9UGYIOkgSNemVYskiiePnZ/5GQivk84ESThBojKtWgSRvdHY+i1sKiBnY3df9Su90JpBbdY+Gbwa5n5FUHut39nESpGJFaVp1emHlDaEgPvcQhNmw5CijoBA93SGdIUvynLO/QrEmZvl2cUo22WC9IEgI4X50ygEXcfsmW/TzSlc2YbsrqOOWpnuVUeCohRU3baiNguZID0miOnNPl2BaAry3jH2MPVaZf3GqLNhOFyYfzmqC0Qm42+vE3RsPGz7TJBeE0TyxFvYRQoq361Q+J3sDdow1LnIFjT+KH8P6zcF9c0E6TFBVBtxQQuj+7uuGRTUnnLD0OdJbOdE8P4qRdQ6s3gEddaj3xHhvdpOfixKZ50J0mOCqG7uRSEj7TcEu21vZLxEqWlkEShlKqB+mI+686KNzVqjNh31Mw5MkB4TxLkuDGJZFiXSXXxZOSIHAkxHFbVRbRiCIhVQYEQtI2/NM0F6TBASbifKc0dtDBrRRLEQG+v1Tz6zFqUpITva0yKmLBXQ8HiJsstIo3JZOqbCBOkDQbrRFP2qG+btENU16L2I2s7gaJTk7RcGsn6YIEyQPbnQSQUUtOfRbUQtTjIwQVwIpPWwYq+ESCcVkN+eR1QRtV7Nz6Rd1iCsQdo0SGlOCDjjFqTWyd7APY8MZkNhgjBBbhNE8ix260faMPRLFp7VC1ZMECbIHkH8UgFRIgcQYkweco5+g87EHOpFHSYIE6RDrnw2DJXyF3QcpReC2682mSBMEDdB6Li4NPO7QntcrJSLkWQ675fQh+mHCcIE6ZAXvz0Oj/NOybAztOfBYV4O8wZ+PIOOkLQ3kLU9DyYIEySQIFRA8wTy1c2VotRp1+okJYXYxGITyyOqWieQM7jnwRqENYjWdzvoGHuYu+paHSa4EGsQ1iAe8fRLBdSLS0kJ5ofH3OS0PwlP+9MPYYoyFVA/xtvLPliDsAaRypcs00mW7nnokooJwgSRygodOxnYX50TAE6mewRYrO8MzmXlngcTRAMBPu6uAZLlRViDuDRIowFLN1eLqXgfxHLZ7cv0mSBuEyuFbxT2RVIs7YQJwgSxVPT1pm01QXSfv9KDkktlEYHkEkRyuy3qB3RkT7BFnboyi0Jj05zcBDl0zxCcnnkiMgjopdu5M//W0Z7WE2yy+89f/eoX4cmnjkU2ONk71Vm+/BMZcBY1JLtA9sL8X0WGgCySKjvK43mjULabe/DgAfje95+MbHA/fP4VuHVru7M9Sw7hRQZixhuSHdw8Pf04HDp0MJKZy97J1HrllnofLngfdolqcB99tA0v/PAVl2qD9yrlYiISMUeCPjfSNQKyC2RRWjLnz63CBx9uBX6kPRqEasjyxR458nl45tlHu5740tKv4J1rf+hox6ZTql0DaEkDMkvmc58bhNPTT8Bddx3oCgVFkEj6kZYSRHW77bvffRiOPnCv8eBkA3MaY/PKGNMsV5RZMvcf/QI8/fTXjKdNzvn5hVWviQ8gzaYvJQj1PjJe8iQRIAaTFjGxA+nhdnr6+dNPq27zKtPJB4xXkiuCKmFeN1FVkkFy0Nv/nOcsFHf8lQRRHb0mkpw69VAoTUIDWlr8lYccNMio37ZjucoWAqpblseOHYZT33lIe7KkOf75xTe8fodjwMDZSrk4J2tMSZCmLzKZE+KCrCIN8LG/+LKvPUgO+Ruvvw1XrtyQTsSG5APaK8gFpQjQhzqfG1gXQtzpLkDRVSIJ+cd+fxSxev21t6UfaADwvePvSxCVqdU+GNrAOfrAn8E9hw7Cvn2DQEz98INb8O67/+NRZa5JKF9QYllhBNoRCMpNTES5/+i9zse6Zf5ff/eP8NFHH8O1a++riEGvCQemTwokiA5JDJaTyWEAms1V6KEhAbAg0yQmuNAVZgE4sVmepSfwlH9aBKHaYRKb+XXIZpXJcnId50Md0bN6dKSktjM4oXMJTZsgtwfosPhE2CWjQUFOzFVeLa6FrcvlGYEWAs5DQvtr0wA4HVabkNZAwLkw70uGIkhrkE2bcBIRJ/wGSTaeEGIZBSwyMVjIo0SAnPeB3MB0Tgh6r1H2SvBed87HWYjl2nZ+UUdrtI/TiCBuBwrrjSEhcnvZ/uixSzGQ22JSRCkS3JYKASfSlc+PdjzWKmALBKzXPs6vhyVFpAThZWMEsoxA1xoky+Dw3BgBJgjLACMQRZiXUWQEbESANYiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRoAJog0VF7QRASaIjavOc9ZGgAmiDRUXtBEBJoiNq85z1kaACaINFRe0EQEmiI2rznPWRuD/ARWqF5us10LbAAAAAElFTkSuQmCC"})}),o(c,h)});let n="",a,o=(s,c)=>{if(s.length!==0)if(a)n!==t.params.fullpath&&(a.list.clear(),a.list.add(s)),n=t.params.fullpath,a.list.switch(c),a.play();else{const h=document.getElementById("aplayer");a=new wm({container:h,audio:s,fixed:!0,autoplay:!1,preload:"none"}),h.getElementsByClassName("aplayer-miniswitcher")[0].click(),h.getElementsByClassName("aplayer-icon-order")[0].setAttribute("title","\u64AD\u653E\u987A\u5E8F"),h.getElementsByClassName("aplayer-icon-loop")[0].setAttribute("title","\u5FAA\u73AF\u6A21\u5F0F"),h.getElementsByClassName("aplayer-icon-menu")[0].setAttribute("title","\u64AD\u653E\u5217\u8868"),h.getElementsByClassName("aplayer-icon-lrc")[0].style.display="none",a.play(),n=t.params.fullpath}};return(s,c)=>(ve(),Re("div",bm))}};const Tm={__name:"BackTop",setup(e){return(r,t)=>{const n=Vr,a=xs,o=Ap;return ve(),Pe(o,{bottom:50,target:".el-main"},{default:me(()=>[ae(a,{placement:"top",content:"\u56DE\u5230\u9876\u90E8"},{default:me(()=>[ae(As,{name:"fade"},{default:me(()=>[ae(n,null,{default:me(()=>[ae(E(jc))]),_:1})]),_:1})]),_:1})]),_:1})}}};var Dn={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(window,function(){return function(t){var n={};function a(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=t,a.c=n,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var h in o)a.d(c,h,function(f){return o[f]}.bind(null,h));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="/",a(a.s=11)}([function(t,n,a){var o=a(5),s=typeof self=="object"&&self&&self.Object===Object&&self,c=o.a||s||Function("return this")();n.a=c},function(t,n,a){(function(o){var s=a(5),c=r&&!r.nodeType&&r,h=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=h&&h.exports===c&&s.a.process,u=function(){try{var p=h&&h.require&&h.require("util").types;return p||f&&f.binding&&f.binding("util")}catch{}}();n.a=u}).call(this,a(6)(t))},function(t,n,a){function o(T){this._maxSize=T,this.clear()}o.prototype.clear=function(){this._size=0,this._values=Object.create(null)},o.prototype.get=function(T){return this._values[T]},o.prototype.set=function(T,b){return this._size>=this._maxSize&&this.clear(),T in this._values||this._size++,this._values[T]=b};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,c=/^\d+$/,h=/^\d/,f=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,p=new o(512),A=new o(512),m=new o(512);function y(T){return p.get(T)||p.set(T,v(T).map(function(b){return b.replace(u,"$2")}))}function v(T){return T.match(s)}function _(T){return typeof T=="string"&&T&&["'",'"'].indexOf(T.charAt(0))!==-1}function I(T){return!_(T)&&(function(b){return b.match(h)&&!b.match(c)}(T)||function(b){return f.test(b)}(T))}t.exports={Cache:o,split:v,normalizePath:y,setter:function(T){var b=y(T);return A.get(T)||A.set(T,function(L,j){for(var O=0,R=b.length;O-1},Xt=function(i,l){var d=this.__data__,g=wt(d,i);return g<0?(++this.size,d.push([i,l])):d[g][1]=l,this};function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l-1&&i%1==0&&i-1&&i%1==0&&i<=9007199254740991},w=function(i){if(typeof i=="string"||O(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l},D=function(i,l,d){for(var g=-1,x=(l=xi(l,i)).length,S=!1;++g=0||(x[d]=i[d]);return x}var Ho=a(4),Ph=/\$\{\s*(\w+)\s*\}/g,Lh=function(i){return function(l){return i.replace(Ph,function(d,g){return ha(l[g])})}};function Rr(i,l,d,g){var x=this;this.name="ValidationError",this.value=l,this.path=d,this.type=g,this.errors=[],this.inner=[],i&&[].concat(i).forEach(function(S){x.errors=x.errors.concat(S.errors||S),S.inner&&(x.inner=x.inner.concat(S.inner.length?S.inner:S))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Rr)}Rr.prototype=Object.create(Error.prototype),Rr.prototype.constructor=Rr,Rr.isError=function(i){return i&&i.name==="ValidationError"},Rr.formatError=function(i,l){typeof i=="string"&&(i=Lh(i));var d=function(g){return g.path=g.label||g.path||"this",typeof i=="function"?i(g):i};return arguments.length===1?d:d(l)};var yl=function(i){return i?Ho.SynchronousPromise:Promise};function _l(i,l){return i?null:function(d){return l.push(d),d.value}}function Nh(i){var l=i.validations,d=i.value,g=i.path,x=i.sync,S=i.errors,B=i.sort;return S=function(C){return C===void 0&&(C=[]),C.inner&&C.inner.length?C.inner:[].concat(C)}(S),function(C,W){var V=yl(W);return V.all(C.map(function(q){return V.resolve(q).then(function(J){return{fulfilled:!0,value:J}},function(J){return{fulfilled:!1,value:J}})}))}(l,x).then(function(C){var W=C.filter(function(V){return!V.fulfilled}).reduce(function(V,q){var J=q.value;if(!Rr.isError(J))throw J;return V.concat(J)},[]);if(B&&W.sort(B),(S=W.concat(S)).length)throw new Rr(S,d,g);return d})}function Ei(i){var l,d,g,x=i.endEarly,S=zo(i,["endEarly"]);return x?(l=S.validations,d=S.value,g=S.sync,yl(g).all(l).catch(function(B){throw B.name==="ValidationError"&&(B.value=d),B}).then(function(){return d})):Nh(S)}var wl=function(i){return Object.prototype.toString.call(i)==="[object Object]"},Uh=function(i){return function(l,d,g){for(var x=-1,S=Object(l),B=g(l),C=B.length;C--;){var W=B[i?C:++x];if(d(S[W],W,S)===!1)break}return l}}(),bl=function(i,l){return i&&Uh(i,l,ua)},jh=function(i){return this.__data__.set(i,"__lodash_hash_undefined__"),this},zh=function(i){return this.__data__.has(i)};function Ti(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new cn;++lC))return!1;var V=S.get(i);if(V&&S.get(l))return V==l;var q=-1,J=!0,ie=2&d?new Hh:void 0;for(S.set(i,l),S.set(l,i);++q=d.length)throw new Error("Yup.reach cannot resolve an array item at index: "+C+", in the path: "+l+". because there is no value at that index. ");x=d,d=d&&d[J],i=i.innerType}if(!V){if(!i.fields||!i.fields[q])throw new Error("The schema does not contain the path: "+l+". (failed at: "+B+' which is a type: "'+i._type+'")');x=d,d=d&&d[q],i=i.fields[q]}S=q,B=W?"["+C+"]":"."+C}),{schema:i,parent:x,parentPath:S}):{parent:x,parentPath:l,schema:i}}var Ml=function(){function i(){this.list=new Set,this.refs=new Map}var l,d,g=i.prototype;return g.describe=function(){var x=[],S=this.list,B=Array.isArray(S),C=0;for(S=B?S:S[Symbol.iterator]();;){var W;if(B){if(C>=S.length)break;W=S[C++]}else{if((C=S.next()).done)break;W=C.value}var V=W;x.push(V)}var q=this.refs,J=Array.isArray(q),ie=0;for(q=J?q:q[Symbol.iterator]();;){var fe;if(J){if(ie>=q.length)break;fe=q[ie++]}else{if((ie=q.next()).done)break;fe=ie.value}var G=fe[1];x.push(G.describe())}return x},g.toArray=function(){return Al(this.list).concat(Al(this.refs.values()))},g.add=function(x){Sn.isRef(x)?this.refs.set(x.key,x):this.list.add(x)},g.delete=function(x){Sn.isRef(x)?this.refs.delete(x.key):this.list.delete(x)},g.has=function(x,S){if(this.list.has(x))return!0;for(var B,C=this.refs.values();!(B=C.next()).done;)if(S(B.value)===x)return!0;return!1},g.clone=function(){var x=new i;return x.list=new Set(this.list),x.refs=new Map(this.refs),x},g.merge=function(x,S){var B=this.clone();return x.list.forEach(function(C){return B.add(C)}),x.refs.forEach(function(C){return B.add(C)}),S.list.forEach(function(C){return B.delete(C)}),S.refs.forEach(function(C){return B.delete(C)}),B},l=i,(d=[{key:"size",get:function(){return this.list.size+this.refs.size}}])&&s(l.prototype,d),i}();function je(i){var l=this;if(i===void 0&&(i={}),!(this instanceof je))return new je;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new Ml,this._blacklist=new Ml,this.tests=[],this.transforms=[],this.withMutation(function(){l.typeError(da.notType)}),k(i,"default")&&(this._defaultDefault=i.default),this.type=i.type||"mixed",this._type=i.type||"mixed"}for(var Gn=je.prototype={__isYupSchema__:!0,constructor:je,clone:function(){var i=this;return this._mutate?this:ol(this,function(l){if(pa(l)&&l!==i)return l})},label:function(i){var l=this.clone();return l._label=i,l},meta:function(i){if(arguments.length===0)return this._meta;var l=this.clone();return l._meta=o(l._meta||{},i),l},withMutation:function(i){var l=this._mutate;this._mutate=!0;var d=i(this);return this._mutate=l,d},concat:function(i){if(!i||i===this)return this;if(i._type!==this._type&&this._type!=="mixed")throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+i._type);var l=function d(g,x){for(var S in x)if(k(x,S)){var B=x[S],C=g[S];if(C===void 0)g[S]=B;else{if(C===B)continue;pa(C)?pa(B)&&(g[S]=B.concat(C)):wl(C)?wl(B)&&(g[S]=d(C,B)):Array.isArray(C)&&Array.isArray(B)&&(g[S]=B.concat(C))}}return g}(i.clone(),this);return k(i,"_default")&&(l._default=i._default),l.tests=this.tests,l._exclusive=this._exclusive,l._whitelist=this._whitelist.merge(i._whitelist,i._blacklist),l._blacklist=this._blacklist.merge(i._blacklist,i._whitelist),l.withMutation(function(d){i.tests.forEach(function(g){d.test(g.OPTIONS)})}),l},isType:function(i){return!(!this._nullable||i!==null)||!this._typeCheck||this._typeCheck(i)},resolve:function(i){var l=this;if(l._conditions.length){var d=l._conditions;(l=l.clone())._conditions=[],l=(l=d.reduce(function(g,x){return x.resolve(g,i)},l)).resolve(i)}return l},cast:function(i,l){l===void 0&&(l={});var d=this.resolve(o({},l,{value:i})),g=d._cast(i,l);if(i!==void 0&&l.assert!==!1&&d.isType(g)!==!0){var x=ha(i),S=ha(g);throw new TypeError("The value of "+(l.path||"field")+' could not be cast to a value that satisfies the schema type: "'+d._type+`". -attempted value: `+y+` -`+(S!==y?"result of cast: "+S:""))}return g},_cast:function(i){var l=this,d=i===void 0?i:this.transforms.reduce(function(g,y){return y.call(l,g,i)},i);return d===void 0&&k(this,"_default")&&(d=this.default()),d},_validate:function(i,l){var d=this;l===void 0&&(l={});var g=i,y=l.originalValue!=null?l.originalValue:i,S=this._option("strict",l),B=this._option("abortEarly",l),C=l.sync,V=l.path,G=this._label;S||(g=this._cast(g,o({assert:!1},l)));var X={value:g,path:V,schema:this,options:l,label:G,originalValue:y,sync:C};l.from&&(X.from=l.from);var J=[];return this._typeError&&J.push(this._typeError(X)),this._whitelistError&&J.push(this._whitelistError(X)),this._blacklistError&&J.push(this._blacklistError(X)),Ti({validations:J,endEarly:B,value:g,path:V,sync:C}).then(function(ae){return Ti({path:V,sync:C,value:ae,endEarly:B,validations:d.tests.map(function(fe){return fe(X)})})})},validate:function(i,l){return l===void 0&&(l={}),this.resolve(o({},l,{value:i}))._validate(i,l)},validateSync:function(i,l){var d,g;if(l===void 0&&(l={}),this.resolve(o({},l,{value:i}))._validate(i,o({},l,{sync:!0})).then(function(y){return d=y}).catch(function(y){return g=y}),g)throw g;return d},isValid:function(i,l){return this.validate(i,l).then(function(){return!0}).catch(function(d){if(d.name==="ValidationError")return!1;throw d})},isValidSync:function(i,l){try{return this.validateSync(i,l),!0}catch(d){if(d.name==="ValidationError")return!1;throw d}},getDefault:function(i){return i===void 0&&(i={}),this.resolve(i).default()},default:function(i){if(arguments.length===0){var l=k(this,"_default")?this._default:this._defaultDefault;return typeof l=="function"?l.call(this):il(l)}var d=this.clone();return d._default=i,d},strict:function(i){i===void 0&&(i=!0);var l=this.clone();return l._options.strict=i,l},_isPresent:function(i){return i!=null},required:function(i){return i===void 0&&(i=da.required),this.test({message:i,name:"required",exclusive:!0,test:function(l){return this.schema._isPresent(l)}})},notRequired:function(){var i=this.clone();return i.tests=i.tests.filter(function(l){return l.OPTIONS.name!=="required"}),i},nullable:function(i){i===void 0&&(i=!0);var l=this.clone();return l._nullable=i,l},transform:function(i){var l=this.clone();return l.transforms.push(i),l},test:function(){var i;if((i=arguments.length===1?typeof(arguments.length<=0?void 0:arguments[0])=="function"?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:arguments.length===2?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message===void 0&&(i.message=da.default),typeof i.test!="function")throw new TypeError("`test` is a required parameters");var l=this.clone(),d=Fi(i),g=i.exclusive||i.name&&l._exclusive[i.name]===!0;if(i.exclusive&&!i.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return l._exclusive[i.name]=!!i.exclusive,l.tests=l.tests.filter(function(y){return!(y.OPTIONS.name===i.name&&(g||y.OPTIONS.test===d.OPTIONS.test))}),l.tests.push(d),l},when:function(i,l){arguments.length===1&&(l=i,i=".");var d=this.clone(),g=[].concat(i).map(function(y){return new kn(y)});return g.forEach(function(y){y.isSibling&&d._deps.push(y.key)}),d._conditions.push(new Mh(g,l)),d},typeError:function(i){var l=this.clone();return l._typeError=Fi({message:i,name:"typeError",test:function(d){return!(d!==void 0&&!this.schema.isType(d))||this.createError({params:{type:this.schema._type}})}}),l},oneOf:function(i,l){l===void 0&&(l=da.oneOf);var d=this.clone();return i.forEach(function(g){d._whitelist.add(g),d._blacklist.delete(g)}),d._whitelistError=Fi({message:l,name:"oneOf",test:function(g){if(g===void 0)return!0;var y=this.schema._whitelist;return!!y.has(g,this.resolve)||this.createError({params:{values:y.toArray().join(", ")}})}}),d},notOneOf:function(i,l){l===void 0&&(l=da.notOneOf);var d=this.clone();return i.forEach(function(g){d._blacklist.add(g),d._whitelist.delete(g)}),d._blacklistError=Fi({message:l,name:"notOneOf",test:function(g){var y=this.schema._blacklist;return!y.has(g,this.resolve)||this.createError({params:{values:y.toArray().join(", ")}})}}),d},strip:function(i){i===void 0&&(i=!0);var l=this.clone();return l._strip=i,l},_option:function(i,l){return k(l,i)?l[i]:this._options[i]},describe:function(){var i=this.clone(),l={type:i._type,meta:i._meta,label:i._label,tests:i.tests.map(function(d){return{name:d.OPTIONS.name,params:d.OPTIONS.params}}).filter(function(d,g,y){return y.findIndex(function(S){return S.name===d.name})===g})};return i._whitelist.size&&(l.oneOf=i._whitelist.describe()),i._blacklist.size&&(l.notOneOf=i._blacklist.describe()),l},defined:function(i){return i===void 0&&(i=da.defined),this.nullable().test({message:i,name:"defined",exclusive:!0,test:function(l){return l!==void 0}})}},c1=function(){var i=Ml[Vo];Hn[i+"At"]=function(l,d,g){g===void 0&&(g={});var y=l1(this,l,d,g.context),S=y.parent,B=y.parentPath;return y.schema[i](S&&S[B],o({},g,{parent:S,path:l}))}},Vo=0,Ml=["validate","validateSync"];Vo0},length:function(i,l){return l===void 0&&(l=hn.length),this.test({message:l,name:"length",exclusive:!0,params:{length:i},test:function(d){return Tt(d)||d.length===this.resolve(i)}})},min:function(i,l){return l===void 0&&(l=hn.min),this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return Tt(d)||d.length>=this.resolve(i)}})},max:function(i,l){return l===void 0&&(l=hn.max),this.test({name:"max",exclusive:!0,message:l,params:{max:i},test:function(d){return Tt(d)||d.length<=this.resolve(i)}})},matches:function(i,l){var d,g,y=!1;return l&&(typeof l=="object"?(y=l.excludeEmptyString,d=l.message,g=l.name):d=l),this.test({name:g||"matches",message:d||hn.matches,params:{regex:i},test:function(S){return Tt(S)||S===""&&y||S.search(i)!==-1}})},email:function(i){return i===void 0&&(i=hn.email),this.matches(u1,{name:"email",message:i,excludeEmptyString:!0})},url:function(i){return i===void 0&&(i=hn.url),this.matches(f1,{name:"url",message:i,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(i){return i===null?"":i})},trim:function(i){return i===void 0&&(i=hn.trim),this.transform(function(l){return l!=null?l.trim():l}).test({message:i,name:"trim",test:h1})},lowercase:function(i){return i===void 0&&(i=hn.lowercase),this.transform(function(l){return Tt(l)?l:l.toLowerCase()}).test({message:i,name:"string_case",exclusive:!0,test:function(l){return Tt(l)||l===l.toLowerCase()}})},uppercase:function(i){return i===void 0&&(i=hn.uppercase),this.transform(function(l){return Tt(l)?l:l.toUpperCase()}).test({message:i,name:"string_case",exclusive:!0,test:function(l){return Tt(l)||l===l.toUpperCase()}})}});function kt(){var i=this;if(!(this instanceof kt))return new kt;Ue.call(this,{type:"number"}),this.withMutation(function(){i.transform(function(l){var d=l;if(typeof d=="string"){if((d=d.replace(/\s/g,""))==="")return NaN;d=+d}return this.isType(d)?d:parseFloat(d)})})}Aa(kt,Ue,{_typeCheck:function(i){return i instanceof Number&&(i=i.valueOf()),typeof i=="number"&&!function(l){return l!=+l}(i)},min:function(i,l){return l===void 0&&(l=zn.min),this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return Tt(d)||d>=this.resolve(i)}})},max:function(i,l){return l===void 0&&(l=zn.max),this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(d){return Tt(d)||d<=this.resolve(i)}})},lessThan:function(i,l){return l===void 0&&(l=zn.lessThan),this.test({message:l,name:"max",exclusive:!0,params:{less:i},test:function(d){return Tt(d)||dthis.resolve(i)}})},positive:function(i){return i===void 0&&(i=zn.positive),this.moreThan(0,i)},negative:function(i){return i===void 0&&(i=zn.negative),this.lessThan(0,i)},integer:function(i){return i===void 0&&(i=zn.integer),this.test({name:"integer",message:i,test:function(l){return Tt(l)||Number.isInteger(l)}})},truncate:function(){return this.transform(function(i){return Tt(i)?i:0|i})},round:function(i){var l=["ceil","floor","round","trunc"];if((i=i&&i.toLowerCase()||"round")==="trunc")return this.truncate();if(l.indexOf(i.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+l.join(", "));return this.transform(function(d){return Tt(d)?d:Math[i](d)})}});var d1=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/,p1=new Date("");function Qo(){var i=this;if(!(this instanceof Qo))return new Qo;Ue.call(this,{type:"date"}),this.withMutation(function(){i.transform(function(l){return this.isType(l)?l:(l=function(d){var g,y,S=[1,4,5,6,7,10,11],B=0;if(y=d1.exec(d)){for(var C,V=0;C=S[V];++V)y[C]=+y[C]||0;y[2]=(+y[2]||1)-1,y[3]=+y[3]||1,y[7]=y[7]?String(y[7]).substr(0,3):0,y[8]!==void 0&&y[8]!==""||y[9]!==void 0&&y[9]!==""?(y[8]!=="Z"&&y[9]!==void 0&&(B=60*y[10]+y[11],y[9]==="+"&&(B=0-B)),g=Date.UTC(y[1],y[2],y[3],y[4],y[5]+B,y[6],y[7])):g=+new Date(y[1],y[2],y[3],y[4],y[5],y[6],y[7])}else g=Date.parse?Date.parse(d):NaN;return g}(l),isNaN(l)?p1:new Date(l))})})}function Ha(i,l){return l||(l=i.slice(0)),i.raw=l,i}Aa(Qo,Ue,{_typeCheck:function(i){return l=i,Object.prototype.toString.call(l)==="[object Date]"&&!isNaN(i.getTime());var l},min:function(i,l){l===void 0&&(l=ml.min);var d=i;if(!kn.isRef(d)&&(d=this.cast(i),!this._typeCheck(d)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(g){return Tt(g)||g>=this.resolve(d)}})},max:function(i,l){l===void 0&&(l=ml.max);var d=i;if(!kn.isRef(d)&&(d=this.cast(i),!this._typeCheck(d)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(g){return Tt(g)||g<=this.resolve(d)}})}});var A1=function(i,l,d,g){var y=-1,S=i==null?0:i.length;for(g&&S&&(d=i[++y]);++yy?0:y+l),(d=d>y?y:d)<0&&(d+=y),y=l>d?0:d-l>>>0,l>>>=0;for(var S=Array(y);++g=g?i:B1(i,l,d)},R1=function(i){return function(l){l=Un(l);var d=ll(l)?dl(l):void 0,g=d?d[0]:l.charAt(0),y=d?I1(d,1).join(""):l.slice(1);return g[i]()+y}}("toUpperCase"),M1=function(i){return R1(Un(i).toLowerCase())},P1=$l(function(i,l,d){return l=l.toLowerCase(),i+(d?M1(l):l)}),L1=function(i,l){var d={};return l=Ol(l),wl(i,function(g,y,S){we(d,l(g,y,S),g)}),d},N1=a(9),U1=a.n(N1);function Xl(i,l){l===void 0&&(l=[]);var d=[],g=[];function y(C,V){var G=Object(Si.split)(C)[0];~g.indexOf(G)||g.push(G),~l.indexOf(V+"-"+G)||d.push([V,G])}for(var S in i)if(k(i,S)){var B=i[S];~g.indexOf(S)||g.push(S),kn.isRef(B)&&B.isSibling?y(B.path,S):pa(B)&&B._deps&&B._deps.forEach(function(C){return y(C,S)})}return U1.a.array(g,d).reverse()}function ql(i,l){var d=1/0;return i.some(function(g,y){if(l.path.indexOf(g)!==-1)return d=y,!0}),d}function Ga(i){for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g0},of:function(i){var l=this.clone();if(i!==!1&&!pa(i))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+ha(i));return l._subType=i,l.innerType=i,l},min:function(i,l){return l=l||gl.min,this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return Tt(d)||d.length>=this.resolve(i)}})},max:function(i,l){return l=l||gl.max,this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(d){return Tt(d)||d.length<=this.resolve(i)}})},ensure:function(){var i=this;return this.default(function(){return[]}).transform(function(l,d){return i._typeCheck(l)?l:d==null?[]:[].concat(d)})},compact:function(i){var l=i?function(d,g,y){return!i(d,g,y)}:function(d){return!!d};return this.transform(function(d){return d!=null?d.filter(l):d})},describe:function(){var i=Ue.prototype.describe.call(this);return this.innerType&&(i.innerType=this.innerType.describe()),i}});function n0(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);l&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(i,y).enumerable})),d.push.apply(d,g)}return d}function a0(i){for(var l=1;l0},length:function(i,l){return l===void 0&&(l=fn.length),this.test({message:l,name:"length",exclusive:!0,params:{length:i},test:function(d){return kt(d)||d.length===this.resolve(i)}})},min:function(i,l){return l===void 0&&(l=fn.min),this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return kt(d)||d.length>=this.resolve(i)}})},max:function(i,l){return l===void 0&&(l=fn.max),this.test({name:"max",exclusive:!0,message:l,params:{max:i},test:function(d){return kt(d)||d.length<=this.resolve(i)}})},matches:function(i,l){var d,g,x=!1;return l&&(typeof l=="object"?(x=l.excludeEmptyString,d=l.message,g=l.name):d=l),this.test({name:g||"matches",message:d||fn.matches,params:{regex:i},test:function(S){return kt(S)||S===""&&x||S.search(i)!==-1}})},email:function(i){return i===void 0&&(i=fn.email),this.matches(u1,{name:"email",message:i,excludeEmptyString:!0})},url:function(i){return i===void 0&&(i=fn.url),this.matches(f1,{name:"url",message:i,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(i){return i===null?"":i})},trim:function(i){return i===void 0&&(i=fn.trim),this.transform(function(l){return l!=null?l.trim():l}).test({message:i,name:"trim",test:h1})},lowercase:function(i){return i===void 0&&(i=fn.lowercase),this.transform(function(l){return kt(l)?l:l.toLowerCase()}).test({message:i,name:"string_case",exclusive:!0,test:function(l){return kt(l)||l===l.toLowerCase()}})},uppercase:function(i){return i===void 0&&(i=fn.uppercase),this.transform(function(l){return kt(l)?l:l.toUpperCase()}).test({message:i,name:"string_case",exclusive:!0,test:function(l){return kt(l)||l===l.toUpperCase()}})}});function St(){var i=this;if(!(this instanceof St))return new St;je.call(this,{type:"number"}),this.withMutation(function(){i.transform(function(l){var d=l;if(typeof d=="string"){if((d=d.replace(/\s/g,""))==="")return NaN;d=+d}return this.isType(d)?d:parseFloat(d)})})}Aa(St,je,{_typeCheck:function(i){return i instanceof Number&&(i=i.valueOf()),typeof i=="number"&&!function(l){return l!=+l}(i)},min:function(i,l){return l===void 0&&(l=Hn.min),this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return kt(d)||d>=this.resolve(i)}})},max:function(i,l){return l===void 0&&(l=Hn.max),this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(d){return kt(d)||d<=this.resolve(i)}})},lessThan:function(i,l){return l===void 0&&(l=Hn.lessThan),this.test({message:l,name:"max",exclusive:!0,params:{less:i},test:function(d){return kt(d)||dthis.resolve(i)}})},positive:function(i){return i===void 0&&(i=Hn.positive),this.moreThan(0,i)},negative:function(i){return i===void 0&&(i=Hn.negative),this.lessThan(0,i)},integer:function(i){return i===void 0&&(i=Hn.integer),this.test({name:"integer",message:i,test:function(l){return kt(l)||Number.isInteger(l)}})},truncate:function(){return this.transform(function(i){return kt(i)?i:0|i})},round:function(i){var l=["ceil","floor","round","trunc"];if((i=i&&i.toLowerCase()||"round")==="trunc")return this.truncate();if(l.indexOf(i.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+l.join(", "));return this.transform(function(d){return kt(d)?d:Math[i](d)})}});var d1=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/,p1=new Date("");function Qo(){var i=this;if(!(this instanceof Qo))return new Qo;je.call(this,{type:"date"}),this.withMutation(function(){i.transform(function(l){return this.isType(l)?l:(l=function(d){var g,x,S=[1,4,5,6,7,10,11],B=0;if(x=d1.exec(d)){for(var C,W=0;C=S[W];++W)x[C]=+x[C]||0;x[2]=(+x[2]||1)-1,x[3]=+x[3]||1,x[7]=x[7]?String(x[7]).substr(0,3):0,x[8]!==void 0&&x[8]!==""||x[9]!==void 0&&x[9]!==""?(x[8]!=="Z"&&x[9]!==void 0&&(B=60*x[10]+x[11],x[9]==="+"&&(B=0-B)),g=Date.UTC(x[1],x[2],x[3],x[4],x[5]+B,x[6],x[7])):g=+new Date(x[1],x[2],x[3],x[4],x[5],x[6],x[7])}else g=Date.parse?Date.parse(d):NaN;return g}(l),isNaN(l)?p1:new Date(l))})})}function Ga(i,l){return l||(l=i.slice(0)),i.raw=l,i}Aa(Qo,je,{_typeCheck:function(i){return l=i,Object.prototype.toString.call(l)==="[object Date]"&&!isNaN(i.getTime());var l},min:function(i,l){l===void 0&&(l=vl.min);var d=i;if(!Sn.isRef(d)&&(d=this.cast(i),!this._typeCheck(d)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(g){return kt(g)||g>=this.resolve(d)}})},max:function(i,l){l===void 0&&(l=vl.max);var d=i;if(!Sn.isRef(d)&&(d=this.cast(i),!this._typeCheck(d)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(g){return kt(g)||g<=this.resolve(d)}})}});var A1=function(i,l,d,g){var x=-1,S=i==null?0:i.length;for(g&&S&&(d=i[++x]);++xx?0:x+l),(d=d>x?x:d)<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var S=Array(x);++g=g?i:B1(i,l,d)},R1=function(i){return function(l){l=jn(l);var d=cl(l)?pl(l):void 0,g=d?d[0]:l.charAt(0),x=d?I1(d,1).join(""):l.slice(1);return g[i]()+x}}("toUpperCase"),M1=function(i){return R1(jn(i).toLowerCase())},P1=Ql(function(i,l,d){return l=l.toLowerCase(),i+(d?M1(l):l)}),L1=function(i,l){var d={};return l=Dl(l),bl(i,function(g,x,S){we(d,l(g,x,S),g)}),d},N1=a(9),U1=a.n(N1);function ql(i,l){l===void 0&&(l=[]);var d=[],g=[];function x(C,W){var V=Object(ki.split)(C)[0];~g.indexOf(V)||g.push(V),~l.indexOf(W+"-"+V)||d.push([W,V])}for(var S in i)if(k(i,S)){var B=i[S];~g.indexOf(S)||g.push(S),Sn.isRef(B)&&B.isSibling?x(B.path,S):pa(B)&&B._deps&&B._deps.forEach(function(C){return x(C,S)})}return U1.a.array(g,d).reverse()}function Jl(i,l){var d=1/0;return i.some(function(g,x){if(l.path.indexOf(g)!==-1)return d=x,!0}),d}function Va(i){for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g0},of:function(i){var l=this.clone();if(i!==!1&&!pa(i))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+ha(i));return l._subType=i,l.innerType=i,l},min:function(i,l){return l=l||xl.min,this.test({message:l,name:"min",exclusive:!0,params:{min:i},test:function(d){return kt(d)||d.length>=this.resolve(i)}})},max:function(i,l){return l=l||xl.max,this.test({message:l,name:"max",exclusive:!0,params:{max:i},test:function(d){return kt(d)||d.length<=this.resolve(i)}})},ensure:function(){var i=this;return this.default(function(){return[]}).transform(function(l,d){return i._typeCheck(l)?l:d==null?[]:[].concat(d)})},compact:function(i){var l=i?function(d,g,x){return!i(d,g,x)}:function(d){return!!d};return this.transform(function(d){return d!=null?d.filter(l):d})},describe:function(){var i=je.prototype.describe.call(this);return this.innerType&&(i.innerType=this.innerType.describe()),i}});function a0(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);l&&(g=g.filter(function(x){return Object.getOwnPropertyDescriptor(i,x).enumerable})),d.push.apply(d,g)}return d}function i0(i){for(var l=1;l `).concat(i.listPoints(d,g).join(""),` - `)}}function i0(i){this.mode=hr.MODE_8BIT_BYTE,this.data=i,this.parsedData=[];for(var l=0,d=this.data.length;l65536?(g[0]=240|(1835008&y)>>>18,g[1]=128|(258048&y)>>>12,g[2]=128|(4032&y)>>>6,g[3]=128|63&y):y>2048?(g[0]=224|(61440&y)>>>12,g[1]=128|(4032&y)>>>6,g[2]=128|63&y):y>128?(g[0]=192|(1984&y)>>>6,g[1]=128|63&y):g[0]=y,this.parsedData.push(g)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function Zr(i,l){this.typeNumber=i,this.errorCorrectLevel=l,this.modules=null,this.moduleCount=0,this.position=[],this.dataCache=null,this.dataList=[]}i0.prototype={getLength:function(i){return this.parsedData.length},write:function(i){for(var l=0,d=this.parsedData.length;l=7&&this.setupTypeNumber(i),this.dataCache==null&&(this.dataCache=Zr.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,l)},setupPositionProbePattern:function(i,l){for(var d=-1;d<=7;d++)if(!(i+d<=-1||this.moduleCount<=i+d))for(var g=-1;g<=7;g++)l+g<=-1||this.moduleCount<=l+g||(this.modules[i+d][l+g]=0<=d&&d<=6&&(g==0||g==6)||0<=g&&g<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=g&&g<=4)},getBestMaskPattern:function(){for(var i=0,l=0,d=0;d<8;d++){this.makeImpl(!0,d);var g=pt.getLostPoint(this);(d==0||i>g)&&(i=g,l=d)}return l},createMovieClip:function(i,l,d){var g=i.createEmptyMovieClip(l,d);this.make();for(var y=0;y>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=g}for(var y=0;y<18;y++){var S=!i&&(l>>y&1)==1;this.modules[y%3+this.moduleCount-8-3][Math.floor(y/3)]=S}},setupTypeInfo:function(i,l){for(var d=this.errorCorrectLevel<<3|l,g=pt.getBCHTypeInfo(d),y=0;y<15;y++){var S=!i&&(g>>y&1)==1;y<6?this.modules[y][8]=S:y<8?this.modules[y+1][8]=S:this.modules[this.moduleCount-15+y][8]=S}for(var B=0;B<15;B++){var C=!i&&(g>>B&1)==1;B<8?this.modules[8][this.moduleCount-B-1]=C:B<9?this.modules[8][15-B-1+1]=C:this.modules[8][15-B-1]=C}this.modules[this.moduleCount-8][8]=!i},mapData:function(i,l){for(var d=-1,g=this.moduleCount-1,y=7,S=0,B=this.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(var C=0;C<2;C++)if(this.modules[g][B-C]==null){var V=!1;S>>y&1)==1),pt.getMask(l,g,B-C)&&(V=!V),this.modules[g][B-C]=V,--y==-1&&(S++,y=7)}if((g+=d)<0||this.moduleCount<=g){g-=d,d=-d;break}}}},Zr.PAD0=236,Zr.PAD1=17,Zr.createData=function(i,l,d){for(var g=Mr.getRSBlocks(i,l),y=new qo,S=0;S8*C)throw new Error("code length overflow. ("+y.getLengthInBits()+">"+8*C+")");for(y.getLengthInBits()+4<=8*C&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=8*C||(y.put(Zr.PAD0,8),y.getLengthInBits()>=8*C));)y.put(Zr.PAD1,8);return Zr.createBytes(y,g)},Zr.createBytes=function(i,l){for(var d=0,g=0,y=0,S=new Array(l.length),B=new Array(l.length),C=0;C=0?ae.get(H):0}}for(var N=0,Z=0;Z=0;)l^=pt.G15<=0;)l^=pt.G18<>>=1;return l},getPatternPosition:function(i){return pt.PATTERN_POSITION_TABLE[i-1]},getMask:function(i,l,d){switch(i){case W1:return(l+d)%2==0;case Y1:return l%2==0;case $1:return d%3==0;case Q1:return(l+d)%3==0;case X1:return(Math.floor(l/2)+Math.floor(d/3))%2==0;case q1:return l*d%2+l*d%3==0;case J1:return(l*d%2+l*d%3)%2==0;case K1:return(l*d%3+(l+d)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}},getErrorCorrectPolynomial:function(i){for(var l=new va([1],0),d=0;d5&&(d+=3+S-5)}for(var G=0;G=256;)i-=255;return Mt.EXP_TABLE[i]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Ci=0;Ci<8;Ci++)Mt.EXP_TABLE[Ci]=1<>>7-i%8&1)==1},put:function(i,l){for(var d=0;d>>l-d-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(i){var l=Math.floor(this.length/8);this.buffer.length<=l&&this.buffer.push(0),i&&(this.buffer[l]|=128>>>this.length%8),this.length++}};var l0=0,dn=1,pn=2,Di=3,Bi=4,Ii=5,Jo=6,ed=7;function c0(i){if(!i.text||i.text.length<=0)return null;var l=new Zr((i=s0(s0({},{render:"canvas",width:"100%",height:"100%",typeNumber:-1,correctLevel:1,background:"#ffffff",foreground:"#000000",isSpace:!0}),i)).typeNumber,i.correctLevel);return l.addData(i.text),l.make(),l.$options=i,l}function Sn(i){for(var l=i.getModuleCount(),d=i.getPositionTable(),g=[[3,3],[3,l-4],[l-4,3]],y=new Array(l),S=0;S=0&&g[X][0]+J=0&&g[X][1]+ae65536?(g[0]=240|(1835008&x)>>>18,g[1]=128|(258048&x)>>>12,g[2]=128|(4032&x)>>>6,g[3]=128|63&x):x>2048?(g[0]=224|(61440&x)>>>12,g[1]=128|(4032&x)>>>6,g[2]=128|63&x):x>128?(g[0]=192|(1984&x)>>>6,g[1]=128|63&x):g[0]=x,this.parsedData.push(g)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function Zr(i,l){this.typeNumber=i,this.errorCorrectLevel=l,this.modules=null,this.moduleCount=0,this.position=[],this.dataCache=null,this.dataList=[]}o0.prototype={getLength:function(i){return this.parsedData.length},write:function(i){for(var l=0,d=this.parsedData.length;l=7&&this.setupTypeNumber(i),this.dataCache==null&&(this.dataCache=Zr.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,l)},setupPositionProbePattern:function(i,l){for(var d=-1;d<=7;d++)if(!(i+d<=-1||this.moduleCount<=i+d))for(var g=-1;g<=7;g++)l+g<=-1||this.moduleCount<=l+g||(this.modules[i+d][l+g]=0<=d&&d<=6&&(g==0||g==6)||0<=g&&g<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=g&&g<=4)},getBestMaskPattern:function(){for(var i=0,l=0,d=0;d<8;d++){this.makeImpl(!0,d);var g=pt.getLostPoint(this);(d==0||i>g)&&(i=g,l=d)}return l},createMovieClip:function(i,l,d){var g=i.createEmptyMovieClip(l,d);this.make();for(var x=0;x>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=g}for(var x=0;x<18;x++){var S=!i&&(l>>x&1)==1;this.modules[x%3+this.moduleCount-8-3][Math.floor(x/3)]=S}},setupTypeInfo:function(i,l){for(var d=this.errorCorrectLevel<<3|l,g=pt.getBCHTypeInfo(d),x=0;x<15;x++){var S=!i&&(g>>x&1)==1;x<6?this.modules[x][8]=S:x<8?this.modules[x+1][8]=S:this.modules[this.moduleCount-15+x][8]=S}for(var B=0;B<15;B++){var C=!i&&(g>>B&1)==1;B<8?this.modules[8][this.moduleCount-B-1]=C:B<9?this.modules[8][15-B-1+1]=C:this.modules[8][15-B-1]=C}this.modules[this.moduleCount-8][8]=!i},mapData:function(i,l){for(var d=-1,g=this.moduleCount-1,x=7,S=0,B=this.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(var C=0;C<2;C++)if(this.modules[g][B-C]==null){var W=!1;S>>x&1)==1),pt.getMask(l,g,B-C)&&(W=!W),this.modules[g][B-C]=W,--x==-1&&(S++,x=7)}if((g+=d)<0||this.moduleCount<=g){g-=d,d=-d;break}}}},Zr.PAD0=236,Zr.PAD1=17,Zr.createData=function(i,l,d){for(var g=Mr.getRSBlocks(i,l),x=new qo,S=0;S8*C)throw new Error("code length overflow. ("+x.getLengthInBits()+">"+8*C+")");for(x.getLengthInBits()+4<=8*C&&x.put(0,4);x.getLengthInBits()%8!=0;)x.putBit(!1);for(;!(x.getLengthInBits()>=8*C||(x.put(Zr.PAD0,8),x.getLengthInBits()>=8*C));)x.put(Zr.PAD1,8);return Zr.createBytes(x,g)},Zr.createBytes=function(i,l){for(var d=0,g=0,x=0,S=new Array(l.length),B=new Array(l.length),C=0;C=0?ie.get(G):0}}for(var N=0,Z=0;Z=0;)l^=pt.G15<=0;)l^=pt.G18<>>=1;return l},getPatternPosition:function(i){return pt.PATTERN_POSITION_TABLE[i-1]},getMask:function(i,l,d){switch(i){case W1:return(l+d)%2==0;case Y1:return l%2==0;case $1:return d%3==0;case Q1:return(l+d)%3==0;case X1:return(Math.floor(l/2)+Math.floor(d/3))%2==0;case q1:return l*d%2+l*d%3==0;case J1:return(l*d%2+l*d%3)%2==0;case K1:return(l*d%3+(l+d)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}},getErrorCorrectPolynomial:function(i){for(var l=new va([1],0),d=0;d5&&(d+=3+S-5)}for(var V=0;V=256;)i-=255;return Pt.EXP_TABLE[i]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Fi=0;Fi<8;Fi++)Pt.EXP_TABLE[Fi]=1<>>7-i%8&1)==1},put:function(i,l){for(var d=0;d>>l-d-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(i){var l=Math.floor(this.length/8);this.buffer.length<=l&&this.buffer.push(0),i&&(this.buffer[l]|=128>>>this.length%8),this.length++}};var c0=0,hn=1,dn=2,Oi=3,Di=4,Bi=5,Jo=6,ed=7;function u0(i){if(!i.text||i.text.length<=0)return null;var l=new Zr((i=l0(l0({},{render:"canvas",width:"100%",height:"100%",typeNumber:-1,correctLevel:1,background:"#ffffff",foreground:"#000000",isSpace:!0}),i)).typeNumber,i.correctLevel);return l.addData(i.text),l.make(),l.$options=i,l}function Fn(i){for(var l=i.getModuleCount(),d=i.getPositionTable(),g=[[3,3],[3,l-4],[l-4,3]],x=new Array(l),S=0;S=0&&g[q][0]+J=0&&g[q][1]+ie`)):S===1?y.push(``)):S===1?x.push(``)):S===2&&y.push(``)):S===2&&x.push(``));else if(g[H][N]===dn)if(V===0)y.push(``));else if(g[G][N]===hn)if(W===0)x.push(``));else if(V===1)y.push(``));else if(W===1)x.push(``)),y.push(``)),x.push(``));else if(V===2){y.push(``));else if(W===2){x.push(``)),y.push(``)),x.push(``));for(var Z=0;Z`));for(var Z=0;Z`));for(var se=0;se`));for(var se=0;se`))}else V===3&&(y.push(``))}else W===3&&(x.push(``)),y.push(``)),x.push(``)));else g[H][N]===pn?V===0&&y.push(``)));else g[G][N]===dn?W===0&&x.push(``)):S===0?y.push(``)):S===0?x.push(``)):S===1?y.push(``)):S===1?x.push(``)):S===2&&y.push(``)):S===2&&x.push(``));return y}function u0(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);l&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(i,y).enumerable})),d.push.apply(d,g)}return d}function ga(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:0,size:100,opacity:100,posType:0}),l),Ko(i,l)},h0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:1,size:50,opacity:30,posType:1}),l),Ko(i,l)},d0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:2,size:80,opacity:100,posType:2}),l),Ko(i,l)};function ad(i,l){if(!i)return[];var d=i.getModuleCount(),g=Sn(i),y=[],S=[],B=[],C=l[0]/100,V=l[1]/100,G=l[2]/100,X=l[3],J=0;C<=0&&(C=70),V<=0&&(V=70);for(var ae=[],fe=[],H=0;H`));return x}function f0(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);l&&(g=g.filter(function(x){return Object.getOwnPropertyDescriptor(i,x).enumerable})),d.push.apply(d,g)}return d}function ga(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:0,size:100,opacity:100,posType:0}),l),Ko(i,l)},d0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:1,size:50,opacity:30,posType:1}),l),Ko(i,l)},p0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l=ga(ga({},{type:2,size:80,opacity:100,posType:2}),l),Ko(i,l)};function ad(i,l){if(!i)return[];var d=i.getModuleCount(),g=Fn(i),x=[],S=[],B=[],C=l[0]/100,W=l[1]/100,V=l[2]/100,q=l[3],J=0;C<=0&&(C=70),W<=0&&(W=70);for(var ie=[],fe=[],G=0;G`)):X===1&&(y.push(``)):q===1&&(x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``)));else if(g[se][Z]===pn)X===0&&y.push(``)));else if(g[se][Z]===dn)q===0&&x.push(``));else{if(ae[se][Z]&&fe[se][Z]&&se`));else{if(ie[se][Z]&&fe[se][Z]&&se`)),S.push(``)),ae[se][Z]=!1,ae[se+2][Z]=!1,ae[se][Z+2]=!1,ae[se+2][Z+2]=!1,ae[se+1][Z+1]=!1;for(var Ne=0;Ne<3;Ne++)for(var Be=0;Be<3;Be++)fe[se+Ne][Z+Be]=!1}}if(ae[se][Z]&&fe[se][Z]&&se`)),ie[se][Z]=!1,ie[se+2][Z]=!1,ie[se][Z+2]=!1,ie[se+2][Z+2]=!1,ie[se+1][Z+1]=!1;for(var Ue=0;Ue<3;Ue++)for(var Be=0;Be<3;Be++)fe[se+Ue][Z+Be]=!1}}if(ie[se][Z]&&fe[se][Z]&&se`)),S.push(``));for(var en=0;en<2;en++)for(var An=0;An<2;An++)ae[se+en][Z+An]=!1,fe[se+en][Z+An]=!1}}if(ae[se][Z]&&fe[se][Z]&&(Z===0||Z>0&&(!i.isDark(se,Z-1)||!fe[se][Z-1]))){for(var Tr=Z,Pr=Z,Vn=!0;Vn&&Pr2){for(var dr=Tr;dr`));for(var en=0;en<2;en++)for(var pn=0;pn<2;pn++)ie[se+en][Z+pn]=!1,fe[se+en][Z+pn]=!1}}if(ie[se][Z]&&fe[se][Z]&&(Z===0||Z>0&&(!i.isDark(se,Z-1)||!fe[se][Z-1]))){for(var br=Z,Pr=Z,Wn=!0;Wn&&Pr2){for(var dr=br;dr`))}}if(ae[se][Z]&&fe[se][Z]&&(se===0||se>0&&(!i.isDark(se-1,Z)||!fe[se-1][Z]))){for(var xa=se,kr=se,Lr=!0;Lr&&kr1){for(var Wn=xa;Wn`))}}if(ie[se][Z]&&fe[se][Z]&&(se===0||se>0&&(!i.isDark(se-1,Z)||!fe[se-1][Z]))){for(var xa=se,Er=se,Lr=!0;Lr&&Er1){for(var Yn=xa;Yn`))}}ae[se][Z]&&y.push(``))}}ie[se][Z]&&x.push(``))}for(var Fn=0;Fn`))}for(var Cn=0;Cn`)),g.push(``))}}return g}var A0=function(i){return Kr({listPoints:od})({qrcode:i})};function sd(i,l){if(!i)return[];var d=i.getModuleCount(),g=Sn(i),y=new Array(d),S=1.001,B=l[0],C=l[1],V=l[2],G=l[3],X=l[4],J=0,ae=[-Math.sqrt(3)/2,.5],fe=[Math.sqrt(3)/2,.5],H=[0,0],N="matrix("+String(ae[0])+", "+String(ae[1])+", "+String(fe[0])+", "+String(fe[1])+", "+String(H[0])+", "+String(H[1])+")";B<=0&&(B=1),C<=0&&(C=1);for(var Z=0;Z`))}}return g}var m0=function(i){return Kr({listPoints:od})({qrcode:i})};function sd(i,l){if(!i)return[];var d=i.getModuleCount(),g=Fn(i),x=new Array(d),S=1.001,B=l[0],C=l[1],W=l[2],V=l[3],q=l[4],J=0,ie=[-Math.sqrt(3)/2,.5],fe=[Math.sqrt(3)/2,.5],G=[0,0],N="matrix("+String(ie[0])+", "+String(ie[1])+", "+String(fe[0])+", "+String(fe[1])+", "+String(G[0])+", "+String(G[1])+")";B<=0&&(B=1),C<=0&&(C=1);for(var Z=0;Z`)),y.push(``)),x.push(``)),y.push(``)),x.push(``))):(y.push(``))):(x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``))));return y}function ld(i){if(!i)return"0 0 0 0";var l=i.getModuleCount();return i.$options.isSpace?"".concat(-l," ").concat(-l/2," ").concat(2*l," ").concat(2*l):"".concat(3-l," ").concat(-l/2," ").concat(2*l-6," ").concat(2*l-6)}var cd=fr().shape({height:kt().default(.5),height2:kt().default(.5),upColor:lt().default("#FF7F89"),leftColor:lt().default("#FFD7D9"),rightColor:lt().default("#FFEBF3")}),m0=function(i,l){try{l=cd.validateSync(l)}catch(g){return console.error(g),""}var d=["height","height2","upColor","leftColor","rightColor"].map(function(g){return l[g]});return Kr({listPoints:sd,getViewBox:ld})({qrcode:i,params:d})};function ud(i,l){if(!i)return[];var d=i.getModuleCount(),g=Sn(i),y=new Array(d),S=l[1],B=l[2]/100/3,C=l[3]/100,V=l[4],G=l[5],X=l[6],J=l[7],ae=0,fe=[3,-3],H=[3,-3];B<=0&&(B=1),y.push(``))));return x}function ld(i){if(!i)return"0 0 0 0";var l=i.getModuleCount();return i.$options.isSpace?"".concat(-l," ").concat(-l/2," ").concat(2*l," ").concat(2*l):"".concat(3-l," ").concat(-l/2," ").concat(2*l-6," ").concat(2*l-6)}var cd=fr().shape({height:St().default(.5),height2:St().default(.5),upColor:st().default("#FF7F89"),leftColor:st().default("#FFD7D9"),rightColor:st().default("#FFEBF3")}),v0=function(i,l){try{l=cd.validateSync(l)}catch(g){return console.error(g),""}var d=["height","height2","upColor","leftColor","rightColor"].map(function(g){return l[g]});return Kr({listPoints:sd,getViewBox:ld})({qrcode:i,params:d})};function ud(i,l){if(!i)return[];var d=i.getModuleCount(),g=Fn(i),x=new Array(d),S=l[1],B=l[2]/100/3,C=l[3]/100,W=l[4],V=l[5],q=l[6],J=l[7],ie=0,fe=[3,-3],G=[3,-3];B<=0&&(B=1),x.push(``));for(var N=0;N`));for(var N=0;N`)):S===1&&y.push(``)):S===1&&x.push(``)):S===0?y.push(``)):S===0?x.push(``)):S===1&&y.push(``)):S===1&&x.push(``));else if(g[N][Z]===dn){if(i.isDark(N,Z)){if(X===0)y.push(``));else if(g[N][Z]===hn){if(i.isDark(N,Z)){if(q===0)x.push(``));else if(X===1)y.push(``));else if(q===1)x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``));else if(X===2){y.push(``));else if(q===2){x.push(``)),y.push(``)),x.push(``)),y.push(``)),x.push(``));for(var se=0;se`));for(var se=0;se`));for(var Y=0;Y`));for(var Q=0;Q`))}}}else g[N][Z]===pn?i.isDark(N,Z)?X===0&&y.push(``))}}}else g[N][Z]===dn?i.isDark(N,Z)?q===0&&x.push(``)):X===0&&y.push(``)):q===0&&x.push(``)):i.isDark(N,Z)?S===0?y.push(``)):i.isDark(N,Z)?S===0?x.push(``)):S===1&&y.push(``)):S===1&&x.push(``)):S===0?y.push(``)):S===0?x.push(``)):S===1&&y.push(``)):S===1&&x.push(``));return y}var fd=fr().shape({backgroudImage:lt(),type:Ue().oneOf([0,1]).default(0),size:kt().default(100),opacity:kt().default(100),otherColorDark:lt().default("#000000"),otherColorLight:lt().default("#FFFFFF"),posType:Ue().oneOf([0,1,2]).default(0),posColor:lt().default("#000000")}),v0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{l=fd.validateSync(l)}catch(y){return console.error(y),""}var d=["backgroudImage","type","size","opacity","otherColorDark","otherColorLight","posType","posColor"].map(function(y){return l[y]}),g=Kr({listPoints:ud})({qrcode:i,params:d});return g},hd=function(i){var l=i.qrcode,d=i.params,g=d[5],y=l.$options,S=y.width,B=y.height;return new Promise(function(C,V){(function(G,X,J,ae){var fe=document.createElement("canvas"),H=fe.getContext("2d"),N=document.createElement("img"),Z=[];fe.style.imageRendering="pixelated",X*=3,N.src=G[0];var se=G[1]/100,Y=G[2]/100;return new Promise(function(K){N.onload=function(){fe.width=X,fe.height=X,H.imageSmoothingEnabled=!1,H.drawImage(N,0,0,X,X);for(var je=0;je(Qe/255+Y-.5)*(se+1)+.5&&(je%3!=1||Ne%3!=1)&&Z.push(``));return x}var fd=fr().shape({backgroudImage:st(),type:je().oneOf([0,1]).default(0),size:St().default(100),opacity:St().default(100),otherColorDark:st().default("#000000"),otherColorLight:st().default("#FFFFFF"),posType:je().oneOf([0,1,2]).default(0),posColor:st().default("#000000")}),g0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{l=fd.validateSync(l)}catch(x){return console.error(x),""}var d=["backgroudImage","type","size","opacity","otherColorDark","otherColorLight","posType","posColor"].map(function(x){return l[x]}),g=Kr({listPoints:ud})({qrcode:i,params:d});return g},hd=function(i){var l=i.qrcode,d=i.params,g=d[5],x=l.$options,S=x.width,B=x.height;return new Promise(function(C,W){(function(V,q,J,ie){var fe=document.createElement("canvas"),G=fe.getContext("2d"),N=document.createElement("img"),Z=[];fe.style.imageRendering="pixelated",q*=3,N.src=V[0];var se=V[1]/100,Q=V[2]/100;return new Promise(function(K){N.onload=function(){fe.width=q,fe.height=q,G.imageSmoothingEnabled=!1,G.drawImage(N,0,0,q,q);for(var ze=0;ze(Qe/255+Q-.5)*(se+1)+.5&&(ze%3!=1||Ue%3!=1)&&Z.push(``))}var bt,sr,en;K(Z)}})})(d,l.getModuleCount(),"#S-black").then(function(G){var X=``))}var bt,sr,en;K(Z)}})})(d,l.getModuleCount(),"#S-black").then(function(V){var q=` - `).concat(G.concat(function(J,ae){if(!J)return[];for(var fe=J.getModuleCount(),H=Sn(J),N=new Array(fe),Z=ae[3],se=ae[4],Y=ae[6],K=0,je=0;je`)):H[je][Ne]===Ii?J.isDark(je,Ne)?se===2?N.push(``)):G[ze][Ue]===Bi?J.isDark(ze,Ue)?se===2?N.push(``)):H[je][Ne]===dn?J.isDark(je,Ne)&&N.push(``)):G[ze][Ue]===hn?J.isDark(ze,Ue)&&N.push(``)):H[je][Ne]===pn?J.isDark(je,Ne)?N.push(``)):G[ze][Ue]===dn?J.isDark(ze,Ue)?N.push(``)):J.isDark(je,Ne)&&N.push(``)):J.isDark(ze,Ue)&&N.push(``))}return N}(l,d)).join(""),` - `);C(X)}).catch(function(G){C(G)})})},dd=fr().shape({backgroudImage:lt().default(),contrast:kt().default(0),exposure:kt().default(0),alignType:Ue().oneOf([0,1,2]).default(0),timingType:Ue().oneOf([0,1,2]).default(0),otherColor:lt().default("#000000"),posColor:lt().default("#000000")}),g0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{l=dd.validateSync(l)}catch(g){return console.error(g),""}var d=["backgroudImage","contrast","exposure","alignType","timingType","otherColor","posColor"].map(function(g){return l[g]});return hd({qrcode:i,params:d})};function pd(i,l){if(!i)return[];for(var d=i.getModuleCount(),g=Sn(i),y=[],S=[],B=[],C=0,V=l[0],G=l[1],X=[],J=[],ae=0;ae`);C(q)}).catch(function(V){C(V)})})},dd=fr().shape({backgroudImage:st().default(),contrast:St().default(0),exposure:St().default(0),alignType:je().oneOf([0,1,2]).default(0),timingType:je().oneOf([0,1,2]).default(0),otherColor:st().default("#000000"),posColor:st().default("#000000")}),x0=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{l=dd.validateSync(l)}catch(g){return console.error(g),""}var d=["backgroudImage","contrast","exposure","alignType","timingType","otherColor","posColor"].map(function(g){return l[g]});return hd({qrcode:i,params:d})};function pd(i,l){if(!i)return[];for(var d=i.getModuleCount(),g=Fn(i),x=[],S=[],B=[],C=0,W=l[0],V=l[1],q=[],J=[],ie=0;ie`)),y.push(``)),x.push(``));else if(!(i.isDark(N,H)&&g[N][H]===pn)){if(X[N][H]&&J[N][H]&&N`));else if(!(i.isDark(N,G)&&g[N][G]===dn)){if(q[N][G]&&J[N][G]&&N`)),i.isDark(N+1,H+1)&&S.push(``)),i.isDark(N+1,G+1)&&S.push(``)),X[N+1][H]=!1,X[N][H+1]=!1,X[N+2][H+1]=!1,X[N+1][H+2]=!1;for(var K=0;K<3;K++)for(var je=0;je<3;je++)J[N+K][H+je]=!1}}if(N`)),q[N+1][G]=!1,q[N][G+1]=!1,q[N+2][G+1]=!1,q[N+1][G+2]=!1;for(var K=0;K<3;K++)for(var ze=0;ze<3;ze++)J[N+K][G+ze]=!1}}if(N`));for(var Ne=0;Ne<2;Ne++)for(var Be=0;Be<2;Be++)X[N+Ne][H+Be]=!1,J[N+Ne][H+Be]=!1}X[N][H]&&H`));for(var Ue=0;Ue<2;Ue++)for(var Be=0;Be<2;Be++)q[N+Ue][G+Be]=!1,J[N+Ue][G+Be]=!1}q[N][G]&&G`)),X[N][H]=!1,X[N][H+1]=!1),X[N][H]&&N`)),q[N][G]=!1,q[N][G+1]=!1),q[N][G]&&N`)),X[N][H]=!1,X[N+1][H]=!1),X[N][H]&&(i.isDark(N,H)?y.push(``)),q[N][G]=!1,q[N+1][G]=!1),q[N][G]&&(i.isDark(N,G)?x.push(``)):g[N][H]===l0&&Ht(0,1)>.85&&B.push(``)):g[N][G]===c0&&Ht(0,1)>.85&&B.push(``)))}for(var Qe=0;Qe`)))}for(var Qe=0;Qe`));for(var H=0;H`));for(var G=0;G`));else if(C===1)y.push(``));else if(C===1)x.push(``)),y.push(``)),x.push(``));else if(C===2){y.push(``));else if(C===2){x.push(``)),y.push(``)),x.push(``));for(var Z=0;Z`));for(var Z=0;Z`));for(var se=0;se`));for(var se=0;se`))}else C===3&&(y.push(``))}else C===3&&(x.push(``)),y.push(``)),x.push(``)));else if(i.isDark(H,N)&&g[H][N]===pn)C===0&&y.push(``)));else if(i.isDark(G,N)&&g[G][N]===dn)C===0&&x.push(``));else{var Q=Math.sqrt(Math.pow((d-1)/2-G,2)+Math.pow((d-1)/2-N,2))/(d/2*Math.sqrt(2));if(B===0){var K=(1-Math.cos(Math.PI*Q))/6+.2,ze=V,Ue=Number(i.isDark(G,N));S===0?(K+=.2,x.push(``))):S===1&&x.push(``))}if(B===1){var Be=0,Qe=V,bt=Number(i.isDark(G,N));Q>.25&&Q<.4?(Be=.5,Qe=q,bt=1):(Be=1/4,S===0&&(Be=.15)),S===0?(Be=2*Be+.1,i.isDark(G,N)?x.push(``)):(Be-=.1,x.push(``)))):S===1&&(i.isDark(G,N)?x.push(``)):x.push(``)))}}return x}var md=fr().shape({type:je().oneOf([0,1]).default(1),size:je().oneOf([0,1]).default(0),opacity:St().default(100),posType:je().oneOf([0,1,2,3]).default(1),otherColor:st().default("#000000"),otherColor2:st().default("#000000"),posColor:st().default("#000000")}),vd=fr().shape({type:je().oneOf([0,1]).default(1),size:je().oneOf([0,1]).default(1),opacity:St().default(100),posType:je().oneOf([0,1,2,3]).default(1),otherColor:st().default("#ABB8C3"),otherColor2:st().default("#000000"),posColor:st().default("#000000")}),w0=function(i,l){try{l=md.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map(function(g){return l[g]});return Kr({listPoints:_0})({qrcode:i,params:d})},b0=function(i,l){try{l=vd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map(function(g){return l[g]});return Kr({listPoints:_0})({qrcode:i,params:d})};function E0(i,l){if(!i)return[];var d=i.getModuleCount(),g=Fn(i),x=new Array(d),S=l[0],B=l[1]/100,C=l[2]/100,W=l[3],V=0,q=l[4],J=l[5],ie=[3,-3],fe=[3,-3];B<=0&&(B=1);for(var G=[],N=[],Z=0;Z`));else{var Y=Math.sqrt(Math.pow((d-1)/2-H,2)+Math.pow((d-1)/2-N,2))/(d/2*Math.sqrt(2));if(B===0){var K=(1-Math.cos(Math.PI*Y))/6+.2,je=G,Ne=Number(i.isDark(H,N));S===0?(K+=.2,y.push(``))):S===1&&y.push(``))}if(B===1){var Be=0,Qe=G,bt=Number(i.isDark(H,N));Y>.25&&Y<.4?(Be=.5,Qe=X,bt=1):(Be=1/4,S===0&&(Be=.15)),S===0?(Be=2*Be+.1,i.isDark(H,N)?y.push(``)):(Be-=.1,y.push(``)))):S===1&&(i.isDark(H,N)?y.push(``)):y.push(``)))}}return y}var md=fr().shape({type:Ue().oneOf([0,1]).default(1),size:Ue().oneOf([0,1]).default(0),opacity:kt().default(100),posType:Ue().oneOf([0,1,2,3]).default(1),otherColor:lt().default("#000000"),otherColor2:lt().default("#000000"),posColor:lt().default("#000000")}),vd=fr().shape({type:Ue().oneOf([0,1]).default(1),size:Ue().oneOf([0,1]).default(1),opacity:kt().default(100),posType:Ue().oneOf([0,1,2,3]).default(1),otherColor:lt().default("#ABB8C3"),otherColor2:lt().default("#000000"),posColor:lt().default("#000000")}),_0=function(i,l){try{l=md.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map(function(g){return l[g]});return Kr({listPoints:y0})({qrcode:i,params:d})},w0=function(i,l){try{l=vd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map(function(g){return l[g]});return Kr({listPoints:y0})({qrcode:i,params:d})};function b0(i,l){if(!i)return[];var d=i.getModuleCount(),g=Sn(i),y=new Array(d),S=l[0],B=l[1]/100,C=l[2]/100,V=l[3],G=0,X=l[4],J=l[5],ae=[3,-3],fe=[3,-3];B<=0&&(B=1);for(var H=[],N=[],Z=0;Z`));else if(V===1)y.push(``));else if(W===1)x.push(``)),y.push(``)),x.push(``));else if(V===2){y.push(``));else if(W===2){x.push(``)),y.push(``)),x.push(``));for(var je=0;je`));for(var ze=0;ze`));for(var Ne=0;Ne`));for(var Ue=0;Ue`))}else V===3&&(y.push(``))}else W===3&&(x.push(``)),y.push(``)),x.push(``)));else if(g[Y][K]===pn)V===0&&y.push(``)));else if(g[Q][K]===dn)W===0&&x.push(``));else{if(S===0){if(Y===0||Y>0&&(!i.isDark(Y-1,K)||!N[Y-1][K])){for(var Be=0,Qe=!0;Qe&&Y+Be1){for(var bt=0;bt`));else{if(S===0){if(Q===0||Q>0&&(!i.isDark(Q-1,K)||!N[Q-1][K])){for(var Be=0,Qe=!0;Qe&&Q+Be1){for(var bt=0;bt`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===1){if(K===0||K>0&&(!i.isDark(Y,K-1)||!N[Y][K-1])){for(var sr=0,en=!0;en&&K+sr1){for(var An=0;An`))}if(S===1){if(K===0||K>0&&(!i.isDark(Q,K-1)||!N[Q][K-1])){for(var sr=0,en=!0;en&&K+sr1){for(var pn=0;pn`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===2){if(K===0||K>0&&(!i.isDark(Y,K-1)||!N[Y][K-1])){for(var Tr=0,Pr=!0;Pr&&K+Tr1){for(var Vn=0;Vn`))}if(S===2){if(K===0||K>0&&(!i.isDark(Q,K-1)||!N[Q][K-1])){for(var br=0,Pr=!0;Pr&&K+br1){for(var Wn=0;Wn`))}}if(Y===0||Y>0&&(!i.isDark(Y-1,K)||!N[Y-1][K])){for(var dr=0,xa=!0;xa&&Y+dr1){for(var kr=0;kr`))}}if(Q===0||Q>0&&(!i.isDark(Q-1,K)||!N[Q-1][K])){for(var dr=0,xa=!0;xa&&Q+dr1){for(var Er=0;Er`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===3){if(Y>K^Y+K0&&(!i.isDark(Y,K-1)||!N[Y][K-1])){for(var Lr=0,Wn=!0;Wn&&K+Lr1){for(var Fn=0;Fn`))}if(S===3){if(Q>K^Q+K0&&(!i.isDark(Q,K-1)||!N[Q][K-1])){for(var Lr=0,Yn=!0;Yn&&K+Lr1){for(var Cn=0;Cn`))}}}else if(Y===0||Y>0&&(!i.isDark(Y-1,K)||!N[Y-1][K])){for(var Sr=0,k0=!0;k0&&Y+Sr1){for(var Ri=0;Ri`))}}}else if(Q===0||Q>0&&(!i.isDark(Q-1,K)||!N[Q-1][K])){for(var Tr=0,S0=!0;S0&&Q+Tr1){for(var Ii=0;Ii`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===4){if(K===0||Y===0||K>0&&Y>0&&(!i.isDark(Y-1,K-1)||!N[Y-1][K-1])){for(var Nr=0,S0=!0;S0&&K+Nr1){for(var ya=0;ya`))}if(S===4){if(K===0||Q===0||K>0&&Q>0&&(!i.isDark(Q-1,K-1)||!N[Q-1][K-1])){for(var Nr=0,F0=!0;F0&&K+Nr1){for(var ya=0;ya`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===5){if(Y===0||K===d-1||Y>0&&K=0;)i.isDark(Y+Ur,K-Ur)&&H[Y+Ur][K-Ur]?Ur++:F0=!1;if(Ur-0>1){for(var _a=0;_a`))}if(S===5){if(Q===0||K===d-1||Q>0&&K=0;)i.isDark(Q+Ur,K-Ur)&&G[Q+Ur][K-Ur]?Ur++:C0=!1;if(Ur-0>1){for(var _a=0;_a`))}}H[Y][K]&&y.push(``))}}G[Q][K]&&x.push(``))}if(S===6){if(Y===0||K===d-1||Y>0&&K=0;)i.isDark(Y+jr,K-jr)&&N[Y+jr][K-jr]?jr++:C0=!1;if(jr-0>1){for(var Mi=0;Mi`))}if(S===6){if(Q===0||K===d-1||Q>0&&K=0;)i.isDark(Q+jr,K-jr)&&N[Q+jr][K-jr]?jr++:O0=!1;if(jr-0>1){for(var Ri=0;Ri`))}}if(K===0||Y===0||K>0&&Y>0&&(!i.isDark(Y-1,K-1)||!H[Y-1][K-1])){for(var zr=0,O0=!0;O0&&K+zr1){for(var Pi=0;Pi`))}}if(K===0||Q===0||K>0&&Q>0&&(!i.isDark(Q-1,K-1)||!G[Q-1][K-1])){for(var zr=0,D0=!0;D0&&K+zr1){for(var Mi=0;Mi`))}}y.push(``))}}x.push(``))}}return y}var gd=fr().shape({type:Ue().oneOf([0,1,2,3,4,5,6]).default(2),size:kt().default(50),opacity:kt().default(100),posType:Ue().oneOf([0,1,2,3]).default(3),otherColor:lt().default("#000000"),posColor:lt().default("#000000")}),xd=fr().shape({type:Ue().oneOf([0,1,2,3,4,5,6]).default(6),size:kt().default(50),opacity:kt().default(100),posType:Ue().oneOf([0,1,2,3]).default(0),otherColor:lt().default("#000000"),posColor:lt().default("#000000")}),E0=function(i,l){try{l=gd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","posColor"].map(function(g){return l[g]});return Kr({listPoints:b0})({qrcode:i,params:d})},T0=function(i,l){try{l=xd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","posColor"].map(function(g){return l[g]});return Kr({listPoints:b0})({qrcode:i,params:d})};n.default={rendererRect:f0,rendererRound:h0,rendererRandRound:d0,rendererDSJ:p0,rendererResImage:g0,rendererImage:v0,renderer25D:m0,rendererRandRect:A0,rendererCircle:x0,rendererFuncA:_0,rendererFuncB:w0,rendererLine:E0,rendererLine2:T0,encodeData:c0}}]).default})})(On,On.exports);const{encodeAllIgnoreSlashes:_m}=ws();let H0=po(),{storageKey:G0}=Mc(),wm=ft(()=>Xi.value.length>0?Xi.value[0]:null);const Xi=Lt([]);let V0=Lt(!1);function eu(){const e=()=>{V0.value=!0};let r=a=>{rp(a).then(()=>{Wi.success("\u590D\u5236\u6210\u529F")})};const t=a=>{let o=document.createElement("xml");o.innerHTML=a;let s=document.createElement("rect");return s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.style.fill="#ffffff",o.children[0].prepend(s),"data:image/svg+xml;utf8,"+encodeURIComponent(o.innerHTML)};return{visible:V0,openLinkDialog:e,copyText:r,data:wm,datas:Xi,loadRowLinkData:(a,o)=>{let s=Xn.removeDuplicateSeparator("/"+a.path+"/"+a.name);Yd({storageKey:G0.value,path:s}).then(c=>{let h={row:null,currentImg:"",img:{a1:"",a2:"",sp2:"",b1:"",c1:"",sp3:"",aa1:"",aa2:"",ab1:"",ab2:""},link:""};h.row=JSON.parse(JSON.stringify(a)),h.row.size=Xn.fileSizeFormat(a.size),h.link=c.data;let f=_m(a.path+"/"+a.name);s=Xn.removeDuplicateSeparator(H0.globalConfig.domain+"/"+H0.globalConfig.directLinkPrefix+"/"+G0.value+"/"+f),h.directlink=s;const u=On.exports.encodeData({text:o.shortLink?h.link:h.directlink,correctLevel:2,isSpace:!1});h.img.a1=t(On.exports.rendererRect(u)),h.img.a2=t(On.exports.rendererRound(u)),h.img.sp1=t(On.exports.rendererDSJ(u)),h.img.aa1=t(On.exports.rendererLine(u)),h.img.ab2=t(On.exports.rendererFuncB(u)),h.currentImg=h.img.a1,Xi.value.push(h)})}}}var tu={exports:{}};(function(e,r){(function(t,n){n()})(Va,function(){function t(f,u){return typeof u=="undefined"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function n(f,u,p){var A=new XMLHttpRequest;A.open("GET",f),A.responseType="blob",A.onload=function(){h(A.response,u,p)},A.onerror=function(){console.error("could not download file")},A.send()}function a(f){var u=new XMLHttpRequest;u.open("HEAD",f,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function o(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(u)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Va=="object"&&Va.global===Va?Va:void 0,c=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(f,u,p){var A=s.URL||s.webkitURL,m=document.createElement("a");u=u||f.name||"download",m.download=u,m.rel="noopener",typeof f=="string"?(m.href=f,m.origin===location.origin?o(m):a(m.href)?n(f,u,p):o(m,m.target="_blank")):(m.href=A.createObjectURL(f),setTimeout(function(){A.revokeObjectURL(m.href)},4e4),setTimeout(function(){o(m)},0))}:"msSaveOrOpenBlob"in navigator?function(f,u,p){if(u=u||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(t(f,p),u);else if(a(f))n(f,u,p);else{var A=document.createElement("a");A.href=f,A.target="_blank",setTimeout(function(){o(A)})}}:function(f,u,p,A){if(A=A||open("","_blank"),A&&(A.document.title=A.document.body.innerText="downloading..."),typeof f=="string")return n(f,u,p);var m=f.type==="application/octet-stream",x=/constructor/i.test(s.HTMLElement)||s.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||m&&x||c)&&typeof FileReader!="undefined"){var _=new FileReader;_.onloadend=function(){var b=_.result;b=v?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),A?A.location.href=b:location=b,A=null},_.readAsDataURL(f)}else{var I=s.URL||s.webkitURL,T=I.createObjectURL(f);A?A.location=T:location.href=T,A=null,setTimeout(function(){I.revokeObjectURL(T)},4e4)}});s.saveAs=h.saveAs=h,e.exports=h})})(tu);var bm=tu.exports;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var qi={};qi.version="0.18.5";var ru=1252,Em=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],nu=function(e){Em.indexOf(e)!=-1&&(ru=e)};function Tm(){nu(1252)}var ei=function(e){nu(e)};function km(){ei(1200),Tm()}function Sm(e){for(var r=[],t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var Li=function(r){return String.fromCharCode(r)},W0=function(r){return String.fromCharCode(r)},Yn,Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ti(e){for(var r="",t=0,n=0,a=0,o=0,s=0,c=0,h=0,f=0;f>2,n=e.charCodeAt(f++),s=(t&3)<<4|n>>4,a=e.charCodeAt(f++),c=(n&15)<<2|a>>6,h=a&63,isNaN(n)?c=h=64:isNaN(a)&&(h=64),r+=Bn.charAt(o)+Bn.charAt(s)+Bn.charAt(c)+Bn.charAt(h);return r}function yn(e){var r="",t=0,n=0,a=0,o=0,s=0,c=0,h=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f>4,r+=String.fromCharCode(t),c=Bn.indexOf(e.charAt(f++)),n=(s&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(n)),h=Bn.indexOf(e.charAt(f++)),a=(c&3)<<6|h,h!==64&&(r+=String.fromCharCode(a));return r}var Ke=function(){return typeof Buffer!="undefined"&&typeof process!="undefined"&&typeof process.versions!="undefined"&&!!process.versions.node}(),En=function(){if(typeof Buffer!="undefined"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function Kn(e){return Ke?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function Y0(e){return Ke?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var Wr=function(r){return Ke?En(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function mo(e){if(typeof ArrayBuffer=="undefined")return Wr(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function li(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t>6&31,a[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var c=e.charCodeAt(++o)&1023;a[t++]=240|s>>8&7,a[t++]=128|s>>2&63,a[t++]=128|c>>6&15|(s&3)<<4,a[t++]=128|c&63}else a[t++]=224|s>>12&15,a[t++]=128|s>>6&63,a[t++]=128|s&63;t>n&&(r.push(a.slice(0,t)),t=0,a=Kn(65535),n=65530)}return r.push(a.slice(0,t)),Wt(r)}var $a=/\u0000/g,Ni=/[\u0001-\u0006]/g;function Oa(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function Yr(e,r){var t=""+e;return t.length>=r?t:gt("0",r-t.length)+t}function Es(e,r){var t=""+e;return t.length>=r?t:gt(" ",r-t.length)+t}function Ji(e,r){var t=""+e;return t.length>=r?t:t+gt(" ",r-t.length)}function Om(e,r){var t=""+Math.round(e);return t.length>=r?t:gt("0",r-t.length)+t}function Dm(e,r){var t=""+e;return t.length>=r?t:gt("0",r-t.length)+t}var $0=Math.pow(2,32);function ba(e,r){if(e>$0||e<-$0)return Om(e,r);var t=Math.round(e);return Dm(t,r)}function Ki(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var Q0=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Zo=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Bm(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',e}var xt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},X0={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Im={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Zi(e,r,t){for(var n=e<0?-1:1,a=e*n,o=0,s=1,c=0,h=1,f=0,u=0,p=Math.floor(a);fr&&(f>r?(u=h,c=o):(u=f,c=s)),!t)return[0,n*c,u];var A=Math.floor(n*c/u);return[A,n*c-A*u,u]}function Ui(e,r,t){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),o=0,s=[],c={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),r&&r.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++a==86400&&(c.T=a=0,++n,++c.D)),n===60)s=t?[1317,10,29]:[1900,2,29],o=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var h=new Date(1900,0,1);h.setDate(h.getDate()+n-1),s=[h.getFullYear(),h.getMonth()+1,h.getDate()],o=h.getDay(),n<60&&(o=(o+6)%7),t&&(o=jm(h,s))}return c.y=s[0],c.m=s[1],c.d=s[2],c.S=a%60,a=Math.floor(a/60),c.M=a%60,a=Math.floor(a/60),c.H=a,c.q=o,c}var au=new Date(1899,11,31,0,0,0),Rm=au.getTime(),Mm=new Date(1900,2,1,0,0,0);function iu(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=Mm&&(t+=24*60*60*1e3),(t-(Rm+(e.getTimezoneOffset()-au.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Ts(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Pm(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Lm(e){var r=e<0?12:11,t=Ts(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Nm(e){var r=Ts(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Um(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Lm(e):r===10?t=e.toFixed(10).substr(0,12):t=Nm(e),Ts(Pm(t.toUpperCase()))}function fs(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Um(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Rn(14,iu(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function jm(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function zm(e,r,t,n){var a="",o=0,s=0,c=t.y,h,f=0;switch(e){case 98:c=t.y+543;case 121:switch(r.length){case 1:case 2:h=c%100,f=2;break;default:h=c%1e4,f=4;break}break;case 109:switch(r.length){case 1:case 2:h=t.m,f=r.length;break;case 3:return Zo[t.m-1][1];case 5:return Zo[t.m-1][0];default:return Zo[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:h=t.d,f=r.length;break;case 3:return Q0[t.q][0];default:return Q0[t.q][1]}break;case 104:switch(r.length){case 1:case 2:h=1+(t.H+11)%12,f=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:h=t.H,f=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:h=t.M,f=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?Yr(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,o=Math.round(s*(t.S+t.u)),o>=60*s&&(o=0),r==="s"?o===0?"0":""+o/s:(a=Yr(o,2+n),r==="ss"?a.substr(0,2):"."+a.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":h=t.D*24+t.H;break;case"[m]":case"[mm]":h=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":h=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}f=r.length===3?1:2;break;case 101:h=c,f=1;break}var u=f>0?Yr(h,f):"";return u}function In(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var ou=/%/g;function Hm(e,r,t){var n=r.replace(ou,""),a=r.length-n.length;return vn(e,n,t*Math.pow(10,2*a))+gt("%",a)}function Gm(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return vn(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function su(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+su(e,-r);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),t=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+o):t+="E+"+(s-o);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,a)+"."+t.substr(2+a),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,h,f,u){return h+f+u.substr(0,(a+o)%a)+"."+u.substr(o)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var lu=/# (\?+)( ?)\/( ?)(\d+)/;function Vm(e,r,t){var n=parseInt(e[4],10),a=Math.round(r*n),o=Math.floor(a/n),s=a-o*n,c=n;return t+(o===0?"":""+o)+" "+(s===0?gt(" ",e[1].length+1+e[4].length):Es(s,e[1].length)+e[2]+"/"+e[3]+Yr(c,e[4].length))}function Wm(e,r,t){return t+(r===0?"":""+r)+gt(" ",e[1].length+2+e[4].length)}var cu=/^#*0*\.([0#]+)/,uu=/\).*[0#]/,fu=/\(###\) ###\\?-####/;function tr(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function q0(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function J0(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function Ym(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function $m(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Fr(e,r,t){if(e.charCodeAt(0)===40&&!r.match(uu)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Fr("n",n,t):"("+Fr("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Gm(e,r,t);if(r.indexOf("%")!==-1)return Hm(e,r,t);if(r.indexOf("E")!==-1)return su(r,t);if(r.charCodeAt(0)===36)return"$"+Fr(e,r.substr(r.charAt(1)==" "?2:1),t);var a,o,s,c,h=Math.abs(t),f=t<0?"-":"";if(r.match(/^00+$/))return f+ba(h,r.length);if(r.match(/^[#?]+$/))return a=ba(t,0),a==="0"&&(a=""),a.length>r.length?a:tr(r.substr(0,r.length-a.length))+a;if(o=r.match(lu))return Vm(o,h,f);if(r.match(/^#+0+$/))return f+ba(h,r.length-r.indexOf("0"));if(o=r.match(cu))return a=q0(t,o[1].length).replace(/^([^\.]+)$/,"$1."+tr(o[1])).replace(/\.$/,"."+tr(o[1])).replace(/\.(\d*)$/,function(x,v){return"."+v+gt("0",tr(o[1]).length-v.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return f+q0(h,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return f+In(ba(h,0));if(o=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Fr(e,r,-t):In(""+(Math.floor(t)+Ym(t,o[1].length)))+"."+Yr(J0(t,o[1].length),o[1].length);if(o=r.match(/^#,#*,#0/))return Fr(e,r.replace(/^#,#*,/,""),t);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Oa(Fr(e,r.replace(/[\\-]/g,""),t)),s=0,Oa(Oa(r.replace(/\\/g,"")).replace(/[0#]/g,function(x){return s=0?nn("n",n,t):"("+nn("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Qm(e,r,t);if(r.indexOf("%")!==-1)return Xm(e,r,t);if(r.indexOf("E")!==-1)return hu(r,t);if(r.charCodeAt(0)===36)return"$"+nn(e,r.substr(r.charAt(1)==" "?2:1),t);var a,o,s,c,h=Math.abs(t),f=t<0?"-":"";if(r.match(/^00+$/))return f+Yr(h,r.length);if(r.match(/^[#?]+$/))return a=""+t,t===0&&(a=""),a.length>r.length?a:tr(r.substr(0,r.length-a.length))+a;if(o=r.match(lu))return Wm(o,h,f);if(r.match(/^#+0+$/))return f+Yr(h,r.length-r.indexOf("0"));if(o=r.match(cu))return a=(""+t).replace(/^([^\.]+)$/,"$1."+tr(o[1])).replace(/\.$/,"."+tr(o[1])),a=a.replace(/\.(\d*)$/,function(x,v){return"."+v+gt("0",tr(o[1]).length-v.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return f+(""+h).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return f+In(""+h);if(o=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+nn(e,r,-t):In(""+t)+"."+gt("0",o[1].length);if(o=r.match(/^#,#*,#0/))return nn(e,r.replace(/^#,#*,/,""),t);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Oa(nn(e,r.replace(/[\\-]/g,""),t)),s=0,Oa(Oa(r.replace(/\\/g,"")).replace(/[0#]/g,function(x){return s-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r-1;);break;case" ":++r;break;default:++r;break}return!1}function Jm(e,r,t,n){for(var a=[],o="",s=0,c="",h="t",f,u,p,A="H";s=12?"P":"A"),v.t="T",A="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(f!=null&&(v.v=f.H>=12?"PM":"AM"),v.t="T",s+=5,A="h"):e.substr(s,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(f!=null&&(v.v=f.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),v.t="T",s+=5,A="h"):(v.t="t",++s),f==null&&v.t==="T")return"";a[a.length]=v,h=c;break;case"[":for(o=c;e.charAt(s++)!=="]"&&s-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",pu(e)||(a[a.length]={t:"t",v:o}));break;case".":if(f!=null){for(o=c;++s-1;)o+=c;a[a.length]={t:"n",v:o};break;case"?":for(o=c;e.charAt(++s)===c;)o+=c;a[a.length]={t:c,v:o},h=c;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":c,v:c},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=c;s-1;)o+=e.charAt(s);a[a.length]={t:"D",v:o};break;case" ":a[a.length]={t:c,v:c},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++s;break}var _=0,I=0,T;for(s=a.length-1,h="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=A,h="h",_<1&&(_=1);break;case"s":(T=a[s].v.match(/\.0+$/))&&(I=Math.max(I,T[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":h=a[s].t;break;case"m":h==="s"&&(a[s].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&a[s].v.match(/[Hh]/)&&(_=1),_<2&&a[s].v.match(/[Mm]/)&&(_=2),_<3&&a[s].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var b="",P;for(s=0;s0){b.charCodeAt(0)==40?(O=r<0&&b.charCodeAt(0)===45?-r:r,M=vn("n",b,O)):(O=r<0&&n>1?-r:r,M=vn("n",b,O),O<0&&a[0]&&a[0].t=="t"&&(M=M.substr(1),a[0].v="-"+a[0].v)),P=M.length-1;var q=a.length;for(s=0;s-1){q=s;break}var U=a.length;if(q===a.length&&M.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(P>=a[s].v.length-1?(P-=a[s].v.length,a[s].v=M.substr(P+1,a[s].v.length)):P<0?a[s].v="":(a[s].v=M.substr(0,P+1),P=-1),a[s].t="t",U=s);P>=0&&U=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(u=a[s].v.indexOf(".")>-1&&s===q?a[s].v.indexOf(".")-1:a[s].v.length-1,j=a[s].v.substr(u+1);u>=0;--u)P>=0&&(a[s].v.charAt(u)==="0"||a[s].v.charAt(u)==="#")&&(j=M.charAt(P--)+j);a[s].v=j,a[s].t="t",U=s}for(P>=0&&U-1&&s===q?a[s].v.indexOf(".")+1:0,j=a[s].v.substr(0,u);u-1&&(O=n>1&&r<0&&s>0&&a[s-1].v==="-"?-r:r,a[s].v=vn(a[s].t,a[s].v,O),a[s].t="t");var le="";for(s=0;s!==a.length;++s)a[s]!=null&&(le+=a[s].v);return le}var K0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Z0(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function Km(e,r){var t=qm(e),n=t.length,a=t[n-1].indexOf("@");if(n<4&&a>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||a>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=a>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=a>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=a>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var o=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,o];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(K0),c=t[1].match(K0);return Z0(r,s)?[n,t[0]]:Z0(r,c)?[n,t[1]]:[n,t[s!=null&&c!=null?2:1]]}return[n,o]}function Rn(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:xt)[e],n==null&&(n=t.table&&t.table[X0[e]]||xt[X0[e]]),n==null&&(n=Im[e]||"General");break}if(Ki(n,0))return fs(r,t);r instanceof Date&&(r=iu(r,t.date1904));var a=Km(n,r);if(Ki(a[1]))return fs(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return Jm(a[1],r,t,a[0])}function Au(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(xt[t]==null){r<0&&(r=t);continue}if(xt[t]==e){r=t;break}}r<0&&(r=391)}return xt[r]=e,r}function vo(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Au(e[r],r)}function go(){xt=Bm()}var mu=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Zm(e){var r=typeof e=="number"?xt[e]:e;return r=r.replace(mu,"(\\d+)"),new RegExp("^"+r+"$")}function e2(e,r,t){var n=-1,a=-1,o=-1,s=-1,c=-1,h=-1;(r.match(mu)||[]).forEach(function(p,A){var m=parseInt(t[A+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=m;break;case"d":o=m;break;case"h":s=m;break;case"s":h=m;break;case"m":s>=0?c=m:a=m;break}}),h>=0&&c==-1&&a>=0&&(c=a,a=-1);var f=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2);return s==-1&&c==-1&&h==-1?f:n==-1&&a==-1&&o==-1?u:f+"T"+u}var t2=function(){var e={};e.version="1.2.0";function r(){for(var M=0,q=new Array(256),U=0;U!=256;++U)M=U,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,q[U]=M;return typeof Int32Array!="undefined"?new Int32Array(q):q}var t=r();function n(M){var q=0,U=0,le=0,he=typeof Int32Array!="undefined"?new Int32Array(4096):new Array(4096);for(le=0;le!=256;++le)he[le]=M[le];for(le=0;le!=256;++le)for(U=M[le],q=256+le;q<4096;q+=256)U=he[q]=U>>>8^M[U&255];var Ae=[];for(le=1;le!=16;++le)Ae[le-1]=typeof Int32Array!="undefined"?he.subarray(le*256,le*256+256):he.slice(le*256,le*256+256);return Ae}var a=n(t),o=a[0],s=a[1],c=a[2],h=a[3],f=a[4],u=a[5],p=a[6],A=a[7],m=a[8],x=a[9],v=a[10],_=a[11],I=a[12],T=a[13],b=a[14];function P(M,q){for(var U=q^-1,le=0,he=M.length;le>>8^t[(U^M.charCodeAt(le++))&255];return~U}function j(M,q){for(var U=q^-1,le=M.length-15,he=0;he>8&255]^I[M[he++]^U>>16&255]^_[M[he++]^U>>>24]^v[M[he++]]^x[M[he++]]^m[M[he++]]^A[M[he++]]^p[M[he++]]^u[M[he++]]^f[M[he++]]^h[M[he++]]^c[M[he++]]^s[M[he++]]^o[M[he++]]^t[M[he++]];for(le+=15;he>>8^t[(U^M[he++])&255];return~U}function O(M,q){for(var U=q^-1,le=0,he=M.length,Ae=0,Ee=0;le>>8^t[(U^Ae)&255]:Ae<2048?(U=U>>>8^t[(U^(192|Ae>>6&31))&255],U=U>>>8^t[(U^(128|Ae&63))&255]):Ae>=55296&&Ae<57344?(Ae=(Ae&1023)+64,Ee=M.charCodeAt(le++)&1023,U=U>>>8^t[(U^(240|Ae>>8&7))&255],U=U>>>8^t[(U^(128|Ae>>2&63))&255],U=U>>>8^t[(U^(128|Ee>>6&15|(Ae&3)<<4))&255],U=U>>>8^t[(U^(128|Ee&63))&255]):(U=U>>>8^t[(U^(224|Ae>>12&15))&255],U=U>>>8^t[(U^(128|Ae>>6&63))&255],U=U>>>8^t[(U^(128|Ae&63))&255]);return~U}return e.table=t,e.bstr=P,e.buf=j,e.str=O,e}(),ot=function(){var r={};r.version="1.2.1";function t(w,D){for(var k=w.split("/"),F=D.split("/"),R=0,L=0,re=Math.min(k.length,F.length);R>>1,w.write_shift(2,k);var F=D.getFullYear()-1980;F=F<<4|D.getMonth()+1,F=F<<5|D.getDate(),w.write_shift(2,F)}function s(w){var D=w.read_shift(2)&65535,k=w.read_shift(2)&65535,F=new Date,R=k&31;k>>>=5;var L=k&15;k>>>=4,F.setMilliseconds(0),F.setFullYear(k+1980),F.setMonth(L-1),F.setDate(R);var re=D&31;D>>>=5;var ue=D&63;return D>>>=6,F.setHours(D),F.setMinutes(ue),F.setSeconds(re<<1),F}function c(w){mr(w,0);for(var D={},k=0;w.l<=w.length-4;){var F=w.read_shift(2),R=w.read_shift(2),L=w.l+R,re={};switch(F){case 21589:k=w.read_shift(1),k&1&&(re.mtime=w.read_shift(4)),R>5&&(k&2&&(re.atime=w.read_shift(4)),k&4&&(re.ctime=w.read_shift(4))),re.mtime&&(re.mt=new Date(re.mtime*1e3));break}w.l=L,D[F]=re}return D}var h;function f(){return h||(h={})}function u(w,D){if(w[0]==80&&w[1]==75)return vi(w,D);if((w[0]|32)==109&&(w[1]|32)==105)return wi(w,D);if(w.length<512)throw new Error("CFB file size "+w.length+" < 512");var k=3,F=512,R=0,L=0,re=0,ue=0,ee=0,te=[],ne=w.slice(0,512);mr(ne,0);var ve=p(ne);switch(k=ve[0],k){case 3:F=512;break;case 4:F=4096;break;case 0:if(ve[1]==0)return vi(w,D);default:throw new Error("Major Version: Expected 3 or 4 saw "+k)}F!==512&&(ne=w.slice(0,F),mr(ne,28));var we=w.slice(0,F);A(ne,k);var Fe=ne.read_shift(4,"i");if(k===3&&Fe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Fe);ne.l+=4,re=ne.read_shift(4,"i"),ne.l+=4,ne.chk("00100000","Mini Stream Cutoff Size: "),ue=ne.read_shift(4,"i"),R=ne.read_shift(4,"i"),ee=ne.read_shift(4,"i"),L=ne.read_shift(4,"i");for(var ge=-1,ke=0;ke<109&&(ge=ne.read_shift(4,"i"),!(ge<0));++ke)te[ke]=ge;var Pe=m(w,F);_(ee,L,Pe,F,te);var at=T(Pe,re,te,F);at[re].name="!Directory",R>0&&ue!==Ee&&(at[ue].name="!MiniFAT"),at[te[0]].name="!FAT",at.fat_addrs=te,at.ssz=F;var Re={},Rt=[],fn=[],br=[];b(re,at,Pe,Rt,R,Re,fn,ue),x(fn,br,Rt),Rt.shift();var Tn={FileIndex:fn,FullPaths:br};return D&&D.raw&&(Tn.raw={header:we,sectors:Pe}),Tn}function p(w){if(w[w.l]==80&&w[w.l+1]==75)return[0,0];w.chk(Ve,"Header Signature: "),w.l+=16;var D=w.read_shift(2,"u");return[w.read_shift(2,"u"),D]}function A(w,D){var k=9;switch(w.l+=2,k=w.read_shift(2)){case 9:if(D!=3)throw new Error("Sector Shift: Expected 9 saw "+k);break;case 12:if(D!=4)throw new Error("Sector Shift: Expected 12 saw "+k);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+k)}w.chk("0600","Mini Sector Shift: "),w.chk("000000000000","Reserved: ")}function m(w,D){for(var k=Math.ceil(w.length/D)-1,F=[],R=1;R0&&re>=0;)L.push(D.slice(re*Ae,re*Ae+Ae)),R-=Ae,re=$n(k,re*4);return L.length===0?ce(0):Wt(L).slice(0,w.size)}function _(w,D,k,F,R){var L=Ee;if(w===Ee){if(D!==0)throw new Error("DIFAT chain shorter than expected")}else if(w!==-1){var re=k[w],ue=(F>>>2)-1;if(!re)return;for(var ee=0;ee=0;){R[ee]=!0,L[L.length]=ee,re.push(w[ee]);var ne=k[Math.floor(ee*4/F)];if(te=ee*4&ue,F<4+te)throw new Error("FAT boundary crossed: "+ee+" 4 "+F);if(!w[ne])break;ee=$n(w[ne],te)}return{nodes:L,data:sc([re])}}function T(w,D,k,F){var R=w.length,L=[],re=[],ue=[],ee=[],te=F-1,ne=0,ve=0,we=0,Fe=0;for(ne=0;ne=R&&(we-=R),!re[we]){ee=[];var ge=[];for(ve=we;ve>=0;){ge[ve]=!0,re[ve]=!0,ue[ue.length]=ve,ee.push(w[ve]);var ke=k[Math.floor(ve*4/F)];if(Fe=ve*4&te,F<4+Fe)throw new Error("FAT boundary crossed: "+ve+" 4 "+F);if(!w[ke]||(ve=$n(w[ke],Fe),ge[ve]))break}L[we]={nodes:ue,data:sc([ee])}}return L}function b(w,D,k,F,R,L,re,ue){for(var ee=0,te=F.length?2:0,ne=D[w].data,ve=0,we=0,Fe;ve0&&ee!==Ee&&(D[ee].name="!StreamData")):ke.size>=4096?(ke.storage="fat",D[ke.start]===void 0&&(D[ke.start]=I(k,ke.start,D.fat_addrs,D.ssz)),D[ke.start].name=ke.name,ke.content=D[ke.start].data.slice(0,ke.size)):(ke.storage="minifat",ke.size<0?ke.size=0:ee!==Ee&&ke.start!==Ee&&D[ee]&&(ke.content=v(ke,D[ee].data,(D[ue]||{}).data))),ke.content&&mr(ke.content,0),L[Fe]=ke,re.push(ke)}}function P(w,D){return new Date((gr(w,D+4)/1e7*Math.pow(2,32)+gr(w,D)/1e7-11644473600)*1e3)}function j(w,D){return f(),u(h.readFileSync(w),D)}function O(w,D){var k=D&&D.type;switch(k||Ke&&Buffer.isBuffer(w)&&(k="buffer"),k||"base64"){case"file":return j(w,D);case"base64":return u(Wr(yn(w)),D);case"binary":return u(Wr(w),D)}return u(w,D)}function M(w,D){var k=D||{},F=k.root||"Root Entry";if(w.FullPaths||(w.FullPaths=[]),w.FileIndex||(w.FileIndex=[]),w.FullPaths.length!==w.FileIndex.length)throw new Error("inconsistent CFB structure");w.FullPaths.length===0&&(w.FullPaths[0]=F+"/",w.FileIndex[0]={name:F,type:5}),k.CLSID&&(w.FileIndex[0].clsid=k.CLSID),q(w)}function q(w){var D="Sh33tJ5";if(!ot.find(w,"/"+D)){var k=ce(4);k[0]=55,k[1]=k[3]=50,k[2]=54,w.FileIndex.push({name:D,type:2,content:k,size:4,L:69,R:69,C:69}),w.FullPaths.push(w.FullPaths[0]+D),U(w)}}function U(w,D){M(w);for(var k=!1,F=!1,R=w.FullPaths.length-1;R>=0;--R){var L=w.FileIndex[R];switch(L.type){case 0:F?k=!0:(w.FileIndex.pop(),w.FullPaths.pop());break;case 1:case 2:case 5:F=!0,isNaN(L.R*L.L*L.C)&&(k=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(k=!0);break;default:k=!0;break}}if(!(!k&&!D)){var re=new Date(1987,1,19),ue=0,ee=Object.create?Object.create(null):{},te=[];for(R=0;R1?1:-1,ve.size=0,ve.type=5;else if(we.slice(-1)=="/"){for(ue=R+1;ue=te.length?-1:ue,ue=R+1;ue=te.length?-1:ue,ve.type=1}else n(w.FullPaths[R+1]||"")==n(we)&&(ve.R=R+1),ve.type=2}}}function le(w,D){var k=D||{};if(k.fileType=="mad")return ko(w,k);switch(U(w),k.fileType){case"zip":return gi(w,k)}var F=function(Fe){for(var ge=0,ke=0,Pe=0;Pe0&&(Re<4096?ge+=Re+63>>6:ke+=Re+511>>9)}}for(var Rt=Fe.FullPaths.length+3>>2,fn=ge+7>>3,br=ge+127>>7,Tn=fn+ke+Rt+br,Jr=Tn+127>>7,za=Jr<=109?0:Math.ceil((Jr-109)/127);Tn+Jr+za+127>>7>Jr;)za=++Jr<=109?0:Math.ceil((Jr-109)/127);var Er=[1,za,Jr,br,Rt,ke,ge,0];return Fe.FileIndex[0].size=ge<<6,Er[7]=(Fe.FileIndex[0].start=Er[0]+Er[1]+Er[2]+Er[3]+Er[4]+Er[5])+(Er[6]+7>>3),Er}(w),R=ce(F[7]<<9),L=0,re=0;{for(L=0;L<8;++L)R.write_shift(1,Me[L]);for(L=0;L<8;++L)R.write_shift(2,0);for(R.write_shift(2,62),R.write_shift(2,3),R.write_shift(2,65534),R.write_shift(2,9),R.write_shift(2,6),L=0;L<3;++L)R.write_shift(2,0);for(R.write_shift(4,0),R.write_shift(4,F[2]),R.write_shift(4,F[0]+F[1]+F[2]+F[3]-1),R.write_shift(4,0),R.write_shift(4,1<<12),R.write_shift(4,F[3]?F[0]+F[1]+F[2]-1:Ee),R.write_shift(4,F[3]),R.write_shift(-4,F[1]?F[0]-1:Ee),R.write_shift(4,F[1]),L=0;L<109;++L)R.write_shift(-4,L>9)));for(ue(F[6]+7>>3);R.l&511;)R.write_shift(-4,Je.ENDOFCHAIN);for(re=L=0,ee=0;ee=4096)&&(ne.start=re,ue(te+63>>6)));for(;R.l&511;)R.write_shift(-4,Je.ENDOFCHAIN);for(L=0;L=4096)if(R.l=ne.start+1<<9,Ke&&Buffer.isBuffer(ne.content))ne.content.copy(R,R.l,0,ne.size),R.l+=ne.size+511&-512;else{for(ee=0;ee0&&ne.size<4096)if(Ke&&Buffer.isBuffer(ne.content))ne.content.copy(R,R.l,0,ne.size),R.l+=ne.size+63&-64;else{for(ee=0;ee>16|D>>8|D)&255}for(var Oe=typeof Uint8Array!="undefined",Te=Oe?new Uint8Array(1<<8):[],Xe=0;Xe<1<<8;++Xe)Te[Xe]=De(Xe);function We(w,D){var k=Te[w&255];return D<=8?k>>>8-D:(k=k<<8|Te[w>>8&255],D<=16?k>>>16-D:(k=k<<8|Te[w>>16&255],k>>>24-D))}function Et(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=6?0:w[F+1]<<8))>>>k&3}function $e(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=5?0:w[F+1]<<8))>>>k&7}function It(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=4?0:w[F+1]<<8))>>>k&15}function st(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=3?0:w[F+1]<<8))>>>k&31}function Se(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=1?0:w[F+1]<<8))>>>k&127}function Ye(w,D,k){var F=D&7,R=D>>>3,L=(1<>>F;return k<8-F||(re|=w[R+1]<<8-F,k<16-F)||(re|=w[R+2]<<16-F,k<24-F)||(re|=w[R+3]<<24-F),re&L}function wt(w,D,k){var F=D&7,R=D>>>3;return F<=5?w[R]|=(k&7)<>8-F),D+3}function ir(w,D,k){var F=D&7,R=D>>>3;return k=(k&1)<>>3;return k<<=F,w[R]|=k&255,k>>>=8,w[R+1]=k,D+8}function dt(w,D,k){var F=D&7,R=D>>>3;return k<<=F,w[R]|=k&255,k>>>=8,w[R+1]=k&255,w[R+2]=k>>>8,D+16}function Qr(w,D){var k=w.length,F=2*k>D?2*k:D+5,R=0;if(k>=D)return w;if(Ke){var L=Y0(F);if(w.copy)w.copy(L);else for(;R>F-ve,re=(1<=0;--re)D[ue|re<0;)ee[ee.l++]=ue[te++]}return ee.l}function re(ue,ee){for(var te=0,ne=0,ve=Oe?new Uint16Array(32768):[];ne0;)ee[ee.l++]=ue[ne++];te=ee.l*8;continue}te=wt(ee,te,+(ne+we==ue.length)+2);for(var Fe=0;we-- >0;){var ge=ue[ne];Fe=(Fe<<5^ge)&32767;var ke=-1,Pe=0;if((ke=ve[Fe])&&(ke|=ne&-32768,ke>ne&&(ke-=32768),ke2){ge=R[Pe],ge<=22?te=zt(ee,te,Te[ge+1]>>1)-1:(zt(ee,te,3),te+=5,zt(ee,te,Te[ge-23]>>5),te+=3);var at=ge<8?0:ge-4>>2;at>0&&(dt(ee,te,Pe-de[ge]),te+=at),ge=D[ne-ke],te=zt(ee,te,Te[ge]>>3),te-=3;var Re=ge<4?0:ge-2>>1;Re>0&&(dt(ee,te,ne-ke-Ce[ge]),te+=Re);for(var Rt=0;Rt>8-ge;for(var ke=(1<<7-ge)-1;ke>=0;--ke)Ir[Fe|ke<>>=3){case 16:for(L=3+Et(w,D),D+=2,Fe=Pe[Pe.length-1];L-- >0;)Pe.push(Fe);break;case 17:for(L=3+$e(w,D),D+=3;L-- >0;)Pe.push(0);break;case 18:for(L=11+Se(w,D),D+=7;L-- >0;)Pe.push(0);break;default:Pe.push(Fe),ee>>0,ue=0,ee=0;(F&1)==0;){if(F=$e(w,k),k+=3,F>>>1==0){k&7&&(k+=8-(k&7));var te=w[k>>>3]|w[(k>>>3)+1]<<8;if(k+=32,te>0)for(!D&&re0;)R[L++]=w[k>>>3],k+=8;continue}else F>>1==1?(ue=9,ee=5):(k=un(w,k),ue=la,ee=wr);for(;;){!D&&re>>1==1?Xr[ne]:qr[ne];if(k+=ve&15,ve>>>=4,(ve>>>8&255)===0)R[L++]=ve;else{if(ve==256)break;ve-=257;var we=ve<8?0:ve-4>>2;we>5&&(we=0);var Fe=L+de[ve];we>0&&(Fe+=Ye(w,k,we),k+=we),ne=Ye(w,k,ee),ve=F>>>1==1?Dr[ne]:sa[ne],k+=ve&15,ve>>>=4;var ge=ve<4?0:ve-2>>1,ke=Ce[ve];for(ge>0&&(ke+=Ye(w,k,ge),k+=ge),!D&&re>>3]:[R.slice(0,L),k+7>>>3]}function Ai(w,D){var k=w.slice(w.l||0),F=nt(k,D);return w.l+=F[1],F[0]}function mi(w,D){if(w)typeof console!="undefined"&&console.error(D);else throw new Error(D)}function vi(w,D){var k=w;mr(k,0);var F=[],R=[],L={FileIndex:F,FullPaths:R};M(L,{root:D.root});for(var re=k.length-4;(k[re]!=80||k[re+1]!=75||k[re+2]!=5||k[re+3]!=6)&&re>=0;)--re;k.l=re+4,k.l+=4;var ue=k.read_shift(2);k.l+=6;var ee=k.read_shift(4);for(k.l=ee,re=0;re`))}}return x}var gd=fr().shape({type:je().oneOf([0,1,2,3,4,5,6]).default(2),size:St().default(50),opacity:St().default(100),posType:je().oneOf([0,1,2,3]).default(3),otherColor:st().default("#000000"),posColor:st().default("#000000")}),xd=fr().shape({type:je().oneOf([0,1,2,3,4,5,6]).default(6),size:St().default(50),opacity:St().default(100),posType:je().oneOf([0,1,2,3]).default(0),otherColor:st().default("#000000"),posColor:st().default("#000000")}),T0=function(i,l){try{l=gd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","posColor"].map(function(g){return l[g]});return Kr({listPoints:E0})({qrcode:i,params:d})},k0=function(i,l){try{l=xd.validateSync(l)}catch(g){return console.error(g),""}var d=["type","size","opacity","posType","otherColor","posColor"].map(function(g){return l[g]});return Kr({listPoints:E0})({qrcode:i,params:d})};n.default={rendererRect:h0,rendererRound:d0,rendererRandRound:p0,rendererDSJ:A0,rendererResImage:x0,rendererImage:g0,renderer25D:v0,rendererRandRect:m0,rendererCircle:y0,rendererFuncA:w0,rendererFuncB:b0,rendererLine:T0,rendererLine2:k0,encodeData:u0}}]).default})})(Dn,Dn.exports);const{encodeAllIgnoreSlashes:km}=_s();let G0=po(),{storageKey:V0}=Pc(),Sm=ft(()=>Qi.value.length>0?Qi.value[0]:null);const Qi=Lt([]);let W0=Lt(!1);function eu(){const e=()=>{W0.value=!0};let r=a=>{rp(a).then(()=>{Vi.success("\u590D\u5236\u6210\u529F")})};const t=a=>{let o=document.createElement("xml");o.innerHTML=a;let s=document.createElement("rect");return s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.style.fill="#ffffff",o.children[0].prepend(s),"data:image/svg+xml;utf8,"+encodeURIComponent(o.innerHTML)};return{visible:W0,openLinkDialog:e,copyText:r,data:Sm,datas:Qi,loadRowLinkData:(a,o)=>{let s=Oa.removeDuplicateSeparator("/"+a.path+"/"+a.name);Yd({storageKey:V0.value,path:s}).then(c=>{let h={row:null,currentImg:"",img:{a1:"",a2:"",sp2:"",b1:"",c1:"",sp3:"",aa1:"",aa2:"",ab1:"",ab2:""},link:""};h.row=JSON.parse(JSON.stringify(a)),h.row.size=Oa.fileSizeFormat(a.size),h.link=c.data;let f=km(a.path+"/"+a.name);s=Oa.removeDuplicateSeparator(G0.globalConfig.domain+"/"+G0.globalConfig.directLinkPrefix+"/"+V0.value+"/"+f),h.directlink=s;const u=Dn.exports.encodeData({text:o.shortLink?h.link:h.directlink,correctLevel:2,isSpace:!1});h.img.a1=t(Dn.exports.rendererRect(u)),h.img.a2=t(Dn.exports.rendererRound(u)),h.img.sp1=t(Dn.exports.rendererDSJ(u)),h.img.aa1=t(Dn.exports.rendererLine(u)),h.img.ab2=t(Dn.exports.rendererFuncB(u)),h.currentImg=h.img.a1,Qi.value.push(h)})}}}var tu={exports:{}};(function(e,r){(function(t,n){n()})(Wa,function(){function t(f,u){return typeof u=="undefined"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function n(f,u,p){var A=new XMLHttpRequest;A.open("GET",f),A.responseType="blob",A.onload=function(){h(A.response,u,p)},A.onerror=function(){console.error("could not download file")},A.send()}function a(f){var u=new XMLHttpRequest;u.open("HEAD",f,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function o(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(u)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Wa=="object"&&Wa.global===Wa?Wa:void 0,c=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(f,u,p){var A=s.URL||s.webkitURL,m=document.createElement("a");u=u||f.name||"download",m.download=u,m.rel="noopener",typeof f=="string"?(m.href=f,m.origin===location.origin?o(m):a(m.href)?n(f,u,p):o(m,m.target="_blank")):(m.href=A.createObjectURL(f),setTimeout(function(){A.revokeObjectURL(m.href)},4e4),setTimeout(function(){o(m)},0))}:"msSaveOrOpenBlob"in navigator?function(f,u,p){if(u=u||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(t(f,p),u);else if(a(f))n(f,u,p);else{var A=document.createElement("a");A.href=f,A.target="_blank",setTimeout(function(){o(A)})}}:function(f,u,p,A){if(A=A||open("","_blank"),A&&(A.document.title=A.document.body.innerText="downloading..."),typeof f=="string")return n(f,u,p);var m=f.type==="application/octet-stream",y=/constructor/i.test(s.HTMLElement)||s.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||m&&y||c)&&typeof FileReader!="undefined"){var _=new FileReader;_.onloadend=function(){var b=_.result;b=v?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),A?A.location.href=b:location=b,A=null},_.readAsDataURL(f)}else{var I=s.URL||s.webkitURL,T=I.createObjectURL(f);A?A.location=T:location.href=T,A=null,setTimeout(function(){I.revokeObjectURL(T)},4e4)}});s.saveAs=h.saveAs=h,e.exports=h})})(tu);var Fm=tu.exports;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Xi={};Xi.version="0.18.5";var ru=1252,Cm=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],nu=function(e){Cm.indexOf(e)!=-1&&(ru=e)};function Om(){nu(1252)}var ti=function(e){nu(e)};function Dm(){ti(1200),Om()}function Bm(e){for(var r=[],t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var Pi=function(r){return String.fromCharCode(r)},Y0=function(r){return String.fromCharCode(r)},$n,In="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ri(e){for(var r="",t=0,n=0,a=0,o=0,s=0,c=0,h=0,f=0;f>2,n=e.charCodeAt(f++),s=(t&3)<<4|n>>4,a=e.charCodeAt(f++),c=(n&15)<<2|a>>6,h=a&63,isNaN(n)?c=h=64:isNaN(a)&&(h=64),r+=In.charAt(o)+In.charAt(s)+In.charAt(c)+In.charAt(h);return r}function yn(e){var r="",t=0,n=0,a=0,o=0,s=0,c=0,h=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f>4,r+=String.fromCharCode(t),c=In.indexOf(e.charAt(f++)),n=(s&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(n)),h=In.indexOf(e.charAt(f++)),a=(c&3)<<6|h,h!==64&&(r+=String.fromCharCode(a));return r}var Ke=function(){return typeof Buffer!="undefined"&&typeof process!="undefined"&&typeof process.versions!="undefined"&&!!process.versions.node}(),En=function(){if(typeof Buffer!="undefined"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function Kn(e){return Ke?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function $0(e){return Ke?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var Wr=function(r){return Ke?En(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function mo(e){if(typeof ArrayBuffer=="undefined")return Wr(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function ci(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t>6&31,a[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var c=e.charCodeAt(++o)&1023;a[t++]=240|s>>8&7,a[t++]=128|s>>2&63,a[t++]=128|c>>6&15|(s&3)<<4,a[t++]=128|c&63}else a[t++]=224|s>>12&15,a[t++]=128|s>>6&63,a[t++]=128|s&63;t>n&&(r.push(a.slice(0,t)),t=0,a=Kn(65535),n=65530)}return r.push(a.slice(0,t)),Wt(r)}var Qa=/\u0000/g,Li=/[\u0001-\u0006]/g;function Da(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function Yr(e,r){var t=""+e;return t.length>=r?t:gt("0",r-t.length)+t}function Es(e,r){var t=""+e;return t.length>=r?t:gt(" ",r-t.length)+t}function qi(e,r){var t=""+e;return t.length>=r?t:t+gt(" ",r-t.length)}function Mm(e,r){var t=""+Math.round(e);return t.length>=r?t:gt("0",r-t.length)+t}function Pm(e,r){var t=""+e;return t.length>=r?t:gt("0",r-t.length)+t}var Q0=Math.pow(2,32);function ba(e,r){if(e>Q0||e<-Q0)return Mm(e,r);var t=Math.round(e);return Pm(t,r)}function Ji(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var X0=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Zo=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Lm(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',e}var xt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},q0={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Nm={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Ki(e,r,t){for(var n=e<0?-1:1,a=e*n,o=0,s=1,c=0,h=1,f=0,u=0,p=Math.floor(a);fr&&(f>r?(u=h,c=o):(u=f,c=s)),!t)return[0,n*c,u];var A=Math.floor(n*c/u);return[A,n*c-A*u,u]}function Ni(e,r,t){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),o=0,s=[],c={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),r&&r.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++a==86400&&(c.T=a=0,++n,++c.D)),n===60)s=t?[1317,10,29]:[1900,2,29],o=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var h=new Date(1900,0,1);h.setDate(h.getDate()+n-1),s=[h.getFullYear(),h.getMonth()+1,h.getDate()],o=h.getDay(),n<60&&(o=(o+6)%7),t&&(o=Wm(h,s))}return c.y=s[0],c.m=s[1],c.d=s[2],c.S=a%60,a=Math.floor(a/60),c.M=a%60,a=Math.floor(a/60),c.H=a,c.q=o,c}var au=new Date(1899,11,31,0,0,0),Um=au.getTime(),jm=new Date(1900,2,1,0,0,0);function iu(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=jm&&(t+=24*60*60*1e3),(t-(Um+(e.getTimezoneOffset()-au.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Ts(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function zm(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Hm(e){var r=e<0?12:11,t=Ts(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Gm(e){var r=Ts(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Vm(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Hm(e):r===10?t=e.toFixed(10).substr(0,12):t=Gm(e),Ts(zm(t.toUpperCase()))}function fs(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vm(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Mn(14,iu(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function Wm(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function Ym(e,r,t,n){var a="",o=0,s=0,c=t.y,h,f=0;switch(e){case 98:c=t.y+543;case 121:switch(r.length){case 1:case 2:h=c%100,f=2;break;default:h=c%1e4,f=4;break}break;case 109:switch(r.length){case 1:case 2:h=t.m,f=r.length;break;case 3:return Zo[t.m-1][1];case 5:return Zo[t.m-1][0];default:return Zo[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:h=t.d,f=r.length;break;case 3:return X0[t.q][0];default:return X0[t.q][1]}break;case 104:switch(r.length){case 1:case 2:h=1+(t.H+11)%12,f=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:h=t.H,f=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:h=t.M,f=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?Yr(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,o=Math.round(s*(t.S+t.u)),o>=60*s&&(o=0),r==="s"?o===0?"0":""+o/s:(a=Yr(o,2+n),r==="ss"?a.substr(0,2):"."+a.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":h=t.D*24+t.H;break;case"[m]":case"[mm]":h=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":h=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}f=r.length===3?1:2;break;case 101:h=c,f=1;break}var u=f>0?Yr(h,f):"";return u}function Rn(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var ou=/%/g;function $m(e,r,t){var n=r.replace(ou,""),a=r.length-n.length;return vn(e,n,t*Math.pow(10,2*a))+gt("%",a)}function Qm(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return vn(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function su(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+su(e,-r);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),t=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+o):t+="E+"+(s-o);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,a)+"."+t.substr(2+a),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,h,f,u){return h+f+u.substr(0,(a+o)%a)+"."+u.substr(o)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var lu=/# (\?+)( ?)\/( ?)(\d+)/;function Xm(e,r,t){var n=parseInt(e[4],10),a=Math.round(r*n),o=Math.floor(a/n),s=a-o*n,c=n;return t+(o===0?"":""+o)+" "+(s===0?gt(" ",e[1].length+1+e[4].length):Es(s,e[1].length)+e[2]+"/"+e[3]+Yr(c,e[4].length))}function qm(e,r,t){return t+(r===0?"":""+r)+gt(" ",e[1].length+2+e[4].length)}var cu=/^#*0*\.([0#]+)/,uu=/\).*[0#]/,fu=/\(###\) ###\\?-####/;function tr(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function J0(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function K0(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function Jm(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function Km(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function kr(e,r,t){if(e.charCodeAt(0)===40&&!r.match(uu)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?kr("n",n,t):"("+kr("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Qm(e,r,t);if(r.indexOf("%")!==-1)return $m(e,r,t);if(r.indexOf("E")!==-1)return su(r,t);if(r.charCodeAt(0)===36)return"$"+kr(e,r.substr(r.charAt(1)==" "?2:1),t);var a,o,s,c,h=Math.abs(t),f=t<0?"-":"";if(r.match(/^00+$/))return f+ba(h,r.length);if(r.match(/^[#?]+$/))return a=ba(t,0),a==="0"&&(a=""),a.length>r.length?a:tr(r.substr(0,r.length-a.length))+a;if(o=r.match(lu))return Xm(o,h,f);if(r.match(/^#+0+$/))return f+ba(h,r.length-r.indexOf("0"));if(o=r.match(cu))return a=J0(t,o[1].length).replace(/^([^\.]+)$/,"$1."+tr(o[1])).replace(/\.$/,"."+tr(o[1])).replace(/\.(\d*)$/,function(y,v){return"."+v+gt("0",tr(o[1]).length-v.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return f+J0(h,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return f+Rn(ba(h,0));if(o=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+kr(e,r,-t):Rn(""+(Math.floor(t)+Jm(t,o[1].length)))+"."+Yr(K0(t,o[1].length),o[1].length);if(o=r.match(/^#,#*,#0/))return kr(e,r.replace(/^#,#*,/,""),t);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Da(kr(e,r.replace(/[\\-]/g,""),t)),s=0,Da(Da(r.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s=0?nn("n",n,t):"("+nn("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Zm(e,r,t);if(r.indexOf("%")!==-1)return e2(e,r,t);if(r.indexOf("E")!==-1)return hu(r,t);if(r.charCodeAt(0)===36)return"$"+nn(e,r.substr(r.charAt(1)==" "?2:1),t);var a,o,s,c,h=Math.abs(t),f=t<0?"-":"";if(r.match(/^00+$/))return f+Yr(h,r.length);if(r.match(/^[#?]+$/))return a=""+t,t===0&&(a=""),a.length>r.length?a:tr(r.substr(0,r.length-a.length))+a;if(o=r.match(lu))return qm(o,h,f);if(r.match(/^#+0+$/))return f+Yr(h,r.length-r.indexOf("0"));if(o=r.match(cu))return a=(""+t).replace(/^([^\.]+)$/,"$1."+tr(o[1])).replace(/\.$/,"."+tr(o[1])),a=a.replace(/\.(\d*)$/,function(y,v){return"."+v+gt("0",tr(o[1]).length-v.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return f+(""+h).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return f+Rn(""+h);if(o=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+nn(e,r,-t):Rn(""+t)+"."+gt("0",o[1].length);if(o=r.match(/^#,#*,#0/))return nn(e,r.replace(/^#,#*,/,""),t);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Da(nn(e,r.replace(/[\\-]/g,""),t)),s=0,Da(Da(r.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r-1;);break;case" ":++r;break;default:++r;break}return!1}function r2(e,r,t,n){for(var a=[],o="",s=0,c="",h="t",f,u,p,A="H";s=12?"P":"A"),v.t="T",A="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(f!=null&&(v.v=f.H>=12?"PM":"AM"),v.t="T",s+=5,A="h"):e.substr(s,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(f!=null&&(v.v=f.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),v.t="T",s+=5,A="h"):(v.t="t",++s),f==null&&v.t==="T")return"";a[a.length]=v,h=c;break;case"[":for(o=c;e.charAt(s++)!=="]"&&s-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",pu(e)||(a[a.length]={t:"t",v:o}));break;case".":if(f!=null){for(o=c;++s-1;)o+=c;a[a.length]={t:"n",v:o};break;case"?":for(o=c;e.charAt(++s)===c;)o+=c;a[a.length]={t:c,v:o},h=c;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":c,v:c},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=c;s-1;)o+=e.charAt(s);a[a.length]={t:"D",v:o};break;case" ":a[a.length]={t:c,v:c},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++s;break}var _=0,I=0,T;for(s=a.length-1,h="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=A,h="h",_<1&&(_=1);break;case"s":(T=a[s].v.match(/\.0+$/))&&(I=Math.max(I,T[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":h=a[s].t;break;case"m":h==="s"&&(a[s].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&a[s].v.match(/[Hh]/)&&(_=1),_<2&&a[s].v.match(/[Mm]/)&&(_=2),_<3&&a[s].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var b="",L;for(s=0;s0){b.charCodeAt(0)==40?(O=r<0&&b.charCodeAt(0)===45?-r:r,R=vn("n",b,O)):(O=r<0&&n>1?-r:r,R=vn("n",b,O),O<0&&a[0]&&a[0].t=="t"&&(R=R.substr(1),a[0].v="-"+a[0].v)),L=R.length-1;var H=a.length;for(s=0;s-1){H=s;break}var U=a.length;if(H===a.length&&R.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(L>=a[s].v.length-1?(L-=a[s].v.length,a[s].v=R.substr(L+1,a[s].v.length)):L<0?a[s].v="":(a[s].v=R.substr(0,L+1),L=-1),a[s].t="t",U=s);L>=0&&U=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(u=a[s].v.indexOf(".")>-1&&s===H?a[s].v.indexOf(".")-1:a[s].v.length-1,j=a[s].v.substr(u+1);u>=0;--u)L>=0&&(a[s].v.charAt(u)==="0"||a[s].v.charAt(u)==="#")&&(j=R.charAt(L--)+j);a[s].v=j,a[s].t="t",U=s}for(L>=0&&U-1&&s===H?a[s].v.indexOf(".")+1:0,j=a[s].v.substr(0,u);u-1&&(O=n>1&&r<0&&s>0&&a[s-1].v==="-"?-r:r,a[s].v=vn(a[s].t,a[s].v,O),a[s].t="t");var le="";for(s=0;s!==a.length;++s)a[s]!=null&&(le+=a[s].v);return le}var Z0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ec(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function n2(e,r){var t=t2(e),n=t.length,a=t[n-1].indexOf("@");if(n<4&&a>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||a>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=a>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=a>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=a>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var o=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,o];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(Z0),c=t[1].match(Z0);return ec(r,s)?[n,t[0]]:ec(r,c)?[n,t[1]]:[n,t[s!=null&&c!=null?2:1]]}return[n,o]}function Mn(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:xt)[e],n==null&&(n=t.table&&t.table[q0[e]]||xt[q0[e]]),n==null&&(n=Nm[e]||"General");break}if(Ji(n,0))return fs(r,t);r instanceof Date&&(r=iu(r,t.date1904));var a=n2(n,r);if(Ji(a[1]))return fs(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return r2(a[1],r,t,a[0])}function Au(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(xt[t]==null){r<0&&(r=t);continue}if(xt[t]==e){r=t;break}}r<0&&(r=391)}return xt[r]=e,r}function vo(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Au(e[r],r)}function go(){xt=Lm()}var mu=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function a2(e){var r=typeof e=="number"?xt[e]:e;return r=r.replace(mu,"(\\d+)"),new RegExp("^"+r+"$")}function i2(e,r,t){var n=-1,a=-1,o=-1,s=-1,c=-1,h=-1;(r.match(mu)||[]).forEach(function(p,A){var m=parseInt(t[A+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=m;break;case"d":o=m;break;case"h":s=m;break;case"s":h=m;break;case"m":s>=0?c=m:a=m;break}}),h>=0&&c==-1&&a>=0&&(c=a,a=-1);var f=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2);return s==-1&&c==-1&&h==-1?f:n==-1&&a==-1&&o==-1?u:f+"T"+u}var o2=function(){var e={};e.version="1.2.0";function r(){for(var R=0,H=new Array(256),U=0;U!=256;++U)R=U,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,R=R&1?-306674912^R>>>1:R>>>1,H[U]=R;return typeof Int32Array!="undefined"?new Int32Array(H):H}var t=r();function n(R){var H=0,U=0,le=0,he=typeof Int32Array!="undefined"?new Int32Array(4096):new Array(4096);for(le=0;le!=256;++le)he[le]=R[le];for(le=0;le!=256;++le)for(U=R[le],H=256+le;H<4096;H+=256)U=he[H]=U>>>8^R[U&255];var Ae=[];for(le=1;le!=16;++le)Ae[le-1]=typeof Int32Array!="undefined"?he.subarray(le*256,le*256+256):he.slice(le*256,le*256+256);return Ae}var a=n(t),o=a[0],s=a[1],c=a[2],h=a[3],f=a[4],u=a[5],p=a[6],A=a[7],m=a[8],y=a[9],v=a[10],_=a[11],I=a[12],T=a[13],b=a[14];function L(R,H){for(var U=H^-1,le=0,he=R.length;le>>8^t[(U^R.charCodeAt(le++))&255];return~U}function j(R,H){for(var U=H^-1,le=R.length-15,he=0;he>8&255]^I[R[he++]^U>>16&255]^_[R[he++]^U>>>24]^v[R[he++]]^y[R[he++]]^m[R[he++]]^A[R[he++]]^p[R[he++]]^u[R[he++]]^f[R[he++]]^h[R[he++]]^c[R[he++]]^s[R[he++]]^o[R[he++]]^t[R[he++]];for(le+=15;he>>8^t[(U^R[he++])&255];return~U}function O(R,H){for(var U=H^-1,le=0,he=R.length,Ae=0,Ee=0;le>>8^t[(U^Ae)&255]:Ae<2048?(U=U>>>8^t[(U^(192|Ae>>6&31))&255],U=U>>>8^t[(U^(128|Ae&63))&255]):Ae>=55296&&Ae<57344?(Ae=(Ae&1023)+64,Ee=R.charCodeAt(le++)&1023,U=U>>>8^t[(U^(240|Ae>>8&7))&255],U=U>>>8^t[(U^(128|Ae>>2&63))&255],U=U>>>8^t[(U^(128|Ee>>6&15|(Ae&3)<<4))&255],U=U>>>8^t[(U^(128|Ee&63))&255]):(U=U>>>8^t[(U^(224|Ae>>12&15))&255],U=U>>>8^t[(U^(128|Ae>>6&63))&255],U=U>>>8^t[(U^(128|Ae&63))&255]);return~U}return e.table=t,e.bstr=L,e.buf=j,e.str=O,e}(),at=function(){var r={};r.version="1.2.1";function t(w,D){for(var k=w.split("/"),F=D.split("/"),M=0,P=0,re=Math.min(k.length,F.length);M>>1,w.write_shift(2,k);var F=D.getFullYear()-1980;F=F<<4|D.getMonth()+1,F=F<<5|D.getDate(),w.write_shift(2,F)}function s(w){var D=w.read_shift(2)&65535,k=w.read_shift(2)&65535,F=new Date,M=k&31;k>>>=5;var P=k&15;k>>>=4,F.setMilliseconds(0),F.setFullYear(k+1980),F.setMonth(P-1),F.setDate(M);var re=D&31;D>>>=5;var ue=D&63;return D>>>=6,F.setHours(D),F.setMinutes(ue),F.setSeconds(re<<1),F}function c(w){mr(w,0);for(var D={},k=0;w.l<=w.length-4;){var F=w.read_shift(2),M=w.read_shift(2),P=w.l+M,re={};switch(F){case 21589:k=w.read_shift(1),k&1&&(re.mtime=w.read_shift(4)),M>5&&(k&2&&(re.atime=w.read_shift(4)),k&4&&(re.ctime=w.read_shift(4))),re.mtime&&(re.mt=new Date(re.mtime*1e3));break}w.l=P,D[F]=re}return D}var h;function f(){return h||(h={})}function u(w,D){if(w[0]==80&&w[1]==75)return mi(w,D);if((w[0]|32)==109&&(w[1]|32)==105)return _i(w,D);if(w.length<512)throw new Error("CFB file size "+w.length+" < 512");var k=3,F=512,M=0,P=0,re=0,ue=0,ee=0,te=[],ne=w.slice(0,512);mr(ne,0);var ge=p(ne);switch(k=ge[0],k){case 3:F=512;break;case 4:F=4096;break;case 0:if(ge[1]==0)return mi(w,D);default:throw new Error("Major Version: Expected 3 or 4 saw "+k)}F!==512&&(ne=w.slice(0,F),mr(ne,28));var we=w.slice(0,F);A(ne,k);var Fe=ne.read_shift(4,"i");if(k===3&&Fe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Fe);ne.l+=4,re=ne.read_shift(4,"i"),ne.l+=4,ne.chk("00100000","Mini Stream Cutoff Size: "),ue=ne.read_shift(4,"i"),M=ne.read_shift(4,"i"),ee=ne.read_shift(4,"i"),P=ne.read_shift(4,"i");for(var xe=-1,ke=0;ke<109&&(xe=ne.read_shift(4,"i"),!(xe<0));++ke)te[ke]=xe;var Ne=m(w,F);_(ee,P,Ne,F,te);var nt=T(Ne,re,te,F);nt[re].name="!Directory",M>0&&ue!==Ee&&(nt[ue].name="!MiniFAT"),nt[te[0]].name="!FAT",nt.fat_addrs=te,nt.ssz=F;var Me={},Mt=[],un=[],_r=[];b(re,nt,Ne,Mt,M,Me,un,ue),y(un,_r,Mt),Mt.shift();var kn={FileIndex:un,FullPaths:_r};return D&&D.raw&&(kn.raw={header:we,sectors:Ne}),kn}function p(w){if(w[w.l]==80&&w[w.l+1]==75)return[0,0];w.chk(Ve,"Header Signature: "),w.l+=16;var D=w.read_shift(2,"u");return[w.read_shift(2,"u"),D]}function A(w,D){var k=9;switch(w.l+=2,k=w.read_shift(2)){case 9:if(D!=3)throw new Error("Sector Shift: Expected 9 saw "+k);break;case 12:if(D!=4)throw new Error("Sector Shift: Expected 12 saw "+k);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+k)}w.chk("0600","Mini Sector Shift: "),w.chk("000000000000","Reserved: ")}function m(w,D){for(var k=Math.ceil(w.length/D)-1,F=[],M=1;M0&&re>=0;)P.push(D.slice(re*Ae,re*Ae+Ae)),M-=Ae,re=Qn(k,re*4);return P.length===0?ce(0):Wt(P).slice(0,w.size)}function _(w,D,k,F,M){var P=Ee;if(w===Ee){if(D!==0)throw new Error("DIFAT chain shorter than expected")}else if(w!==-1){var re=k[w],ue=(F>>>2)-1;if(!re)return;for(var ee=0;ee=0;){M[ee]=!0,P[P.length]=ee,re.push(w[ee]);var ne=k[Math.floor(ee*4/F)];if(te=ee*4&ue,F<4+te)throw new Error("FAT boundary crossed: "+ee+" 4 "+F);if(!w[ne])break;ee=Qn(w[ne],te)}return{nodes:P,data:lc([re])}}function T(w,D,k,F){var M=w.length,P=[],re=[],ue=[],ee=[],te=F-1,ne=0,ge=0,we=0,Fe=0;for(ne=0;ne=M&&(we-=M),!re[we]){ee=[];var xe=[];for(ge=we;ge>=0;){xe[ge]=!0,re[ge]=!0,ue[ue.length]=ge,ee.push(w[ge]);var ke=k[Math.floor(ge*4/F)];if(Fe=ge*4&te,F<4+Fe)throw new Error("FAT boundary crossed: "+ge+" 4 "+F);if(!w[ke]||(ge=Qn(w[ke],Fe),xe[ge]))break}P[we]={nodes:ue,data:lc([ee])}}return P}function b(w,D,k,F,M,P,re,ue){for(var ee=0,te=F.length?2:0,ne=D[w].data,ge=0,we=0,Fe;ge0&&ee!==Ee&&(D[ee].name="!StreamData")):ke.size>=4096?(ke.storage="fat",D[ke.start]===void 0&&(D[ke.start]=I(k,ke.start,D.fat_addrs,D.ssz)),D[ke.start].name=ke.name,ke.content=D[ke.start].data.slice(0,ke.size)):(ke.storage="minifat",ke.size<0?ke.size=0:ee!==Ee&&ke.start!==Ee&&D[ee]&&(ke.content=v(ke,D[ee].data,(D[ue]||{}).data))),ke.content&&mr(ke.content,0),P[Fe]=ke,re.push(ke)}}function L(w,D){return new Date((gr(w,D+4)/1e7*Math.pow(2,32)+gr(w,D)/1e7-11644473600)*1e3)}function j(w,D){return f(),u(h.readFileSync(w),D)}function O(w,D){var k=D&&D.type;switch(k||Ke&&Buffer.isBuffer(w)&&(k="buffer"),k||"base64"){case"file":return j(w,D);case"base64":return u(Wr(yn(w)),D);case"binary":return u(Wr(w),D)}return u(w,D)}function R(w,D){var k=D||{},F=k.root||"Root Entry";if(w.FullPaths||(w.FullPaths=[]),w.FileIndex||(w.FileIndex=[]),w.FullPaths.length!==w.FileIndex.length)throw new Error("inconsistent CFB structure");w.FullPaths.length===0&&(w.FullPaths[0]=F+"/",w.FileIndex[0]={name:F,type:5}),k.CLSID&&(w.FileIndex[0].clsid=k.CLSID),H(w)}function H(w){var D="Sh33tJ5";if(!at.find(w,"/"+D)){var k=ce(4);k[0]=55,k[1]=k[3]=50,k[2]=54,w.FileIndex.push({name:D,type:2,content:k,size:4,L:69,R:69,C:69}),w.FullPaths.push(w.FullPaths[0]+D),U(w)}}function U(w,D){R(w);for(var k=!1,F=!1,M=w.FullPaths.length-1;M>=0;--M){var P=w.FileIndex[M];switch(P.type){case 0:F?k=!0:(w.FileIndex.pop(),w.FullPaths.pop());break;case 1:case 2:case 5:F=!0,isNaN(P.R*P.L*P.C)&&(k=!0),P.R>-1&&P.L>-1&&P.R==P.L&&(k=!0);break;default:k=!0;break}}if(!(!k&&!D)){var re=new Date(1987,1,19),ue=0,ee=Object.create?Object.create(null):{},te=[];for(M=0;M1?1:-1,ge.size=0,ge.type=5;else if(we.slice(-1)=="/"){for(ue=M+1;ue=te.length?-1:ue,ue=M+1;ue=te.length?-1:ue,ge.type=1}else n(w.FullPaths[M+1]||"")==n(we)&&(ge.R=M+1),ge.type=2}}}function le(w,D){var k=D||{};if(k.fileType=="mad")return ko(w,k);switch(U(w),k.fileType){case"zip":return vi(w,k)}var F=function(Fe){for(var xe=0,ke=0,Ne=0;Ne0&&(Me<4096?xe+=Me+63>>6:ke+=Me+511>>9)}}for(var Mt=Fe.FullPaths.length+3>>2,un=xe+7>>3,_r=xe+127>>7,kn=un+ke+Mt+_r,Jr=kn+127>>7,Ha=Jr<=109?0:Math.ceil((Jr-109)/127);kn+Jr+Ha+127>>7>Jr;)Ha=++Jr<=109?0:Math.ceil((Jr-109)/127);var wr=[1,Ha,Jr,_r,Mt,ke,xe,0];return Fe.FileIndex[0].size=xe<<6,wr[7]=(Fe.FileIndex[0].start=wr[0]+wr[1]+wr[2]+wr[3]+wr[4]+wr[5])+(wr[6]+7>>3),wr}(w),M=ce(F[7]<<9),P=0,re=0;{for(P=0;P<8;++P)M.write_shift(1,Le[P]);for(P=0;P<8;++P)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),P=0;P<3;++P)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,F[2]),M.write_shift(4,F[0]+F[1]+F[2]+F[3]-1),M.write_shift(4,0),M.write_shift(4,1<<12),M.write_shift(4,F[3]?F[0]+F[1]+F[2]-1:Ee),M.write_shift(4,F[3]),M.write_shift(-4,F[1]?F[0]-1:Ee),M.write_shift(4,F[1]),P=0;P<109;++P)M.write_shift(-4,P>9)));for(ue(F[6]+7>>3);M.l&511;)M.write_shift(-4,Je.ENDOFCHAIN);for(re=P=0,ee=0;ee=4096)&&(ne.start=re,ue(te+63>>6)));for(;M.l&511;)M.write_shift(-4,Je.ENDOFCHAIN);for(P=0;P=4096)if(M.l=ne.start+1<<9,Ke&&Buffer.isBuffer(ne.content))ne.content.copy(M,M.l,0,ne.size),M.l+=ne.size+511&-512;else{for(ee=0;ee0&&ne.size<4096)if(Ke&&Buffer.isBuffer(ne.content))ne.content.copy(M,M.l,0,ne.size),M.l+=ne.size+63&-64;else{for(ee=0;ee>16|D>>8|D)&255}for(var Oe=typeof Uint8Array!="undefined",Te=Oe?new Uint8Array(1<<8):[],Xe=0;Xe<1<<8;++Xe)Te[Xe]=De(Xe);function We(w,D){var k=Te[w&255];return D<=8?k>>>8-D:(k=k<<8|Te[w>>8&255],D<=16?k>>>16-D:(k=k<<8|Te[w>>16&255],k>>>24-D))}function Tt(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=6?0:w[F+1]<<8))>>>k&3}function $e(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=5?0:w[F+1]<<8))>>>k&7}function Rt(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=4?0:w[F+1]<<8))>>>k&15}function it(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=3?0:w[F+1]<<8))>>>k&31}function Se(w,D){var k=D&7,F=D>>>3;return(w[F]|(k<=1?0:w[F+1]<<8))>>>k&127}function Ye(w,D,k){var F=D&7,M=D>>>3,P=(1<>>F;return k<8-F||(re|=w[M+1]<<8-F,k<16-F)||(re|=w[M+2]<<16-F,k<24-F)||(re|=w[M+3]<<24-F),re&P}function wt(w,D,k){var F=D&7,M=D>>>3;return F<=5?w[M]|=(k&7)<>8-F),D+3}function ir(w,D,k){var F=D&7,M=D>>>3;return k=(k&1)<>>3;return k<<=F,w[M]|=k&255,k>>>=8,w[M+1]=k,D+8}function dt(w,D,k){var F=D&7,M=D>>>3;return k<<=F,w[M]|=k&255,k>>>=8,w[M+1]=k&255,w[M+2]=k>>>8,D+16}function Qr(w,D){var k=w.length,F=2*k>D?2*k:D+5,M=0;if(k>=D)return w;if(Ke){var P=$0(F);if(w.copy)w.copy(P);else for(;M>F-ge,re=(1<=0;--re)D[ue|re<0;)ee[ee.l++]=ue[te++]}return ee.l}function re(ue,ee){for(var te=0,ne=0,ge=Oe?new Uint16Array(32768):[];ne0;)ee[ee.l++]=ue[ne++];te=ee.l*8;continue}te=wt(ee,te,+(ne+we==ue.length)+2);for(var Fe=0;we-- >0;){var xe=ue[ne];Fe=(Fe<<5^xe)&32767;var ke=-1,Ne=0;if((ke=ge[Fe])&&(ke|=ne&-32768,ke>ne&&(ke-=32768),ke2){xe=M[Ne],xe<=22?te=zt(ee,te,Te[xe+1]>>1)-1:(zt(ee,te,3),te+=5,zt(ee,te,Te[xe-23]>>5),te+=3);var nt=xe<8?0:xe-4>>2;nt>0&&(dt(ee,te,Ne-de[xe]),te+=nt),xe=D[ne-ke],te=zt(ee,te,Te[xe]>>3),te-=3;var Me=xe<4?0:xe-2>>1;Me>0&&(dt(ee,te,ne-ke-Ce[xe]),te+=Me);for(var Mt=0;Mt>8-xe;for(var ke=(1<<7-xe)-1;ke>=0;--ke)la[Fe|ke<>>=3){case 16:for(P=3+Tt(w,D),D+=2,Fe=Ne[Ne.length-1];P-- >0;)Ne.push(Fe);break;case 17:for(P=3+$e(w,D),D+=3;P-- >0;)Ne.push(0);break;case 18:for(P=11+Se(w,D),D+=7;P-- >0;)Ne.push(0);break;default:Ne.push(Fe),ee>>0,ue=0,ee=0;(F&1)==0;){if(F=$e(w,k),k+=3,F>>>1==0){k&7&&(k+=8-(k&7));var te=w[k>>>3]|w[(k>>>3)+1]<<8;if(k+=32,te>0)for(!D&&re0;)M[P++]=w[k>>>3],k+=8;continue}else F>>1==1?(ue=9,ee=5):(k=cn(w,k),ue=Br,ee=Ir);for(;;){!D&&re>>1==1?Xr[ne]:sa[ne];if(k+=ge&15,ge>>>=4,(ge>>>8&255)===0)M[P++]=ge;else{if(ge==256)break;ge-=257;var we=ge<8?0:ge-4>>2;we>5&&(we=0);var Fe=P+de[ge];we>0&&(Fe+=Ye(w,k,we),k+=we),ne=Ye(w,k,ee),ge=F>>>1==1?Or[ne]:qr[ne],k+=ge&15,ge>>>=4;var xe=ge<4?0:ge-2>>1,ke=Ce[ge];for(xe>0&&(ke+=Ye(w,k,xe),k+=xe),!D&&re>>3]:[M.slice(0,P),k+7>>>3]}function ot(w,D){var k=w.slice(w.l||0),F=Tn(k,D);return w.l+=F[1],F[0]}function Ai(w,D){if(w)typeof console!="undefined"&&console.error(D);else throw new Error(D)}function mi(w,D){var k=w;mr(k,0);var F=[],M=[],P={FileIndex:F,FullPaths:M};R(P,{root:D.root});for(var re=k.length-4;(k[re]!=80||k[re+1]!=75||k[re+2]!=5||k[re+3]!=6)&&re>=0;)--re;k.l=re+4,k.l+=4;var ue=k.read_shift(2);k.l+=6;var ee=k.read_shift(4);for(k.l=ee,re=0;re0&&(k=k.slice(0,k.length-1),k=k.slice(0,k.lastIndexOf("/")+1),L.slice(0,k.length)!=k););var re=(F[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var ue="--"+(re[1]||""),ee=[],te=[],ne={FileIndex:ee,FullPaths:te};M(ne);var ve,we=0;for(R=0;R=32&&Fe<128&&++ve;var ke=ve>=we*4/5;R.push(F),R.push("Content-Location: "+(k.root||"file:///C:/SheetJS/")+re),R.push("Content-Transfer-Encoding: "+(ke?"quoted-printable":"base64")),R.push("Content-Type: "+xi(ue,re)),R.push(""),R.push(ke?Un(ne):To(ne))}return R.push(F+`--\r -`),R.join(`\r -`)}function So(w){var D={};return M(D,w),D}function ca(w,D,k,F){var R=F&&F.unsafe;R||M(w);var L=!R&&ot.find(w,D);if(!L){var re=w.FullPaths[0];D.slice(0,re.length)==re?re=D:(re.slice(-1)!="/"&&(re+="/"),re=(re+D).replace("//","/")),L={name:a(D),type:2},w.FileIndex.push(L),w.FullPaths.push(re),R||ot.utils.cfb_gc(w)}return L.content=k,L.size=k?k.length:0,F&&(F.CLSID&&(L.clsid=F.CLSID),F.mt&&(L.mt=F.mt),F.ct&&(L.ct=F.ct)),L}function Fo(w,D){M(w);var k=ot.find(w,D);if(k){for(var F=0;F0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(xu.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-o.getTimezoneOffset()*60*1e3)),o}function yo(e,r){if(Ke&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return mn(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return mn(Sm(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder!="undefined")try{if(r){if(e[0]==255&&e[1]==254)return mn(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return mn(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return t[o]||o})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function ur(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ur(e[t]));return r}function gt(e,r){for(var t="";t.length3&&o2.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(a>0||o>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function Ge(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return Ke?n=En(t):n=Cm(t),ot.utils.cfb_add(e,r,n)}ot.utils.cfb_add(e,r,t)}else e.file(r,t)}function Ss(){return ot.utils.cfb_new()}var Ct=`\r -`,s2={""":'"',"'":"'",">":">","<":"<","&":"&"},Fs=ks(s2),Cs=/[&<>'"]/g,l2=/[\u0000-\u0008\u000b-\u001f]/g;function tt(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(l2,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function nc(e){return tt(e).replace(/ /g,"_x0020_")}var yu=/[\u0000-\u001f]/g;function c2(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(/\n/g,"
").replace(yu,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function u2(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(yu,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function f2(e){return e.replace(/(\r\n|[\r\n])/g," ")}function h2(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function es(e){for(var r="",t=0,n=0,a=0,o=0,s=0,c=0;t191&&n<224){s=(n&31)<<6,s|=a&63,r+=String.fromCharCode(s);continue}if(o=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(a&63)<<6|o&63);continue}s=e.charCodeAt(t++),c=((n&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(c>>>10&1023)),r+=String.fromCharCode(56320+(c&1023))}return r}function ac(e){var r=Kn(2*e.length),t,n,a=1,o=0,s=0,c;for(n=0;n>>10&1023),t=56320+(t&1023)),s!==0&&(r[o++]=s&255,r[o++]=s>>>8,s=0),r[o++]=t%256,r[o++]=t>>>8;return r.slice(0,o).toString("ucs2")}function ic(e){return En(e,"binary").toString("utf8")}var ji="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",Qa=Ke&&(ic(ji)==es(ji)&&ic||ac(ji)==es(ji)&&ac)||es,mn=Ke?function(e){return En(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,a=0;t>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(a>>18&7))),r.push(String.fromCharCode(144+(a>>12&63))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(a&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},d2=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` -`).replace(/<[^>]*>/g,""),a=0;a"+r+""}function ni(e){return Qt(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ye(e,r,t){return"<"+e+(t!=null?ni(t):"")+(r!=null?(r.match(_u)?' xml:space="preserve"':"")+">"+r+""}function hs(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function p2(e,r){switch(typeof e){case"string":var t=ye("vt:lpwstr",tt(e));return r&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return ye((e|0)==e?"vt:i4":"vt:r8",tt(String(e)));case"boolean":return ye("vt:bool",e?"true":"false")}if(e instanceof Date)return ye("vt:filetime",hs(e));throw new Error("Unable to serialize "+e)}var Nt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ma=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],vr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function A2(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),a=e[r+6]&15,o=5;o>=0;--o)a=a*256+e[r+o];return n==2047?a==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),t*Math.pow(2,n-52)*a)}function m2(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,a=0,o=0,s=n?-r:r;isFinite(s)?s==0?a=o=0:(a=Math.floor(Math.log(s)/Math.LN2),o=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(o)||o>4|n}var oc=function(e){for(var r=[],t=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:En(r)})):oc(e)}:oc,lc=function(e,r,t){for(var n=[],a=r;a0?ui(e,r+4,r+4+t-1):""},Eu=bu,Tu=function(e,r){var t=gr(e,r);return t>0?ui(e,r+4,r+4+t-1):""},ku=Tu,Su=function(e,r){var t=2*gr(e,r);return t>0?ui(e,r+4,r+4+t-1):""},Fu=Su,Cu=function(r,t){var n=gr(r,t);return n>0?Os(r,t+4,t+4+n):""},Ou=Cu,Du=function(e,r){var t=gr(e,r);return t>0?ui(e,r+4,r+4+t):""},Bu=Du,Iu=function(e,r){return A2(e,r)},to=Iu,Ds=function(r){return Array.isArray(r)||typeof Uint8Array!="undefined"&&r instanceof Uint8Array};Ke&&(Eu=function(r,t){if(!Buffer.isBuffer(r))return bu(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},ku=function(r,t){if(!Buffer.isBuffer(r))return Tu(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Fu=function(r,t){if(!Buffer.isBuffer(r))return Su(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},Ou=function(r,t){if(!Buffer.isBuffer(r))return Cu(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},Bu=function(r,t){if(!Buffer.isBuffer(r))return Du(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},to=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):Iu(r,t)},Ds=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array!="undefined"&&r instanceof Uint8Array});var ka=function(e,r){return e[r]},Ya=function(e,r){return e[r+1]*(1<<8)+e[r]},v2=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},gr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},$n=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},g2=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Xa(e,r){var t="",n,a,o=[],s,c,h,f;switch(r){case"dbcs":if(f=this.l,Ke&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(h=0;h0?$n:g2)(this,this.l),this.l+=4,n):(a=gr(this,this.l),this.l+=4,a);case 8:case-8:if(r==="f")return e==8?a=to(this,this.l):a=to([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:t=wu(this,this.l,e);break}}return this.l+=e,t}var x2=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},y2=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},_2=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function w2(e,r,t){var n=0,a=0;if(t==="dbcs"){for(a=0;a!=r.length;++a)_2(this,r.charCodeAt(a),this.l+2*a);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=r.length;++a)this[this.l+a]=r.charCodeAt(a)&255;n=r.length}else if(t==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,x2(this,r,this.l);break;case 8:if(n=8,t==="f"){m2(this,r,this.l);break}case 16:break;case-4:n=4,y2(this,r,this.l);break}return this.l+=n,this}function Ru(e,r){var t=wu(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function mr(e,r){e.l=r,e.read_shift=Xa,e.chk=Ru,e.write_shift=w2}function ln(e,r){e.l+=r}function ce(e){var r=Kn(e);return mr(r,0),r}function lr(){var e=[],r=Ke?256:2048,t=function(f){var u=ce(f);return mr(u,0),u},n=t(r),a=function(){!n||(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},o=function(f){return n&&f=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var s=e.next(o);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var c=0;c!=4;++c)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&Ds(t)&&e.push(t)}}function qa(e,r,t){var n=ur(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function fc(e,r,t){var n=ur(e);return n.s=qa(n.s,r.s,t),n.e=qa(n.e,r.s,t),n}function Ja(e,r){if(e.cRel&&e.c<0)for(e=ur(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=ur(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=rt(e);return!e.cRel&&e.cRel!=null&&(t=T2(t)),!e.rRel&&e.rRel!=null&&(t=b2(t)),t}function ts(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Jt(e.s.c)+":"+(e.e.cRel?"":"$")+Jt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+$t(e.s.r)+":"+(e.e.rRel?"":"$")+$t(e.e.r):Ja(e.s,r.biff)+":"+Ja(e.e,r.biff)}function Bs(e){return parseInt(E2(e),10)-1}function $t(e){return""+(e+1)}function b2(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function E2(e){return e.replace(/\$(\d+)$/,"$1")}function Is(e){for(var r=k2(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function Jt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function T2(e){return e.replace(/^([A-Z])/,"$$$1")}function k2(e){return e.replace(/^\$([A-Z])/,"$1")}function S2(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ut(e){for(var r=0,t=0,n=0;n=48&&a<=57?r=10*r+(a-48):a>=65&&a<=90&&(t=26*t+(a-64))}return{c:t-1,r:r-1}}function rt(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function yr(e){var r=e.indexOf(":");return r==-1?{s:Ut(e),e:Ut(e)}:{s:Ut(e.slice(0,r)),e:Ut(e.slice(r+1))}}function Ft(e,r){return typeof r=="undefined"||typeof r=="number"?Ft(e.s,e.e):(typeof e!="string"&&(e=rt(e)),typeof r!="string"&&(r=rt(r)),e==r?e:e+":"+r)}function ht(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,a=0,o=e.length;for(t=0;n26);++n)t=26*t+a;for(r.s.c=--t,t=0;n9);++n)t=10*t+a;if(r.s.r=--t,n===o||a!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=o&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)t=26*t+a;for(r.e.c=--t,t=0;n!=o&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)t=10*t+a;return r.e.r=--t,r}function hc(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=Rn(e.z,t?cr(r):r)}catch{}try{return e.w=Rn((e.XF||{}).numFmtId||(t?14:0),t?cr(r):r)}catch{return""+r}}function _n(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?fi[e.v]||e.v:r==null?hc(e,e.v):hc(e,r))}function ra(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function Mu(e,r,t){var n=t||{},a=e?Array.isArray(e):n.dense,o=e||(a?[]:{}),s=0,c=0;if(o&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var h=typeof n.origin=="string"?Ut(n.origin):n.origin;s=h.r,c=h.c}o["!ref"]||(o["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=ht(o["!ref"]);f.s.c=u.s.c,f.s.r=u.s.r,f.e.c=Math.max(f.e.c,u.e.c),f.e.r=Math.max(f.e.r,u.e.r),s==-1&&(f.e.r=s=u.e.r+1)}for(var p=0;p!=r.length;++p)if(!!r[p]){if(!Array.isArray(r[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var A=0;A!=r[p].length;++A)if(typeof r[p][A]!="undefined"){var m={v:r[p][A]},x=s+p,v=c+A;if(f.s.r>x&&(f.s.r=x),f.s.c>v&&(f.s.c=v),f.e.r0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function C2(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function O2(e,r){return r||(r=ce(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function Rs(e,r){var t=e.l,n=e.read_shift(1),a=Kt(e),o=[],s={t:a,h:a};if((n&1)!==0){for(var c=e.read_shift(4),h=0;h!=c;++h)o.push(C2(e));s.r=o}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function D2(e,r){var t=!1;return r==null&&(t=!0,r=ce(15+4*e.t.length)),r.write_shift(1,0),jt(e.t,r),t?r.slice(0,r.l):r}var B2=Rs;function I2(e,r){var t=!1;return r==null&&(t=!0,r=ce(23+4*e.t.length)),r.write_shift(1,1),jt(e.t,r),r.write_shift(4,1),O2({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function Or(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function na(e,r){return r==null&&(r=ce(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function aa(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function ia(e,r){return r==null&&(r=ce(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var R2=Kt,Pu=jt;function Ms(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function ro(e,r){var t=!1;return r==null&&(t=!0,r=ce(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var M2=Kt,ds=Ms,Ps=ro;function Lu(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var a=n===0?to([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):$n(r,0)>>2;return t?a/100:a}function Nu(e,r){r==null&&(r=ce(4));var t=0,n=0,a=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,t=1),n)r.write_shift(-4,((t?a:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Uu(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function P2(e,r){return r||(r=ce(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var oa=Uu,La=P2;function Na(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Zn(e,r){return(r||ce(8)).write_shift(8,e,"f")}function L2(e){var r={},t=e.read_shift(1),n=t>>>1,a=e.read_shift(1),o=e.read_shift(2,"i"),s=e.read_shift(1),c=e.read_shift(1),h=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=a;var f=Y2[a];f&&(r.rgb=bc(f));break;case 2:r.rgb=bc([s,c,h]);break;case 3:r.theme=a;break}return o!=0&&(r.tint=o>0?o/32767:o/32768),r}function no(e,r){if(r||(r=ce(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function N2(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function U2(e,r){r||(r=ce(2));var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return r.write_shift(1,t),r.write_shift(1,0),r}var ju=2,Ar=3,zi=11,ao=19,Hi=64,j2=65,z2=71,H2=4108,G2=4126,Vt=80,dc={1:{n:"CodePage",t:ju},2:{n:"Category",t:Vt},3:{n:"PresentationFormat",t:Vt},4:{n:"ByteCount",t:Ar},5:{n:"LineCount",t:Ar},6:{n:"ParagraphCount",t:Ar},7:{n:"SlideCount",t:Ar},8:{n:"NoteCount",t:Ar},9:{n:"HiddenCount",t:Ar},10:{n:"MultimediaClipCount",t:Ar},11:{n:"ScaleCrop",t:zi},12:{n:"HeadingPairs",t:H2},13:{n:"TitlesOfParts",t:G2},14:{n:"Manager",t:Vt},15:{n:"Company",t:Vt},16:{n:"LinksUpToDate",t:zi},17:{n:"CharacterCount",t:Ar},19:{n:"SharedDoc",t:zi},22:{n:"HyperlinksChanged",t:zi},23:{n:"AppVersion",t:Ar,p:"version"},24:{n:"DigSig",t:j2},26:{n:"ContentType",t:Vt},27:{n:"ContentStatus",t:Vt},28:{n:"Language",t:Vt},29:{n:"Version",t:Vt},255:{},2147483648:{n:"Locale",t:ao},2147483651:{n:"Behavior",t:ao},1919054434:{}},pc={1:{n:"CodePage",t:ju},2:{n:"Title",t:Vt},3:{n:"Subject",t:Vt},4:{n:"Author",t:Vt},5:{n:"Keywords",t:Vt},6:{n:"Comments",t:Vt},7:{n:"Template",t:Vt},8:{n:"LastAuthor",t:Vt},9:{n:"RevNumber",t:Vt},10:{n:"EditTime",t:Hi},11:{n:"LastPrinted",t:Hi},12:{n:"CreatedDate",t:Hi},13:{n:"ModifiedDate",t:Hi},14:{n:"PageCount",t:Ar},15:{n:"WordCount",t:Ar},16:{n:"CharCount",t:Ar},17:{n:"Thumbnail",t:z2},18:{n:"Application",t:Vt},19:{n:"DocSecurity",t:Ar},255:{},2147483648:{n:"Locale",t:ao},2147483651:{n:"Behavior",t:ao},1919054434:{}};function V2(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var W2=V2([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Y2=ur(W2),fi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},$2={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Gi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function zu(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Hu(e,r){var t=n2($2),n=[],a;n[n.length]=Ct,n[n.length]=ye("Types",null,{xmlns:Nt.CT,"xmlns:xsd":Nt.xsd,"xmlns:xsi":Nt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(h){return ye("Default",null,{Extension:h[0],ContentType:h[1]})}));var o=function(h){e[h]&&e[h].length>0&&(a=e[h][0],n[n.length]=ye("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Gi[h][r.bookType]||Gi[h].xlsx}))},s=function(h){(e[h]||[]).forEach(function(f){n[n.length]=ye("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:Gi[h][r.bookType]||Gi[h].xlsx})})},c=function(h){(e[h]||[]).forEach(function(f){n[n.length]=ye("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:t[h][0]})})};return o("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var qe={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Gu(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Da(e){var r=[Ct,ye("Relationships",null,{xmlns:Nt.RELS})];return Qt(e["!id"]).forEach(function(t){r[r.length]=ye("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function et(e,r,t,n,a,o){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,a.Id="rId"+r,a.Type=n,a.Target=t,o?a.TargetMode=o:[qe.HLINK,qe.XPATH,qe.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,r}function Q2(e){var r=[Ct];r.push(` +`),M=0;M0&&(k=k.slice(0,k.length-1),k=k.slice(0,k.lastIndexOf("/")+1),P.slice(0,k.length)!=k););var re=(F[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var ue="--"+(re[1]||""),ee=[],te=[],ne={FileIndex:ee,FullPaths:te};R(ne);var ge,we=0;for(M=0;M=32&&Fe<128&&++ge;var ke=ge>=we*4/5;M.push(F),M.push("Content-Location: "+(k.root||"file:///C:/SheetJS/")+re),M.push("Content-Transfer-Encoding: "+(ke?"quoted-printable":"base64")),M.push("Content-Type: "+gi(ue,re)),M.push(""),M.push(ke?jn(ne):To(ne))}return M.push(F+`--\r +`),M.join(`\r +`)}function So(w){var D={};return R(D,w),D}function ca(w,D,k,F){var M=F&&F.unsafe;M||R(w);var P=!M&&at.find(w,D);if(!P){var re=w.FullPaths[0];D.slice(0,re.length)==re?re=D:(re.slice(-1)!="/"&&(re+="/"),re=(re+D).replace("//","/")),P={name:a(D),type:2},w.FileIndex.push(P),w.FullPaths.push(re),M||at.utils.cfb_gc(w)}return P.content=k,P.size=k?k.length:0,F&&(F.CLSID&&(P.clsid=F.CLSID),F.mt&&(P.mt=F.mt),F.ct&&(P.ct=F.ct)),P}function Fo(w,D){R(w);var k=at.find(w,D);if(k){for(var F=0;F0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(xu.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-o.getTimezoneOffset()*60*1e3)),o}function yo(e,r){if(Ke&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return mn(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return mn(Bm(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder!="undefined")try{if(r){if(e[0]==255&&e[1]==254)return mn(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return mn(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return t[o]||o})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function ur(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ur(e[t]));return r}function gt(e,r){for(var t="";t.length3&&f2.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(a>0||o>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function Ge(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return Ke?n=En(t):n=Rm(t),at.utils.cfb_add(e,r,n)}at.utils.cfb_add(e,r,t)}else e.file(r,t)}function Ss(){return at.utils.cfb_new()}var Ot=`\r +`,h2={""":'"',"'":"'",">":">","<":"<","&":"&"},Fs=ks(h2),Cs=/[&<>'"]/g,d2=/[\u0000-\u0008\u000b-\u001f]/g;function tt(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(d2,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function ac(e){return tt(e).replace(/ /g,"_x0020_")}var yu=/[\u0000-\u001f]/g;function p2(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(/\n/g,"
").replace(yu,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function A2(e){var r=e+"";return r.replace(Cs,function(t){return Fs[t]}).replace(yu,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function m2(e){return e.replace(/(\r\n|[\r\n])/g," ")}function v2(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function es(e){for(var r="",t=0,n=0,a=0,o=0,s=0,c=0;t191&&n<224){s=(n&31)<<6,s|=a&63,r+=String.fromCharCode(s);continue}if(o=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(a&63)<<6|o&63);continue}s=e.charCodeAt(t++),c=((n&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(c>>>10&1023)),r+=String.fromCharCode(56320+(c&1023))}return r}function ic(e){var r=Kn(2*e.length),t,n,a=1,o=0,s=0,c;for(n=0;n>>10&1023),t=56320+(t&1023)),s!==0&&(r[o++]=s&255,r[o++]=s>>>8,s=0),r[o++]=t%256,r[o++]=t>>>8;return r.slice(0,o).toString("ucs2")}function oc(e){return En(e,"binary").toString("utf8")}var Ui="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",Xa=Ke&&(oc(Ui)==es(Ui)&&oc||ic(Ui)==es(Ui)&&ic)||es,mn=Ke?function(e){return En(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,a=0;t>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(a>>18&7))),r.push(String.fromCharCode(144+(a>>12&63))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(a&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},g2=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` +`).replace(/<[^>]*>/g,""),a=0;a"+r+""}function ai(e){return Qt(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ye(e,r,t){return"<"+e+(t!=null?ai(t):"")+(r!=null?(r.match(_u)?' xml:space="preserve"':"")+">"+r+""}function hs(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function x2(e,r){switch(typeof e){case"string":var t=ye("vt:lpwstr",tt(e));return r&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return ye((e|0)==e?"vt:i4":"vt:r8",tt(String(e)));case"boolean":return ye("vt:bool",e?"true":"false")}if(e instanceof Date)return ye("vt:filetime",hs(e));throw new Error("Unable to serialize "+e)}var Nt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Pa=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],vr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function y2(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),a=e[r+6]&15,o=5;o>=0;--o)a=a*256+e[r+o];return n==2047?a==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),t*Math.pow(2,n-52)*a)}function _2(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,a=0,o=0,s=n?-r:r;isFinite(s)?s==0?a=o=0:(a=Math.floor(Math.log(s)/Math.LN2),o=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(o)||o>4|n}var sc=function(e){for(var r=[],t=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:En(r)})):sc(e)}:sc,cc=function(e,r,t){for(var n=[],a=r;a0?fi(e,r+4,r+4+t-1):""},Eu=bu,Tu=function(e,r){var t=gr(e,r);return t>0?fi(e,r+4,r+4+t-1):""},ku=Tu,Su=function(e,r){var t=2*gr(e,r);return t>0?fi(e,r+4,r+4+t-1):""},Fu=Su,Cu=function(r,t){var n=gr(r,t);return n>0?Os(r,t+4,t+4+n):""},Ou=Cu,Du=function(e,r){var t=gr(e,r);return t>0?fi(e,r+4,r+4+t):""},Bu=Du,Iu=function(e,r){return y2(e,r)},eo=Iu,Ds=function(r){return Array.isArray(r)||typeof Uint8Array!="undefined"&&r instanceof Uint8Array};Ke&&(Eu=function(r,t){if(!Buffer.isBuffer(r))return bu(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},ku=function(r,t){if(!Buffer.isBuffer(r))return Tu(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Fu=function(r,t){if(!Buffer.isBuffer(r))return Su(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},Ou=function(r,t){if(!Buffer.isBuffer(r))return Cu(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},Bu=function(r,t){if(!Buffer.isBuffer(r))return Du(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},eo=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):Iu(r,t)},Ds=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array!="undefined"&&r instanceof Uint8Array});var ka=function(e,r){return e[r]},$a=function(e,r){return e[r+1]*(1<<8)+e[r]},w2=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},gr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},Qn=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},b2=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function qa(e,r){var t="",n,a,o=[],s,c,h,f;switch(r){case"dbcs":if(f=this.l,Ke&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(h=0;h0?Qn:b2)(this,this.l),this.l+=4,n):(a=gr(this,this.l),this.l+=4,a);case 8:case-8:if(r==="f")return e==8?a=eo(this,this.l):a=eo([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:t=wu(this,this.l,e);break}}return this.l+=e,t}var E2=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},T2=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},k2=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function S2(e,r,t){var n=0,a=0;if(t==="dbcs"){for(a=0;a!=r.length;++a)k2(this,r.charCodeAt(a),this.l+2*a);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=r.length;++a)this[this.l+a]=r.charCodeAt(a)&255;n=r.length}else if(t==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,E2(this,r,this.l);break;case 8:if(n=8,t==="f"){_2(this,r,this.l);break}case 16:break;case-4:n=4,T2(this,r,this.l);break}return this.l+=n,this}function Ru(e,r){var t=wu(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function mr(e,r){e.l=r,e.read_shift=qa,e.chk=Ru,e.write_shift=S2}function sn(e,r){e.l+=r}function ce(e){var r=Kn(e);return mr(r,0),r}function lr(){var e=[],r=Ke?256:2048,t=function(f){var u=ce(f);return mr(u,0),u},n=t(r),a=function(){!n||(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},o=function(f){return n&&f=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var s=e.next(o);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var c=0;c!=4;++c)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&Ds(t)&&e.push(t)}}function Ja(e,r,t){var n=ur(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function hc(e,r,t){var n=ur(e);return n.s=Ja(n.s,r.s,t),n.e=Ja(n.e,r.s,t),n}function Ka(e,r){if(e.cRel&&e.c<0)for(e=ur(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=ur(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=rt(e);return!e.cRel&&e.cRel!=null&&(t=O2(t)),!e.rRel&&e.rRel!=null&&(t=F2(t)),t}function ts(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Jt(e.s.c)+":"+(e.e.cRel?"":"$")+Jt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+$t(e.s.r)+":"+(e.e.rRel?"":"$")+$t(e.e.r):Ka(e.s,r.biff)+":"+Ka(e.e,r.biff)}function Bs(e){return parseInt(C2(e),10)-1}function $t(e){return""+(e+1)}function F2(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function C2(e){return e.replace(/\$(\d+)$/,"$1")}function Is(e){for(var r=D2(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function Jt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function O2(e){return e.replace(/^([A-Z])/,"$$$1")}function D2(e){return e.replace(/^\$([A-Z])/,"$1")}function B2(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ut(e){for(var r=0,t=0,n=0;n=48&&a<=57?r=10*r+(a-48):a>=65&&a<=90&&(t=26*t+(a-64))}return{c:t-1,r:r-1}}function rt(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function yr(e){var r=e.indexOf(":");return r==-1?{s:Ut(e),e:Ut(e)}:{s:Ut(e.slice(0,r)),e:Ut(e.slice(r+1))}}function Ct(e,r){return typeof r=="undefined"||typeof r=="number"?Ct(e.s,e.e):(typeof e!="string"&&(e=rt(e)),typeof r!="string"&&(r=rt(r)),e==r?e:e+":"+r)}function ht(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,a=0,o=e.length;for(t=0;n26);++n)t=26*t+a;for(r.s.c=--t,t=0;n9);++n)t=10*t+a;if(r.s.r=--t,n===o||a!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=o&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)t=26*t+a;for(r.e.c=--t,t=0;n!=o&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)t=10*t+a;return r.e.r=--t,r}function dc(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=Mn(e.z,t?cr(r):r)}catch{}try{return e.w=Mn((e.XF||{}).numFmtId||(t?14:0),t?cr(r):r)}catch{return""+r}}function _n(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?hi[e.v]||e.v:r==null?dc(e,e.v):dc(e,r))}function ra(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function Mu(e,r,t){var n=t||{},a=e?Array.isArray(e):n.dense,o=e||(a?[]:{}),s=0,c=0;if(o&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var h=typeof n.origin=="string"?Ut(n.origin):n.origin;s=h.r,c=h.c}o["!ref"]||(o["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=ht(o["!ref"]);f.s.c=u.s.c,f.s.r=u.s.r,f.e.c=Math.max(f.e.c,u.e.c),f.e.r=Math.max(f.e.r,u.e.r),s==-1&&(f.e.r=s=u.e.r+1)}for(var p=0;p!=r.length;++p)if(!!r[p]){if(!Array.isArray(r[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var A=0;A!=r[p].length;++A)if(typeof r[p][A]!="undefined"){var m={v:r[p][A]},y=s+p,v=c+A;if(f.s.r>y&&(f.s.r=y),f.s.c>v&&(f.s.c=v),f.e.r0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function R2(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function M2(e,r){return r||(r=ce(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function Rs(e,r){var t=e.l,n=e.read_shift(1),a=Kt(e),o=[],s={t:a,h:a};if((n&1)!==0){for(var c=e.read_shift(4),h=0;h!=c;++h)o.push(R2(e));s.r=o}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function P2(e,r){var t=!1;return r==null&&(t=!0,r=ce(15+4*e.t.length)),r.write_shift(1,0),jt(e.t,r),t?r.slice(0,r.l):r}var L2=Rs;function N2(e,r){var t=!1;return r==null&&(t=!0,r=ce(23+4*e.t.length)),r.write_shift(1,1),jt(e.t,r),r.write_shift(4,1),M2({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function Fr(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function na(e,r){return r==null&&(r=ce(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function aa(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function ia(e,r){return r==null&&(r=ce(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var U2=Kt,Pu=jt;function Ms(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function to(e,r){var t=!1;return r==null&&(t=!0,r=ce(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var j2=Kt,ds=Ms,Ps=to;function Lu(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var a=n===0?eo([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Qn(r,0)>>2;return t?a/100:a}function Nu(e,r){r==null&&(r=ce(4));var t=0,n=0,a=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,t=1),n)r.write_shift(-4,((t?a:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Uu(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function z2(e,r){return r||(r=ce(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var oa=Uu,Na=z2;function Ua(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Zn(e,r){return(r||ce(8)).write_shift(8,e,"f")}function H2(e){var r={},t=e.read_shift(1),n=t>>>1,a=e.read_shift(1),o=e.read_shift(2,"i"),s=e.read_shift(1),c=e.read_shift(1),h=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=a;var f=J2[a];f&&(r.rgb=Ec(f));break;case 2:r.rgb=Ec([s,c,h]);break;case 3:r.theme=a;break}return o!=0&&(r.tint=o>0?o/32767:o/32768),r}function ro(e,r){if(r||(r=ce(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function G2(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function V2(e,r){r||(r=ce(2));var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return r.write_shift(1,t),r.write_shift(1,0),r}var ju=2,Ar=3,ji=11,no=19,zi=64,W2=65,Y2=71,$2=4108,Q2=4126,Vt=80,pc={1:{n:"CodePage",t:ju},2:{n:"Category",t:Vt},3:{n:"PresentationFormat",t:Vt},4:{n:"ByteCount",t:Ar},5:{n:"LineCount",t:Ar},6:{n:"ParagraphCount",t:Ar},7:{n:"SlideCount",t:Ar},8:{n:"NoteCount",t:Ar},9:{n:"HiddenCount",t:Ar},10:{n:"MultimediaClipCount",t:Ar},11:{n:"ScaleCrop",t:ji},12:{n:"HeadingPairs",t:$2},13:{n:"TitlesOfParts",t:Q2},14:{n:"Manager",t:Vt},15:{n:"Company",t:Vt},16:{n:"LinksUpToDate",t:ji},17:{n:"CharacterCount",t:Ar},19:{n:"SharedDoc",t:ji},22:{n:"HyperlinksChanged",t:ji},23:{n:"AppVersion",t:Ar,p:"version"},24:{n:"DigSig",t:W2},26:{n:"ContentType",t:Vt},27:{n:"ContentStatus",t:Vt},28:{n:"Language",t:Vt},29:{n:"Version",t:Vt},255:{},2147483648:{n:"Locale",t:no},2147483651:{n:"Behavior",t:no},1919054434:{}},Ac={1:{n:"CodePage",t:ju},2:{n:"Title",t:Vt},3:{n:"Subject",t:Vt},4:{n:"Author",t:Vt},5:{n:"Keywords",t:Vt},6:{n:"Comments",t:Vt},7:{n:"Template",t:Vt},8:{n:"LastAuthor",t:Vt},9:{n:"RevNumber",t:Vt},10:{n:"EditTime",t:zi},11:{n:"LastPrinted",t:zi},12:{n:"CreatedDate",t:zi},13:{n:"ModifiedDate",t:zi},14:{n:"PageCount",t:Ar},15:{n:"WordCount",t:Ar},16:{n:"CharCount",t:Ar},17:{n:"Thumbnail",t:Y2},18:{n:"Application",t:Vt},19:{n:"DocSecurity",t:Ar},255:{},2147483648:{n:"Locale",t:no},2147483651:{n:"Behavior",t:no},1919054434:{}};function X2(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var q2=X2([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),J2=ur(q2),hi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},K2={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Hi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function zu(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Hu(e,r){var t=l2(K2),n=[],a;n[n.length]=Ot,n[n.length]=ye("Types",null,{xmlns:Nt.CT,"xmlns:xsd":Nt.xsd,"xmlns:xsi":Nt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(h){return ye("Default",null,{Extension:h[0],ContentType:h[1]})}));var o=function(h){e[h]&&e[h].length>0&&(a=e[h][0],n[n.length]=ye("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Hi[h][r.bookType]||Hi[h].xlsx}))},s=function(h){(e[h]||[]).forEach(function(f){n[n.length]=ye("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:Hi[h][r.bookType]||Hi[h].xlsx})})},c=function(h){(e[h]||[]).forEach(function(f){n[n.length]=ye("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:t[h][0]})})};return o("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var qe={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Gu(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Ba(e){var r=[Ot,ye("Relationships",null,{xmlns:Nt.RELS})];return Qt(e["!id"]).forEach(function(t){r[r.length]=ye("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function et(e,r,t,n,a,o){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,a.Id="rId"+r,a.Type=n,a.Target=t,o?a.TargetMode=o:[qe.HLINK,qe.XPATH,qe.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,r}function Z2(e){var r=[Ot];r.push(` `),r.push(` `);for(var t=0;t -`);return r.push(""),r.join("")}function Ac(e,r,t){return[' +`);return r.push("
"),r.join("")}function mc(e,r,t){return[' `,' `,` -`].join("")}function X2(e,r){return[' +`].join("")}function ev(e,r){return[' `,' `,` -`].join("")}function q2(e){var r=[Ct];r.push(` -`);for(var t=0;t!=e.length;++t)r.push(Ac(e[t][0],e[t][1])),r.push(X2("",e[t][0]));return r.push(Ac("","Document","pkg")),r.push(""),r.join("")}function Vu(){return'SheetJS '+qi.version+""}var qn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function rs(e,r,t,n,a){a[e]!=null||r==null||r===""||(a[e]=r,r=tt(r),n[n.length]=t?ye(e,r,t):Yt(e,r))}function Wu(e,r){var t=r||{},n=[Ct,ye("cp:coreProperties",null,{"xmlns:cp":Nt.CORE_PROPS,"xmlns:dc":Nt.dc,"xmlns:dcterms":Nt.dcterms,"xmlns:dcmitype":Nt.dcmitype,"xmlns:xsi":Nt.xsi})],a={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&rs("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:hs(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&rs("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:hs(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var o=0;o!=qn.length;++o){var s=qn[o],c=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;c===!0?c="1":c===!1?c="0":typeof c=="number"&&(c=String(c)),c!=null&&rs(s[0],c,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Ba=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Yu=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function $u(e){var r=[],t=ye;return e||(e={}),e.Application="SheetJS",r[r.length]=Ct,r[r.length]=ye("Properties",null,{xmlns:Nt.EXT_PROPS,"xmlns:vt":Nt.vt}),Ba.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=tt(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(r[r.length]=t(n[0],a))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return""+tt(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Qu(e){var r=[Ct,ye("Properties",null,{xmlns:Nt.CUST_PROPS,"xmlns:vt":Nt.vt})];if(!e)return r.join("");var t=1;return Qt(e).forEach(function(a){++t,r[r.length]=ye("property",p2(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:tt(a)})}),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var mc={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function J2(e,r){var t=[];return Qt(mc).map(function(n){for(var a=0;a'+a.join("")+""}function Z2(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),a=(t-n)/Math.pow(2,32);n*=1e7,a*=1e7;var o=n/Math.pow(2,32)|0;o>0&&(n=n%Math.pow(2,32),a+=o);var s=ce(8);return s.write_shift(4,n),s.write_shift(4,a),s}function vc(e,r){var t=ce(4),n=ce(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=ce(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=Z2(r);break;case 31:case 80:for(n=ce(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Wt([t,n])}var Xu=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function ev(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function gc(e,r,t){var n=ce(8),a=[],o=[],s=8,c=0,h=ce(8),f=ce(8);if(h.write_shift(4,2),h.write_shift(4,1200),f.write_shift(4,1),o.push(h),a.push(f),s+=8+h.length,!r){f=ce(8),f.write_shift(4,0),a.unshift(f);var u=[ce(4)];for(u[0].write_shift(4,e.length),c=0;c-1||Yu.indexOf(e[c][0])>-1)&&e[c][1]!=null){var A=e[c][1],m=0;if(r){m=+r[e[c][0]];var x=t[m];if(x.p=="version"&&typeof A=="string"){var v=A.split(".");A=(+v[0]<<16)+(+v[1]||0)}h=vc(x.t,A)}else{var _=ev(A);_==-1&&(_=31,A=String(A)),h=vc(_,A)}o.push(h),f=ce(8),f.write_shift(4,r?m:2+c),a.push(f),s+=8+h.length}var I=8*(o.length+1);for(c=0;c=12?2:1),a="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var o=e.read_shift(1);o&&(a="dbcs-cont")}else t.biff==12&&(a="wstr");t.biff>=2&&t.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return s}function nv(e){var r=e.t||"",t=ce(3+0);t.write_shift(2,r.length),t.write_shift(1,1);var n=ce(2*r.length);n.write_shift(2*r.length,r,"utf16le");var a=[t,n];return Wt(a)}function av(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function iv(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):av(e,n,t)}function ov(e,r,t){if(t.biff>5)return iv(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Zu(e,r,t){return t||(t=ce(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function yc(e,r){r||(r=ce(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3;break}r.write_shift(4,2),r.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(t=0;t-1?n.slice(0,a):n;for(r.write_shift(4,2*(c.length+1)),t=0;t-1?n.slice(a+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t8?4:2,a=e.read_shift(n),o=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,o,s]}function cv(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r},e:{c:a,r:t}}}function ef(e,r){return r||(r=ce(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function Ls(e,r,t){var n=1536,a=16;switch(t.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=ce(a);return o.write_shift(2,n),o.write_shift(2,r),a>4&&o.write_shift(2,29282),a>6&&o.write_shift(2,1997),a>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function uv(e,r){var t=!r||r.biff==8,n=ce(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l=8?2:1,n=ce(8+t*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function hv(e,r){var t=ce(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],a=0;an.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}function xv(e,r){var t=r.biff==8||!r.biff?4:2,n=ce(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function _c(e,r,t,n){var a=t&&t.biff==5;n||(n=ce(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,r<<4));var o=0;return e.numFmtId>0&&a&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function yv(e){var r=ce(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function _v(e,r,t,n,a,o){var s=ce(8);return ea(e,r,n,s),Ju(t,o,s),s}function wv(e,r,t,n){var a=ce(14);return ea(e,r,n,a),Zn(t,a),a}function bv(e,r,t){if(t.biff<8)return Ev(e,r,t);for(var n=[],a=e.l+r,o=e.read_shift(t.biff>8?4:2);o--!==0;)n.push(lv(e,t.biff>8?12:6,t));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Ev(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=Ku(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function Tv(e){var r=ce(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t=12?4:2,a=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),c=e.read_shift(n),h=e.read_shift(2);n==2&&(e.l+=2);var f={s:a,e:o,w:s,ixfe:c,flags:h};return(t.biff>=5||!t.biff)&&(f.level=h>>8&7),f}function Ov(e,r){var t=ce(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function Dv(e){for(var r=ce(2*e),t=0;t1048576&&(v=1e6),p!=2&&(_=u.read_shift(2));var I=u.read_shift(2),T=h.codepage||1252;p!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(T=e[u[u.l]]),u.l+=1,u.l+=2),x&&(u.l+=36);for(var b=[],P={},j=Math.min(u.length,p==2?521:_-10-(m?264:0)),O=x?32:11;u.l0;){if(u[u.l]===42){u.l+=I;continue}for(++u.l,f[++M]=[],q=0,q=0;q!=b.length;++q){var U=u.slice(u.l,u.l+b[q].len);u.l+=b[q].len,mr(U,0);var le=Yn.utils.decode(T,U);switch(b[q].type){case"C":le.trim().length&&(f[M][q]=le.replace(/\s+$/,""));break;case"D":le.length===8?f[M][q]=new Date(+le.slice(0,4),+le.slice(4,6)-1,+le.slice(6,8)):f[M][q]=le;break;case"F":f[M][q]=parseFloat(le.trim());break;case"+":case"I":f[M][q]=x?U.read_shift(-4,"i")^2147483648:U.read_shift(4,"i");break;case"L":switch(le.trim().toUpperCase()){case"Y":case"T":f[M][q]=!0;break;case"N":case"F":f[M][q]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+le+"|")}break;case"M":if(!A)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));f[M][q]="##MEMO##"+(x?parseInt(le.trim(),10):U.read_shift(4));break;case"N":le=le.replace(/\u0000/g,"").trim(),le&&le!="."&&(f[M][q]=+le||0);break;case"@":f[M][q]=new Date(U.read_shift(-8,"f")-621356832e5);break;case"T":f[M][q]=new Date((U.read_shift(4)-2440588)*864e5+U.read_shift(4));break;case"Y":f[M][q]=U.read_shift(4,"i")/1e4+U.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[M][q]=-U.read_shift(-8,"f");break;case"B":if(m&&b[q].len==8){f[M][q]=U.read_shift(8,"f");break}case"G":case"P":U.l+=b[q].len;break;case"0":if(b[q].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[q].type)}}}if(p!=2&&u.l=0&&ei(+f.codepage),f.type=="string")throw new Error("Cannot write DBF to JS string");var u=lr(),p=co(c,{header:1,raw:!0,cellDates:!0}),A=p[0],m=p.slice(1),x=c["!cols"]||[],v=0,_=0,I=0,T=1;for(v=0;v250&&(U=250),q=((x[v]||{}).DBF||{}).type,q=="C"&&x[v].DBF.len>U&&(U=x[v].DBF.len),M=="B"&&q=="N"&&(M="N",O[v]=x[v].DBF.dec,U=x[v].DBF.len),j[v]=M=="C"||q=="N"?U:o[M]||0,T+=j[v],P[v]=M}var he=u.next(32);for(he.write_shift(4,318902576),he.write_shift(4,m.length),he.write_shift(2,296+32*I),he.write_shift(2,T),v=0;v<4;++v)he.write_shift(4,0);for(he.write_shift(4,0|(+r[ru]||3)<<8),v=0,_=0;v":190,"?":191,"{":223},r=new RegExp("\x1BN("+Qt(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(A,m){var x=e[m];return typeof x=="number"?W0(x):x},n=function(A,m,x){var v=m.charCodeAt(0)-32<<4|x.charCodeAt(0)-48;return v==59?A:W0(v)};e["|"]=254;function a(A,m){switch(m.type){case"base64":return o(yn(A),m);case"binary":return o(A,m);case"buffer":return o(Ke&&Buffer.isBuffer(A)?A.toString("binary"):li(A),m);case"array":return o(yo(A),m)}throw new Error("Unrecognized type "+m.type)}function o(A,m){var x=A.split(/[\n\r]+/),v=-1,_=-1,I=0,T=0,b=[],P=[],j=null,O={},M=[],q=[],U=[],le=0,he;for(+m.codepage>=0&&ei(+m.codepage);I!==x.length;++I){le=0;var Ae=x[I].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),Ee=Ae.replace(/;;/g,"\0").split(";").map(function(W){return W.replace(/\u0000/g,";")}),Ve=Ee[0],Me;if(Ae.length>0)switch(Ve){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Ee[1].charAt(0)=="P"&&P.push(Ae.slice(3).replace(/;;/g,";"));break;case"C":var yt=!1,Je=!1,Zt=!1,vt=!1,Ot=-1,_t=-1;for(T=1;T-1&&b[Ot][_t];if(!ie||!ie[1])throw new Error("SYLK shared formula cannot find base");b[v][_][1]=Rg(ie[1],{r:v-Ot,c:_-_t})}break;case"F":var Q=0;for(T=1;T0?(M[v].hpt=le,M[v].hpx=of(le)):le===0&&(M[v].hidden=!0);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Ae)}Q<1&&(j=null);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Ae)}}return M.length>0&&(O["!rows"]=M),q.length>0&&(O["!cols"]=q),m&&m.sheetRows&&(b=b.slice(0,m.sheetRows)),[b,O]}function s(A,m){var x=a(A,m),v=x[0],_=x[1],I=Pa(v,m);return Qt(_).forEach(function(T){I[T]=_[T]}),I}function c(A,m){return ra(s(A,m),m)}function h(A,m,x,v){var _="C;Y"+(x+1)+";X"+(v+1)+";K";switch(A.t){case"n":_+=A.v||0,A.f&&!A.F&&(_+=";E"+js(A.f,{r:x,c:v}));break;case"b":_+=A.v?"TRUE":"FALSE";break;case"e":_+=A.w||A.v;break;case"d":_+='"'+(A.w||A.v)+'"';break;case"s":_+='"'+A.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return _}function f(A,m){m.forEach(function(x,v){var _="F;W"+(v+1)+" "+(v+1)+" ";x.hidden?_+="0":(typeof x.width=="number"&&!x.wpx&&(x.wpx=io(x.width)),typeof x.wpx=="number"&&!x.wch&&(x.wch=oo(x.wpx)),typeof x.wch=="number"&&(_+=Math.round(x.wch))),_.charAt(_.length-1)!=" "&&A.push(_)})}function u(A,m){m.forEach(function(x,v){var _="F;";x.hidden?_+="M0;":x.hpt?_+="M"+20*x.hpt+";":x.hpx&&(_+="M"+20*so(x.hpx)+";"),_.length>2&&A.push(_+"R"+(v+1))})}function p(A,m){var x=["ID;PWXL;N;E"],v=[],_=ht(A["!ref"]),I,T=Array.isArray(A),b=`\r -`;x.push("P;PGeneral"),x.push("F;P0;DG0G8;M255"),A["!cols"]&&f(x,A["!cols"]),A["!rows"]&&u(x,A["!rows"]),x.push("B;Y"+(_.e.r-_.s.r+1)+";X"+(_.e.c-_.s.c+1)+";D"+[_.s.c,_.s.r,_.e.c,_.e.r].join(" "));for(var P=_.s.r;P<=_.e.r;++P)for(var j=_.s.c;j<=_.e.c;++j){var O=rt({r:P,c:j});I=T?(A[P]||[])[j]:A[O],!(!I||I.v==null&&(!I.f||I.F))&&v.push(h(I,A,P,j))}return x.join(b)+b+v.join(b)+b+"E"+b}return{to_workbook:c,to_sheet:s,from_sheet:p}}(),Pv=function(){function e(o,s){switch(s.type){case"base64":return r(yn(o),s);case"binary":return r(o,s);case"buffer":return r(Ke&&Buffer.isBuffer(o)?o.toString("binary"):li(o),s);case"array":return r(yo(o),s)}throw new Error("Unrecognized type "+s.type)}function r(o,s){for(var c=o.split(` -`),h=-1,f=-1,u=0,p=[];u!==c.length;++u){if(c[u].trim()==="BOT"){p[++h]=[],f=0;continue}if(!(h<0)){var A=c[u].trim().split(","),m=A[0],x=A[1];++u;for(var v=c[u]||"";(v.match(/["]/g)||[]).length&1&&u +`);for(var t=0;t!=e.length;++t)r.push(mc(e[t][0],e[t][1])),r.push(ev("",e[t][0]));return r.push(mc("","Document","pkg")),r.push(""),r.join("")}function Vu(){return'SheetJS '+Xi.version+""}var qn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function rs(e,r,t,n,a){a[e]!=null||r==null||r===""||(a[e]=r,r=tt(r),n[n.length]=t?ye(e,r,t):Yt(e,r))}function Wu(e,r){var t=r||{},n=[Ot,ye("cp:coreProperties",null,{"xmlns:cp":Nt.CORE_PROPS,"xmlns:dc":Nt.dc,"xmlns:dcterms":Nt.dcterms,"xmlns:dcmitype":Nt.dcmitype,"xmlns:xsi":Nt.xsi})],a={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&rs("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:hs(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&rs("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:hs(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var o=0;o!=qn.length;++o){var s=qn[o],c=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;c===!0?c="1":c===!1?c="0":typeof c=="number"&&(c=String(c)),c!=null&&rs(s[0],c,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Ia=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Yu=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function $u(e){var r=[],t=ye;return e||(e={}),e.Application="SheetJS",r[r.length]=Ot,r[r.length]=ye("Properties",null,{xmlns:Nt.EXT_PROPS,"xmlns:vt":Nt.vt}),Ia.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=tt(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(r[r.length]=t(n[0],a))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return""+tt(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Qu(e){var r=[Ot,ye("Properties",null,{xmlns:Nt.CUST_PROPS,"xmlns:vt":Nt.vt})];if(!e)return r.join("");var t=1;return Qt(e).forEach(function(a){++t,r[r.length]=ye("property",x2(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:tt(a)})}),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var vc={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function rv(e,r){var t=[];return Qt(vc).map(function(n){for(var a=0;a'+a.join("")+""}function av(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),a=(t-n)/Math.pow(2,32);n*=1e7,a*=1e7;var o=n/Math.pow(2,32)|0;o>0&&(n=n%Math.pow(2,32),a+=o);var s=ce(8);return s.write_shift(4,n),s.write_shift(4,a),s}function gc(e,r){var t=ce(4),n=ce(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=ce(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=av(r);break;case 31:case 80:for(n=ce(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Wt([t,n])}var Xu=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function iv(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function xc(e,r,t){var n=ce(8),a=[],o=[],s=8,c=0,h=ce(8),f=ce(8);if(h.write_shift(4,2),h.write_shift(4,1200),f.write_shift(4,1),o.push(h),a.push(f),s+=8+h.length,!r){f=ce(8),f.write_shift(4,0),a.unshift(f);var u=[ce(4)];for(u[0].write_shift(4,e.length),c=0;c-1||Yu.indexOf(e[c][0])>-1)&&e[c][1]!=null){var A=e[c][1],m=0;if(r){m=+r[e[c][0]];var y=t[m];if(y.p=="version"&&typeof A=="string"){var v=A.split(".");A=(+v[0]<<16)+(+v[1]||0)}h=gc(y.t,A)}else{var _=iv(A);_==-1&&(_=31,A=String(A)),h=gc(_,A)}o.push(h),f=ce(8),f.write_shift(4,r?m:2+c),a.push(f),s+=8+h.length}var I=8*(o.length+1);for(c=0;c=12?2:1),a="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var o=e.read_shift(1);o&&(a="dbcs-cont")}else t.biff==12&&(a="wstr");t.biff>=2&&t.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return s}function lv(e){var r=e.t||"",t=ce(3+0);t.write_shift(2,r.length),t.write_shift(1,1);var n=ce(2*r.length);n.write_shift(2*r.length,r,"utf16le");var a=[t,n];return Wt(a)}function cv(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function uv(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):cv(e,n,t)}function fv(e,r,t){if(t.biff>5)return uv(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Zu(e,r,t){return t||(t=ce(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function _c(e,r){r||(r=ce(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3;break}r.write_shift(4,2),r.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(t=0;t-1?n.slice(0,a):n;for(r.write_shift(4,2*(c.length+1)),t=0;t-1?n.slice(a+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t8?4:2,a=e.read_shift(n),o=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,o,s]}function pv(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r},e:{c:a,r:t}}}function ef(e,r){return r||(r=ce(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function Ls(e,r,t){var n=1536,a=16;switch(t.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=ce(a);return o.write_shift(2,n),o.write_shift(2,r),a>4&&o.write_shift(2,29282),a>6&&o.write_shift(2,1997),a>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function Av(e,r){var t=!r||r.biff==8,n=ce(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l=8?2:1,n=ce(8+t*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function vv(e,r){var t=ce(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],a=0;an.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}function Ev(e,r){var t=r.biff==8||!r.biff?4:2,n=ce(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function wc(e,r,t,n){var a=t&&t.biff==5;n||(n=ce(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,r<<4));var o=0;return e.numFmtId>0&&a&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function Tv(e){var r=ce(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function kv(e,r,t,n,a,o){var s=ce(8);return ea(e,r,n,s),Ju(t,o,s),s}function Sv(e,r,t,n){var a=ce(14);return ea(e,r,n,a),Zn(t,a),a}function Fv(e,r,t){if(t.biff<8)return Cv(e,r,t);for(var n=[],a=e.l+r,o=e.read_shift(t.biff>8?4:2);o--!==0;)n.push(dv(e,t.biff>8?12:6,t));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Cv(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=Ku(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function Ov(e){var r=ce(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t=12?4:2,a=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),c=e.read_shift(n),h=e.read_shift(2);n==2&&(e.l+=2);var f={s:a,e:o,w:s,ixfe:c,flags:h};return(t.biff>=5||!t.biff)&&(f.level=h>>8&7),f}function Mv(e,r){var t=ce(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function Pv(e){for(var r=ce(2*e),t=0;t1048576&&(v=1e6),p!=2&&(_=u.read_shift(2));var I=u.read_shift(2),T=h.codepage||1252;p!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(T=e[u[u.l]]),u.l+=1,u.l+=2),y&&(u.l+=36);for(var b=[],L={},j=Math.min(u.length,p==2?521:_-10-(m?264:0)),O=y?32:11;u.l0;){if(u[u.l]===42){u.l+=I;continue}for(++u.l,f[++R]=[],H=0,H=0;H!=b.length;++H){var U=u.slice(u.l,u.l+b[H].len);u.l+=b[H].len,mr(U,0);var le=$n.utils.decode(T,U);switch(b[H].type){case"C":le.trim().length&&(f[R][H]=le.replace(/\s+$/,""));break;case"D":le.length===8?f[R][H]=new Date(+le.slice(0,4),+le.slice(4,6)-1,+le.slice(6,8)):f[R][H]=le;break;case"F":f[R][H]=parseFloat(le.trim());break;case"+":case"I":f[R][H]=y?U.read_shift(-4,"i")^2147483648:U.read_shift(4,"i");break;case"L":switch(le.trim().toUpperCase()){case"Y":case"T":f[R][H]=!0;break;case"N":case"F":f[R][H]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+le+"|")}break;case"M":if(!A)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));f[R][H]="##MEMO##"+(y?parseInt(le.trim(),10):U.read_shift(4));break;case"N":le=le.replace(/\u0000/g,"").trim(),le&&le!="."&&(f[R][H]=+le||0);break;case"@":f[R][H]=new Date(U.read_shift(-8,"f")-621356832e5);break;case"T":f[R][H]=new Date((U.read_shift(4)-2440588)*864e5+U.read_shift(4));break;case"Y":f[R][H]=U.read_shift(4,"i")/1e4+U.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[R][H]=-U.read_shift(-8,"f");break;case"B":if(m&&b[H].len==8){f[R][H]=U.read_shift(8,"f");break}case"G":case"P":U.l+=b[H].len;break;case"0":if(b[H].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[H].type)}}}if(p!=2&&u.l=0&&ti(+f.codepage),f.type=="string")throw new Error("Cannot write DBF to JS string");var u=lr(),p=lo(c,{header:1,raw:!0,cellDates:!0}),A=p[0],m=p.slice(1),y=c["!cols"]||[],v=0,_=0,I=0,T=1;for(v=0;v250&&(U=250),H=((y[v]||{}).DBF||{}).type,H=="C"&&y[v].DBF.len>U&&(U=y[v].DBF.len),R=="B"&&H=="N"&&(R="N",O[v]=y[v].DBF.dec,U=y[v].DBF.len),j[v]=R=="C"||H=="N"?U:o[R]||0,T+=j[v],L[v]=R}var he=u.next(32);for(he.write_shift(4,318902576),he.write_shift(4,m.length),he.write_shift(2,296+32*I),he.write_shift(2,T),v=0;v<4;++v)he.write_shift(4,0);for(he.write_shift(4,0|(+r[ru]||3)<<8),v=0,_=0;v":190,"?":191,"{":223},r=new RegExp("\x1BN("+Qt(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(A,m){var y=e[m];return typeof y=="number"?Y0(y):y},n=function(A,m,y){var v=m.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return v==59?A:Y0(v)};e["|"]=254;function a(A,m){switch(m.type){case"base64":return o(yn(A),m);case"binary":return o(A,m);case"buffer":return o(Ke&&Buffer.isBuffer(A)?A.toString("binary"):ci(A),m);case"array":return o(yo(A),m)}throw new Error("Unrecognized type "+m.type)}function o(A,m){var y=A.split(/[\n\r]+/),v=-1,_=-1,I=0,T=0,b=[],L=[],j=null,O={},R=[],H=[],U=[],le=0,he;for(+m.codepage>=0&&ti(+m.codepage);I!==y.length;++I){le=0;var Ae=y[I].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),Ee=Ae.replace(/;;/g,"\0").split(";").map(function(Y){return Y.replace(/\u0000/g,";")}),Ve=Ee[0],Le;if(Ae.length>0)switch(Ve){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Ee[1].charAt(0)=="P"&&L.push(Ae.slice(3).replace(/;;/g,";"));break;case"C":var yt=!1,Je=!1,Zt=!1,vt=!1,Dt=-1,_t=-1;for(T=1;T-1&&b[Dt][_t];if(!oe||!oe[1])throw new Error("SYLK shared formula cannot find base");b[v][_][1]=Ug(oe[1],{r:v-Dt,c:_-_t})}break;case"F":var X=0;for(T=1;T0?(R[v].hpt=le,R[v].hpx=of(le)):le===0&&(R[v].hidden=!0);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Ae)}X<1&&(j=null);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Ae)}}return R.length>0&&(O["!rows"]=R),H.length>0&&(O["!cols"]=H),m&&m.sheetRows&&(b=b.slice(0,m.sheetRows)),[b,O]}function s(A,m){var y=a(A,m),v=y[0],_=y[1],I=La(v,m);return Qt(_).forEach(function(T){I[T]=_[T]}),I}function c(A,m){return ra(s(A,m),m)}function h(A,m,y,v){var _="C;Y"+(y+1)+";X"+(v+1)+";K";switch(A.t){case"n":_+=A.v||0,A.f&&!A.F&&(_+=";E"+js(A.f,{r:y,c:v}));break;case"b":_+=A.v?"TRUE":"FALSE";break;case"e":_+=A.w||A.v;break;case"d":_+='"'+(A.w||A.v)+'"';break;case"s":_+='"'+A.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return _}function f(A,m){m.forEach(function(y,v){var _="F;W"+(v+1)+" "+(v+1)+" ";y.hidden?_+="0":(typeof y.width=="number"&&!y.wpx&&(y.wpx=ao(y.width)),typeof y.wpx=="number"&&!y.wch&&(y.wch=io(y.wpx)),typeof y.wch=="number"&&(_+=Math.round(y.wch))),_.charAt(_.length-1)!=" "&&A.push(_)})}function u(A,m){m.forEach(function(y,v){var _="F;";y.hidden?_+="M0;":y.hpt?_+="M"+20*y.hpt+";":y.hpx&&(_+="M"+20*oo(y.hpx)+";"),_.length>2&&A.push(_+"R"+(v+1))})}function p(A,m){var y=["ID;PWXL;N;E"],v=[],_=ht(A["!ref"]),I,T=Array.isArray(A),b=`\r +`;y.push("P;PGeneral"),y.push("F;P0;DG0G8;M255"),A["!cols"]&&f(y,A["!cols"]),A["!rows"]&&u(y,A["!rows"]),y.push("B;Y"+(_.e.r-_.s.r+1)+";X"+(_.e.c-_.s.c+1)+";D"+[_.s.c,_.s.r,_.e.c,_.e.r].join(" "));for(var L=_.s.r;L<=_.e.r;++L)for(var j=_.s.c;j<=_.e.c;++j){var O=rt({r:L,c:j});I=T?(A[L]||[])[j]:A[O],!(!I||I.v==null&&(!I.f||I.F))&&v.push(h(I,A,L,j))}return y.join(b)+b+v.join(b)+b+"E"+b}return{to_workbook:c,to_sheet:s,from_sheet:p}}(),zv=function(){function e(o,s){switch(s.type){case"base64":return r(yn(o),s);case"binary":return r(o,s);case"buffer":return r(Ke&&Buffer.isBuffer(o)?o.toString("binary"):ci(o),s);case"array":return r(yo(o),s)}throw new Error("Unrecognized type "+s.type)}function r(o,s){for(var c=o.split(` +`),h=-1,f=-1,u=0,p=[];u!==c.length;++u){if(c[u].trim()==="BOT"){p[++h]=[],f=0;continue}if(!(h<0)){var A=c[u].trim().split(","),m=A[0],y=A[1];++u;for(var v=c[u]||"";(v.match(/["]/g)||[]).length&1&&u=0&&x[v].length===0;)--v;for(var _=10,I=0,T=0;T<=v;++T)I=x[T].indexOf(" "),I==-1?I=x[T].length:I++,_=Math.max(_,I);for(T=0;T<=v;++T){m[T]=[];var b=0;for(e(x[T].slice(0,_).trim(),m,T,b,A),b=1;b<=(x[T].length-_)/10+1;++b)e(x[T].slice(_+(b-1)*10,_+b*10).trim(),m,T,b,A)}return A.sheetRows&&(m=m.slice(0,A.sheetRows)),m}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var p={},A=!1,m=0,x=0;m0&&le(),x["!ref"]=Ft(v),x}function s(u,p){return!(p&&p.PRN)||p.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?o(u,p):Pa(r(u,p),p)}function c(u,p){var A="",m=p.type=="string"?[0,0,0,0]:Xw(u,p);switch(p.type){case"base64":A=yn(u);break;case"binary":A=u;break;case"buffer":p.codepage==65001?A=u.toString("utf8"):p.codepage&&typeof Yn!="undefined"?A=Yn.utils.decode(p.codepage,u):A=Ke&&Buffer.isBuffer(u)?u.toString("binary"):li(u);break;case"array":A=yo(u);break;case"string":A=u;break;default:throw new Error("Unrecognized type "+p.type)}return m[0]==239&&m[1]==187&&m[2]==191?A=Qa(A.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?A=Qa(A):p.type=="binary"&&typeof Yn!="undefined"&&p.codepage&&(A=Yn.utils.decode(p.codepage,Yn.utils.encode(28591,A))),A.slice(0,19)=="socialcalc:version:"?tf.to_sheet(p.type=="string"?A:Qa(A),p):s(A,p)}function h(u,p){return ra(c(u,p),p)}function f(u){for(var p=[],A=ht(u["!ref"]),m,x=Array.isArray(u),v=A.s.r;v<=A.e.r;++v){for(var _=[],I=A.s.c;I<=A.e.c;++I){var T=rt({r:v,c:I});if(m=x?(u[v]||[])[I]:u[T],!m||m.v==null){_.push(" ");continue}for(var b=(m.w||(_n(m),m.w)||"").slice(0,10);b.length<10;)b+=" ";_.push(b+(I===0?" ":""))}p.push(_.join(""))}return p.join(` -`)}return{to_workbook:h,to_sheet:c,from_sheet:f}}(),wc=function(){function e(z,ie,Q){if(!!z){mr(z,z.l||0);for(var W=Q.Enum||Ot;z.l=16&&z[14]==5&&z[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(z[2]==2)Q.Enum=Ot,e(z,function(Se,Ye,wt){switch(wt){case 0:Q.vers=Se,Se>=4096&&(Q.qpro=!0);break;case 6:We=Se;break;case 204:Se&&(Ce=Se);break;case 222:Ce=Se;break;case 15:case 51:Q.qpro||(Se[1].v=Se[1].v.slice(1));case 13:case 14:case 16:wt==14&&(Se[2]&112)==112&&(Se[2]&15)>1&&(Se[2]&15)<15&&(Se[1].z=Q.dateNF||xt[14],Q.cellDates&&(Se[1].t="d",Se[1].v=gu(Se[1].v))),Q.qpro&&Se[3]>De&&(W["!ref"]=Ft(We),Oe[de]=W,Te.push(de),W=Q.dense?[]:{},We={s:{r:0,c:0},e:{r:0,c:0}},De=Se[3],de=Ce||"Sheet"+(De+1),Ce="");var ir=Q.dense?(W[Se[0].r]||[])[Se[0].c]:W[rt(Se[0])];if(ir){ir.t=Se[1].t,ir.v=Se[1].v,Se[1].z!=null&&(ir.z=Se[1].z),Se[1].f!=null&&(ir.f=Se[1].f);break}Q.dense?(W[Se[0].r]||(W[Se[0].r]=[]),W[Se[0].r][Se[0].c]=Se[1]):W[rt(Se[0])]=Se[1];break}},Q);else if(z[2]==26||z[2]==14)Q.Enum=_t,z[2]==14&&(Q.qpro=!0,z.l=0),e(z,function(Se,Ye,wt){switch(wt){case 204:de=Se;break;case 22:Se[1].v=Se[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Se[3]>De&&(W["!ref"]=Ft(We),Oe[de]=W,Te.push(de),W=Q.dense?[]:{},We={s:{r:0,c:0},e:{r:0,c:0}},De=Se[3],de="Sheet"+(De+1)),Et>0&&Se[0].r>=Et)break;Q.dense?(W[Se[0].r]||(W[Se[0].r]=[]),W[Se[0].r][Se[0].c]=Se[1]):W[rt(Se[0])]=Se[1],We.e.c=0&&ei(+Q.codepage),Q.type=="string")throw new Error("Cannot write WK1 to JS string");var W=lr(),de=ht(z["!ref"]),Ce=Array.isArray(z),De=[];_e(W,0,o(1030)),_e(W,6,h(de));for(var Oe=Math.min(de.e.r,8191),Te=de.s.r;Te<=Oe;++Te)for(var Xe=$t(Te),We=de.s.c;We<=de.e.c;++We){Te===de.s.r&&(De[We]=Jt(We));var Et=De[We]+Xe,$e=Ce?(z[Te]||[])[We]:z[Et];if(!(!$e||$e.t=="z"))if($e.t=="n")($e.v|0)==$e.v&&$e.v>=-32768&&$e.v<=32767?_e(W,13,m(Te,We,$e.v)):_e(W,14,v(Te,We,$e.v));else{var It=_n($e);_e(W,15,p(Te,We,It.slice(0,239)))}}return _e(W,1),W.end()}function a(z,ie){var Q=ie||{};if(+Q.codepage>=0&&ei(+Q.codepage),Q.type=="string")throw new Error("Cannot write WK3 to JS string");var W=lr();_e(W,0,s(z));for(var de=0,Ce=0;de8191&&(Q=8191),ie.write_shift(2,Q),ie.write_shift(1,de),ie.write_shift(1,W),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(1,1),ie.write_shift(1,2),ie.write_shift(4,0),ie.write_shift(4,0),ie}function c(z,ie,Q){var W={s:{c:0,r:0},e:{c:0,r:0}};return ie==8&&Q.qpro?(W.s.c=z.read_shift(1),z.l++,W.s.r=z.read_shift(2),W.e.c=z.read_shift(1),z.l++,W.e.r=z.read_shift(2),W):(W.s.c=z.read_shift(2),W.s.r=z.read_shift(2),ie==12&&Q.qpro&&(z.l+=2),W.e.c=z.read_shift(2),W.e.r=z.read_shift(2),ie==12&&Q.qpro&&(z.l+=2),W.s.c==65535&&(W.s.c=W.e.c=W.s.r=W.e.r=0),W)}function h(z){var ie=ce(8);return ie.write_shift(2,z.s.c),ie.write_shift(2,z.s.r),ie.write_shift(2,z.e.c),ie.write_shift(2,z.e.r),ie}function f(z,ie,Q){var W=[{c:0,r:0},{t:"n",v:0},0,0];return Q.qpro&&Q.vers!=20768?(W[0].c=z.read_shift(1),W[3]=z.read_shift(1),W[0].r=z.read_shift(2),z.l+=2):(W[2]=z.read_shift(1),W[0].c=z.read_shift(2),W[0].r=z.read_shift(2)),W}function u(z,ie,Q){var W=z.l+ie,de=f(z,ie,Q);if(de[1].t="s",Q.vers==20768){z.l++;var Ce=z.read_shift(1);return de[1].v=z.read_shift(Ce,"utf8"),de}return Q.qpro&&z.l++,de[1].v=z.read_shift(W-z.l,"cstr"),de}function p(z,ie,Q){var W=ce(7+Q.length);W.write_shift(1,255),W.write_shift(2,ie),W.write_shift(2,z),W.write_shift(1,39);for(var de=0;de=128?95:Ce)}return W.write_shift(1,0),W}function A(z,ie,Q){var W=f(z,ie,Q);return W[1].v=z.read_shift(2,"i"),W}function m(z,ie,Q){var W=ce(7);return W.write_shift(1,255),W.write_shift(2,ie),W.write_shift(2,z),W.write_shift(2,Q,"i"),W}function x(z,ie,Q){var W=f(z,ie,Q);return W[1].v=z.read_shift(8,"f"),W}function v(z,ie,Q){var W=ce(13);return W.write_shift(1,255),W.write_shift(2,ie),W.write_shift(2,z),W.write_shift(8,Q,"f"),W}function _(z,ie,Q){var W=z.l+ie,de=f(z,ie,Q);if(de[1].v=z.read_shift(8,"f"),Q.qpro)z.l=W;else{var Ce=z.read_shift(2);P(z.slice(z.l,z.l+Ce),de),z.l+=Ce}return de}function I(z,ie,Q){var W=ie&32768;return ie&=-32769,ie=(W?z:0)+(ie>=8192?ie-16384:ie),(W?"":"$")+(Q?Jt(ie):$t(ie))}var T={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function P(z,ie){mr(z,0);for(var Q=[],W=0,de="",Ce="",De="",Oe="";z.lQ.length){console.error("WK1 bad formula parse 0x"+Te.toString(16)+":|"+Q.join("|")+"|");return}var $e=Q.slice(-W);Q.length-=W,Q.push(T[Te][0]+"("+$e.join(",")+")")}else return Te<=7?console.error("WK1 invalid opcode "+Te.toString(16)):Te<=24?console.error("WK1 unsupported op "+Te.toString(16)):Te<=30?console.error("WK1 invalid opcode "+Te.toString(16)):Te<=115?console.error("WK1 unsupported function opcode "+Te.toString(16)):console.error("WK1 unrecognized opcode "+Te.toString(16))}}Q.length==1?ie[1].f=""+Q[0]:console.error("WK1 bad formula parse |"+Q.join("|")+"|")}function j(z){var ie=[{c:0,r:0},{t:"n",v:0},0];return ie[0].r=z.read_shift(2),ie[3]=z[z.l++],ie[0].c=z[z.l++],ie}function O(z,ie){var Q=j(z);return Q[1].t="s",Q[1].v=z.read_shift(ie-4,"cstr"),Q}function M(z,ie,Q,W){var de=ce(6+W.length);de.write_shift(2,z),de.write_shift(1,Q),de.write_shift(1,ie),de.write_shift(1,39);for(var Ce=0;Ce=128?95:De)}return de.write_shift(1,0),de}function q(z,ie){var Q=j(z);Q[1].v=z.read_shift(2);var W=Q[1].v>>1;if(Q[1].v&1)switch(W&7){case 0:W=(W>>3)*5e3;break;case 1:W=(W>>3)*500;break;case 2:W=(W>>3)/20;break;case 3:W=(W>>3)/200;break;case 4:W=(W>>3)/2e3;break;case 5:W=(W>>3)/2e4;break;case 6:W=(W>>3)/16;break;case 7:W=(W>>3)/64;break}return Q[1].v=W,Q}function U(z,ie){var Q=j(z),W=z.read_shift(4),de=z.read_shift(4),Ce=z.read_shift(2);if(Ce==65535)return W===0&&de===3221225472?(Q[1].t="e",Q[1].v=15):W===0&&de===3489660928?(Q[1].t="e",Q[1].v=42):Q[1].v=0,Q;var De=Ce&32768;return Ce=(Ce&32767)-16446,Q[1].v=(1-De*2)*(de*Math.pow(2,Ce+32)+W*Math.pow(2,Ce)),Q}function le(z,ie,Q,W){var de=ce(14);if(de.write_shift(2,z),de.write_shift(1,Q),de.write_shift(1,ie),W==0)return de.write_shift(4,0),de.write_shift(4,0),de.write_shift(2,65535),de;var Ce=0,De=0,Oe=0,Te=0;return W<0&&(Ce=1,W=-W),De=Math.log2(W)|0,W/=Math.pow(2,De-31),Te=W>>>0,(Te&2147483648)==0&&(W/=2,++De,Te=W>>>0),W-=Te,Te|=2147483648,Te>>>=0,W*=Math.pow(2,32),Oe=W>>>0,de.write_shift(4,Oe),de.write_shift(4,Te),De+=16383+(Ce?32768:0),de.write_shift(2,De),de}function he(z,ie){var Q=U(z);return z.l+=ie-14,Q}function Ae(z,ie){var Q=j(z),W=z.read_shift(4);return Q[1].v=W>>6,Q}function Ee(z,ie){var Q=j(z),W=z.read_shift(8,"f");return Q[1].v=W,Q}function Ve(z,ie){var Q=Ee(z);return z.l+=ie-10,Q}function Me(z,ie){return z[z.l+ie-1]==0?z.read_shift(ie,"cstr"):""}function yt(z,ie){var Q=z[z.l++];Q>ie-1&&(Q=ie-1);for(var W="";W.length127?95:de}return Q[Q.l++]=0,Q}var Ot={0:{n:"BOF",f:qu},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:A},14:{n:"NUMBER",f:x},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:_},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Me},222:{n:"SHEETNAMELP",f:yt},65535:{n:""}},_t={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:O},23:{n:"NUMBER17",f:U},24:{n:"NUMBER18",f:q},25:{n:"FORMULA19",f:he},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Zt},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:Ae},38:{n:"??"},39:{n:"NUMBER27",f:Ee},40:{n:"FORMULA28",f:Ve},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Me},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Je},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:r}}(),Nv=/^\s|\s$|[\t\n\r]/;function rf(e,r){if(!r.bookSST)return"";var t=[Ct];t[t.length]=ye("sst",null,{xmlns:Ma[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],o="";a.r?o+=a.r:(o+=""),o+="",t[t.length]=o}return t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Uv(e){return[e.read_shift(4),e.read_shift(4)]}function jv(e,r){return r||(r=ce(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var zv=D2;function Hv(e){var r=lr();pe(r,159,jv(e));for(var t=0;t=0;--o)s=t[o],c=(r&16384)===0?0:1,h=r<<1&32767,f=c|h,r=f^s;return r^52811}var Vv=function(){function e(a,o){switch(o.type){case"base64":return r(yn(a),o);case"binary":return r(a,o);case"buffer":return r(Ke&&Buffer.isBuffer(a)?a.toString("binary"):li(a),o);case"array":return r(yo(a),o)}throw new Error("Unrecognized type "+o.type)}function r(a,o){var s=o||{},c=s.dense?[]:{},h=a.match(/\\trowd.*?\\row\b/g);if(!h.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:h.length-1}};return h.forEach(function(u,p){Array.isArray(c)&&(c[p]=[]);for(var A=/\\\w+\b/g,m=0,x,v=-1;x=A.exec(u);){switch(x[0]){case"\\cell":var _=u.slice(m,A.lastIndex-x[0].length);if(_[0]==" "&&(_=_.slice(1)),++v,_.length){var I={v:_,t:"s"};Array.isArray(c)?c[p][v]=I:c[rt({r:p,c:v})]=I}break}m=A.lastIndex}v>f.e.c&&(f.e.c=v)}),c["!ref"]=Ft(f),c}function t(a,o){return ra(e(a,o),o)}function n(a){for(var o=["{\\rtf1\\ansi"],s=ht(a["!ref"]),c,h=Array.isArray(a),f=s.s.r;f<=s.e.r;++f){o.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)o.push("\\cellx"+(u+1));for(o.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var p=rt({r:f,c:u});c=h?(a[f]||[])[u]:a[p],!(!c||c.v==null&&(!c.f||c.F))&&(o.push(" "+(c.w||(_n(c),c.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}}();function bc(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var Wv=6,xn=Wv;function io(e){return Math.floor((e+Math.round(128/xn)/256)*xn)}function oo(e){return Math.floor((e-5)/xn*100+.5)/100}function ps(e){return Math.round((e*xn+5)/xn*256)/256}function Ns(e){e.width?(e.wpx=io(e.width),e.wch=oo(e.wpx),e.MDW=xn):e.wpx?(e.wch=oo(e.wpx),e.width=ps(e.wch),e.MDW=xn):typeof e.wch=="number"&&(e.width=ps(e.wch),e.wpx=io(e.width),e.MDW=xn),e.customWidth&&delete e.customWidth}var Yv=96,af=Yv;function so(e){return e*96/af}function of(e){return e*af/96}function $v(e){var r=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=ye("numFmt",null,{numFmtId:n,formatCode:tt(e[n])}))}),r.length===1?"":(r[r.length]="",r[0]=ye("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function Qv(e){var r=[];return r[r.length]=ye("cellXfs",null),e.forEach(function(t){r[r.length]=ye("xf",null,t)}),r[r.length]="",r.length===2?"":(r[0]=ye("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function sf(e,r){var t=[Ct,ye("styleSheet",null,{xmlns:Ma[0],"xmlns:vt":Nt.vt})],n;return e.SSF&&(n=$v(e.SSF))!=null&&(t[t.length]=n),t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',(n=Qv(r.cellXfs))&&(t[t.length]=n),t[t.length]='',t[t.length]='',t[t.length]='',t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Xv(e,r){var t=e.read_shift(2),n=Kt(e);return[t,n]}function qv(e,r,t){t||(t=ce(6+4*r.length)),t.write_shift(2,e),jt(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function Jv(e,r,t){var n={};n.sz=e.read_shift(2)/20;var a=N2(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var o=e.read_shift(2);switch(o===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var c=e.read_shift(1);c>0&&(n.family=c);var h=e.read_shift(1);switch(h>0&&(n.charset=h),e.l++,n.color=L2(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Kt(e),n}function Kv(e,r){r||(r=ce(25+4*32)),r.write_shift(2,e.sz*20),U2(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),no(e.color,r);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),r.write_shift(1,n),jt(e.name,r),r.length>r.l?r.slice(0,r.l):r}var Zv=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ns,eg=ln;function Ec(e,r){r||(r=ce(4*3+8*7+16*1)),ns||(ns=ks(Zv));var t=ns[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(no({auto:1},r),no({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function tg(e,r){var t=e.l+r,n=e.read_shift(2),a=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:a}}function lf(e,r,t){t||(t=ce(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Wa(e,r){return r||(r=ce(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var rg=ln;function ng(e,r){return r||(r=ce(51)),r.write_shift(1,0),Wa(null,r),Wa(null,r),Wa(null,r),Wa(null,r),Wa(null,r),r.length>r.l?r.slice(0,r.l):r}function ag(e,r){return r||(r=ce(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),ro(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function ig(e,r,t){var n=ce(2052);return n.write_shift(4,e),ro(r,n),ro(t,n),n.length>n.l?n.slice(0,n.l):n}function og(e,r){if(!!r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)r[a]!=null&&++t}),t!=0&&(pe(e,615,$r(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)r[a]!=null&&pe(e,44,qv(a,r[a]))}),pe(e,616))}}function sg(e){var r=1;pe(e,611,$r(r)),pe(e,43,Kv({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),pe(e,612)}function lg(e){var r=2;pe(e,603,$r(r)),pe(e,45,Ec({patternType:"none"})),pe(e,45,Ec({patternType:"gray125"})),pe(e,604)}function cg(e){var r=1;pe(e,613,$r(r)),pe(e,46,ng()),pe(e,614)}function ug(e){var r=1;pe(e,626,$r(r)),pe(e,47,lf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),pe(e,627)}function fg(e,r){pe(e,617,$r(r.length)),r.forEach(function(t){pe(e,47,lf(t,0))}),pe(e,618)}function hg(e){var r=1;pe(e,619,$r(r)),pe(e,48,ag({xfId:0,builtinId:0,name:"Normal"})),pe(e,620)}function dg(e){var r=0;pe(e,505,$r(r)),pe(e,506)}function pg(e){var r=0;pe(e,508,ig(r,"TableStyleMedium9","PivotStyleMedium4")),pe(e,509)}function Ag(e,r){var t=lr();return pe(t,278),og(t,e.SSF),sg(t),lg(t),cg(t),ug(t),fg(t,r.cellXfs),hg(t),dg(t),pg(t),pe(t,279),t.end()}function cf(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Ct];return t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t.join("")}function mg(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Kt(e)}}function vg(e){var r=ce(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),jt(e.name,r),r.slice(0,r.l)}function gg(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function xg(e){var r=ce(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t +`)}return{to_workbook:a,to_sheet:n,from_sheet:u}}(),Hv=function(){function e(u,p,A,m,y){y.raw?p[A][m]=u:u===""||(u==="TRUE"?p[A][m]=!0:u==="FALSE"?p[A][m]=!1:isNaN(gn(u))?isNaN(ni(u).getDate())?p[A][m]=u:p[A][m]=nr(u):p[A][m]=gn(u))}function r(u,p){var A=p||{},m=[];if(!u||u.length===0)return m;for(var y=u.split(/[\r\n]/),v=y.length-1;v>=0&&y[v].length===0;)--v;for(var _=10,I=0,T=0;T<=v;++T)I=y[T].indexOf(" "),I==-1?I=y[T].length:I++,_=Math.max(_,I);for(T=0;T<=v;++T){m[T]=[];var b=0;for(e(y[T].slice(0,_).trim(),m,T,b,A),b=1;b<=(y[T].length-_)/10+1;++b)e(y[T].slice(_+(b-1)*10,_+b*10).trim(),m,T,b,A)}return A.sheetRows&&(m=m.slice(0,A.sheetRows)),m}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var p={},A=!1,m=0,y=0;m0&&le(),y["!ref"]=Ct(v),y}function s(u,p){return!(p&&p.PRN)||p.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?o(u,p):La(r(u,p),p)}function c(u,p){var A="",m=p.type=="string"?[0,0,0,0]:e4(u,p);switch(p.type){case"base64":A=yn(u);break;case"binary":A=u;break;case"buffer":p.codepage==65001?A=u.toString("utf8"):p.codepage&&typeof $n!="undefined"?A=$n.utils.decode(p.codepage,u):A=Ke&&Buffer.isBuffer(u)?u.toString("binary"):ci(u);break;case"array":A=yo(u);break;case"string":A=u;break;default:throw new Error("Unrecognized type "+p.type)}return m[0]==239&&m[1]==187&&m[2]==191?A=Xa(A.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?A=Xa(A):p.type=="binary"&&typeof $n!="undefined"&&p.codepage&&(A=$n.utils.decode(p.codepage,$n.utils.encode(28591,A))),A.slice(0,19)=="socialcalc:version:"?tf.to_sheet(p.type=="string"?A:Xa(A),p):s(A,p)}function h(u,p){return ra(c(u,p),p)}function f(u){for(var p=[],A=ht(u["!ref"]),m,y=Array.isArray(u),v=A.s.r;v<=A.e.r;++v){for(var _=[],I=A.s.c;I<=A.e.c;++I){var T=rt({r:v,c:I});if(m=y?(u[v]||[])[I]:u[T],!m||m.v==null){_.push(" ");continue}for(var b=(m.w||(_n(m),m.w)||"").slice(0,10);b.length<10;)b+=" ";_.push(b+(I===0?" ":""))}p.push(_.join(""))}return p.join(` +`)}return{to_workbook:h,to_sheet:c,from_sheet:f}}(),bc=function(){function e(z,oe,X){if(!!z){mr(z,z.l||0);for(var Y=X.Enum||Dt;z.l=16&&z[14]==5&&z[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(z[2]==2)X.Enum=Dt,e(z,function(Se,Ye,wt){switch(wt){case 0:X.vers=Se,Se>=4096&&(X.qpro=!0);break;case 6:We=Se;break;case 204:Se&&(Ce=Se);break;case 222:Ce=Se;break;case 15:case 51:X.qpro||(Se[1].v=Se[1].v.slice(1));case 13:case 14:case 16:wt==14&&(Se[2]&112)==112&&(Se[2]&15)>1&&(Se[2]&15)<15&&(Se[1].z=X.dateNF||xt[14],X.cellDates&&(Se[1].t="d",Se[1].v=gu(Se[1].v))),X.qpro&&Se[3]>De&&(Y["!ref"]=Ct(We),Oe[de]=Y,Te.push(de),Y=X.dense?[]:{},We={s:{r:0,c:0},e:{r:0,c:0}},De=Se[3],de=Ce||"Sheet"+(De+1),Ce="");var ir=X.dense?(Y[Se[0].r]||[])[Se[0].c]:Y[rt(Se[0])];if(ir){ir.t=Se[1].t,ir.v=Se[1].v,Se[1].z!=null&&(ir.z=Se[1].z),Se[1].f!=null&&(ir.f=Se[1].f);break}X.dense?(Y[Se[0].r]||(Y[Se[0].r]=[]),Y[Se[0].r][Se[0].c]=Se[1]):Y[rt(Se[0])]=Se[1];break}},X);else if(z[2]==26||z[2]==14)X.Enum=_t,z[2]==14&&(X.qpro=!0,z.l=0),e(z,function(Se,Ye,wt){switch(wt){case 204:de=Se;break;case 22:Se[1].v=Se[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Se[3]>De&&(Y["!ref"]=Ct(We),Oe[de]=Y,Te.push(de),Y=X.dense?[]:{},We={s:{r:0,c:0},e:{r:0,c:0}},De=Se[3],de="Sheet"+(De+1)),Tt>0&&Se[0].r>=Tt)break;X.dense?(Y[Se[0].r]||(Y[Se[0].r]=[]),Y[Se[0].r][Se[0].c]=Se[1]):Y[rt(Se[0])]=Se[1],We.e.c=0&&ti(+X.codepage),X.type=="string")throw new Error("Cannot write WK1 to JS string");var Y=lr(),de=ht(z["!ref"]),Ce=Array.isArray(z),De=[];_e(Y,0,o(1030)),_e(Y,6,h(de));for(var Oe=Math.min(de.e.r,8191),Te=de.s.r;Te<=Oe;++Te)for(var Xe=$t(Te),We=de.s.c;We<=de.e.c;++We){Te===de.s.r&&(De[We]=Jt(We));var Tt=De[We]+Xe,$e=Ce?(z[Te]||[])[We]:z[Tt];if(!(!$e||$e.t=="z"))if($e.t=="n")($e.v|0)==$e.v&&$e.v>=-32768&&$e.v<=32767?_e(Y,13,m(Te,We,$e.v)):_e(Y,14,v(Te,We,$e.v));else{var Rt=_n($e);_e(Y,15,p(Te,We,Rt.slice(0,239)))}}return _e(Y,1),Y.end()}function a(z,oe){var X=oe||{};if(+X.codepage>=0&&ti(+X.codepage),X.type=="string")throw new Error("Cannot write WK3 to JS string");var Y=lr();_e(Y,0,s(z));for(var de=0,Ce=0;de8191&&(X=8191),oe.write_shift(2,X),oe.write_shift(1,de),oe.write_shift(1,Y),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(1,1),oe.write_shift(1,2),oe.write_shift(4,0),oe.write_shift(4,0),oe}function c(z,oe,X){var Y={s:{c:0,r:0},e:{c:0,r:0}};return oe==8&&X.qpro?(Y.s.c=z.read_shift(1),z.l++,Y.s.r=z.read_shift(2),Y.e.c=z.read_shift(1),z.l++,Y.e.r=z.read_shift(2),Y):(Y.s.c=z.read_shift(2),Y.s.r=z.read_shift(2),oe==12&&X.qpro&&(z.l+=2),Y.e.c=z.read_shift(2),Y.e.r=z.read_shift(2),oe==12&&X.qpro&&(z.l+=2),Y.s.c==65535&&(Y.s.c=Y.e.c=Y.s.r=Y.e.r=0),Y)}function h(z){var oe=ce(8);return oe.write_shift(2,z.s.c),oe.write_shift(2,z.s.r),oe.write_shift(2,z.e.c),oe.write_shift(2,z.e.r),oe}function f(z,oe,X){var Y=[{c:0,r:0},{t:"n",v:0},0,0];return X.qpro&&X.vers!=20768?(Y[0].c=z.read_shift(1),Y[3]=z.read_shift(1),Y[0].r=z.read_shift(2),z.l+=2):(Y[2]=z.read_shift(1),Y[0].c=z.read_shift(2),Y[0].r=z.read_shift(2)),Y}function u(z,oe,X){var Y=z.l+oe,de=f(z,oe,X);if(de[1].t="s",X.vers==20768){z.l++;var Ce=z.read_shift(1);return de[1].v=z.read_shift(Ce,"utf8"),de}return X.qpro&&z.l++,de[1].v=z.read_shift(Y-z.l,"cstr"),de}function p(z,oe,X){var Y=ce(7+X.length);Y.write_shift(1,255),Y.write_shift(2,oe),Y.write_shift(2,z),Y.write_shift(1,39);for(var de=0;de=128?95:Ce)}return Y.write_shift(1,0),Y}function A(z,oe,X){var Y=f(z,oe,X);return Y[1].v=z.read_shift(2,"i"),Y}function m(z,oe,X){var Y=ce(7);return Y.write_shift(1,255),Y.write_shift(2,oe),Y.write_shift(2,z),Y.write_shift(2,X,"i"),Y}function y(z,oe,X){var Y=f(z,oe,X);return Y[1].v=z.read_shift(8,"f"),Y}function v(z,oe,X){var Y=ce(13);return Y.write_shift(1,255),Y.write_shift(2,oe),Y.write_shift(2,z),Y.write_shift(8,X,"f"),Y}function _(z,oe,X){var Y=z.l+oe,de=f(z,oe,X);if(de[1].v=z.read_shift(8,"f"),X.qpro)z.l=Y;else{var Ce=z.read_shift(2);L(z.slice(z.l,z.l+Ce),de),z.l+=Ce}return de}function I(z,oe,X){var Y=oe&32768;return oe&=-32769,oe=(Y?z:0)+(oe>=8192?oe-16384:oe),(Y?"":"$")+(X?Jt(oe):$t(oe))}var T={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function L(z,oe){mr(z,0);for(var X=[],Y=0,de="",Ce="",De="",Oe="";z.lX.length){console.error("WK1 bad formula parse 0x"+Te.toString(16)+":|"+X.join("|")+"|");return}var $e=X.slice(-Y);X.length-=Y,X.push(T[Te][0]+"("+$e.join(",")+")")}else return Te<=7?console.error("WK1 invalid opcode "+Te.toString(16)):Te<=24?console.error("WK1 unsupported op "+Te.toString(16)):Te<=30?console.error("WK1 invalid opcode "+Te.toString(16)):Te<=115?console.error("WK1 unsupported function opcode "+Te.toString(16)):console.error("WK1 unrecognized opcode "+Te.toString(16))}}X.length==1?oe[1].f=""+X[0]:console.error("WK1 bad formula parse |"+X.join("|")+"|")}function j(z){var oe=[{c:0,r:0},{t:"n",v:0},0];return oe[0].r=z.read_shift(2),oe[3]=z[z.l++],oe[0].c=z[z.l++],oe}function O(z,oe){var X=j(z);return X[1].t="s",X[1].v=z.read_shift(oe-4,"cstr"),X}function R(z,oe,X,Y){var de=ce(6+Y.length);de.write_shift(2,z),de.write_shift(1,X),de.write_shift(1,oe),de.write_shift(1,39);for(var Ce=0;Ce=128?95:De)}return de.write_shift(1,0),de}function H(z,oe){var X=j(z);X[1].v=z.read_shift(2);var Y=X[1].v>>1;if(X[1].v&1)switch(Y&7){case 0:Y=(Y>>3)*5e3;break;case 1:Y=(Y>>3)*500;break;case 2:Y=(Y>>3)/20;break;case 3:Y=(Y>>3)/200;break;case 4:Y=(Y>>3)/2e3;break;case 5:Y=(Y>>3)/2e4;break;case 6:Y=(Y>>3)/16;break;case 7:Y=(Y>>3)/64;break}return X[1].v=Y,X}function U(z,oe){var X=j(z),Y=z.read_shift(4),de=z.read_shift(4),Ce=z.read_shift(2);if(Ce==65535)return Y===0&&de===3221225472?(X[1].t="e",X[1].v=15):Y===0&&de===3489660928?(X[1].t="e",X[1].v=42):X[1].v=0,X;var De=Ce&32768;return Ce=(Ce&32767)-16446,X[1].v=(1-De*2)*(de*Math.pow(2,Ce+32)+Y*Math.pow(2,Ce)),X}function le(z,oe,X,Y){var de=ce(14);if(de.write_shift(2,z),de.write_shift(1,X),de.write_shift(1,oe),Y==0)return de.write_shift(4,0),de.write_shift(4,0),de.write_shift(2,65535),de;var Ce=0,De=0,Oe=0,Te=0;return Y<0&&(Ce=1,Y=-Y),De=Math.log2(Y)|0,Y/=Math.pow(2,De-31),Te=Y>>>0,(Te&2147483648)==0&&(Y/=2,++De,Te=Y>>>0),Y-=Te,Te|=2147483648,Te>>>=0,Y*=Math.pow(2,32),Oe=Y>>>0,de.write_shift(4,Oe),de.write_shift(4,Te),De+=16383+(Ce?32768:0),de.write_shift(2,De),de}function he(z,oe){var X=U(z);return z.l+=oe-14,X}function Ae(z,oe){var X=j(z),Y=z.read_shift(4);return X[1].v=Y>>6,X}function Ee(z,oe){var X=j(z),Y=z.read_shift(8,"f");return X[1].v=Y,X}function Ve(z,oe){var X=Ee(z);return z.l+=oe-10,X}function Le(z,oe){return z[z.l+oe-1]==0?z.read_shift(oe,"cstr"):""}function yt(z,oe){var X=z[z.l++];X>oe-1&&(X=oe-1);for(var Y="";Y.length127?95:de}return X[X.l++]=0,X}var Dt={0:{n:"BOF",f:qu},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:A},14:{n:"NUMBER",f:y},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:_},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Le},222:{n:"SHEETNAMELP",f:yt},65535:{n:""}},_t={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:O},23:{n:"NUMBER17",f:U},24:{n:"NUMBER18",f:H},25:{n:"FORMULA19",f:he},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Zt},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:Ae},38:{n:"??"},39:{n:"NUMBER27",f:Ee},40:{n:"FORMULA28",f:Ve},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Le},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Je},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:r}}(),Gv=/^\s|\s$|[\t\n\r]/;function rf(e,r){if(!r.bookSST)return"";var t=[Ot];t[t.length]=ye("sst",null,{xmlns:Pa[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],o="";a.r?o+=a.r:(o+=""),o+="",t[t.length]=o}return t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Vv(e){return[e.read_shift(4),e.read_shift(4)]}function Wv(e,r){return r||(r=ce(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var Yv=P2;function $v(e){var r=lr();pe(r,159,Wv(e));for(var t=0;t=0;--o)s=t[o],c=(r&16384)===0?0:1,h=r<<1&32767,f=c|h,r=f^s;return r^52811}var Xv=function(){function e(a,o){switch(o.type){case"base64":return r(yn(a),o);case"binary":return r(a,o);case"buffer":return r(Ke&&Buffer.isBuffer(a)?a.toString("binary"):ci(a),o);case"array":return r(yo(a),o)}throw new Error("Unrecognized type "+o.type)}function r(a,o){var s=o||{},c=s.dense?[]:{},h=a.match(/\\trowd.*?\\row\b/g);if(!h.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:h.length-1}};return h.forEach(function(u,p){Array.isArray(c)&&(c[p]=[]);for(var A=/\\\w+\b/g,m=0,y,v=-1;y=A.exec(u);){switch(y[0]){case"\\cell":var _=u.slice(m,A.lastIndex-y[0].length);if(_[0]==" "&&(_=_.slice(1)),++v,_.length){var I={v:_,t:"s"};Array.isArray(c)?c[p][v]=I:c[rt({r:p,c:v})]=I}break}m=A.lastIndex}v>f.e.c&&(f.e.c=v)}),c["!ref"]=Ct(f),c}function t(a,o){return ra(e(a,o),o)}function n(a){for(var o=["{\\rtf1\\ansi"],s=ht(a["!ref"]),c,h=Array.isArray(a),f=s.s.r;f<=s.e.r;++f){o.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)o.push("\\cellx"+(u+1));for(o.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var p=rt({r:f,c:u});c=h?(a[f]||[])[u]:a[p],!(!c||c.v==null&&(!c.f||c.F))&&(o.push(" "+(c.w||(_n(c),c.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}}();function Ec(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var qv=6,xn=qv;function ao(e){return Math.floor((e+Math.round(128/xn)/256)*xn)}function io(e){return Math.floor((e-5)/xn*100+.5)/100}function ps(e){return Math.round((e*xn+5)/xn*256)/256}function Ns(e){e.width?(e.wpx=ao(e.width),e.wch=io(e.wpx),e.MDW=xn):e.wpx?(e.wch=io(e.wpx),e.width=ps(e.wch),e.MDW=xn):typeof e.wch=="number"&&(e.width=ps(e.wch),e.wpx=ao(e.width),e.MDW=xn),e.customWidth&&delete e.customWidth}var Jv=96,af=Jv;function oo(e){return e*96/af}function of(e){return e*af/96}function Kv(e){var r=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=ye("numFmt",null,{numFmtId:n,formatCode:tt(e[n])}))}),r.length===1?"":(r[r.length]="",r[0]=ye("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function Zv(e){var r=[];return r[r.length]=ye("cellXfs",null),e.forEach(function(t){r[r.length]=ye("xf",null,t)}),r[r.length]="",r.length===2?"":(r[0]=ye("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function sf(e,r){var t=[Ot,ye("styleSheet",null,{xmlns:Pa[0],"xmlns:vt":Nt.vt})],n;return e.SSF&&(n=Kv(e.SSF))!=null&&(t[t.length]=n),t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',(n=Zv(r.cellXfs))&&(t[t.length]=n),t[t.length]='',t[t.length]='',t[t.length]='',t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function eg(e,r){var t=e.read_shift(2),n=Kt(e);return[t,n]}function tg(e,r,t){t||(t=ce(6+4*r.length)),t.write_shift(2,e),jt(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function rg(e,r,t){var n={};n.sz=e.read_shift(2)/20;var a=G2(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var o=e.read_shift(2);switch(o===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var c=e.read_shift(1);c>0&&(n.family=c);var h=e.read_shift(1);switch(h>0&&(n.charset=h),e.l++,n.color=H2(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Kt(e),n}function ng(e,r){r||(r=ce(25+4*32)),r.write_shift(2,e.sz*20),V2(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),ro(e.color,r);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),r.write_shift(1,n),jt(e.name,r),r.length>r.l?r.slice(0,r.l):r}var ag=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ns,ig=sn;function Tc(e,r){r||(r=ce(4*3+8*7+16*1)),ns||(ns=ks(ag));var t=ns[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(ro({auto:1},r),ro({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function og(e,r){var t=e.l+r,n=e.read_shift(2),a=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:a}}function lf(e,r,t){t||(t=ce(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Ya(e,r){return r||(r=ce(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var sg=sn;function lg(e,r){return r||(r=ce(51)),r.write_shift(1,0),Ya(null,r),Ya(null,r),Ya(null,r),Ya(null,r),Ya(null,r),r.length>r.l?r.slice(0,r.l):r}function cg(e,r){return r||(r=ce(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),to(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function ug(e,r,t){var n=ce(2052);return n.write_shift(4,e),to(r,n),to(t,n),n.length>n.l?n.slice(0,n.l):n}function fg(e,r){if(!!r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)r[a]!=null&&++t}),t!=0&&(pe(e,615,$r(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)r[a]!=null&&pe(e,44,tg(a,r[a]))}),pe(e,616))}}function hg(e){var r=1;pe(e,611,$r(r)),pe(e,43,ng({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),pe(e,612)}function dg(e){var r=2;pe(e,603,$r(r)),pe(e,45,Tc({patternType:"none"})),pe(e,45,Tc({patternType:"gray125"})),pe(e,604)}function pg(e){var r=1;pe(e,613,$r(r)),pe(e,46,lg()),pe(e,614)}function Ag(e){var r=1;pe(e,626,$r(r)),pe(e,47,lf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),pe(e,627)}function mg(e,r){pe(e,617,$r(r.length)),r.forEach(function(t){pe(e,47,lf(t,0))}),pe(e,618)}function vg(e){var r=1;pe(e,619,$r(r)),pe(e,48,cg({xfId:0,builtinId:0,name:"Normal"})),pe(e,620)}function gg(e){var r=0;pe(e,505,$r(r)),pe(e,506)}function xg(e){var r=0;pe(e,508,ug(r,"TableStyleMedium9","PivotStyleMedium4")),pe(e,509)}function yg(e,r){var t=lr();return pe(t,278),fg(t,e.SSF),hg(t),dg(t),pg(t),Ag(t),mg(t,r.cellXfs),vg(t),gg(t),xg(t),pe(t,279),t.end()}function cf(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Ot];return t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t.join("")}function _g(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Kt(e)}}function wg(e){var r=ce(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),jt(e.name,r),r.slice(0,r.l)}function bg(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Eg(e){var r=ce(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t @@ -1150,17 +1150,17 @@ attempted value: `+y+` -`),e.join("")}function Eg(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=rt(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Fa=1024;function ff(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),a=[ye("xml",null,{"xmlns:v":vr.v,"xmlns:o":vr.o,"xmlns:x":vr.x,"xmlns:mv":vr.mv}).replace(/\/>/,">"),ye("o:shapelayout",ye("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ye("v:shapetype",[ye("v:stroke",null,{joinstyle:"miter"}),ye("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Fa",f,ye("v:shadow",null,u),ye("v:path",null,{"o:connecttype":"none"}),'
','',"","",Yt("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Yt("x:AutoFill","False"),Yt("x:Row",String(s.r)),Yt("x:Column",String(s.c)),o[1].hidden?"":"","",""])}),a.push(""),a.join("")}function hf(e){var r=[Ct,ye("comments",null,{xmlns:Ma[0]})],t=[];return r.push(""),e.forEach(function(n){n[1].forEach(function(a){var o=tt(a.a);t.indexOf(o)==-1&&(t.push(o),r.push(""+o+"")),a.T&&a.ID&&t.indexOf("tc="+a.ID)==-1&&(t.push("tc="+a.ID),r.push("tc="+a.ID+""))})}),t.length==0&&(t.push("SheetJ5"),r.push("SheetJ5")),r.push(""),r.push(""),e.forEach(function(n){var a=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(h){h.a&&(a=t.indexOf(tt(h.a))),o.push(h.t||"")}),r.push(''),o.length<=1)r.push(Yt("t",tt(o[0]||"")));else{for(var s=`Comment: +`),e.join("")}function Cg(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=rt(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Fa=1024;function ff(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),a=[ye("xml",null,{"xmlns:v":vr.v,"xmlns:o":vr.o,"xmlns:x":vr.x,"xmlns:mv":vr.mv}).replace(/\/>/,">"),ye("o:shapelayout",ye("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ye("v:shapetype",[ye("v:stroke",null,{joinstyle:"miter"}),ye("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Fa",f,ye("v:shadow",null,u),ye("v:path",null,{"o:connecttype":"none"}),'
','',"","",Yt("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Yt("x:AutoFill","False"),Yt("x:Row",String(s.r)),Yt("x:Column",String(s.c)),o[1].hidden?"":"","",""])}),a.push(""),a.join("")}function hf(e){var r=[Ot,ye("comments",null,{xmlns:Pa[0]})],t=[];return r.push(""),e.forEach(function(n){n[1].forEach(function(a){var o=tt(a.a);t.indexOf(o)==-1&&(t.push(o),r.push(""+o+"")),a.T&&a.ID&&t.indexOf("tc="+a.ID)==-1&&(t.push("tc="+a.ID),r.push("tc="+a.ID+""))})}),t.length==0&&(t.push("SheetJ5"),r.push("SheetJ5")),r.push(""),r.push(""),e.forEach(function(n){var a=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(h){h.a&&(a=t.indexOf(tt(h.a))),o.push(h.t||"")}),r.push(''),o.length<=1)r.push(Yt("t",tt(o[0]||"")));else{for(var s=`Comment: `+o[0]+` `,c=1;c")}),r.push(""),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Tg(e,r,t){var n=[Ct,ye("ThreadedComments",null,{xmlns:Nt.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var o="";(a[1]||[]).forEach(function(s,c){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var h={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};c==0?o=h.id:h.parentId=o,s.ID=h.id,s.a&&(h.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(ye("threadedComment",Yt("text",s.t||""),h))})}),n.push(""),n.join("")}function kg(e){var r=[Ct,ye("personList",null,{xmlns:Nt.TCMNT,"xmlns:x":Ma[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(ye("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push(""),r.join("")}function Sg(e){var r={};r.iauthor=e.read_shift(4);var t=oa(e);return r.rfx=t.s,r.ref=rt(t.s),e.l+=16,r}function Fg(e,r){return r==null&&(r=ce(36)),r.write_shift(4,e[1].iauthor),La(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var Cg=Kt;function Og(e){return jt(e.slice(0,54))}function Dg(e){var r=lr(),t=[];return pe(r,628),pe(r,630),e.forEach(function(n){n[1].forEach(function(a){t.indexOf(a.a)>-1||(t.push(a.a.slice(0,54)),pe(r,632,Og(a.a)))})}),pe(r,631),pe(r,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=t.indexOf(a.a);var o={s:Ut(n[0]),e:Ut(n[0])};pe(r,635,Fg([o,a])),a.t&&a.t.length>0&&pe(r,637,I2(a)),pe(r,636),delete a.iauthor})}),pe(r,634),pe(r,629),r.end()}function Bg(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var a=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&ot.utils.cfb_add(e,a,r.FileIndex[n].content)}})}var df=["xlsb","xlsm","xlam","biff8","xla"],Ig=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,a,o,s){var c=!1,h=!1;o.length==0?h=!0:o.charAt(0)=="["&&(h=!0,o=o.slice(1,-1)),s.length==0?c=!0:s.charAt(0)=="["&&(c=!0,s=s.slice(1,-1));var f=o.length>0?parseInt(o,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return c?u+=r.c:--u,h?f+=r.r:--f,a+(c?"":"$")+Jt(u)+(h?"":"$")+$t(f)}return function(a,o){return r=o,a.replace(e,t)}}(),Us=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,js=function(){return function(r,t){return r.replace(Us,function(n,a,o,s,c,h){var f=Is(s)-(o?0:t.c),u=Bs(h)-(c?0:t.r),p=u==0?"":c?u+1:"["+u+"]",A=f==0?"":o?f+1:"["+f+"]";return a+"R"+p+"C"+A})}}();function Rg(e,r){return e.replace(Us,function(t,n,a,o,s,c){return n+(a=="$"?a+o:Jt(Is(o)+r.c))+(s=="$"?s+c:$t(Bs(c)+r.r))})}function Mg(e){return e.length!=1}function St(e){e.l+=1}function Mn(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function pf(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return Af(e);t.biff==12&&(n=4)}var a=e.read_shift(n),o=e.read_shift(n),s=Mn(e,2),c=Mn(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:c[0],cRel:c[1],rRel:c[2]}}}function Af(e){var r=Mn(e,2),t=Mn(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:a,cRel:t[1],rRel:t[2]}}}function Pg(e,r,t){if(t.biff<8)return Af(e);var n=e.read_shift(t.biff==12?4:2),a=e.read_shift(t.biff==12?4:2),o=Mn(e,2),s=Mn(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function mf(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Lg(e);var n=e.read_shift(t&&t.biff==12?4:2),a=Mn(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Lg(e){var r=Mn(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Ng(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Ug(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return jg(e);var a=e.read_shift(n>=12?4:2),o=e.read_shift(2),s=(o&16384)>>14,c=(o&32768)>>15;if(o&=16383,c==1)for(;a>524287;)a-=1048576;if(s==1)for(;o>8191;)o=o-16384;return{r:a,c:o,cRel:s,rRel:c}}function jg(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,a=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),a==1&&t>=128&&(t=t-256),{r,c:t,cRel:a,rRel:n}}function zg(e,r,t){var n=(e[e.l++]&96)>>5,a=pf(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,a]}function Hg(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),o=8;if(t)switch(t.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var s=pf(e,o,t);return[n,a,s]}function Gg(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function Vg(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),o=8;if(t)switch(t.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[n,a]}function Wg(e,r,t){var n=(e[e.l++]&96)>>5,a=Pg(e,r-1,t);return[n,a]}function Yg(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function Tc(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function $g(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),a=[],o=0;o<=n;++o)a.push(e.read_shift(t&&t.biff==2?1:2));return a}function Qg(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function Xg(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function qg(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function Jg(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function vf(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function Kg(e){return e.read_shift(2),vf(e)}function Zg(e){return e.read_shift(2),vf(e)}function ex(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=mf(e,0,t);return[n,a]}function tx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=Ug(e,0,t);return[n,a]}function rx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var o=mf(e,0,t);return[n,a,o]}function nx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(t&&t.biff<=3?1:2);return[ny[a],yf[a],n]}function ax(e,r,t){var n=e[e.l++],a=e.read_shift(1),o=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:ix(e);return[a,(o[0]===0?yf:ry)[o[1]]]}function ix(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ox(e,r,t){e.l+=t&&t.biff==2?3:4}function sx(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function lx(e){return e.l++,fi[e.read_shift(1)]}function cx(e){return e.l++,e.read_shift(2)}function ux(e){return e.l++,e.read_shift(1)!==0}function fx(e){return e.l++,Na(e)}function hx(e,r,t){return e.l++,Ku(e,r-1,t)}function dx(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=rv(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=fi[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Na(e);break;case 2:t[1]=ov(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function px(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),a=[],o=0;o!=n;++o)a.push((t.biff==12?oa:cv)(e));return a}function Ax(e,r,t){var n=0,a=0;t.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--a==0&&(a=256));for(var o=0,s=[];o!=n&&(s[o]=[]);++o)for(var c=0;c!=a;++c)s[o][c]=dx(e,t.biff);return s}function mx(e,r,t){var n=e.read_shift(1)>>>5&3,a=!t||t.biff>=8?4:2,o=e.read_shift(a);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,o]}function vx(e,r,t){if(t.biff==5)return gx(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),o=e.read_shift(4);return[n,a,o]}function gx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function xx(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function yx(e,r,t){var n=e.read_shift(1)>>>5&3,a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function _x(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function wx(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),o=4;if(t)switch(t.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[n,a]}var bx=ln,Ex=ln,Tx=ln;function hi(e,r,t){return e.l+=2,[Ng(e)]}function zs(e){return e.l+=6,[]}var kx=hi,Sx=zs,Fx=zs,Cx=hi;function gf(e){return e.l+=2,[qu(e),e.read_shift(2)&1]}var Ox=hi,Dx=gf,Bx=zs,Ix=hi,Rx=hi,Mx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Px(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),o=e.read_shift(2),s=Mx[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:a,C:o}}function Lx(e){return e.l+=2,[e.read_shift(4)]}function Nx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function Ux(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function jx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function zx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Hx(e){return e.l+=4,[0,0]}var kc={1:{n:"PtgExp",f:sx},2:{n:"PtgTbl",f:Tx},3:{n:"PtgAdd",f:St},4:{n:"PtgSub",f:St},5:{n:"PtgMul",f:St},6:{n:"PtgDiv",f:St},7:{n:"PtgPower",f:St},8:{n:"PtgConcat",f:St},9:{n:"PtgLt",f:St},10:{n:"PtgLe",f:St},11:{n:"PtgEq",f:St},12:{n:"PtgGe",f:St},13:{n:"PtgGt",f:St},14:{n:"PtgNe",f:St},15:{n:"PtgIsect",f:St},16:{n:"PtgUnion",f:St},17:{n:"PtgRange",f:St},18:{n:"PtgUplus",f:St},19:{n:"PtgUminus",f:St},20:{n:"PtgPercent",f:St},21:{n:"PtgParen",f:St},22:{n:"PtgMissArg",f:St},23:{n:"PtgStr",f:hx},26:{n:"PtgSheet",f:Nx},27:{n:"PtgEndSheet",f:Ux},28:{n:"PtgErr",f:lx},29:{n:"PtgBool",f:ux},30:{n:"PtgInt",f:cx},31:{n:"PtgNum",f:fx},32:{n:"PtgArray",f:Yg},33:{n:"PtgFunc",f:nx},34:{n:"PtgFuncVar",f:ax},35:{n:"PtgName",f:mx},36:{n:"PtgRef",f:ex},37:{n:"PtgArea",f:zg},38:{n:"PtgMemArea",f:xx},39:{n:"PtgMemErr",f:bx},40:{n:"PtgMemNoMem",f:Ex},41:{n:"PtgMemFunc",f:yx},42:{n:"PtgRefErr",f:_x},43:{n:"PtgAreaErr",f:Gg},44:{n:"PtgRefN",f:tx},45:{n:"PtgAreaN",f:Wg},46:{n:"PtgMemAreaN",f:jx},47:{n:"PtgMemNoMemN",f:zx},57:{n:"PtgNameX",f:vx},58:{n:"PtgRef3d",f:rx},59:{n:"PtgArea3d",f:Hg},60:{n:"PtgRefErr3d",f:wx},61:{n:"PtgAreaErr3d",f:Vg},255:{}},Gx={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Vx={1:{n:"PtgElfLel",f:gf},2:{n:"PtgElfRw",f:Ix},3:{n:"PtgElfCol",f:kx},6:{n:"PtgElfRwV",f:Rx},7:{n:"PtgElfColV",f:Cx},10:{n:"PtgElfRadical",f:Ox},11:{n:"PtgElfRadicalS",f:Bx},13:{n:"PtgElfColS",f:Sx},15:{n:"PtgElfColSV",f:Fx},16:{n:"PtgElfRadicalLel",f:Dx},25:{n:"PtgList",f:Px},29:{n:"PtgSxName",f:Lx},255:{}},Wx={0:{n:"PtgAttrNoop",f:Hx},1:{n:"PtgAttrSemi",f:Jg},2:{n:"PtgAttrIf",f:Xg},4:{n:"PtgAttrChoose",f:$g},8:{n:"PtgAttrGoto",f:Qg},16:{n:"PtgAttrSum",f:ox},32:{n:"PtgAttrBaxcel",f:Tc},33:{n:"PtgAttrBaxcel",f:Tc},64:{n:"PtgAttrSpace",f:Kg},65:{n:"PtgAttrSpaceSemi",f:Zg},128:{n:"PtgAttrIfError",f:qg},255:{}};function Yx(e,r,t,n){if(n.biff<8)return ln(e,r);for(var a=e.l+r,o=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=Ax(e,0,n),o.push(t[s][1]);break;case"PtgMemArea":t[s][2]=px(e,t[s][1],n),o.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),o.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=a-e.l,r!==0&&o.push(ln(e,r)),o}function $x(e,r,t){for(var n=e.l+r,a,o,s=[];n!=e.l;)r=n-e.l,o=e[e.l],a=kc[o]||kc[Gx[o]],(o===24||o===25)&&(a=(o===24?Vx:Wx)[e[e.l+1]]),!a||!a.f?ln(e,r):s.push([a.n,a.f(e,r,t)]);return s}function Qx(e){for(var r=[],t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function qx(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function xf(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var a="";if(t.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Sc(e,r,t){var n=xf(e,r,t);return n=="#REF"?n:qx(n,t)}function Ra(e,r,t,n,a){var o=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},c=[],h,f,u,p=0,A=0,m,x="";if(!e[0]||!e[0][0])return"";for(var v=-1,_="",I=0,T=e[0].length;I=0){switch(e[0][v][1][0]){case 0:_=gt(" ",e[0][v][1][1]);break;case 1:_=gt("\r",e[0][v][1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}f=f+_,v=-1}c.push(f+Xx[b[0]]+h);break;case"PtgIsect":h=c.pop(),f=c.pop(),c.push(f+" "+h);break;case"PtgUnion":h=c.pop(),f=c.pop(),c.push(f+","+h);break;case"PtgRange":h=c.pop(),f=c.pop(),c.push(f+":"+h);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=qa(b[1][1],s,a),c.push(Ja(u,o));break;case"PtgRefN":u=t?qa(b[1][1],t,a):b[1][1],c.push(Ja(u,o));break;case"PtgRef3d":p=b[1][1],u=qa(b[1][2],s,a),x=Sc(n,p,a),c.push(x+"!"+Ja(u,o));break;case"PtgFunc":case"PtgFuncVar":var P=b[1][0],j=b[1][1];P||(P=0),P&=127;var O=P==0?[]:c.slice(-P);c.length-=P,j==="User"&&(j=O.shift()),c.push(j+"("+O.join(",")+")");break;case"PtgBool":c.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(b[1]);break;case"PtgNum":c.push(String(b[1]));break;case"PtgStr":c.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(b[1]);break;case"PtgAreaN":m=fc(b[1][1],t?{s:t}:s,a),c.push(ts(m,a));break;case"PtgArea":m=fc(b[1][1],s,a),c.push(ts(m,a));break;case"PtgArea3d":p=b[1][1],m=b[1][2],x=Sc(n,p,a),c.push(x+"!"+ts(m,a));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":A=b[1][2];var M=(n.names||[])[A-1]||(n[0]||[])[A],q=M?M.Name:"SH33TJSNAME"+String(A);q&&q.slice(0,6)=="_xlfn."&&!a.xlfn&&(q=q.slice(6)),c.push(q);break;case"PtgNameX":var U=b[1][1];A=b[1][2];var le;if(a.biff<=5)U<0&&(U=-U),n[U]&&(le=n[U][A]);else{var he="";if(((n[U]||[])[0]||[])[0]==14849||(((n[U]||[])[0]||[])[0]==1025?n[U][A]&&n[U][A].itab>0&&(he=n.SheetNames[n[U][A].itab-1]+"!"):he=n.SheetNames[A-1]+"!"),n[U]&&n[U][A])he+=n[U][A].Name;else if(n[0]&&n[0][A])he+=n[0][A].Name;else{var Ae=(xf(n,U,a)||"").split(";;");Ae[A-1]?he=Ae[A-1]:he+="SH33TJSERRX"}c.push(he);break}le||(le={Name:"SH33TJSERRY"}),c.push(le.Name);break;case"PtgParen":var Ee="(",Ve=")";if(v>=0){switch(_="",e[0][v][1][0]){case 2:Ee=gt(" ",e[0][v][1][1])+Ee;break;case 3:Ee=gt("\r",e[0][v][1][1])+Ee;break;case 4:Ve=gt(" ",e[0][v][1][1])+Ve;break;case 5:Ve=gt("\r",e[0][v][1][1])+Ve;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}c.push(Ee+c.pop()+Ve);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":u={c:b[1][1],r:b[1][0]};var Me={c:t.c,r:t.r};if(n.sharedf[rt(u)]){var yt=n.sharedf[rt(u)];c.push(Ra(yt,s,Me,n,a))}else{var Je=!1;for(h=0;h!=n.arrayf.length;++h)if(f=n.arrayf[h],!(u.cf[0].e.c)&&!(u.rf[0].e.r)){c.push(Ra(f[1],s,Me,n,a)),Je=!0;break}Je||c.push(b[1])}break;case"PtgArray":c.push("{"+Qx(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=I;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var Zt=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&v>=0&&Zt.indexOf(e[0][I][0])==-1){b=e[0][v];var vt=!0;switch(b[1][0]){case 4:vt=!1;case 0:_=gt(" ",b[1][1]);break;case 5:vt=!1;case 1:_=gt("\r",b[1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}c.push((vt?_:"")+c.pop()+(vt?"":_)),v=-1}}if(c.length>1&&a.WTF)throw new Error("bad formula stack");return c[0]}function Jx(e){if(e==null){var r=ce(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Zn(e);return Zn(0)}function Kx(e,r,t,n,a){var o=ea(r,t,a),s=Jx(e.v),c=ce(6),h=33;c.write_shift(2,h),c.write_shift(4,0);for(var f=ce(e.bf.length),u=0;u0?Yx(e,o,a,t):null;return[a,s]}var Zx=_o,wo=_o,ey=_o,ty=_o,ry={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},yf={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ny={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function ay(e){var r="of:="+e.replace(Us,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function iy(e){return e.replace(/\./,"!")}var Ka=typeof Map!="undefined";function Hs(e,r,t){var n=0,a=e.length;if(t){if(Ka?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var o=Ka?t.get(r):t[r];n-1?(t.width=ps(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function _f(e,r){if(!!e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function Ln(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],a=60,o=e.length;if(n==null&&t.ssf){for(;a<392;++a)if(t.ssf[a]==null){Au(r.z,a),t.ssf[a]=r.z,t.revssf[r.z]=n=a;break}}for(a=0;a!=o;++a)if(e[a].numFmtId===n)return a;return e[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function oy(e,r,t){if(e&&e["!ref"]){var n=ht(e["!ref"]);if(n.e.c',t=0;t!=e.length;++t)r+='';return r+""}function ly(e,r,t,n,a){var o=!1,s={},c=null;if(n.bookType!=="xlsx"&&r.vbaraw){var h=r.SheetNames[t];try{r.Workbook&&(h=r.Workbook.Sheets[t].CodeName||h)}catch{}o=!0,s.codeName=mn(tt(h))}if(e&&e["!outline"]){var f={summaryBelow:1,summaryRight:1};e["!outline"].above&&(f.summaryBelow=0),e["!outline"].left&&(f.summaryRight=0),c=(c||"")+ye("outlinePr",null,f)}!o&&!c||(a[a.length]=ye("sheetPr",c,s))}var cy=["objects","scenarios","selectLockedCells","selectUnlockedCells"],uy=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function fy(e){var r={sheet:1};return cy.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),uy.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=nf(e.password).toString(16).toUpperCase()),ye("sheetProtection",null,r)}function hy(e){return _f(e),ye("pageMargins",null,e)}function dy(e,r){for(var t=[""],n,a=0;a!=r.length;++a)!(n=r[a])||(t[t.length]=ye("col",null,bo(a,n)));return t[t.length]="",t.join("")}function py(e,r,t,n){var a=typeof e.ref=="string"?e.ref:Ft(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var o=t.Workbook.Names,s=yr(a);s.s.r==s.e.r&&(s.e.r=yr(r["!ref"]).e.r,a=Ft(s));for(var c=0;c32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){c=Yt("v",""+Hs(n.Strings,e.v,n.revStrings)),h.t="s";break}h.t="str";break}if(e.t!=o&&(e.t=o,e.v=s),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;c=ye("f",tt(e.f),u)+(e.v!=null?c:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(h.cm=1),ye("c",c,h)}function vy(e,r,t,n){var a=[],o=[],s=ht(e["!ref"]),c="",h,f="",u=[],p=0,A=0,m=e["!rows"],x=Array.isArray(e),v={r:f},_,I=-1;for(A=s.s.c;A<=s.e.c;++A)u[A]=Jt(A);for(p=s.s.r;p<=s.e.r;++p){for(o=[],f=$t(p),A=s.s.c;A<=s.e.c;++A){h=u[A]+f;var T=x?(e[p]||[])[A]:e[h];T!==void 0&&(c=my(T,h,e,r))!=null&&o.push(c)}(o.length>0||m&&m[p])&&(v={r:f},m&&m[p]&&(_=m[p],_.hidden&&(v.hidden=1),I=-1,_.hpx?I=so(_.hpx):_.hpt&&(I=_.hpt),I>-1&&(v.ht=I,v.customHeight=1),_.level&&(v.outlineLevel=_.level)),a[a.length]=ye("row",o.join(""),v))}if(m)for(;p-1&&(v.ht=I,v.customHeight=1),_.level&&(v.outlineLevel=_.level),a[a.length]=ye("row","",v));return a.join("")}function wf(e,r,t,n){var a=[Ct,ye("worksheet",null,{xmlns:Ma[0],"xmlns:r":Nt.r})],o=t.SheetNames[e],s=0,c="",h=t.Sheets[o];h==null&&(h={});var f=h["!ref"]||"A1",u=ht(f);if(u.e.c>16383||u.e.r>1048575){if(r.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),f=Ft(u)}n||(n={}),h["!comments"]=[];var p=[];ly(h,t,e,r,a),a[a.length]=ye("dimension",null,{ref:f}),a[a.length]=Ay(h,r,e,t),r.sheetFormat&&(a[a.length]=ye("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),h["!cols"]!=null&&h["!cols"].length>0&&(a[a.length]=dy(h,h["!cols"])),a[s=a.length]="",h["!links"]=[],h["!ref"]!=null&&(c=vy(h,r),c.length>0&&(a[a.length]=c)),a.length>s+1&&(a[a.length]="",a[s]=a[s].replace("/>",">")),h["!protect"]&&(a[a.length]=fy(h["!protect"])),h["!autofilter"]!=null&&(a[a.length]=py(h["!autofilter"],h,t,e)),h["!merges"]!=null&&h["!merges"].length>0&&(a[a.length]=sy(h["!merges"]));var A=-1,m,x=-1;return h["!links"].length>0&&(a[a.length]="",h["!links"].forEach(function(v){!v[1].Target||(m={ref:v[0]},v[1].Target.charAt(0)!="#"&&(x=et(n,-1,tt(v[1].Target).replace(/#.*$/,""),qe.HLINK),m["r:id"]="rId"+x),(A=v[1].Target.indexOf("#"))>-1&&(m.location=tt(v[1].Target.slice(A+1))),v[1].Tooltip&&(m.tooltip=tt(v[1].Tooltip)),a[a.length]=ye("hyperlink",null,m))}),a[a.length]=""),delete h["!links"],h["!margins"]!=null&&(a[a.length]=hy(h["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(a[a.length]=Yt("ignoredErrors",ye("ignoredError",null,{numberStoredAsText:1,sqref:f}))),p.length>0&&(x=et(n,-1,"../drawings/drawing"+(e+1)+".xml",qe.DRAW),a[a.length]=ye("drawing",null,{"r:id":"rId"+x}),h["!drawing"]=p),h["!comments"].length>0&&(x=et(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",qe.VML),a[a.length]=ye("legacyDrawing",null,{"r:id":"rId"+x}),h["!legacy"]=x),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function gy(e,r){var t={},n=e.l+r;t.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=n,o&7&&(t.level=o&7),o&16&&(t.hidden=!0),o&32&&(t.hpt=a/20),t}function xy(e,r,t){var n=ce(145),a=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;a.hpx?o=so(a.hpx)*20:a.hpt&&(o=a.hpt*20),n.write_shift(2,o),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var c=0,h=n.l;n.l+=4;for(var f={r:e,c:0},u=0;u<16;++u)if(!(r.s.c>u+1<<10||r.e.cn.l?n.slice(0,n.l):n}function yy(e,r,t,n){var a=xy(n,t,r);(a.length>17||(r["!rows"]||[])[n])&&pe(e,0,a)}var _y=oa,wy=La;function by(){}function Ey(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=R2(e),t}function Ty(e,r,t){t==null&&(t=ce(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var a=1;a<3;++a)t.write_shift(1,0);return no({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),Pu(e,t),t.slice(0,t.l)}function ky(e){var r=Or(e);return[r]}function Sy(e,r,t){return t==null&&(t=ce(8)),na(r,t)}function Fy(e){var r=aa(e);return[r]}function Cy(e,r,t){return t==null&&(t=ce(4)),ia(r,t)}function Oy(e){var r=Or(e),t=e.read_shift(1);return[r,t,"b"]}function Dy(e,r,t){return t==null&&(t=ce(9)),na(r,t),t.write_shift(1,e.v?1:0),t}function By(e){var r=aa(e),t=e.read_shift(1);return[r,t,"b"]}function Iy(e,r,t){return t==null&&(t=ce(5)),ia(r,t),t.write_shift(1,e.v?1:0),t}function Ry(e){var r=Or(e),t=e.read_shift(1);return[r,t,"e"]}function My(e,r,t){return t==null&&(t=ce(9)),na(r,t),t.write_shift(1,e.v),t}function Py(e){var r=aa(e),t=e.read_shift(1);return[r,t,"e"]}function Ly(e,r,t){return t==null&&(t=ce(8)),ia(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function Ny(e){var r=Or(e),t=e.read_shift(4);return[r,t,"s"]}function Uy(e,r,t){return t==null&&(t=ce(12)),na(r,t),t.write_shift(4,r.v),t}function jy(e){var r=aa(e),t=e.read_shift(4);return[r,t,"s"]}function zy(e,r,t){return t==null&&(t=ce(8)),ia(r,t),t.write_shift(4,r.v),t}function Hy(e){var r=Or(e),t=Na(e);return[r,t,"n"]}function Gy(e,r,t){return t==null&&(t=ce(16)),na(r,t),Zn(e.v,t),t}function Vy(e){var r=aa(e),t=Na(e);return[r,t,"n"]}function Wy(e,r,t){return t==null&&(t=ce(12)),ia(r,t),Zn(e.v,t),t}function Yy(e){var r=Or(e),t=Lu(e);return[r,t,"n"]}function $y(e,r,t){return t==null&&(t=ce(12)),na(r,t),Nu(e.v,t),t}function Qy(e){var r=aa(e),t=Lu(e);return[r,t,"n"]}function Xy(e,r,t){return t==null&&(t=ce(8)),ia(r,t),Nu(e.v,t),t}function qy(e){var r=Or(e),t=Rs(e);return[r,t,"is"]}function Jy(e){var r=Or(e),t=Kt(e);return[r,t,"str"]}function Ky(e,r,t){return t==null&&(t=ce(12+4*e.v.length)),na(r,t),jt(e.v,t),t.length>t.l?t.slice(0,t.l):t}function Zy(e){var r=aa(e),t=Kt(e);return[r,t,"str"]}function e_(e,r,t){return t==null&&(t=ce(8+4*e.v.length)),ia(r,t),jt(e.v,t),t.length>t.l?t.slice(0,t.l):t}function t_(e,r,t){var n=e.l+r,a=Or(e);a.r=t["!row"];var o=e.read_shift(1),s=[a,o,"b"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ra(c,null,a,t.supbooks,t)}else e.l=n;return s}function r_(e,r,t){var n=e.l+r,a=Or(e);a.r=t["!row"];var o=e.read_shift(1),s=[a,o,"e"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ra(c,null,a,t.supbooks,t)}else e.l=n;return s}function n_(e,r,t){var n=e.l+r,a=Or(e);a.r=t["!row"];var o=Na(e),s=[a,o,"n"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ra(c,null,a,t.supbooks,t)}else e.l=n;return s}function a_(e,r,t){var n=e.l+r,a=Or(e);a.r=t["!row"];var o=Kt(e),s=[a,o,"str"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ra(c,null,a,t.supbooks,t)}else e.l=n;return s}var i_=oa,o_=La;function s_(e,r){return r==null&&(r=ce(4)),r.write_shift(4,e),r}function l_(e,r){var t=e.l+r,n=oa(e),a=Ms(e),o=Kt(e),s=Kt(e),c=Kt(e);e.l=t;var h={rfx:n,relId:a,loc:o,display:c};return s&&(h.Tooltip=s),h}function c_(e,r){var t=ce(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));La({s:Ut(e[0]),e:Ut(e[0])},t),Ps("rId"+r,t);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return jt(a||"",t),jt(e[1].Tooltip||"",t),jt("",t),t.slice(0,t.l)}function u_(){}function f_(e,r,t){var n=e.l+r,a=Uu(e),o=e.read_shift(1),s=[a];if(s[2]=o,t.cellFormula){var c=Zx(e,n-e.l,t);s[1]=c}else e.l=n;return s}function h_(e,r,t){var n=e.l+r,a=oa(e),o=[a];if(t.cellFormula){var s=ty(e,n-e.l,t);o[1]=s,e.l=n}else e.l=n;return o}function d_(e,r,t){t==null&&(t=ce(18));var n=bo(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var a=0;return r.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),r.level&&(a|=r.level<<8),t.write_shift(2,a),t}var bf=["left","right","top","bottom","header","footer"];function p_(e){var r={};return bf.forEach(function(t){r[t]=Na(e)}),r}function A_(e,r){return r==null&&(r=ce(6*8)),_f(e),bf.forEach(function(t){Zn(e[t],r)}),r}function m_(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function v_(e,r,t){t==null&&(t=ce(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function g_(e){var r=ce(24);return r.write_shift(4,4),r.write_shift(4,1),La(e,r),r}function x_(e,r){return r==null&&(r=ce(16*4+2)),r.write_shift(2,e.password?nf(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function y_(){}function __(){}function w_(e,r,t,n,a,o,s){if(r.v===void 0)return!1;var c="";switch(r.t){case"b":c=r.v?"1":"0";break;case"d":r=ur(r),r.z=r.z||xt[14],r.v=cr(nr(r.v)),r.t="n";break;case"n":case"e":c=""+r.v;break;default:c=r.v;break}var h={r:t,c:n};switch(h.s=Ln(a.cellXfs,r,a),r.l&&o["!links"].push([rt(h),r.l]),r.c&&o["!comments"].push([rt(h),r.c]),r.t){case"s":case"str":return a.bookSST?(c=Hs(a.Strings,r.v,a.revStrings),h.t="s",h.v=c,s?pe(e,18,zy(r,h)):pe(e,7,Uy(r,h))):(h.t="str",s?pe(e,17,e_(r,h)):pe(e,6,Ky(r,h))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?pe(e,13,Xy(r,h)):pe(e,2,$y(r,h)):s?pe(e,16,Wy(r,h)):pe(e,5,Gy(r,h)),!0;case"b":return h.t="b",s?pe(e,15,Iy(r,h)):pe(e,4,Dy(r,h)),!0;case"e":return h.t="e",s?pe(e,14,Ly(r,h)):pe(e,3,My(r,h)),!0}return s?pe(e,12,Cy(r,h)):pe(e,1,Sy(r,h)),!0}function b_(e,r,t,n){var a=ht(r["!ref"]||"A1"),o,s="",c=[];pe(e,145);var h=Array.isArray(r),f=a.e.r;r["!rows"]&&(f=Math.max(a.e.r,r["!rows"].length-1));for(var u=a.s.r;u<=f;++u){s=$t(u),yy(e,r,a,u);var p=!1;if(u<=a.e.r)for(var A=a.s.c;A<=a.e.c;++A){u===a.s.r&&(c[A]=Jt(A)),o=c[A]+s;var m=h?(r[u]||[])[A]:r[o];if(!m){p=!1;continue}p=w_(e,m,u,A,n,r,p)}}pe(e,146)}function E_(e,r){!r||!r["!merges"]||(pe(e,177,s_(r["!merges"].length)),r["!merges"].forEach(function(t){pe(e,176,o_(t))}),pe(e,178))}function T_(e,r){!r||!r["!cols"]||(pe(e,390),r["!cols"].forEach(function(t,n){t&&pe(e,60,d_(n,t))}),pe(e,391))}function k_(e,r){!r||!r["!ref"]||(pe(e,648),pe(e,649,g_(ht(r["!ref"]))),pe(e,650))}function S_(e,r,t){r["!links"].forEach(function(n){if(!!n[1].Target){var a=et(t,-1,n[1].Target.replace(/#.*$/,""),qe.HLINK);pe(e,494,c_(n,a))}}),delete r["!links"]}function F_(e,r,t,n){if(r["!comments"].length>0){var a=et(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",qe.VML);pe(e,551,Ps("rId"+a)),r["!legacy"]=a}}function C_(e,r,t,n){if(!!r["!autofilter"]){var a=r["!autofilter"],o=typeof a.ref=="string"?a.ref:Ft(a.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,c=yr(o);c.s.r==c.e.r&&(c.e.r=yr(r["!ref"]).e.r,o=Ft(c));for(var h=0;h16383||h.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],pe(a,129),(t.vbaraw||s["!outline"])&&pe(a,147,Ty(c,s["!outline"])),pe(a,148,wy(h)),O_(a,s,t.Workbook),T_(a,s),b_(a,s,e,r),D_(a,s),C_(a,s,t,e),E_(a,s),S_(a,s,n),s["!margins"]&&pe(a,476,A_(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&k_(a,s),F_(a,s,e,n),pe(a,130),a.end()}function I_(e,r){e.l+=10;var t=Kt(e);return{name:t}}var R_=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function M_(e){return!e.Workbook||!e.Workbook.WBProps?"false":h2(e.Workbook.WBProps.date1904)?"true":"false"}var P_="][*?/\\".split("");function Ef(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return P_.forEach(function(n){if(e.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function L_(e,r,t){e.forEach(function(n,a){Ef(n);for(var o=0;o22)throw new Error("Bad Code Name: Worksheet"+s)}})}function N_(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];L_(e.SheetNames,r,!!e.vbaraw);for(var t=0;t0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(R_.forEach(function(c){e.Workbook.WBProps[c[0]]!=null&&e.Workbook.WBProps[c[0]]!=c[1]&&(n[c[0]]=e.Workbook.WBProps[c[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=ye("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],o=0;if(a&&a[0]&&!!a[0].Hidden){for(r[r.length]="",o=0;o!=e.SheetNames.length&&!(!a[o]||!a[o].Hidden);++o);o==e.SheetNames.length&&(o=0),r[r.length]='',r[r.length]=""}for(r[r.length]="",o=0;o!=e.SheetNames.length;++o){var s={name:tt(e.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),a[o])switch(a[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=ye("sheet",null,s)}return r[r.length]="",t&&(r[r.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(c){var h={name:c.Name};c.Comment&&(h.comment=c.Comment),c.Sheet!=null&&(h.localSheetId=""+c.Sheet),c.Hidden&&(h.hidden="1"),c.Ref&&(r[r.length]=ye("definedName",tt(c.Ref),h))}),r[r.length]=""),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function U_(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=ds(e),t.name=Kt(e),t}function j_(e,r){return r||(r=ce(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),Ps(e.strRelID,r),jt(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function z_(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var a=r>8?Kt(e):"";return a.length>0&&(t.CodeName=a),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function H_(e,r){r||(r=ce(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),Pu(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function G_(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var a=e.read_shift(4),o=M2(e),s=ey(e,0,t),c=Ms(e);e.l=n;var h={Name:o,Ptg:s};return a<268435455&&(h.Sheet=a),c&&(h.Comment=c),h}function V_(e,r){pe(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,a={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};pe(e,156,j_(a))}pe(e,144)}function W_(e,r){r||(r=ce(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return jt("SheetJS",r),jt(qi.version,r),jt(qi.version,r),jt("7262",r),r.length>r.l?r.slice(0,r.l):r}function Y_(e,r){r||(r=ce(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function $_(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,a=-1,o=-1;na||(pe(e,135),pe(e,158,Y_(a)),pe(e,136))}}function Q_(e,r){var t=lr();return pe(t,131),pe(t,128,W_()),pe(t,153,H_(e.Workbook&&e.Workbook.WBProps||null)),$_(t,e),V_(t,e),pe(t,132),t.end()}function X_(e,r,t){return(r.slice(-4)===".bin"?Q_:Tf)(e)}function q_(e,r,t,n,a){return(r.slice(-4)===".bin"?B_:wf)(e,t,n,a)}function J_(e,r,t){return(r.slice(-4)===".bin"?Ag:sf)(e,t)}function K_(e,r,t){return(r.slice(-4)===".bin"?Hv:rf)(e,t)}function Z_(e,r,t){return(r.slice(-4)===".bin"?Dg:hf)(e)}function ew(e){return(e.slice(-4)===".bin"?bg:uf)()}function tw(e,r){var t=[];return e.Props&&t.push(J2(e.Props,r)),e.Custprops&&t.push(K2(e.Props,e.Custprops)),t.join("")}function rw(){return""}function nw(e,r){var t=[''];return r.cellXfs.forEach(function(n,a){var o=[];o.push(ye("NumberFormat",null,{"ss:Format":tt(xt[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};t.push(ye("Style",o.join(""),s))}),ye("Styles",t.join(""))}function kf(e){return ye("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+js(e.Ref,{r:0,c:0})})}function aw(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n"),e["!margins"].header&&a.push(ye("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(ye("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(ye("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)a.push(ye("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push(""),e["!protect"]&&(a.push(Yt("ProtectContents","True")),e["!protect"].objects&&a.push(Yt("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Yt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Yt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Yt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":ye("WorksheetOptions",a.join(""),{xmlns:vr.x})}function sw(e){return e.map(function(r){var t=f2(r.t||""),n=ye("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return ye("Comment",n,{"ss:Author":r.a})}).join("")}function lw(e,r,t,n,a,o,s){if(!e||e.v==null&&e.f==null)return"";var c={};if(e.f&&(c["ss:Formula"]="="+tt(js(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var h=Ut(e.F.slice(r.length+1));c["ss:ArrayRange"]="RC:R"+(h.r==s.r?"":"["+(h.r-s.r)+"]")+"C"+(h.c==s.c?"":"["+(h.c-s.c)+"]")}if(e.l&&e.l.Target&&(c["ss:HRef"]=tt(e.l.Target),e.l.Tooltip&&(c["x:HRefScreenTip"]=tt(e.l.Tooltip))),t["!merges"])for(var f=t["!merges"],u=0;u!=f.length;++u)f[u].s.c!=s.c||f[u].s.r!=s.r||(f[u].e.c>f[u].s.c&&(c["ss:MergeAcross"]=f[u].e.c-f[u].s.c),f[u].e.r>f[u].s.r&&(c["ss:MergeDown"]=f[u].e.r-f[u].s.r));var p="",A="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",A=String(e.v);break;case"b":p="Boolean",A=e.v?"1":"0";break;case"e":p="Error",A=fi[e.v];break;case"d":p="DateTime",A=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||xt[14]);break;case"s":p="String",A=u2(e.v||"");break}var m=Ln(n.cellXfs,e,n);c["ss:StyleID"]="s"+(21+m),c["ss:Index"]=s.c+1;var x=e.v!=null?A:"",v=e.t=="z"?"":''+x+"";return(e.c||[]).length>0&&(v+=sw(e.c)),ye("Cell",v,c)}function cw(e,r){var t='"}function uw(e,r,t,n){if(!e["!ref"])return"";var a=ht(e["!ref"]),o=e["!merges"]||[],s=0,c=[];e["!cols"]&&e["!cols"].forEach(function(_,I){Ns(_);var T=!!_.width,b=bo(I,_),P={"ss:Index":I+1};T&&(P["ss:Width"]=io(b.width)),_.hidden&&(P["ss:Hidden"]="1"),c.push(ye("Column",null,P))});for(var h=Array.isArray(e),f=a.s.r;f<=a.e.r;++f){for(var u=[cw(f,(e["!rows"]||[])[f])],p=a.s.c;p<=a.e.c;++p){var A=!1;for(s=0;s!=o.length;++s)if(!(o[s].s.c>p)&&!(o[s].s.r>f)&&!(o[s].e.c"),u.length>2&&c.push(u.join(""))}return c.join("")}function fw(e,r,t){var n=[],a=t.SheetNames[e],o=t.Sheets[a],s=o?iw(o,r,e,t):"";return s.length>0&&n.push(""+s+""),s=o?uw(o,r,e,t):"",s.length>0&&n.push(""+s+"
"),n.push(ow(o,r,e,t)),n.join("")}function hw(e,r){r||(r={}),e.SSF||(e.SSF=ur(xt)),e.SSF&&(go(),vo(e.SSF),r.revssf=xo(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],Ln(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(tw(e,r)),t.push(rw()),t.push(""),t.push("");for(var n=0;n-1||Yu.indexOf(a[o][0])>-1||a[o][1]!=null&&f.push(a[o]);n.length&&ot.utils.cfb_add(r,"/SummaryInformation",xc(n,as.SI,h,pc)),(t.length||f.length)&&ot.utils.cfb_add(r,"/DocumentSummaryInformation",xc(t,as.DSI,c,dc,f.length?f:null,as.UDI))}function pw(e,r){var t=r||{},n=ot.utils.cfb_new({root:"R"}),a="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":a="/Workbook",t.biff=8;break;case"biff5":a="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return ot.utils.cfb_add(n,a,Sf(e,t)),t.biff==8&&(e.Props||e.Custprops)&&dw(e,n),t.biff==8&&e.vbaraw&&Bg(n,ot.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Aw={0:{f:gy},1:{f:ky},2:{f:Yy},3:{f:Ry},4:{f:Oy},5:{f:Hy},6:{f:Jy},7:{f:Ny},8:{f:a_},9:{f:n_},10:{f:t_},11:{f:r_},12:{f:Fy},13:{f:Qy},14:{f:Py},15:{f:By},16:{f:Vy},17:{f:Zy},18:{f:jy},19:{f:Rs},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:G_},40:{},42:{},43:{f:Jv},44:{f:Xv},45:{f:eg},46:{f:rg},47:{f:tg},48:{},49:{f:F2},50:{},51:{f:gg},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Cv},62:{f:qy},63:{f:Eg},64:{f:y_},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ln,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:m_},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ey},148:{f:_y,p:16},151:{f:u_},152:{},153:{f:z_},154:{},155:{},156:{f:U_},157:{},158:{},159:{T:1,f:Uv},160:{T:-1},161:{T:1,f:oa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:i_},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:mg},336:{T:-1},337:{f:_g,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ds},357:{},358:{},359:{},360:{T:1},361:{},362:{f:bv},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:f_},427:{f:h_},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:p_},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:by},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:l_},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ds},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Cg},633:{T:1},634:{T:-1},635:{T:1,f:Sg},636:{T:-1},637:{f:B2},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:I_},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:__},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function _e(e,r,t,n){var a=r;if(!isNaN(a)){var o=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,o),o>0&&Ds(t)&&e.push(t)}}function mw(e,r,t,n){var a=n||(t||[]).length||0;if(a<=8224)return _e(e,r,t,a);var o=r;if(!isNaN(o)){for(var s=t.parts||[],c=0,h=0,f=0;f+(s[c]||8224)<=8224;)f+=s[c]||8224,c++;var u=e.next(4);for(u.write_shift(2,o),u.write_shift(2,f),e.push(t.slice(h,h+f)),h+=f;h=0&&a<65536?_e(e,2,Iv(t,n,a)):_e(e,3,Bv(t,n,a));return;case"b":case"e":_e(e,5,vw(t,n,r.v,r.t));return;case"s":case"str":_e(e,4,gw(t,n,(r.v||"").slice(0,255)));return}_e(e,1,di(null,t,n))}function yw(e,r,t,n){var a=Array.isArray(r),o=ht(r["!ref"]||"A1"),s,c="",h=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),s=Ft(o)}for(var f=o.s.r;f<=o.e.r;++f){c=$t(f);for(var u=o.s.c;u<=o.e.c;++u){f===o.s.r&&(h[u]=Jt(u)),s=h[u]+c;var p=a?(r[f]||[])[u]:r[s];!p||xw(e,p,f,u)}}}function _w(e,r){for(var t=r||{},n=lr(),a=0,o=0;o255||m.e.r>=x){if(r.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,x-1)}_e(n,2057,Ls(t,16,r)),_e(n,13,Cr(1)),_e(n,12,Cr(100)),_e(n,15,rr(!0)),_e(n,17,rr(!1)),_e(n,16,Zn(.001)),_e(n,95,rr(!0)),_e(n,42,rr(!1)),_e(n,43,rr(!1)),_e(n,130,Cr(1)),_e(n,128,yv([0,0])),_e(n,131,rr(!1)),_e(n,132,rr(!1)),f&&Sw(n,o["!cols"]),_e(n,512,xv(m,r)),f&&(o["!links"]=[]);for(var v=m.s.r;v<=m.e.r;++v){p=$t(v);for(var _=m.s.c;_<=m.e.c;++_){v===m.s.r&&(A[_]=Jt(_)),u=A[_]+p;var I=h?(o[v]||[])[_]:o[u];!I||(Fw(n,I,v,_,r),f&&I.l&&o["!links"].push([u,I.l]))}}var T=c.CodeName||c.name||a;return f&&_e(n,574,pv((s.Views||[])[0])),f&&(o["!merges"]||[]).length&&_e(n,229,Tv(o["!merges"])),f&&kw(n,o),_e(n,442,Zu(T)),f&&Ew(n,o),_e(n,10),n.end()}function Ow(e,r,t){var n=lr(),a=(e||{}).Workbook||{},o=a.Sheets||[],s=a.WBProps||{},c=t.biff==8,h=t.biff==5;if(_e(n,2057,Ls(e,5,t)),t.bookType=="xla"&&_e(n,135),_e(n,225,c?Cr(1200):null),_e(n,193,tv(2)),h&&_e(n,191),h&&_e(n,192),_e(n,226),_e(n,92,uv("SheetJS",t)),_e(n,66,Cr(c?1200:1252)),c&&_e(n,353,Cr(0)),c&&_e(n,448),_e(n,317,Dv(e.SheetNames.length)),c&&e.vbaraw&&_e(n,211),c&&e.vbaraw){var f=s.CodeName||"ThisWorkbook";_e(n,442,Zu(f))}_e(n,156,Cr(17)),_e(n,25,rr(!1)),_e(n,18,rr(!1)),_e(n,19,Cr(0)),c&&_e(n,431,rr(!1)),c&&_e(n,444,Cr(0)),_e(n,61,dv()),_e(n,64,rr(!1)),_e(n,141,Cr(0)),_e(n,34,rr(M_(e)=="true")),_e(n,14,rr(!0)),c&&_e(n,439,rr(!1)),_e(n,218,Cr(0)),ww(n,e,t),bw(n,e.SSF,t),Tw(n,t),c&&_e(n,352,rr(!1));var u=n.end(),p=lr();c&&_e(p,140,Fv()),c&&t.Strings&&mw(p,252,hv(t.Strings)),_e(p,10);var A=p.end(),m=lr(),x=0,v=0;for(v=0;v255&&typeof console!="undefined"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var o=r||{};switch(o.biff||2){case 8:case 5:return Dw(e,r);case 4:case 3:case 2:return _w(e,r)}throw new Error("invalid type "+o.bookType+" for BIFF")}function Bw(e,r,t,n){for(var a=e["!merges"]||[],o=[],s=r.s.c;s<=r.e.c;++s){for(var c=0,h=0,f=0;ft||a[f].s.c>s)&&!(a[f].e.r1&&(m.rowspan=c),h>1&&(m.colspan=h),n.editable?A=''+A+"":p&&(m["data-t"]=p&&p.t||"z",p.v!=null&&(m["data-v"]=p.v),p.z!=null&&(m["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(A=''+A+"")),m.id=(n.id||"sjs")+"-"+u,o.push(ye("td",A,m))}}var x="";return x+o.join("")+""}var Iw='SheetJS Table Export',Rw="";function Mw(e,r,t){var n=[];return n.join("")+""}function Ff(e,r){var t=r||{},n=t.header!=null?t.header:Iw,a=t.footer!=null?t.footer:Rw,o=[n],s=yr(e["!ref"]);t.dense=Array.isArray(e),o.push(Mw(e,s,t));for(var c=s.s.r;c<=s.e.r;++c)o.push(Bw(e,s,c,t));return o.push(""+a),o.join("")}function Cf(e,r,t){var n=t||{},a=0,o=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Ut(n.origin):n.origin;a=s.r,o=s.c}var c=r.getElementsByTagName("tr"),h=Math.min(n.sheetRows||1e7,c.length),f={s:{r:0,c:0},e:{r:a,c:o}};if(e["!ref"]){var u=yr(e["!ref"]);f.s.r=Math.min(f.s.r,u.s.r),f.s.c=Math.min(f.s.c,u.s.c),f.e.r=Math.max(f.e.r,u.e.r),f.e.c=Math.max(f.e.c,u.e.c),a==-1&&(f.e.r=a=u.e.r+1)}var p=[],A=0,m=e["!rows"]||(e["!rows"]=[]),x=0,v=0,_=0,I=0,T=0,b=0;for(e["!cols"]||(e["!cols"]=[]);x1||b>1)&&p.push({s:{r:v+a,c:I+o},e:{r:v+a+(T||1)-1,c:I+o+(b||1)-1}});var le={t:"s",v:M},he=O.getAttribute("data-t")||O.getAttribute("t")||"";M!=null&&(M.length==0?le.t=he||"z":n.raw||M.trim().length==0||he=="s"||(M==="TRUE"?le={t:"b",v:!0}:M==="FALSE"?le={t:"b",v:!1}:isNaN(gn(M))?isNaN(ri(M).getDate())||(le={t:"d",v:nr(M)},n.cellDates||(le={t:"n",v:cr(le.v)}),le.z=n.dateNF||xt[14]):le={t:"n",v:gn(M)})),le.z===void 0&&q!=null&&(le.z=q);var Ae="",Ee=O.getElementsByTagName("A");if(Ee&&Ee.length)for(var Ve=0;Ve=h&&(e["!fullref"]=Ft((f.e.r=c.length-x+v-1+a,f))),e}function Of(e,r){var t=r||{},n=t.dense?[]:{};return Cf(n,e,r)}function Pw(e,r){return ra(Of(e,r),r)}function Fc(e){var r="",t=Lw(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function Lw(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Nw=function(){var e=["",'',"",'',"",'',"",""].join(""),r=""+e+"";return function(){return Ct+r}}(),Cc=function(){var e=function(o){return tt(o).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},r=` +`;r.push(Yt("t",tt(s)))}r.push("
")}),r.push("
"),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Og(e,r,t){var n=[Ot,ye("ThreadedComments",null,{xmlns:Nt.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var o="";(a[1]||[]).forEach(function(s,c){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var h={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};c==0?o=h.id:h.parentId=o,s.ID=h.id,s.a&&(h.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(ye("threadedComment",Yt("text",s.t||""),h))})}),n.push(""),n.join("")}function Dg(e){var r=[Ot,ye("personList",null,{xmlns:Nt.TCMNT,"xmlns:x":Pa[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(ye("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push(""),r.join("")}function Bg(e){var r={};r.iauthor=e.read_shift(4);var t=oa(e);return r.rfx=t.s,r.ref=rt(t.s),e.l+=16,r}function Ig(e,r){return r==null&&(r=ce(36)),r.write_shift(4,e[1].iauthor),Na(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var Rg=Kt;function Mg(e){return jt(e.slice(0,54))}function Pg(e){var r=lr(),t=[];return pe(r,628),pe(r,630),e.forEach(function(n){n[1].forEach(function(a){t.indexOf(a.a)>-1||(t.push(a.a.slice(0,54)),pe(r,632,Mg(a.a)))})}),pe(r,631),pe(r,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=t.indexOf(a.a);var o={s:Ut(n[0]),e:Ut(n[0])};pe(r,635,Ig([o,a])),a.t&&a.t.length>0&&pe(r,637,N2(a)),pe(r,636),delete a.iauthor})}),pe(r,634),pe(r,629),r.end()}function Lg(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var a=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&at.utils.cfb_add(e,a,r.FileIndex[n].content)}})}var df=["xlsb","xlsm","xlam","biff8","xla"],Ng=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,a,o,s){var c=!1,h=!1;o.length==0?h=!0:o.charAt(0)=="["&&(h=!0,o=o.slice(1,-1)),s.length==0?c=!0:s.charAt(0)=="["&&(c=!0,s=s.slice(1,-1));var f=o.length>0?parseInt(o,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return c?u+=r.c:--u,h?f+=r.r:--f,a+(c?"":"$")+Jt(u)+(h?"":"$")+$t(f)}return function(a,o){return r=o,a.replace(e,t)}}(),Us=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,js=function(){return function(r,t){return r.replace(Us,function(n,a,o,s,c,h){var f=Is(s)-(o?0:t.c),u=Bs(h)-(c?0:t.r),p=u==0?"":c?u+1:"["+u+"]",A=f==0?"":o?f+1:"["+f+"]";return a+"R"+p+"C"+A})}}();function Ug(e,r){return e.replace(Us,function(t,n,a,o,s,c){return n+(a=="$"?a+o:Jt(Is(o)+r.c))+(s=="$"?s+c:$t(Bs(c)+r.r))})}function jg(e){return e.length!=1}function Ft(e){e.l+=1}function Pn(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function pf(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return Af(e);t.biff==12&&(n=4)}var a=e.read_shift(n),o=e.read_shift(n),s=Pn(e,2),c=Pn(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:c[0],cRel:c[1],rRel:c[2]}}}function Af(e){var r=Pn(e,2),t=Pn(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:a,cRel:t[1],rRel:t[2]}}}function zg(e,r,t){if(t.biff<8)return Af(e);var n=e.read_shift(t.biff==12?4:2),a=e.read_shift(t.biff==12?4:2),o=Pn(e,2),s=Pn(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function mf(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Hg(e);var n=e.read_shift(t&&t.biff==12?4:2),a=Pn(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Hg(e){var r=Pn(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Gg(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Vg(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return Wg(e);var a=e.read_shift(n>=12?4:2),o=e.read_shift(2),s=(o&16384)>>14,c=(o&32768)>>15;if(o&=16383,c==1)for(;a>524287;)a-=1048576;if(s==1)for(;o>8191;)o=o-16384;return{r:a,c:o,cRel:s,rRel:c}}function Wg(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,a=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),a==1&&t>=128&&(t=t-256),{r,c:t,cRel:a,rRel:n}}function Yg(e,r,t){var n=(e[e.l++]&96)>>5,a=pf(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,a]}function $g(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),o=8;if(t)switch(t.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var s=pf(e,o,t);return[n,a,s]}function Qg(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function Xg(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),o=8;if(t)switch(t.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[n,a]}function qg(e,r,t){var n=(e[e.l++]&96)>>5,a=zg(e,r-1,t);return[n,a]}function Jg(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function kc(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function Kg(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),a=[],o=0;o<=n;++o)a.push(e.read_shift(t&&t.biff==2?1:2));return a}function Zg(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function ex(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function tx(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function rx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function vf(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function nx(e){return e.read_shift(2),vf(e)}function ax(e){return e.read_shift(2),vf(e)}function ix(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=mf(e,0,t);return[n,a]}function ox(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=Vg(e,0,t);return[n,a]}function sx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var o=mf(e,0,t);return[n,a,o]}function lx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(t&&t.biff<=3?1:2);return[ly[a],yf[a],n]}function cx(e,r,t){var n=e[e.l++],a=e.read_shift(1),o=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:ux(e);return[a,(o[0]===0?yf:sy)[o[1]]]}function ux(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function fx(e,r,t){e.l+=t&&t.biff==2?3:4}function hx(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function dx(e){return e.l++,hi[e.read_shift(1)]}function px(e){return e.l++,e.read_shift(2)}function Ax(e){return e.l++,e.read_shift(1)!==0}function mx(e){return e.l++,Ua(e)}function vx(e,r,t){return e.l++,Ku(e,r-1,t)}function gx(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=sv(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=hi[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Ua(e);break;case 2:t[1]=fv(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function xx(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),a=[],o=0;o!=n;++o)a.push((t.biff==12?oa:pv)(e));return a}function yx(e,r,t){var n=0,a=0;t.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--a==0&&(a=256));for(var o=0,s=[];o!=n&&(s[o]=[]);++o)for(var c=0;c!=a;++c)s[o][c]=gx(e,t.biff);return s}function _x(e,r,t){var n=e.read_shift(1)>>>5&3,a=!t||t.biff>=8?4:2,o=e.read_shift(a);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,o]}function wx(e,r,t){if(t.biff==5)return bx(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),o=e.read_shift(4);return[n,a,o]}function bx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function Ex(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function Tx(e,r,t){var n=e.read_shift(1)>>>5&3,a=e.read_shift(t&&t.biff==2?1:2);return[n,a]}function kx(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function Sx(e,r,t){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),o=4;if(t)switch(t.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[n,a]}var Fx=sn,Cx=sn,Ox=sn;function di(e,r,t){return e.l+=2,[Gg(e)]}function zs(e){return e.l+=6,[]}var Dx=di,Bx=zs,Ix=zs,Rx=di;function gf(e){return e.l+=2,[qu(e),e.read_shift(2)&1]}var Mx=di,Px=gf,Lx=zs,Nx=di,Ux=di,jx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function zx(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),o=e.read_shift(2),s=jx[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:a,C:o}}function Hx(e){return e.l+=2,[e.read_shift(4)]}function Gx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function Vx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function Wx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Yx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function $x(e){return e.l+=4,[0,0]}var Sc={1:{n:"PtgExp",f:hx},2:{n:"PtgTbl",f:Ox},3:{n:"PtgAdd",f:Ft},4:{n:"PtgSub",f:Ft},5:{n:"PtgMul",f:Ft},6:{n:"PtgDiv",f:Ft},7:{n:"PtgPower",f:Ft},8:{n:"PtgConcat",f:Ft},9:{n:"PtgLt",f:Ft},10:{n:"PtgLe",f:Ft},11:{n:"PtgEq",f:Ft},12:{n:"PtgGe",f:Ft},13:{n:"PtgGt",f:Ft},14:{n:"PtgNe",f:Ft},15:{n:"PtgIsect",f:Ft},16:{n:"PtgUnion",f:Ft},17:{n:"PtgRange",f:Ft},18:{n:"PtgUplus",f:Ft},19:{n:"PtgUminus",f:Ft},20:{n:"PtgPercent",f:Ft},21:{n:"PtgParen",f:Ft},22:{n:"PtgMissArg",f:Ft},23:{n:"PtgStr",f:vx},26:{n:"PtgSheet",f:Gx},27:{n:"PtgEndSheet",f:Vx},28:{n:"PtgErr",f:dx},29:{n:"PtgBool",f:Ax},30:{n:"PtgInt",f:px},31:{n:"PtgNum",f:mx},32:{n:"PtgArray",f:Jg},33:{n:"PtgFunc",f:lx},34:{n:"PtgFuncVar",f:cx},35:{n:"PtgName",f:_x},36:{n:"PtgRef",f:ix},37:{n:"PtgArea",f:Yg},38:{n:"PtgMemArea",f:Ex},39:{n:"PtgMemErr",f:Fx},40:{n:"PtgMemNoMem",f:Cx},41:{n:"PtgMemFunc",f:Tx},42:{n:"PtgRefErr",f:kx},43:{n:"PtgAreaErr",f:Qg},44:{n:"PtgRefN",f:ox},45:{n:"PtgAreaN",f:qg},46:{n:"PtgMemAreaN",f:Wx},47:{n:"PtgMemNoMemN",f:Yx},57:{n:"PtgNameX",f:wx},58:{n:"PtgRef3d",f:sx},59:{n:"PtgArea3d",f:$g},60:{n:"PtgRefErr3d",f:Sx},61:{n:"PtgAreaErr3d",f:Xg},255:{}},Qx={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Xx={1:{n:"PtgElfLel",f:gf},2:{n:"PtgElfRw",f:Nx},3:{n:"PtgElfCol",f:Dx},6:{n:"PtgElfRwV",f:Ux},7:{n:"PtgElfColV",f:Rx},10:{n:"PtgElfRadical",f:Mx},11:{n:"PtgElfRadicalS",f:Lx},13:{n:"PtgElfColS",f:Bx},15:{n:"PtgElfColSV",f:Ix},16:{n:"PtgElfRadicalLel",f:Px},25:{n:"PtgList",f:zx},29:{n:"PtgSxName",f:Hx},255:{}},qx={0:{n:"PtgAttrNoop",f:$x},1:{n:"PtgAttrSemi",f:rx},2:{n:"PtgAttrIf",f:ex},4:{n:"PtgAttrChoose",f:Kg},8:{n:"PtgAttrGoto",f:Zg},16:{n:"PtgAttrSum",f:fx},32:{n:"PtgAttrBaxcel",f:kc},33:{n:"PtgAttrBaxcel",f:kc},64:{n:"PtgAttrSpace",f:nx},65:{n:"PtgAttrSpaceSemi",f:ax},128:{n:"PtgAttrIfError",f:tx},255:{}};function Jx(e,r,t,n){if(n.biff<8)return sn(e,r);for(var a=e.l+r,o=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=yx(e,0,n),o.push(t[s][1]);break;case"PtgMemArea":t[s][2]=xx(e,t[s][1],n),o.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),o.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=a-e.l,r!==0&&o.push(sn(e,r)),o}function Kx(e,r,t){for(var n=e.l+r,a,o,s=[];n!=e.l;)r=n-e.l,o=e[e.l],a=Sc[o]||Sc[Qx[o]],(o===24||o===25)&&(a=(o===24?Xx:qx)[e[e.l+1]]),!a||!a.f?sn(e,r):s.push([a.n,a.f(e,r,t)]);return s}function Zx(e){for(var r=[],t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function ty(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function xf(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var a="";if(t.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Fc(e,r,t){var n=xf(e,r,t);return n=="#REF"?n:ty(n,t)}function Ma(e,r,t,n,a){var o=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},c=[],h,f,u,p=0,A=0,m,y="";if(!e[0]||!e[0][0])return"";for(var v=-1,_="",I=0,T=e[0].length;I=0){switch(e[0][v][1][0]){case 0:_=gt(" ",e[0][v][1][1]);break;case 1:_=gt("\r",e[0][v][1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}f=f+_,v=-1}c.push(f+ey[b[0]]+h);break;case"PtgIsect":h=c.pop(),f=c.pop(),c.push(f+" "+h);break;case"PtgUnion":h=c.pop(),f=c.pop(),c.push(f+","+h);break;case"PtgRange":h=c.pop(),f=c.pop(),c.push(f+":"+h);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Ja(b[1][1],s,a),c.push(Ka(u,o));break;case"PtgRefN":u=t?Ja(b[1][1],t,a):b[1][1],c.push(Ka(u,o));break;case"PtgRef3d":p=b[1][1],u=Ja(b[1][2],s,a),y=Fc(n,p,a),c.push(y+"!"+Ka(u,o));break;case"PtgFunc":case"PtgFuncVar":var L=b[1][0],j=b[1][1];L||(L=0),L&=127;var O=L==0?[]:c.slice(-L);c.length-=L,j==="User"&&(j=O.shift()),c.push(j+"("+O.join(",")+")");break;case"PtgBool":c.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(b[1]);break;case"PtgNum":c.push(String(b[1]));break;case"PtgStr":c.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(b[1]);break;case"PtgAreaN":m=hc(b[1][1],t?{s:t}:s,a),c.push(ts(m,a));break;case"PtgArea":m=hc(b[1][1],s,a),c.push(ts(m,a));break;case"PtgArea3d":p=b[1][1],m=b[1][2],y=Fc(n,p,a),c.push(y+"!"+ts(m,a));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":A=b[1][2];var R=(n.names||[])[A-1]||(n[0]||[])[A],H=R?R.Name:"SH33TJSNAME"+String(A);H&&H.slice(0,6)=="_xlfn."&&!a.xlfn&&(H=H.slice(6)),c.push(H);break;case"PtgNameX":var U=b[1][1];A=b[1][2];var le;if(a.biff<=5)U<0&&(U=-U),n[U]&&(le=n[U][A]);else{var he="";if(((n[U]||[])[0]||[])[0]==14849||(((n[U]||[])[0]||[])[0]==1025?n[U][A]&&n[U][A].itab>0&&(he=n.SheetNames[n[U][A].itab-1]+"!"):he=n.SheetNames[A-1]+"!"),n[U]&&n[U][A])he+=n[U][A].Name;else if(n[0]&&n[0][A])he+=n[0][A].Name;else{var Ae=(xf(n,U,a)||"").split(";;");Ae[A-1]?he=Ae[A-1]:he+="SH33TJSERRX"}c.push(he);break}le||(le={Name:"SH33TJSERRY"}),c.push(le.Name);break;case"PtgParen":var Ee="(",Ve=")";if(v>=0){switch(_="",e[0][v][1][0]){case 2:Ee=gt(" ",e[0][v][1][1])+Ee;break;case 3:Ee=gt("\r",e[0][v][1][1])+Ee;break;case 4:Ve=gt(" ",e[0][v][1][1])+Ve;break;case 5:Ve=gt("\r",e[0][v][1][1])+Ve;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}c.push(Ee+c.pop()+Ve);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":u={c:b[1][1],r:b[1][0]};var Le={c:t.c,r:t.r};if(n.sharedf[rt(u)]){var yt=n.sharedf[rt(u)];c.push(Ma(yt,s,Le,n,a))}else{var Je=!1;for(h=0;h!=n.arrayf.length;++h)if(f=n.arrayf[h],!(u.cf[0].e.c)&&!(u.rf[0].e.r)){c.push(Ma(f[1],s,Le,n,a)),Je=!0;break}Je||c.push(b[1])}break;case"PtgArray":c.push("{"+Zx(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=I;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var Zt=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&v>=0&&Zt.indexOf(e[0][I][0])==-1){b=e[0][v];var vt=!0;switch(b[1][0]){case 4:vt=!1;case 0:_=gt(" ",b[1][1]);break;case 5:vt=!1;case 1:_=gt("\r",b[1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}c.push((vt?_:"")+c.pop()+(vt?"":_)),v=-1}}if(c.length>1&&a.WTF)throw new Error("bad formula stack");return c[0]}function ry(e){if(e==null){var r=ce(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Zn(e);return Zn(0)}function ny(e,r,t,n,a){var o=ea(r,t,a),s=ry(e.v),c=ce(6),h=33;c.write_shift(2,h),c.write_shift(4,0);for(var f=ce(e.bf.length),u=0;u0?Jx(e,o,a,t):null;return[a,s]}var ay=_o,wo=_o,iy=_o,oy=_o,sy={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},yf={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ly={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function cy(e){var r="of:="+e.replace(Us,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function uy(e){return e.replace(/\./,"!")}var Za=typeof Map!="undefined";function Hs(e,r,t){var n=0,a=e.length;if(t){if(Za?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var o=Za?t.get(r):t[r];n-1?(t.width=ps(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function _f(e,r){if(!!e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function Nn(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],a=60,o=e.length;if(n==null&&t.ssf){for(;a<392;++a)if(t.ssf[a]==null){Au(r.z,a),t.ssf[a]=r.z,t.revssf[r.z]=n=a;break}}for(a=0;a!=o;++a)if(e[a].numFmtId===n)return a;return e[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function fy(e,r,t){if(e&&e["!ref"]){var n=ht(e["!ref"]);if(n.e.c',t=0;t!=e.length;++t)r+='';return r+""}function dy(e,r,t,n,a){var o=!1,s={},c=null;if(n.bookType!=="xlsx"&&r.vbaraw){var h=r.SheetNames[t];try{r.Workbook&&(h=r.Workbook.Sheets[t].CodeName||h)}catch{}o=!0,s.codeName=mn(tt(h))}if(e&&e["!outline"]){var f={summaryBelow:1,summaryRight:1};e["!outline"].above&&(f.summaryBelow=0),e["!outline"].left&&(f.summaryRight=0),c=(c||"")+ye("outlinePr",null,f)}!o&&!c||(a[a.length]=ye("sheetPr",c,s))}var py=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Ay=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function my(e){var r={sheet:1};return py.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),Ay.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=nf(e.password).toString(16).toUpperCase()),ye("sheetProtection",null,r)}function vy(e){return _f(e),ye("pageMargins",null,e)}function gy(e,r){for(var t=[""],n,a=0;a!=r.length;++a)!(n=r[a])||(t[t.length]=ye("col",null,bo(a,n)));return t[t.length]="",t.join("")}function xy(e,r,t,n){var a=typeof e.ref=="string"?e.ref:Ct(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var o=t.Workbook.Names,s=yr(a);s.s.r==s.e.r&&(s.e.r=yr(r["!ref"]).e.r,a=Ct(s));for(var c=0;c32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){c=Yt("v",""+Hs(n.Strings,e.v,n.revStrings)),h.t="s";break}h.t="str";break}if(e.t!=o&&(e.t=o,e.v=s),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;c=ye("f",tt(e.f),u)+(e.v!=null?c:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(h.cm=1),ye("c",c,h)}function wy(e,r,t,n){var a=[],o=[],s=ht(e["!ref"]),c="",h,f="",u=[],p=0,A=0,m=e["!rows"],y=Array.isArray(e),v={r:f},_,I=-1;for(A=s.s.c;A<=s.e.c;++A)u[A]=Jt(A);for(p=s.s.r;p<=s.e.r;++p){for(o=[],f=$t(p),A=s.s.c;A<=s.e.c;++A){h=u[A]+f;var T=y?(e[p]||[])[A]:e[h];T!==void 0&&(c=_y(T,h,e,r))!=null&&o.push(c)}(o.length>0||m&&m[p])&&(v={r:f},m&&m[p]&&(_=m[p],_.hidden&&(v.hidden=1),I=-1,_.hpx?I=oo(_.hpx):_.hpt&&(I=_.hpt),I>-1&&(v.ht=I,v.customHeight=1),_.level&&(v.outlineLevel=_.level)),a[a.length]=ye("row",o.join(""),v))}if(m)for(;p-1&&(v.ht=I,v.customHeight=1),_.level&&(v.outlineLevel=_.level),a[a.length]=ye("row","",v));return a.join("")}function wf(e,r,t,n){var a=[Ot,ye("worksheet",null,{xmlns:Pa[0],"xmlns:r":Nt.r})],o=t.SheetNames[e],s=0,c="",h=t.Sheets[o];h==null&&(h={});var f=h["!ref"]||"A1",u=ht(f);if(u.e.c>16383||u.e.r>1048575){if(r.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),f=Ct(u)}n||(n={}),h["!comments"]=[];var p=[];dy(h,t,e,r,a),a[a.length]=ye("dimension",null,{ref:f}),a[a.length]=yy(h,r,e,t),r.sheetFormat&&(a[a.length]=ye("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),h["!cols"]!=null&&h["!cols"].length>0&&(a[a.length]=gy(h,h["!cols"])),a[s=a.length]="",h["!links"]=[],h["!ref"]!=null&&(c=wy(h,r),c.length>0&&(a[a.length]=c)),a.length>s+1&&(a[a.length]="",a[s]=a[s].replace("/>",">")),h["!protect"]&&(a[a.length]=my(h["!protect"])),h["!autofilter"]!=null&&(a[a.length]=xy(h["!autofilter"],h,t,e)),h["!merges"]!=null&&h["!merges"].length>0&&(a[a.length]=hy(h["!merges"]));var A=-1,m,y=-1;return h["!links"].length>0&&(a[a.length]="",h["!links"].forEach(function(v){!v[1].Target||(m={ref:v[0]},v[1].Target.charAt(0)!="#"&&(y=et(n,-1,tt(v[1].Target).replace(/#.*$/,""),qe.HLINK),m["r:id"]="rId"+y),(A=v[1].Target.indexOf("#"))>-1&&(m.location=tt(v[1].Target.slice(A+1))),v[1].Tooltip&&(m.tooltip=tt(v[1].Tooltip)),a[a.length]=ye("hyperlink",null,m))}),a[a.length]=""),delete h["!links"],h["!margins"]!=null&&(a[a.length]=vy(h["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(a[a.length]=Yt("ignoredErrors",ye("ignoredError",null,{numberStoredAsText:1,sqref:f}))),p.length>0&&(y=et(n,-1,"../drawings/drawing"+(e+1)+".xml",qe.DRAW),a[a.length]=ye("drawing",null,{"r:id":"rId"+y}),h["!drawing"]=p),h["!comments"].length>0&&(y=et(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",qe.VML),a[a.length]=ye("legacyDrawing",null,{"r:id":"rId"+y}),h["!legacy"]=y),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function by(e,r){var t={},n=e.l+r;t.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=n,o&7&&(t.level=o&7),o&16&&(t.hidden=!0),o&32&&(t.hpt=a/20),t}function Ey(e,r,t){var n=ce(145),a=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;a.hpx?o=oo(a.hpx)*20:a.hpt&&(o=a.hpt*20),n.write_shift(2,o),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var c=0,h=n.l;n.l+=4;for(var f={r:e,c:0},u=0;u<16;++u)if(!(r.s.c>u+1<<10||r.e.cn.l?n.slice(0,n.l):n}function Ty(e,r,t,n){var a=Ey(n,t,r);(a.length>17||(r["!rows"]||[])[n])&&pe(e,0,a)}var ky=oa,Sy=Na;function Fy(){}function Cy(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=U2(e),t}function Oy(e,r,t){t==null&&(t=ce(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var a=1;a<3;++a)t.write_shift(1,0);return ro({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),Pu(e,t),t.slice(0,t.l)}function Dy(e){var r=Fr(e);return[r]}function By(e,r,t){return t==null&&(t=ce(8)),na(r,t)}function Iy(e){var r=aa(e);return[r]}function Ry(e,r,t){return t==null&&(t=ce(4)),ia(r,t)}function My(e){var r=Fr(e),t=e.read_shift(1);return[r,t,"b"]}function Py(e,r,t){return t==null&&(t=ce(9)),na(r,t),t.write_shift(1,e.v?1:0),t}function Ly(e){var r=aa(e),t=e.read_shift(1);return[r,t,"b"]}function Ny(e,r,t){return t==null&&(t=ce(5)),ia(r,t),t.write_shift(1,e.v?1:0),t}function Uy(e){var r=Fr(e),t=e.read_shift(1);return[r,t,"e"]}function jy(e,r,t){return t==null&&(t=ce(9)),na(r,t),t.write_shift(1,e.v),t}function zy(e){var r=aa(e),t=e.read_shift(1);return[r,t,"e"]}function Hy(e,r,t){return t==null&&(t=ce(8)),ia(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function Gy(e){var r=Fr(e),t=e.read_shift(4);return[r,t,"s"]}function Vy(e,r,t){return t==null&&(t=ce(12)),na(r,t),t.write_shift(4,r.v),t}function Wy(e){var r=aa(e),t=e.read_shift(4);return[r,t,"s"]}function Yy(e,r,t){return t==null&&(t=ce(8)),ia(r,t),t.write_shift(4,r.v),t}function $y(e){var r=Fr(e),t=Ua(e);return[r,t,"n"]}function Qy(e,r,t){return t==null&&(t=ce(16)),na(r,t),Zn(e.v,t),t}function Xy(e){var r=aa(e),t=Ua(e);return[r,t,"n"]}function qy(e,r,t){return t==null&&(t=ce(12)),ia(r,t),Zn(e.v,t),t}function Jy(e){var r=Fr(e),t=Lu(e);return[r,t,"n"]}function Ky(e,r,t){return t==null&&(t=ce(12)),na(r,t),Nu(e.v,t),t}function Zy(e){var r=aa(e),t=Lu(e);return[r,t,"n"]}function e_(e,r,t){return t==null&&(t=ce(8)),ia(r,t),Nu(e.v,t),t}function t_(e){var r=Fr(e),t=Rs(e);return[r,t,"is"]}function r_(e){var r=Fr(e),t=Kt(e);return[r,t,"str"]}function n_(e,r,t){return t==null&&(t=ce(12+4*e.v.length)),na(r,t),jt(e.v,t),t.length>t.l?t.slice(0,t.l):t}function a_(e){var r=aa(e),t=Kt(e);return[r,t,"str"]}function i_(e,r,t){return t==null&&(t=ce(8+4*e.v.length)),ia(r,t),jt(e.v,t),t.length>t.l?t.slice(0,t.l):t}function o_(e,r,t){var n=e.l+r,a=Fr(e);a.r=t["!row"];var o=e.read_shift(1),s=[a,o,"b"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ma(c,null,a,t.supbooks,t)}else e.l=n;return s}function s_(e,r,t){var n=e.l+r,a=Fr(e);a.r=t["!row"];var o=e.read_shift(1),s=[a,o,"e"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ma(c,null,a,t.supbooks,t)}else e.l=n;return s}function l_(e,r,t){var n=e.l+r,a=Fr(e);a.r=t["!row"];var o=Ua(e),s=[a,o,"n"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ma(c,null,a,t.supbooks,t)}else e.l=n;return s}function c_(e,r,t){var n=e.l+r,a=Fr(e);a.r=t["!row"];var o=Kt(e),s=[a,o,"str"];if(t.cellFormula){e.l+=2;var c=wo(e,n-e.l,t);s[3]=Ma(c,null,a,t.supbooks,t)}else e.l=n;return s}var u_=oa,f_=Na;function h_(e,r){return r==null&&(r=ce(4)),r.write_shift(4,e),r}function d_(e,r){var t=e.l+r,n=oa(e),a=Ms(e),o=Kt(e),s=Kt(e),c=Kt(e);e.l=t;var h={rfx:n,relId:a,loc:o,display:c};return s&&(h.Tooltip=s),h}function p_(e,r){var t=ce(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Na({s:Ut(e[0]),e:Ut(e[0])},t),Ps("rId"+r,t);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return jt(a||"",t),jt(e[1].Tooltip||"",t),jt("",t),t.slice(0,t.l)}function A_(){}function m_(e,r,t){var n=e.l+r,a=Uu(e),o=e.read_shift(1),s=[a];if(s[2]=o,t.cellFormula){var c=ay(e,n-e.l,t);s[1]=c}else e.l=n;return s}function v_(e,r,t){var n=e.l+r,a=oa(e),o=[a];if(t.cellFormula){var s=oy(e,n-e.l,t);o[1]=s,e.l=n}else e.l=n;return o}function g_(e,r,t){t==null&&(t=ce(18));var n=bo(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var a=0;return r.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),r.level&&(a|=r.level<<8),t.write_shift(2,a),t}var bf=["left","right","top","bottom","header","footer"];function x_(e){var r={};return bf.forEach(function(t){r[t]=Ua(e)}),r}function y_(e,r){return r==null&&(r=ce(6*8)),_f(e),bf.forEach(function(t){Zn(e[t],r)}),r}function __(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function w_(e,r,t){t==null&&(t=ce(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function b_(e){var r=ce(24);return r.write_shift(4,4),r.write_shift(4,1),Na(e,r),r}function E_(e,r){return r==null&&(r=ce(16*4+2)),r.write_shift(2,e.password?nf(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function T_(){}function k_(){}function S_(e,r,t,n,a,o,s){if(r.v===void 0)return!1;var c="";switch(r.t){case"b":c=r.v?"1":"0";break;case"d":r=ur(r),r.z=r.z||xt[14],r.v=cr(nr(r.v)),r.t="n";break;case"n":case"e":c=""+r.v;break;default:c=r.v;break}var h={r:t,c:n};switch(h.s=Nn(a.cellXfs,r,a),r.l&&o["!links"].push([rt(h),r.l]),r.c&&o["!comments"].push([rt(h),r.c]),r.t){case"s":case"str":return a.bookSST?(c=Hs(a.Strings,r.v,a.revStrings),h.t="s",h.v=c,s?pe(e,18,Yy(r,h)):pe(e,7,Vy(r,h))):(h.t="str",s?pe(e,17,i_(r,h)):pe(e,6,n_(r,h))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?pe(e,13,e_(r,h)):pe(e,2,Ky(r,h)):s?pe(e,16,qy(r,h)):pe(e,5,Qy(r,h)),!0;case"b":return h.t="b",s?pe(e,15,Ny(r,h)):pe(e,4,Py(r,h)),!0;case"e":return h.t="e",s?pe(e,14,Hy(r,h)):pe(e,3,jy(r,h)),!0}return s?pe(e,12,Ry(r,h)):pe(e,1,By(r,h)),!0}function F_(e,r,t,n){var a=ht(r["!ref"]||"A1"),o,s="",c=[];pe(e,145);var h=Array.isArray(r),f=a.e.r;r["!rows"]&&(f=Math.max(a.e.r,r["!rows"].length-1));for(var u=a.s.r;u<=f;++u){s=$t(u),Ty(e,r,a,u);var p=!1;if(u<=a.e.r)for(var A=a.s.c;A<=a.e.c;++A){u===a.s.r&&(c[A]=Jt(A)),o=c[A]+s;var m=h?(r[u]||[])[A]:r[o];if(!m){p=!1;continue}p=S_(e,m,u,A,n,r,p)}}pe(e,146)}function C_(e,r){!r||!r["!merges"]||(pe(e,177,h_(r["!merges"].length)),r["!merges"].forEach(function(t){pe(e,176,f_(t))}),pe(e,178))}function O_(e,r){!r||!r["!cols"]||(pe(e,390),r["!cols"].forEach(function(t,n){t&&pe(e,60,g_(n,t))}),pe(e,391))}function D_(e,r){!r||!r["!ref"]||(pe(e,648),pe(e,649,b_(ht(r["!ref"]))),pe(e,650))}function B_(e,r,t){r["!links"].forEach(function(n){if(!!n[1].Target){var a=et(t,-1,n[1].Target.replace(/#.*$/,""),qe.HLINK);pe(e,494,p_(n,a))}}),delete r["!links"]}function I_(e,r,t,n){if(r["!comments"].length>0){var a=et(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",qe.VML);pe(e,551,Ps("rId"+a)),r["!legacy"]=a}}function R_(e,r,t,n){if(!!r["!autofilter"]){var a=r["!autofilter"],o=typeof a.ref=="string"?a.ref:Ct(a.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,c=yr(o);c.s.r==c.e.r&&(c.e.r=yr(r["!ref"]).e.r,o=Ct(c));for(var h=0;h16383||h.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],pe(a,129),(t.vbaraw||s["!outline"])&&pe(a,147,Oy(c,s["!outline"])),pe(a,148,Sy(h)),M_(a,s,t.Workbook),O_(a,s),F_(a,s,e,r),P_(a,s),R_(a,s,t,e),C_(a,s),B_(a,s,n),s["!margins"]&&pe(a,476,y_(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&D_(a,s),I_(a,s,e,n),pe(a,130),a.end()}function N_(e,r){e.l+=10;var t=Kt(e);return{name:t}}var U_=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function j_(e){return!e.Workbook||!e.Workbook.WBProps?"false":v2(e.Workbook.WBProps.date1904)?"true":"false"}var z_="][*?/\\".split("");function Ef(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return z_.forEach(function(n){if(e.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function H_(e,r,t){e.forEach(function(n,a){Ef(n);for(var o=0;o22)throw new Error("Bad Code Name: Worksheet"+s)}})}function G_(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];H_(e.SheetNames,r,!!e.vbaraw);for(var t=0;t0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(U_.forEach(function(c){e.Workbook.WBProps[c[0]]!=null&&e.Workbook.WBProps[c[0]]!=c[1]&&(n[c[0]]=e.Workbook.WBProps[c[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=ye("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],o=0;if(a&&a[0]&&!!a[0].Hidden){for(r[r.length]="",o=0;o!=e.SheetNames.length&&!(!a[o]||!a[o].Hidden);++o);o==e.SheetNames.length&&(o=0),r[r.length]='',r[r.length]=""}for(r[r.length]="",o=0;o!=e.SheetNames.length;++o){var s={name:tt(e.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),a[o])switch(a[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=ye("sheet",null,s)}return r[r.length]="",t&&(r[r.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(c){var h={name:c.Name};c.Comment&&(h.comment=c.Comment),c.Sheet!=null&&(h.localSheetId=""+c.Sheet),c.Hidden&&(h.hidden="1"),c.Ref&&(r[r.length]=ye("definedName",tt(c.Ref),h))}),r[r.length]=""),r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function V_(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=ds(e),t.name=Kt(e),t}function W_(e,r){return r||(r=ce(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),Ps(e.strRelID,r),jt(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function Y_(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var a=r>8?Kt(e):"";return a.length>0&&(t.CodeName=a),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function $_(e,r){r||(r=ce(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),Pu(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function Q_(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var a=e.read_shift(4),o=j2(e),s=iy(e,0,t),c=Ms(e);e.l=n;var h={Name:o,Ptg:s};return a<268435455&&(h.Sheet=a),c&&(h.Comment=c),h}function X_(e,r){pe(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,a={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};pe(e,156,W_(a))}pe(e,144)}function q_(e,r){r||(r=ce(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return jt("SheetJS",r),jt(Xi.version,r),jt(Xi.version,r),jt("7262",r),r.length>r.l?r.slice(0,r.l):r}function J_(e,r){r||(r=ce(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function K_(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,a=-1,o=-1;na||(pe(e,135),pe(e,158,J_(a)),pe(e,136))}}function Z_(e,r){var t=lr();return pe(t,131),pe(t,128,q_()),pe(t,153,$_(e.Workbook&&e.Workbook.WBProps||null)),K_(t,e),X_(t,e),pe(t,132),t.end()}function ew(e,r,t){return(r.slice(-4)===".bin"?Z_:Tf)(e)}function tw(e,r,t,n,a){return(r.slice(-4)===".bin"?L_:wf)(e,t,n,a)}function rw(e,r,t){return(r.slice(-4)===".bin"?yg:sf)(e,t)}function nw(e,r,t){return(r.slice(-4)===".bin"?$v:rf)(e,t)}function aw(e,r,t){return(r.slice(-4)===".bin"?Pg:hf)(e)}function iw(e){return(e.slice(-4)===".bin"?Fg:uf)()}function ow(e,r){var t=[];return e.Props&&t.push(rv(e.Props,r)),e.Custprops&&t.push(nv(e.Props,e.Custprops)),t.join("")}function sw(){return""}function lw(e,r){var t=[''];return r.cellXfs.forEach(function(n,a){var o=[];o.push(ye("NumberFormat",null,{"ss:Format":tt(xt[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};t.push(ye("Style",o.join(""),s))}),ye("Styles",t.join(""))}function kf(e){return ye("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+js(e.Ref,{r:0,c:0})})}function cw(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n"),e["!margins"].header&&a.push(ye("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(ye("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(ye("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)a.push(ye("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push(""),e["!protect"]&&(a.push(Yt("ProtectContents","True")),e["!protect"].objects&&a.push(Yt("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Yt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Yt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Yt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":ye("WorksheetOptions",a.join(""),{xmlns:vr.x})}function hw(e){return e.map(function(r){var t=m2(r.t||""),n=ye("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return ye("Comment",n,{"ss:Author":r.a})}).join("")}function dw(e,r,t,n,a,o,s){if(!e||e.v==null&&e.f==null)return"";var c={};if(e.f&&(c["ss:Formula"]="="+tt(js(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var h=Ut(e.F.slice(r.length+1));c["ss:ArrayRange"]="RC:R"+(h.r==s.r?"":"["+(h.r-s.r)+"]")+"C"+(h.c==s.c?"":"["+(h.c-s.c)+"]")}if(e.l&&e.l.Target&&(c["ss:HRef"]=tt(e.l.Target),e.l.Tooltip&&(c["x:HRefScreenTip"]=tt(e.l.Tooltip))),t["!merges"])for(var f=t["!merges"],u=0;u!=f.length;++u)f[u].s.c!=s.c||f[u].s.r!=s.r||(f[u].e.c>f[u].s.c&&(c["ss:MergeAcross"]=f[u].e.c-f[u].s.c),f[u].e.r>f[u].s.r&&(c["ss:MergeDown"]=f[u].e.r-f[u].s.r));var p="",A="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",A=String(e.v);break;case"b":p="Boolean",A=e.v?"1":"0";break;case"e":p="Error",A=hi[e.v];break;case"d":p="DateTime",A=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||xt[14]);break;case"s":p="String",A=A2(e.v||"");break}var m=Nn(n.cellXfs,e,n);c["ss:StyleID"]="s"+(21+m),c["ss:Index"]=s.c+1;var y=e.v!=null?A:"",v=e.t=="z"?"":''+y+"";return(e.c||[]).length>0&&(v+=hw(e.c)),ye("Cell",v,c)}function pw(e,r){var t='"}function Aw(e,r,t,n){if(!e["!ref"])return"";var a=ht(e["!ref"]),o=e["!merges"]||[],s=0,c=[];e["!cols"]&&e["!cols"].forEach(function(_,I){Ns(_);var T=!!_.width,b=bo(I,_),L={"ss:Index":I+1};T&&(L["ss:Width"]=ao(b.width)),_.hidden&&(L["ss:Hidden"]="1"),c.push(ye("Column",null,L))});for(var h=Array.isArray(e),f=a.s.r;f<=a.e.r;++f){for(var u=[pw(f,(e["!rows"]||[])[f])],p=a.s.c;p<=a.e.c;++p){var A=!1;for(s=0;s!=o.length;++s)if(!(o[s].s.c>p)&&!(o[s].s.r>f)&&!(o[s].e.c"),u.length>2&&c.push(u.join(""))}return c.join("")}function mw(e,r,t){var n=[],a=t.SheetNames[e],o=t.Sheets[a],s=o?uw(o,r,e,t):"";return s.length>0&&n.push(""+s+""),s=o?Aw(o,r,e,t):"",s.length>0&&n.push(""+s+"
"),n.push(fw(o,r,e,t)),n.join("")}function vw(e,r){r||(r={}),e.SSF||(e.SSF=ur(xt)),e.SSF&&(go(),vo(e.SSF),r.revssf=xo(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],Nn(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(ow(e,r)),t.push(sw()),t.push(""),t.push("");for(var n=0;n-1||Yu.indexOf(a[o][0])>-1||a[o][1]!=null&&f.push(a[o]);n.length&&at.utils.cfb_add(r,"/SummaryInformation",yc(n,as.SI,h,Ac)),(t.length||f.length)&&at.utils.cfb_add(r,"/DocumentSummaryInformation",yc(t,as.DSI,c,pc,f.length?f:null,as.UDI))}function xw(e,r){var t=r||{},n=at.utils.cfb_new({root:"R"}),a="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":a="/Workbook",t.biff=8;break;case"biff5":a="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return at.utils.cfb_add(n,a,Sf(e,t)),t.biff==8&&(e.Props||e.Custprops)&&gw(e,n),t.biff==8&&e.vbaraw&&Lg(n,at.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var yw={0:{f:by},1:{f:Dy},2:{f:Jy},3:{f:Uy},4:{f:My},5:{f:$y},6:{f:r_},7:{f:Gy},8:{f:c_},9:{f:l_},10:{f:o_},11:{f:s_},12:{f:Iy},13:{f:Zy},14:{f:zy},15:{f:Ly},16:{f:Xy},17:{f:a_},18:{f:Wy},19:{f:Rs},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Q_},40:{},42:{},43:{f:rg},44:{f:eg},45:{f:ig},46:{f:sg},47:{f:og},48:{},49:{f:I2},50:{},51:{f:bg},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Rv},62:{f:t_},63:{f:Cg},64:{f:T_},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:__},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Cy},148:{f:ky,p:16},151:{f:A_},152:{},153:{f:Y_},154:{},155:{},156:{f:V_},157:{},158:{},159:{T:1,f:Vv},160:{T:-1},161:{T:1,f:oa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:u_},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:_g},336:{T:-1},337:{f:kg,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ds},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Fv},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:m_},427:{f:v_},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:x_},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Fy},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:d_},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ds},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Rg},633:{T:1},634:{T:-1},635:{T:1,f:Bg},636:{T:-1},637:{f:L2},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:N_},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:k_},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function _e(e,r,t,n){var a=r;if(!isNaN(a)){var o=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,o),o>0&&Ds(t)&&e.push(t)}}function _w(e,r,t,n){var a=n||(t||[]).length||0;if(a<=8224)return _e(e,r,t,a);var o=r;if(!isNaN(o)){for(var s=t.parts||[],c=0,h=0,f=0;f+(s[c]||8224)<=8224;)f+=s[c]||8224,c++;var u=e.next(4);for(u.write_shift(2,o),u.write_shift(2,f),e.push(t.slice(h,h+f)),h+=f;h=0&&a<65536?_e(e,2,Nv(t,n,a)):_e(e,3,Lv(t,n,a));return;case"b":case"e":_e(e,5,ww(t,n,r.v,r.t));return;case"s":case"str":_e(e,4,bw(t,n,(r.v||"").slice(0,255)));return}_e(e,1,pi(null,t,n))}function Tw(e,r,t,n){var a=Array.isArray(r),o=ht(r["!ref"]||"A1"),s,c="",h=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),s=Ct(o)}for(var f=o.s.r;f<=o.e.r;++f){c=$t(f);for(var u=o.s.c;u<=o.e.c;++u){f===o.s.r&&(h[u]=Jt(u)),s=h[u]+c;var p=a?(r[f]||[])[u]:r[s];!p||Ew(e,p,f,u)}}}function kw(e,r){for(var t=r||{},n=lr(),a=0,o=0;o255||m.e.r>=y){if(r.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,y-1)}_e(n,2057,Ls(t,16,r)),_e(n,13,Sr(1)),_e(n,12,Sr(100)),_e(n,15,rr(!0)),_e(n,17,rr(!1)),_e(n,16,Zn(.001)),_e(n,95,rr(!0)),_e(n,42,rr(!1)),_e(n,43,rr(!1)),_e(n,130,Sr(1)),_e(n,128,Tv([0,0])),_e(n,131,rr(!1)),_e(n,132,rr(!1)),f&&Bw(n,o["!cols"]),_e(n,512,Ev(m,r)),f&&(o["!links"]=[]);for(var v=m.s.r;v<=m.e.r;++v){p=$t(v);for(var _=m.s.c;_<=m.e.c;++_){v===m.s.r&&(A[_]=Jt(_)),u=A[_]+p;var I=h?(o[v]||[])[_]:o[u];!I||(Iw(n,I,v,_,r),f&&I.l&&o["!links"].push([u,I.l]))}}var T=c.CodeName||c.name||a;return f&&_e(n,574,xv((s.Views||[])[0])),f&&(o["!merges"]||[]).length&&_e(n,229,Ov(o["!merges"])),f&&Dw(n,o),_e(n,442,Zu(T)),f&&Cw(n,o),_e(n,10),n.end()}function Mw(e,r,t){var n=lr(),a=(e||{}).Workbook||{},o=a.Sheets||[],s=a.WBProps||{},c=t.biff==8,h=t.biff==5;if(_e(n,2057,Ls(e,5,t)),t.bookType=="xla"&&_e(n,135),_e(n,225,c?Sr(1200):null),_e(n,193,ov(2)),h&&_e(n,191),h&&_e(n,192),_e(n,226),_e(n,92,Av("SheetJS",t)),_e(n,66,Sr(c?1200:1252)),c&&_e(n,353,Sr(0)),c&&_e(n,448),_e(n,317,Pv(e.SheetNames.length)),c&&e.vbaraw&&_e(n,211),c&&e.vbaraw){var f=s.CodeName||"ThisWorkbook";_e(n,442,Zu(f))}_e(n,156,Sr(17)),_e(n,25,rr(!1)),_e(n,18,rr(!1)),_e(n,19,Sr(0)),c&&_e(n,431,rr(!1)),c&&_e(n,444,Sr(0)),_e(n,61,gv()),_e(n,64,rr(!1)),_e(n,141,Sr(0)),_e(n,34,rr(j_(e)=="true")),_e(n,14,rr(!0)),c&&_e(n,439,rr(!1)),_e(n,218,Sr(0)),Sw(n,e,t),Fw(n,e.SSF,t),Ow(n,t),c&&_e(n,352,rr(!1));var u=n.end(),p=lr();c&&_e(p,140,Iv()),c&&t.Strings&&_w(p,252,vv(t.Strings)),_e(p,10);var A=p.end(),m=lr(),y=0,v=0;for(v=0;v255&&typeof console!="undefined"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var o=r||{};switch(o.biff||2){case 8:case 5:return Pw(e,r);case 4:case 3:case 2:return kw(e,r)}throw new Error("invalid type "+o.bookType+" for BIFF")}function Lw(e,r,t,n){for(var a=e["!merges"]||[],o=[],s=r.s.c;s<=r.e.c;++s){for(var c=0,h=0,f=0;ft||a[f].s.c>s)&&!(a[f].e.r1&&(m.rowspan=c),h>1&&(m.colspan=h),n.editable?A=''+A+"":p&&(m["data-t"]=p&&p.t||"z",p.v!=null&&(m["data-v"]=p.v),p.z!=null&&(m["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(A=''+A+"")),m.id=(n.id||"sjs")+"-"+u,o.push(ye("td",A,m))}}var y="";return y+o.join("")+""}var Nw='SheetJS Table Export',Uw="";function jw(e,r,t){var n=[];return n.join("")+""}function Ff(e,r){var t=r||{},n=t.header!=null?t.header:Nw,a=t.footer!=null?t.footer:Uw,o=[n],s=yr(e["!ref"]);t.dense=Array.isArray(e),o.push(jw(e,s,t));for(var c=s.s.r;c<=s.e.r;++c)o.push(Lw(e,s,c,t));return o.push(""+a),o.join("")}function Cf(e,r,t){var n=t||{},a=0,o=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Ut(n.origin):n.origin;a=s.r,o=s.c}var c=r.getElementsByTagName("tr"),h=Math.min(n.sheetRows||1e7,c.length),f={s:{r:0,c:0},e:{r:a,c:o}};if(e["!ref"]){var u=yr(e["!ref"]);f.s.r=Math.min(f.s.r,u.s.r),f.s.c=Math.min(f.s.c,u.s.c),f.e.r=Math.max(f.e.r,u.e.r),f.e.c=Math.max(f.e.c,u.e.c),a==-1&&(f.e.r=a=u.e.r+1)}var p=[],A=0,m=e["!rows"]||(e["!rows"]=[]),y=0,v=0,_=0,I=0,T=0,b=0;for(e["!cols"]||(e["!cols"]=[]);y1||b>1)&&p.push({s:{r:v+a,c:I+o},e:{r:v+a+(T||1)-1,c:I+o+(b||1)-1}});var le={t:"s",v:R},he=O.getAttribute("data-t")||O.getAttribute("t")||"";R!=null&&(R.length==0?le.t=he||"z":n.raw||R.trim().length==0||he=="s"||(R==="TRUE"?le={t:"b",v:!0}:R==="FALSE"?le={t:"b",v:!1}:isNaN(gn(R))?isNaN(ni(R).getDate())||(le={t:"d",v:nr(R)},n.cellDates||(le={t:"n",v:cr(le.v)}),le.z=n.dateNF||xt[14]):le={t:"n",v:gn(R)})),le.z===void 0&&H!=null&&(le.z=H);var Ae="",Ee=O.getElementsByTagName("A");if(Ee&&Ee.length)for(var Ve=0;Ve=h&&(e["!fullref"]=Ct((f.e.r=c.length-y+v-1+a,f))),e}function Of(e,r){var t=r||{},n=t.dense?[]:{};return Cf(n,e,r)}function zw(e,r){return ra(Of(e,r),r)}function Cc(e){var r="",t=Hw(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function Hw(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Gw=function(){var e=["",'',"",'',"",'',"",""].join(""),r=""+e+"";return function(){return Ot+r}}(),Oc=function(){var e=function(o){return tt(o).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},r=` `,t=` `,n=function(o,s,c){var h=[];h.push(' -`);var f=0,u=0,p=yr(o["!ref"]||"A1"),A=o["!merges"]||[],m=0,x=Array.isArray(o);if(o["!cols"])for(u=0;u<=p.e.c;++u)h.push(" +`);var f=0,u=0,p=yr(o["!ref"]||"A1"),A=o["!merges"]||[],m=0,y=Array.isArray(o);if(o["!cols"])for(u=0;u<=p.e.c;++u)h.push(" `);var v="",_=o["!rows"]||[];for(f=0;f `);for(;f<=p.e.r;++f){for(v=_[f]?' table:style-name="ro'+_[f].ods+'"':"",h.push(" -`),u=0;uu)&&!(A[m].s.r>f)&&!(A[m].e.cu)&&!(A[m].s.r>f)&&!(A[m].e.c `)}return h.push(` `),h.join("")},a=function(o,s){o.push(` @@ -1182,14 +1182,14 @@ attempted value: `+y+` `),o.push(` `),o.push(` `),o.push(` -`)};return function(s,c){var h=[Ct],f=ni({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=ni({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(h.push(" +`)};return function(s,c){var h=[Ot],f=ai({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=ai({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(h.push(" `),h.push(Vu().replace(/office:document-meta/g,"office:meta"))):h.push(" `),a(h,s),h.push(` `),h.push(` `);for(var p=0;p!=s.SheetNames.length;++p)h.push(n(s.Sheets[s.SheetNames[p]],s,p));return h.push(` `),h.push(` -`),c.bookType=="fods"?h.push(""):h.push(""),h.join("")}}();function Df(e,r){if(r.bookType=="fods")return Cc(e,r);var t=Ss(),n="",a=[],o=[];return n="mimetype",Ge(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ge(t,n,Cc(e,r)),a.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Ge(t,n,Nw(e,r)),a.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Ge(t,n,Ct+Vu()),a.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Ge(t,n,q2(o)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ge(t,n,Q2(a)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function lo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Uw(e){return typeof TextEncoder!="undefined"?new TextEncoder().encode(e):Wr(mn(e))}function jw(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n>7,e[r+14]|=(n&127)<<1;for(var o=0;a>=1;++o,a/=256)e[r+o]=a&255;e[r+15]|=t>=0?0:128}function ai(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Ze(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ia(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function Dt(e){for(var r=[],t=[0];t[0]=128;);c=e.slice(h,t[0])}break;case 5:s=4,c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=ai(e,t),c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(n))}var f={data:c,type:o};r[a]==null?r[a]=[f]:r[a].push(f)}return r}function Gt(e){var r=[];return e.forEach(function(t,n){t.forEach(function(a){!a.data||(r.push(Ze(n*8+a.type)),a.type==2&&r.push(Ze(a.data.length)),r.push(a.data))})}),Pn(r)}function Hr(e){for(var r,t=[],n=[0];n[0]>>0>0),t.push(s)}return t}function Ea(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Ze(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Ze(+!!t.merge),type:0}]);var a=[];t.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:Ze(s.data.length)}],n[2].push({data:Gt(s.meta),type:2})});var o=Gt(n);r.push(Ze(o.length)),r.push(o),a.forEach(function(s){return r.push(s)})}),Pn(r)}function Hw(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=ai(r,t),a=[];t[0]>2;if(s<60)++s;else{var c=s-59;s=r[t[0]],c>1&&(s|=r[t[0]+1]<<8),c>2&&(s|=r[t[0]+2]<<16),c>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=c}a.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var h=0,f=0;if(o==1?(f=(r[t[0]]>>2&7)+4,h=(r[t[0]++]&224)<<3,h|=r[t[0]++]):(f=(r[t[0]++]>>2)+1,o==2?(h=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(h=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),a=[Pn(a)],h==0)throw new Error("Invalid offset 0");if(h>a[0].length)throw new Error("Invalid offset beyond length");if(f>=h)for(a.push(a[0].slice(-h)),f-=h;f>=a[a.length-1].length;)a.push(a[a.length-1]),f-=a[a.length-1].length;a.push(a[0].slice(-h,-h+f))}}var u=Pn(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Gr(e){for(var r=[],t=0;t>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,t+=n}return Pn(r)}function is(e,r){var t=new Uint8Array(32),n=lo(t),a=12,o=0;switch(t[0]=5,e.t){case"n":t[1]=2,zw(t,a,e.v),o|=1,a+=16;break;case"b":t[1]=6,n.setFloat64(a,e.v?1:0,!0),o|=2,a+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(a,r.indexOf(e.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,o,!0),t.slice(0,a)}function os(e,r){var t=new Uint8Array(32),n=lo(t),a=12,o=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(a,e.v,!0),o|=32,a+=8;break;case"b":t[2]=6,n.setFloat64(a,e.v?1:0,!0),o|=32,a+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(a,r.indexOf(e.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,o,!0),t.slice(0,a)}function Cn(e){var r=Dt(e);return ai(r[1][0].data)}function Gw(e,r,t){var n,a,o,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var c=((s=(o=e[8])==null?void 0:o[0])==null?void 0:s.data)&&Ia(e[8][0].data)>0||!1;if(c)throw"Math only works with normal offsets";for(var h=0,f=lo(e[7][0].data),u=0,p=[],A=lo(e[4][0].data),m=0,x=[],v=0;v1&&console.error("The Numbers writer currently writes only the first table");var n=yr(t["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Ft(n)));var o=co(t,{range:n,header:1}),s=["~Sh33tJ5~"];o.forEach(function(ie){return ie.forEach(function(Q){typeof Q=="string"&&s.push(Q)})});var c={},h=[],f=ot.read(r.numbers,{type:"base64"});f.FileIndex.map(function(ie,Q){return[ie,f.FullPaths[Q]]}).forEach(function(ie){var Q=ie[0],W=ie[1];if(Q.type==2&&!!Q.name.match(/\.iwa/)){var de=Q.content,Ce=Gr(de),De=Hr(Ce);De.forEach(function(Oe){h.push(Oe.id),c[Oe.id]={deps:[],location:W,type:Ia(Oe.messages[0].meta[1][0].data)}})}}),h.sort(function(ie,Q){return ie-Q});var u=h.filter(function(ie){return ie>1}).map(function(ie){return[ie,Ze(ie)]});f.FileIndex.map(function(ie,Q){return[ie,f.FullPaths[Q]]}).forEach(function(ie){var Q=ie[0];if(ie[1],!!Q.name.match(/\.iwa/)){var W=Hr(Gr(Q.content));W.forEach(function(de){de.messages.forEach(function(Ce){u.forEach(function(De){de.messages.some(function(Oe){return Ia(Oe.meta[1][0].data)!=11006&&jw(Oe.data,De[1])})&&c[De[0]].deps.push(de.id)})})})}});for(var p=ot.find(f,c[1].location),A=Hr(Gr(p.content)),m,x=0;x-1,a=zu();Gs(r=r||{});var o=Ss(),s="",c=0;if(r.cellXfs=[],Ln(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ge(o,s,Wu(e.Props,r)),a.coreprops.push(s),et(r.rels,2,s,qe.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],f=0;f0&&(s="docProps/custom.xml",Ge(o,s,Qu(e.Custprops)),a.custprops.push(s),et(r.rels,4,s,qe.CUST_PROPS)),c=1;c<=e.SheetNames.length;++c){var u={"!id":{}},p=e.Sheets[e.SheetNames[c-1]],A=(p||{})["!type"]||"sheet";switch(A){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,Ge(o,s,q_(c-1,s,r,e,u)),a.sheets.push(s),et(r.wbrels,-1,"worksheets/sheet"+c+"."+t,qe.WS[0])}if(p){var m=p["!comments"],x=!1,v="";m&&m.length>0&&(v="xl/comments"+c+"."+t,Ge(o,v,Z_(m,v)),a.comments.push(v),et(u,-1,"../comments"+c+"."+t,qe.CMNT),x=!0),p["!legacy"]&&x&&Ge(o,"xl/drawings/vmlDrawing"+c+".vml",ff(c,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Ge(o,Gu(s),Da(u))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Ge(o,s,K_(r.Strings,s,r)),a.strs.push(s),et(r.wbrels,-1,"sharedStrings."+t,qe.SST)),s="xl/workbook."+t,Ge(o,s,X_(e,s)),a.workbooks.push(s),et(r.rels,1,s,qe.WB),s="xl/theme/theme1.xml",Ge(o,s,cf(e.Themes,r)),a.themes.push(s),et(r.wbrels,-1,"theme/theme1.xml",qe.THEME),s="xl/styles."+t,Ge(o,s,J_(e,s,r)),a.styles.push(s),et(r.wbrels,-1,"styles."+t,qe.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ge(o,s,e.vbaraw),a.vba.push(s),et(r.wbrels,-1,"vbaProject.bin",qe.VBA)),s="xl/metadata."+t,Ge(o,s,ew(s)),a.metadata.push(s),et(r.wbrels,-1,"metadata."+t,qe.XLMETA),Ge(o,"[Content_Types].xml",Hu(a,r)),Ge(o,"_rels/.rels",Da(r.rels)),Ge(o,"xl/_rels/workbook."+t+".rels",Da(r.wbrels)),delete r.revssf,delete r.ssf,o}function Qw(e,r){Fa=1024,e&&!e.SSF&&(e.SSF=ur(xt)),e&&e.SSF&&(go(),vo(e.SSF),r.revssf=xo(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Ka?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=df.indexOf(r.bookType)>-1,a=zu();Gs(r=r||{});var o=Ss(),s="",c=0;if(r.cellXfs=[],Ln(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ge(o,s,Wu(e.Props,r)),a.coreprops.push(s),et(r.rels,2,s,qe.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],f=0;f0&&(s="docProps/custom.xml",Ge(o,s,Qu(e.Custprops)),a.custprops.push(s),et(r.rels,4,s,qe.CUST_PROPS));var u=["SheetJ5"];for(r.tcid=0,c=1;c<=e.SheetNames.length;++c){var p={"!id":{}},A=e.Sheets[e.SheetNames[c-1]],m=(A||{})["!type"]||"sheet";switch(m){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,Ge(o,s,wf(c-1,r,e,p)),a.sheets.push(s),et(r.wbrels,-1,"worksheets/sheet"+c+"."+t,qe.WS[0])}if(A){var x=A["!comments"],v=!1,_="";if(x&&x.length>0){var I=!1;x.forEach(function(T){T[1].forEach(function(b){b.T==!0&&(I=!0)})}),I&&(_="xl/threadedComments/threadedComment"+c+"."+t,Ge(o,_,Tg(x,u,r)),a.threadedcomments.push(_),et(p,-1,"../threadedComments/threadedComment"+c+"."+t,qe.TCMNT)),_="xl/comments"+c+"."+t,Ge(o,_,hf(x)),a.comments.push(_),et(p,-1,"../comments"+c+"."+t,qe.CMNT),v=!0}A["!legacy"]&&v&&Ge(o,"xl/drawings/vmlDrawing"+c+".vml",ff(c,A["!comments"])),delete A["!comments"],delete A["!legacy"]}p["!id"].rId1&&Ge(o,Gu(s),Da(p))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Ge(o,s,rf(r.Strings,r)),a.strs.push(s),et(r.wbrels,-1,"sharedStrings."+t,qe.SST)),s="xl/workbook."+t,Ge(o,s,Tf(e)),a.workbooks.push(s),et(r.rels,1,s,qe.WB),s="xl/theme/theme1.xml",Ge(o,s,cf(e.Themes,r)),a.themes.push(s),et(r.wbrels,-1,"theme/theme1.xml",qe.THEME),s="xl/styles."+t,Ge(o,s,sf(e,r)),a.styles.push(s),et(r.wbrels,-1,"styles."+t,qe.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ge(o,s,e.vbaraw),a.vba.push(s),et(r.wbrels,-1,"vbaProject.bin",qe.VBA)),s="xl/metadata."+t,Ge(o,s,uf()),a.metadata.push(s),et(r.wbrels,-1,"metadata."+t,qe.XLMETA),u.length>1&&(s="xl/persons/person.xml",Ge(o,s,kg(u)),a.people.push(s),et(r.wbrels,-1,"persons/person.xml",qe.PEOPLE)),Ge(o,"[Content_Types].xml",Hu(a,r)),Ge(o,"_rels/.rels",Da(r.rels)),Ge(o,"xl/_rels/workbook."+t+".rels",Da(r.wbrels)),delete r.revssf,delete r.ssf,o}function Xw(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=yn(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Bf(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return ci(r.file,ot.write(e,{type:Ke?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return ot.write(e,r)}function qw(e,r){var t=ur(r||{}),n=Yw(e,t);return Jw(n,t)}function Jw(e,r){var t={},n=Ke?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var a=e.FullPaths?ot.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!="undefined"&&typeof a=="string"){if(r.type=="binary"||r.type=="base64")return a;a=new Uint8Array(mo(a))}return r.password&&typeof encrypt_agile!="undefined"?Bf(encrypt_agile(a,r.password),r):r.type==="file"?ci(r.file,a):r.type=="string"?Qa(a):a}function Kw(e,r){var t=r||{},n=pw(e,t);return Bf(n,t)}function an(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return ti(mn(n));case"binary":return mn(n);case"string":return e;case"file":return ci(r.file,n,"utf8");case"buffer":return Ke?En(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):an(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Zw(e,r){switch(r.type){case"base64":return ti(e);case"binary":return e;case"string":return e;case"file":return ci(r.file,e,"binary");case"buffer":return Ke?En(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Vi(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n0&&(a=0);var p=$t(h.s.r),A=[],m=[],x=0,v=0,_=Array.isArray(e),I=h.s.r,T=0,b={};_&&!e[I]&&(e[I]=[]);var P=f.skipHidden&&e["!cols"]||[],j=f.skipHidden&&e["!rows"]||[];for(T=h.s.c;T<=h.e.c;++T)if(!(P[T]||{}).hidden)switch(A[T]=Jt(T),t=_?e[I][T]:e[A[T]+p],n){case 1:o[T]=T-h.s.c;break;case 2:o[T]=A[T];break;case 3:o[T]=f.header[T-h.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=s=_n(t,null,f),v=b[s]||0,!v)b[s]=1;else{do c=s+"_"+v++;while(b[c]);b[s]=v,b[c]=1}o[T]=c}for(I=h.s.r+a;I<=h.e.r;++I)if(!(j[I]||{}).hidden){var O=e3(e,h,I,A,n,o,_,f);(O.isempty===!1||(n===1?f.blankrows!==!1:!!f.blankrows))&&(m[x++]=O.row)}return m.length=x,m}var Oc=/"/g;function t3(e,r,t,n,a,o,s,c){for(var h=!0,f=[],u="",p=$t(t),A=r.s.c;A<=r.e.c;++A)if(!!n[A]){var m=c.dense?(e[t]||[])[A]:e[n[A]+p];if(m==null)u="";else if(m.v!=null){h=!1,u=""+(c.rawNumbers&&m.t=="n"?m.v:_n(m,null,c));for(var x=0,v=0;x!==u.length;++x)if((v=u.charCodeAt(x))===a||v===o||v===34||c.forceQuotes){u='"'+u.replace(Oc,'""')+'"';break}u=="ID"&&(u='"ID"')}else m.f!=null&&!m.F?(h=!1,u="="+m.f,u.indexOf(",")>=0&&(u='"'+u.replace(Oc,'""')+'"')):u="";f.push(u)}return c.blankrows===!1&&h?null:f.join(s)}function Vs(e,r){var t=[],n=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var a=ht(e["!ref"]),o=n.FS!==void 0?n.FS:",",s=o.charCodeAt(0),c=n.RS!==void 0?n.RS:` -`,h=c.charCodeAt(0),f=new RegExp((o=="|"?"\\|":o)+"+$"),u="",p=[];n.dense=Array.isArray(e);for(var A=n.skipHidden&&e["!cols"]||[],m=n.skipHidden&&e["!rows"]||[],x=a.s.c;x<=a.e.c;++x)(A[x]||{}).hidden||(p[x]=Jt(x));for(var v=0,_=a.s.r;_<=a.e.r;++_)(m[_]||{}).hidden||(u=t3(e,a,_,p,s,h,o,n),u!=null&&(n.strip&&(u=u.replace(f,"")),(u||n.blankrows!==!1)&&t.push((v++?c:"")+u)));return delete n.dense,t.join("")}function Rf(e,r){r||(r={}),r.FS=" ",r.RS=` -`;var t=Vs(e,r);return t}function r3(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var a=ht(e["!ref"]),o="",s=[],c,h=[],f=Array.isArray(e);for(c=a.s.c;c<=a.e.c;++c)s[c]=Jt(c);for(var u=a.s.r;u<=a.e.r;++u)for(o=$t(u),c=a.s.c;c<=a.e.c;++c)if(r=s[c]+o,t=f?(e[u]||[])[c]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}h[h.length]=r+"="+n}return h}function Mf(e,r,t){var n=t||{},a=+!n.skipHeader,o=e||{},s=0,c=0;if(o&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var h=typeof n.origin=="string"?Ut(n.origin):n.origin;s=h.r,c=h.c}var f,u={s:{c:0,r:0},e:{c,r:s+r.length-1+a}};if(o["!ref"]){var p=ht(o["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),s==-1&&(s=p.e.r+1,u.e.r=s+r.length-1+a)}else s==-1&&(s=0,u.e.r=r.length-1+a);var A=n.header||[],m=0;r.forEach(function(v,_){Qt(v).forEach(function(I){(m=A.indexOf(I))==-1&&(A[m=A.length]=I);var T=v[I],b="z",P="",j=rt({c:c+m,r:s+_+a});f=ii(o,j),T&&typeof T=="object"&&!(T instanceof Date)?o[j]=T:(typeof T=="number"?b="n":typeof T=="boolean"?b="b":typeof T=="string"?b="s":T instanceof Date?(b="d",n.cellDates||(b="n",T=cr(T)),P=n.dateNF||xt[14]):T===null&&n.nullError&&(b="e",T=0),f?(f.t=b,f.v=T,delete f.w,delete f.R,P&&(f.z=P)):o[j]=f={t:b,v:T},P&&(f.z=P))})}),u.e.c=Math.max(u.e.c,c+A.length-1);var x=$t(s);if(a)for(m=0;m=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function i3(){return{SheetNames:[],Sheets:{}}}function o3(e,r,t,n){var a=1;if(!t)for(;a<=65535&&e.SheetNames.indexOf(t="Sheet"+a)!=-1;++a,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var o=t.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var s=o&&o[1]||t;for(++a;a<=65535&&e.SheetNames.indexOf(t=s+a)!=-1;++a);}if(Ef(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function s3(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=a3(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function l3(e,r){return e.z=r,e}function Pf(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function c3(e,r,t){return Pf(e,"#"+r,t)}function u3(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function f3(e,r,t,n){for(var a=typeof r!="string"?r:ht(r),o=typeof r=="string"?r:Ft(r),s=a.s.r;s<=a.e.r;++s)for(var c=a.s.c;c<=a.e.c;++c){var h=ii(e,s,c);h.t="n",h.F=o,delete h.v,s==a.s.r&&c==a.s.c&&(h.f=t,n&&(h.D=!0))}return e}var h3={encode_col:Jt,encode_row:$t,encode_cell:rt,encode_range:Ft,decode_col:Is,decode_row:Bs,split_cell:S2,decode_cell:Ut,decode_range:yr,format_cell:_n,sheet_add_aoa:Mu,sheet_add_json:Mf,sheet_add_dom:Cf,aoa_to_sheet:Pa,json_to_sheet:n3,table_to_sheet:Of,table_to_book:Pw,sheet_to_csv:Vs,sheet_to_txt:Rf,sheet_to_json:co,sheet_to_html:Ff,sheet_to_formulae:r3,sheet_to_row_object_array:co,sheet_get_cell:ii,book_new:i3,book_append_sheet:o3,book_set_sheet_visibility:s3,cell_set_number_format:l3,cell_set_hyperlink:Pf,cell_set_internal_link:c3,cell_add_comment:u3,sheet_set_array_formula:f3,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const d3={key:0,class:"zfile-file-download-link-body"},p3=xr(" \u76F4\u94FE "),A3=xr(" \u77ED\u94FE "),m3={class:"flex flex-row space-x-10 w-full"},v3={class:"flex flex-col mt-3 space-y-3.5 overflow-y-auto"},g3={class:"w-full"},x3=xr("\u5BFC\u51FA"),y3=xr("\u5173\u95ED"),_3={__name:"Link",props:{rowData:{type:Object}},setup(e){let r=po();vs(),fo();let{selectFiles:t}=Ao(),{visible:n,copyText:a,data:o,datas:s,loadRowLinkData:c}=eu();Jn(()=>n.value,A=>{if(A)if(t.value.length===0)Wi.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6587\u4EF6");else{if(!r.permission.link){Wi.error("\u6CA1\u6709\u6743\u9650\u751F\u6210\u76F4\u94FE\u6216\u77ED\u94FE");return}t.value.forEach(m=>{c(m,r.permission)})}else s.value=[]});const h=()=>{let A=[];s.value.forEach(m=>{A.push(m.link)}),a(A.join(` +`),c.bookType=="fods"?h.push(""):h.push(""),h.join("")}}();function Df(e,r){if(r.bookType=="fods")return Oc(e,r);var t=Ss(),n="",a=[],o=[];return n="mimetype",Ge(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ge(t,n,Oc(e,r)),a.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Ge(t,n,Gw(e,r)),a.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Ge(t,n,Ot+Vu()),a.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Ge(t,n,tv(o)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ge(t,n,Z2(a)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function so(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Vw(e){return typeof TextEncoder!="undefined"?new TextEncoder().encode(e):Wr(mn(e))}function Ww(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n>7,e[r+14]|=(n&127)<<1;for(var o=0;a>=1;++o,a/=256)e[r+o]=a&255;e[r+15]|=t>=0?0:128}function ii(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Ze(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ra(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function Bt(e){for(var r=[],t=[0];t[0]=128;);c=e.slice(h,t[0])}break;case 5:s=4,c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=ii(e,t),c=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(n))}var f={data:c,type:o};r[a]==null?r[a]=[f]:r[a].push(f)}return r}function Gt(e){var r=[];return e.forEach(function(t,n){t.forEach(function(a){!a.data||(r.push(Ze(n*8+a.type)),a.type==2&&r.push(Ze(a.data.length)),r.push(a.data))})}),Ln(r)}function Hr(e){for(var r,t=[],n=[0];n[0]>>0>0),t.push(s)}return t}function Ea(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Ze(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Ze(+!!t.merge),type:0}]);var a=[];t.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:Ze(s.data.length)}],n[2].push({data:Gt(s.meta),type:2})});var o=Gt(n);r.push(Ze(o.length)),r.push(o),a.forEach(function(s){return r.push(s)})}),Ln(r)}function $w(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=ii(r,t),a=[];t[0]>2;if(s<60)++s;else{var c=s-59;s=r[t[0]],c>1&&(s|=r[t[0]+1]<<8),c>2&&(s|=r[t[0]+2]<<16),c>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=c}a.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var h=0,f=0;if(o==1?(f=(r[t[0]]>>2&7)+4,h=(r[t[0]++]&224)<<3,h|=r[t[0]++]):(f=(r[t[0]++]>>2)+1,o==2?(h=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(h=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),a=[Ln(a)],h==0)throw new Error("Invalid offset 0");if(h>a[0].length)throw new Error("Invalid offset beyond length");if(f>=h)for(a.push(a[0].slice(-h)),f-=h;f>=a[a.length-1].length;)a.push(a[a.length-1]),f-=a[a.length-1].length;a.push(a[0].slice(-h,-h+f))}}var u=Ln(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Gr(e){for(var r=[],t=0;t>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,t+=n}return Ln(r)}function is(e,r){var t=new Uint8Array(32),n=so(t),a=12,o=0;switch(t[0]=5,e.t){case"n":t[1]=2,Yw(t,a,e.v),o|=1,a+=16;break;case"b":t[1]=6,n.setFloat64(a,e.v?1:0,!0),o|=2,a+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(a,r.indexOf(e.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,o,!0),t.slice(0,a)}function os(e,r){var t=new Uint8Array(32),n=so(t),a=12,o=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(a,e.v,!0),o|=32,a+=8;break;case"b":t[2]=6,n.setFloat64(a,e.v?1:0,!0),o|=32,a+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(a,r.indexOf(e.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,o,!0),t.slice(0,a)}function On(e){var r=Bt(e);return ii(r[1][0].data)}function Qw(e,r,t){var n,a,o,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var c=((s=(o=e[8])==null?void 0:o[0])==null?void 0:s.data)&&Ra(e[8][0].data)>0||!1;if(c)throw"Math only works with normal offsets";for(var h=0,f=so(e[7][0].data),u=0,p=[],A=so(e[4][0].data),m=0,y=[],v=0;v1&&console.error("The Numbers writer currently writes only the first table");var n=yr(t["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Ct(n)));var o=lo(t,{range:n,header:1}),s=["~Sh33tJ5~"];o.forEach(function(oe){return oe.forEach(function(X){typeof X=="string"&&s.push(X)})});var c={},h=[],f=at.read(r.numbers,{type:"base64"});f.FileIndex.map(function(oe,X){return[oe,f.FullPaths[X]]}).forEach(function(oe){var X=oe[0],Y=oe[1];if(X.type==2&&!!X.name.match(/\.iwa/)){var de=X.content,Ce=Gr(de),De=Hr(Ce);De.forEach(function(Oe){h.push(Oe.id),c[Oe.id]={deps:[],location:Y,type:Ra(Oe.messages[0].meta[1][0].data)}})}}),h.sort(function(oe,X){return oe-X});var u=h.filter(function(oe){return oe>1}).map(function(oe){return[oe,Ze(oe)]});f.FileIndex.map(function(oe,X){return[oe,f.FullPaths[X]]}).forEach(function(oe){var X=oe[0];if(oe[1],!!X.name.match(/\.iwa/)){var Y=Hr(Gr(X.content));Y.forEach(function(de){de.messages.forEach(function(Ce){u.forEach(function(De){de.messages.some(function(Oe){return Ra(Oe.meta[1][0].data)!=11006&&Ww(Oe.data,De[1])})&&c[De[0]].deps.push(de.id)})})})}});for(var p=at.find(f,c[1].location),A=Hr(Gr(p.content)),m,y=0;y-1,a=zu();Gs(r=r||{});var o=Ss(),s="",c=0;if(r.cellXfs=[],Nn(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ge(o,s,Wu(e.Props,r)),a.coreprops.push(s),et(r.rels,2,s,qe.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],f=0;f0&&(s="docProps/custom.xml",Ge(o,s,Qu(e.Custprops)),a.custprops.push(s),et(r.rels,4,s,qe.CUST_PROPS)),c=1;c<=e.SheetNames.length;++c){var u={"!id":{}},p=e.Sheets[e.SheetNames[c-1]],A=(p||{})["!type"]||"sheet";switch(A){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,Ge(o,s,tw(c-1,s,r,e,u)),a.sheets.push(s),et(r.wbrels,-1,"worksheets/sheet"+c+"."+t,qe.WS[0])}if(p){var m=p["!comments"],y=!1,v="";m&&m.length>0&&(v="xl/comments"+c+"."+t,Ge(o,v,aw(m,v)),a.comments.push(v),et(u,-1,"../comments"+c+"."+t,qe.CMNT),y=!0),p["!legacy"]&&y&&Ge(o,"xl/drawings/vmlDrawing"+c+".vml",ff(c,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Ge(o,Gu(s),Ba(u))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Ge(o,s,nw(r.Strings,s,r)),a.strs.push(s),et(r.wbrels,-1,"sharedStrings."+t,qe.SST)),s="xl/workbook."+t,Ge(o,s,ew(e,s)),a.workbooks.push(s),et(r.rels,1,s,qe.WB),s="xl/theme/theme1.xml",Ge(o,s,cf(e.Themes,r)),a.themes.push(s),et(r.wbrels,-1,"theme/theme1.xml",qe.THEME),s="xl/styles."+t,Ge(o,s,rw(e,s,r)),a.styles.push(s),et(r.wbrels,-1,"styles."+t,qe.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ge(o,s,e.vbaraw),a.vba.push(s),et(r.wbrels,-1,"vbaProject.bin",qe.VBA)),s="xl/metadata."+t,Ge(o,s,iw(s)),a.metadata.push(s),et(r.wbrels,-1,"metadata."+t,qe.XLMETA),Ge(o,"[Content_Types].xml",Hu(a,r)),Ge(o,"_rels/.rels",Ba(r.rels)),Ge(o,"xl/_rels/workbook."+t+".rels",Ba(r.wbrels)),delete r.revssf,delete r.ssf,o}function Zw(e,r){Fa=1024,e&&!e.SSF&&(e.SSF=ur(xt)),e&&e.SSF&&(go(),vo(e.SSF),r.revssf=xo(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Za?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=df.indexOf(r.bookType)>-1,a=zu();Gs(r=r||{});var o=Ss(),s="",c=0;if(r.cellXfs=[],Nn(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Ge(o,s,Wu(e.Props,r)),a.coreprops.push(s),et(r.rels,2,s,qe.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],f=0;f0&&(s="docProps/custom.xml",Ge(o,s,Qu(e.Custprops)),a.custprops.push(s),et(r.rels,4,s,qe.CUST_PROPS));var u=["SheetJ5"];for(r.tcid=0,c=1;c<=e.SheetNames.length;++c){var p={"!id":{}},A=e.Sheets[e.SheetNames[c-1]],m=(A||{})["!type"]||"sheet";switch(m){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,Ge(o,s,wf(c-1,r,e,p)),a.sheets.push(s),et(r.wbrels,-1,"worksheets/sheet"+c+"."+t,qe.WS[0])}if(A){var y=A["!comments"],v=!1,_="";if(y&&y.length>0){var I=!1;y.forEach(function(T){T[1].forEach(function(b){b.T==!0&&(I=!0)})}),I&&(_="xl/threadedComments/threadedComment"+c+"."+t,Ge(o,_,Og(y,u,r)),a.threadedcomments.push(_),et(p,-1,"../threadedComments/threadedComment"+c+"."+t,qe.TCMNT)),_="xl/comments"+c+"."+t,Ge(o,_,hf(y)),a.comments.push(_),et(p,-1,"../comments"+c+"."+t,qe.CMNT),v=!0}A["!legacy"]&&v&&Ge(o,"xl/drawings/vmlDrawing"+c+".vml",ff(c,A["!comments"])),delete A["!comments"],delete A["!legacy"]}p["!id"].rId1&&Ge(o,Gu(s),Ba(p))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Ge(o,s,rf(r.Strings,r)),a.strs.push(s),et(r.wbrels,-1,"sharedStrings."+t,qe.SST)),s="xl/workbook."+t,Ge(o,s,Tf(e)),a.workbooks.push(s),et(r.rels,1,s,qe.WB),s="xl/theme/theme1.xml",Ge(o,s,cf(e.Themes,r)),a.themes.push(s),et(r.wbrels,-1,"theme/theme1.xml",qe.THEME),s="xl/styles."+t,Ge(o,s,sf(e,r)),a.styles.push(s),et(r.wbrels,-1,"styles."+t,qe.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Ge(o,s,e.vbaraw),a.vba.push(s),et(r.wbrels,-1,"vbaProject.bin",qe.VBA)),s="xl/metadata."+t,Ge(o,s,uf()),a.metadata.push(s),et(r.wbrels,-1,"metadata."+t,qe.XLMETA),u.length>1&&(s="xl/persons/person.xml",Ge(o,s,Dg(u)),a.people.push(s),et(r.wbrels,-1,"persons/person.xml",qe.PEOPLE)),Ge(o,"[Content_Types].xml",Hu(a,r)),Ge(o,"_rels/.rels",Ba(r.rels)),Ge(o,"xl/_rels/workbook."+t+".rels",Ba(r.wbrels)),delete r.revssf,delete r.ssf,o}function e4(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=yn(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Bf(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return ui(r.file,at.write(e,{type:Ke?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return at.write(e,r)}function t4(e,r){var t=ur(r||{}),n=Jw(e,t);return r4(n,t)}function r4(e,r){var t={},n=Ke?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var a=e.FullPaths?at.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!="undefined"&&typeof a=="string"){if(r.type=="binary"||r.type=="base64")return a;a=new Uint8Array(mo(a))}return r.password&&typeof encrypt_agile!="undefined"?Bf(encrypt_agile(a,r.password),r):r.type==="file"?ui(r.file,a):r.type=="string"?Xa(a):a}function n4(e,r){var t=r||{},n=xw(e,t);return Bf(n,t)}function an(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return ri(mn(n));case"binary":return mn(n);case"string":return e;case"file":return ui(r.file,n,"utf8");case"buffer":return Ke?En(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):an(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function a4(e,r){switch(r.type){case"base64":return ri(e);case"binary":return e;case"string":return e;case"file":return ui(r.file,e,"binary");case"buffer":return Ke?En(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Gi(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n0&&(a=0);var p=$t(h.s.r),A=[],m=[],y=0,v=0,_=Array.isArray(e),I=h.s.r,T=0,b={};_&&!e[I]&&(e[I]=[]);var L=f.skipHidden&&e["!cols"]||[],j=f.skipHidden&&e["!rows"]||[];for(T=h.s.c;T<=h.e.c;++T)if(!(L[T]||{}).hidden)switch(A[T]=Jt(T),t=_?e[I][T]:e[A[T]+p],n){case 1:o[T]=T-h.s.c;break;case 2:o[T]=A[T];break;case 3:o[T]=f.header[T-h.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=s=_n(t,null,f),v=b[s]||0,!v)b[s]=1;else{do c=s+"_"+v++;while(b[c]);b[s]=v,b[c]=1}o[T]=c}for(I=h.s.r+a;I<=h.e.r;++I)if(!(j[I]||{}).hidden){var O=i4(e,h,I,A,n,o,_,f);(O.isempty===!1||(n===1?f.blankrows!==!1:!!f.blankrows))&&(m[y++]=O.row)}return m.length=y,m}var Dc=/"/g;function o4(e,r,t,n,a,o,s,c){for(var h=!0,f=[],u="",p=$t(t),A=r.s.c;A<=r.e.c;++A)if(!!n[A]){var m=c.dense?(e[t]||[])[A]:e[n[A]+p];if(m==null)u="";else if(m.v!=null){h=!1,u=""+(c.rawNumbers&&m.t=="n"?m.v:_n(m,null,c));for(var y=0,v=0;y!==u.length;++y)if((v=u.charCodeAt(y))===a||v===o||v===34||c.forceQuotes){u='"'+u.replace(Dc,'""')+'"';break}u=="ID"&&(u='"ID"')}else m.f!=null&&!m.F?(h=!1,u="="+m.f,u.indexOf(",")>=0&&(u='"'+u.replace(Dc,'""')+'"')):u="";f.push(u)}return c.blankrows===!1&&h?null:f.join(s)}function Vs(e,r){var t=[],n=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var a=ht(e["!ref"]),o=n.FS!==void 0?n.FS:",",s=o.charCodeAt(0),c=n.RS!==void 0?n.RS:` +`,h=c.charCodeAt(0),f=new RegExp((o=="|"?"\\|":o)+"+$"),u="",p=[];n.dense=Array.isArray(e);for(var A=n.skipHidden&&e["!cols"]||[],m=n.skipHidden&&e["!rows"]||[],y=a.s.c;y<=a.e.c;++y)(A[y]||{}).hidden||(p[y]=Jt(y));for(var v=0,_=a.s.r;_<=a.e.r;++_)(m[_]||{}).hidden||(u=o4(e,a,_,p,s,h,o,n),u!=null&&(n.strip&&(u=u.replace(f,"")),(u||n.blankrows!==!1)&&t.push((v++?c:"")+u)));return delete n.dense,t.join("")}function Rf(e,r){r||(r={}),r.FS=" ",r.RS=` +`;var t=Vs(e,r);return t}function s4(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var a=ht(e["!ref"]),o="",s=[],c,h=[],f=Array.isArray(e);for(c=a.s.c;c<=a.e.c;++c)s[c]=Jt(c);for(var u=a.s.r;u<=a.e.r;++u)for(o=$t(u),c=a.s.c;c<=a.e.c;++c)if(r=s[c]+o,t=f?(e[u]||[])[c]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}h[h.length]=r+"="+n}return h}function Mf(e,r,t){var n=t||{},a=+!n.skipHeader,o=e||{},s=0,c=0;if(o&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var h=typeof n.origin=="string"?Ut(n.origin):n.origin;s=h.r,c=h.c}var f,u={s:{c:0,r:0},e:{c,r:s+r.length-1+a}};if(o["!ref"]){var p=ht(o["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),s==-1&&(s=p.e.r+1,u.e.r=s+r.length-1+a)}else s==-1&&(s=0,u.e.r=r.length-1+a);var A=n.header||[],m=0;r.forEach(function(v,_){Qt(v).forEach(function(I){(m=A.indexOf(I))==-1&&(A[m=A.length]=I);var T=v[I],b="z",L="",j=rt({c:c+m,r:s+_+a});f=oi(o,j),T&&typeof T=="object"&&!(T instanceof Date)?o[j]=T:(typeof T=="number"?b="n":typeof T=="boolean"?b="b":typeof T=="string"?b="s":T instanceof Date?(b="d",n.cellDates||(b="n",T=cr(T)),L=n.dateNF||xt[14]):T===null&&n.nullError&&(b="e",T=0),f?(f.t=b,f.v=T,delete f.w,delete f.R,L&&(f.z=L)):o[j]=f={t:b,v:T},L&&(f.z=L))})}),u.e.c=Math.max(u.e.c,c+A.length-1);var y=$t(s);if(a)for(m=0;m=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function u4(){return{SheetNames:[],Sheets:{}}}function f4(e,r,t,n){var a=1;if(!t)for(;a<=65535&&e.SheetNames.indexOf(t="Sheet"+a)!=-1;++a,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var o=t.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var s=o&&o[1]||t;for(++a;a<=65535&&e.SheetNames.indexOf(t=s+a)!=-1;++a);}if(Ef(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function h4(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=c4(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function d4(e,r){return e.z=r,e}function Pf(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function p4(e,r,t){return Pf(e,"#"+r,t)}function A4(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function m4(e,r,t,n){for(var a=typeof r!="string"?r:ht(r),o=typeof r=="string"?r:Ct(r),s=a.s.r;s<=a.e.r;++s)for(var c=a.s.c;c<=a.e.c;++c){var h=oi(e,s,c);h.t="n",h.F=o,delete h.v,s==a.s.r&&c==a.s.c&&(h.f=t,n&&(h.D=!0))}return e}var v4={encode_col:Jt,encode_row:$t,encode_cell:rt,encode_range:Ct,decode_col:Is,decode_row:Bs,split_cell:B2,decode_cell:Ut,decode_range:yr,format_cell:_n,sheet_add_aoa:Mu,sheet_add_json:Mf,sheet_add_dom:Cf,aoa_to_sheet:La,json_to_sheet:l4,table_to_sheet:Of,table_to_book:zw,sheet_to_csv:Vs,sheet_to_txt:Rf,sheet_to_json:lo,sheet_to_html:Ff,sheet_to_formulae:s4,sheet_to_row_object_array:lo,sheet_get_cell:oi,book_new:u4,book_append_sheet:f4,book_set_sheet_visibility:h4,cell_set_number_format:d4,cell_set_hyperlink:Pf,cell_set_internal_link:p4,cell_add_comment:A4,sheet_set_array_formula:m4,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const g4={key:0,class:"zfile-file-download-link-body"},x4=xr(" \u76F4\u94FE "),y4=xr(" \u77ED\u94FE "),_4={class:"flex flex-row space-x-10 w-full"},w4={class:"flex flex-col mt-3 space-y-3.5 overflow-y-auto"},b4={class:"w-full"},E4=xr("\u5BFC\u51FA"),T4=xr("\u5173\u95ED"),k4={__name:"Link",props:{rowData:{type:Object}},setup(e){let r=po();vs(),uo();let{selectFiles:t}=Ao(),{visible:n,copyText:a,data:o,datas:s,loadRowLinkData:c}=eu();Jn(()=>n.value,A=>{if(A)if(t.value.length===0)Vi.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6587\u4EF6");else{if(!r.permission.link){Vi.error("\u6CA1\u6709\u6743\u9650\u751F\u6210\u76F4\u94FE\u6216\u77ED\u94FE");return}t.value.forEach(m=>{c(m,r.permission)})}else s.value=[]});const h=()=>{let A=[];s.value.forEach(m=>{A.push(m.link)}),a(A.join(` `))},f=()=>{let A=[];s.value.forEach(m=>{A.push(m.directlink)}),a(A.join(` -`))},{height:u}=ws(),p=()=>{let A={raw:!0},m=new Date,x=m.getFullYear(),v=m.getMonth()+1,_=m.getDate(),I=x+""+v+_,T=h3.table_to_book(document.querySelector(".zfile-download-link-table"),A),b=[{wch:50},{wch:50},{wch:50}];s.value.forEach(j=>{let O=j.row.name.length,M=j.directlink.length,q=j.link.length;O>b[0].wch&&(b[0].wch=O),M>b[1].wch&&(b[1].wch=M+20),q>b[2].wch&&(b[2].wch=q)}),T.Sheets.Sheet1["!cols"]=b;let P=If(T,{bookType:"xlsx",bookSST:!0,type:"array"});try{bm.saveAs(new Blob([P],{type:"application/octet-stream"}),I+"ZFile \u76F4\u94FE\u5BFC\u51FA.xlsx")}catch(j){typeof console!="undefined"&&Wi.error(j+P)}return P};return(A,m)=>{const x=Wc,v=er,_=xs,I=Yc,T=tp,b=np,P=Zd,j=ep,O=Dp,M=Gd,q=ys;return E(n)?(xe(),Le("div",d3,[oe(q,{modelValue:E(n),"onUpdate:modelValue":m[13]||(m[13]=U=>Dn(n)?n.value=U:n=U),"destroy-on-close":!0,onClose:m[14]||(m[14]=U=>Dn(n)?n.value=!1:n=!1),title:"\u751F\u6210\u76F4\u94FE","custom-class":E(t).length>1?"zfile-file-download-link-dialog-multiple":"zfile-file-download-link-dialog-single",draggable:"",top:"5vh"},{footer:me(()=>[it(oe(M,{type:"primary",onClick:p},{default:me(()=>[x3]),_:1},512),[[ct,E(t).length>1]]),oe(M,{type:"info",onClick:m[12]||(m[12]=U=>Dn(n)?n.value=!1:n=!1)},{default:me(()=>[y3]),_:1})]),default:me(()=>[E(t).length>1?(xe(),ze(I,{key:0,class:"zfile-download-link-table","max-height":E(u)*.7,data:E(s)},{default:me(()=>[oe(x,{"show-tooltip-when-overflow":"",label:"\u6587\u4EF6\u540D"},{default:me(U=>[xr(Pt(U.row.row.name),1)]),_:1}),E(r).permission.pathLink?(xe(),ze(x,{key:0,"show-overflow-tooltip":""},{header:me(U=>[p3,oe(_,{"show-arrow":!1,offset:15,effect:"dark",content:"\u6279\u91CF\u590D\u5236\u5230\u526A\u8D34\u677F",placement:"top"},{default:me(()=>[oe(v,{onClick:f,class:"inline cursor-pointer l-5",name:"copy"})]),_:1})]),default:me(U=>[xr(Pt(U.row.directlink),1)]),_:1})):Ie("",!0),E(r).permission.shortLink?(xe(),ze(x,{key:1,"show-overflow-tooltip":"",width:"250"},{header:me(U=>[A3,oe(_,{"show-arrow":!1,offset:15,effect:"dark",content:"\u6279\u91CF\u590D\u5236\u5230\u526A\u8D34\u677F",placement:"top"},{default:me(()=>[oe(v,{onClick:h,class:"inline cursor-pointer l-5",name:"copy"})]),_:1})]),default:me(U=>[xr(Pt(U.row.link),1)]),_:1})):Ie("",!0)]),_:1},8,["max-height","data"])):Ie("",!0),E(t).length===1&&E(o)?(xe(),ze(O,{key:1,class:"md:space-y-6"},{default:me(()=>[be("div",m3,[oe(T,{ref:"qrcodeRef",class:"w-3/4",src:E(o).currentImg},null,8,["src"]),be("div",v3,[be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.a1?"border-blue-400":""]),onClick:m[0]||(m[0]=U=>E(o).currentImg=E(o).img.a1)},[oe(T,{class:"w-full h-full",src:E(o).img.a1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.a2?"border-blue-400":""]),onClick:m[1]||(m[1]=U=>E(o).currentImg=E(o).img.a2)},[oe(T,{class:"w-full h-full",src:E(o).img.a2},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.sp1?"border-blue-400":""]),onClick:m[2]||(m[2]=U=>E(o).currentImg=E(o).img.sp1)},[oe(T,{class:"w-full h-full",src:E(o).img.sp1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.aa1?"border-blue-400":""]),onClick:m[3]||(m[3]=U=>E(o).currentImg=E(o).img.aa1)},[oe(T,{class:"w-full h-full",src:E(o).img.aa1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.ab2?"border-blue-400":""]),onClick:m[4]||(m[4]=U=>E(o).currentImg=E(o).img.ab2)},[oe(T,{class:"w-full h-full",src:E(o).img.ab2},null,8,["src"])],2)])]),be("div",g3,[oe(j,null,{default:me(()=>[oe(P,null,{default:me(()=>[oe(b,{readonly:"","prefix-icon":E(gs),modelValue:E(o).row.name,"onUpdate:modelValue":m[5]||(m[5]=U=>E(o).row.name=U)},null,8,["prefix-icon","modelValue"])]),_:1}),oe(P,null,{default:me(()=>[oe(b,{readonly:"","prefix-icon":E(Gc),modelValue:E(o).row.time,"onUpdate:modelValue":m[6]||(m[6]=U=>E(o).row.time=U)},null,8,["prefix-icon","modelValue"])]),_:1}),oe(P,null,{default:me(()=>[oe(b,{readonly:"","prefix-icon":E(Vc),modelValue:E(o).row.size,"onUpdate:modelValue":m[7]||(m[7]=U=>E(o).row.size=U)},null,8,["prefix-icon","modelValue"])]),_:1}),E(r).permission.pathLink?(xe(),ze(P,{key:0},{default:me(()=>[oe(_,{"append-to":".zfile-file-download-link-body","popper-class":"zfile-link-tips",placement:"left",content:"\u8DEF\u5F84\u76F4\u94FE\u5730\u5740\uFF0C\u5305\u542B\u6587\u4EF6\u5B8C\u6574\u8DEF\u5F84."},{default:me(()=>[oe(b,{onClick:m[8]||(m[8]=U=>E(a)(E(o).directlink)),"prefix-icon":E(I0),type:"small",modelValue:E(o).directlink,"onUpdate:modelValue":m[9]||(m[9]=U=>E(o).directlink=U)},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1})):Ie("",!0),E(r).permission.shortLink?(xe(),ze(P,{key:1},{default:me(()=>[oe(_,{"append-to":".zfile-file-download-link-body","popper-class":"zfile-link-tips",placement:"left",content:"\u7F29\u77ED\u7248\u76F4\u94FE\u5730\u5740\uFF0C\u4FBF\u4E8E\u590D\u5236\u5206\u53D1."},{default:me(()=>[oe(b,{onClick:m[10]||(m[10]=U=>E(a)(E(o).link)),"prefix-icon":E(I0),type:"small",modelValue:E(o).link,"onUpdate:modelValue":m[11]||(m[11]=U=>E(o).link=U)},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1})):Ie("",!0)]),_:1})])]),_:1})):Ie("",!0)]),_:1},8,["modelValue","custom-class"])])):Ie("",!0)}}};var w3=ta(_3,[["__scopeId","data-v-5c9f65f2"]]);const pi=e=>(Pc("data-v-8c1e957c"),e=e(),Lc(),e),b3={class:"zfile-file-upload-body"},E3={class:"el-upload__text text-gray-400"},T3=xr(" \u62D6\u62FD\u6587\u4EF6\u5230\u8FD9\u91CC\u6216"),k3=pi(()=>be("em",null," \u70B9\u51FB\u4E0A\u4F20",-1)),S3=xr(", \u4E0A\u4F20\u81F3 "),F3=xr(" \u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u5939\u4E0A\u4F20, \u4E0A\u4F20\u81F3 "),C3=pi(()=>be("br",null,null,-1)),O3=pi(()=>be("span",{class:"text-gray-400"},"\uFF08\u6B64\u5904\u4E0D\u652F\u6301\u62D6\u62FD\u6587\u4EF6\u5939\uFF0C\u53EA\u652F\u6301\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u5939\uFF09",-1)),D3={class:"mt-5 space-y-2.5"},B3={class:"mr-2 p-1.5"},I3={class:"space-y-3 p-1.5"},R3={class:"font-medium text-sm"},M3={class:"text-xs text-gray-400"},P3=pi(()=>be("span",null,"/",-1)),L3=pi(()=>be("span",null," - ",-1)),N3={key:0,class:"text-green-500"},U3={key:1,class:"text-blue-400"},j3={class:"absolute w-full h-full hover:opacity-100 opacity-0 transition-opacity duration-300"},z3={class:"drop-sub"},H3={__name:"ZUpload",setup(e,{emit:r}){vs(),fo();let{currentPath:t}=Ao();const{visible:n,uploadMode:a,cancelUpload:o,beforeUpload:s,uploadProgressInfoSorted:c,dropState:h,listenDropFile:f}=$c();let u=po();const p=()=>{let m=!1;for(let x=c.value.length-1;x>=0;x--)c.value[x].status==="finished"&&(m=!0,c.value.splice(x,1));m&&r("close")},A=Lt();return uo(()=>{f()}),(m,x)=>{const v=er,_=Vr,I=mA,T=er,b=ys;return xe(),Le("div",b3,[E(n)?(xe(),ze(b,{key:0,modelValue:E(n),"onUpdate:modelValue":x[0]||(x[0]=P=>Dn(n)?n.value=P:null),"destroy-on-close":!0,onClose:p,title:E(a)==="file"?"\u4E0A\u4F20\u6587\u4EF6":"\u4E0A\u4F20\u6587\u4EF6\u5939","custom-class":"zfile-file-upload-dialog",draggable:"",top:"5vh",width:"70%"},{default:me(()=>[oe(I,{drag:"","http-request":E(s),ref:"uploadRef","show-file-list":!1,multiple:""},{default:me(()=>[oe(_,{class:"el-icon--upload"},{default:me(()=>[oe(v,{name:"upload-1"})]),_:1}),be("div",E3,[it(be("span",null,[T3,k3,S3,be("em",null,Pt(E(t)),1)],512),[[ct,E(a)==="file"]]),it(be("span",null,[F3,be("em",null,Pt(E(t)),1),C3,O3],512),[[ct,E(a)==="folder"]])])]),_:1},8,["http-request"]),be("div",D3,[(xe(!0),Le(Ca,null,Yi(E(c),P=>(xe(),Le("div",{class:"flex flex-row w-full relative",key:P.index},[be("div",B3,[oe(T,{class:"text-5xl",name:"file-type-"+E(Xn).getFileIconName(P)},null,8,["name"])]),be("div",I3,[be("div",R3,Pt(P.name),1),be("div",M3,[be("span",null,Pt(E(Xn).fileSizeFormat(P.loaded)),1),P3,be("span",null,Pt(E(Xn).fileSizeFormat(P.size)),1),L3,P.status==="finished"?(xe(),Le("span",N3," \u5B8C\u6210 ")):(xe(),Le("span",U3,Pt(P.speed)+" / \u79D2",1))])]),it(be("div",{class:"absolute left-0 border-b-2 border-b-blue-300 h-full",style:on([{width:P.progress+"%"},{background:"rgba(132, 133, 141, 0.08)"}])},null,4),[[ct,P.status==="uploading"]]),it(be("div",j3,[oe(v,{onClick:j=>E(o)(P),class:"text-2xl absolute right-5 top-0 bottom-0 my-auto cursor-pointer rounded-full hover:bg-gray-200",name:"tool-close2"},null,8,["onClick"])],512),[[ct,P.status==="uploading"]])]))),128))])]),_:1},8,["modelValue","title"])):Ie("",!0),E(u).permission.upload?it((xe(),Le("div",{key:1,ref_key:"dropBoxRef",ref:A,id:"dropBox",class:"drop-view"},[be("div",z3,[be("span",null,"\u4E0A\u4F20\u6587\u4EF6\u81F3 "+Pt(E(t)),1)])],512)),[[ct,E(h)]]):Ie("",!0)])}}};var G3=ta(H3,[["__scopeId","data-v-8c1e957c"]]);var At={contextmenu:"v-contextmenu",contextmenuIcon:"v-contextmenu-icon",contextmenuInner:"v-contextmenu-inner",contextmenuDivider:"v-contextmenu-divider",contextmenuItem:"v-contextmenu-item",contextmenuItemHover:"v-contextmenu-item--hover",contextmenuItemDisabled:"v-contextmenu-item--disabled",contextmenuGroup:"v-contextmenu-group",contextmenuGroupTitle:"v-contextmenu-group__title",contextmenuGroupMenus:"v-contextmenu-group__menus",contextmenuSubmenu:"v-contextmenu-submenu",contextmenuSubmenuTitle:"v-contextmenu-submenu__title",contextmenuSubmenuMenus:"v-contextmenu-submenu__menus",contextmenuSubmenuMenusTop:"v-contextmenu-submenu__menus--top",contextmenuSubmenuMenusRight:"v-contextmenu-submenu__menus--right",contextmenuSubmenuMenusBottom:"v-contextmenu-submenu__menus--bottom",contextmenuSubmenuMenusLeft:"v-contextmenu-submenu__menus--left",contextmenuSubmenuArrow:"v-contextmenu-submenu__arrow"};function V3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fd(e)}var W3={trigger:["contextmenu"]},Y3=ar({name:"VContextmenu",props:{modelValue:{type:Boolean,default:!1},autoAjustPlacement:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},teleport:{type:[String,Object],default:function(){return"body"}}},emits:["show","hide","update:modelValue"],setup:function(r,t){var n=t.emit,a=Lt(null),o=Lt(r.modelValue||!1),s=function(b){o.value=b,n("update:modelValue",b)},c=Lt({top:0,left:0}),h=ft(function(){return{top:"".concat(c.value.top,"px"),left:"".concat(c.value.left,"px")}}),f=Lt(null),u=function(b,P){var j=b instanceof Event?P:b,O=(j==null?void 0:j.autoAjustPlacement)||r.autoAjustPlacement,M={top:(j==null?void 0:j.top)||0,left:(j==null?void 0:j.left)||0};if(b instanceof Event){var q,U;b.preventDefault(),M.top=(q=j==null?void 0:j.top)!==null&&q!==void 0?q:b.pageY,M.left=(U=j==null?void 0:j.left)!==null&&U!==void 0?U:b.pageX}s(!0),Nc(function(){if(O){var le=a.value;if(!le)return;var he=le.clientWidth,Ae=le.clientHeight;if(Ae+M.top>=window.innerHeight+window.scrollY){var Ee=M.top-Ae;Ee>window.scrollY&&(M.top=Ee)}if(he+M.left>=window.innerWidth+window.scrollX){var Ve=M.left-he;Ve>window.scrollX&&(M.left=Ve)}}c.value=M,n("show")})},p=function(){f.value=null,s(!1),n("hide")},A=kd(new Map),m=Lt(),x=ft(function(){return m.value&&A.get(m.value)}),v=function(b,P){var j=function(){return P!=null&&P.trigger?Array.isArray(P.trigger)?P.trigger:[P.trigger]:W3.trigger}(),O=function(q){r.disabled||(m.value=b,u(q,{}))};j.forEach(function(M){b.addEventListener(M,O)}),A.set(b,{triggers:j,handler:O})},_=function(b){var P=A.get(b);!P||(P.triggers.forEach(function(j){b.removeEventListener(j,P.handler)}),A.delete(b))},I=function(b){if(!(!b.target||!a.value||!m.value)){var P=a.value.contains(b.target)||x.value&&x.value.triggers.includes("click")&&m.value.contains(b.target);P||s(!1)}};return Jn(o,function(T){T?document.addEventListener("click",I):document.removeEventListener("click",I)}),Rc(function(){document.removeEventListener("click",I)}),Sa("visible",o),Sa("autoAjustPlacement",r.autoAjustPlacement),Sa("show",u),Sa("hide",p),{visible:o,style:h,currentReferenceOptions:x,currentOptions:f,contextmenuRef:a,addReference:v,removeReference:_,toggle:s,show:u,hide:p}},methods:{renderContent:function(){var r,t;return it(oe("div",{class:At.contextmenu,ref:"contextmenuRef",style:this.style},[oe("ul",{class:At.contextmenuInner},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t,{triggerOptions:"currentReferenceOptions",options:"currentOptions"})])]),[[ct,"visible"]])}},render:function(){var r;return this.visible?this.teleport?oe(Sd,{to:this.teleport},V3(r=this.renderContent())?r:{default:function(){return[r]}}):this.renderContent():null}});function pr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var rn=ar({name:"VContextmenuItem",props:{disabled:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0}},emits:["click","mouseenter","mouseleave"],setup:function(r,t){var n=t.emit,a=ms("hide"),o=Lt(!1),s=ft(function(){var u;return u={},pr(u,At.contextmenuItem,!0),pr(u,At.contextmenuItemDisabled,r.disabled),pr(u,At.contextmenuItemHover,o.value),u}),c=function(p){r.disabled||(n("click",p),r.hideOnClick&&(a==null||a()))},h=function(p){r.disabled||(o.value=!0,n("mouseenter",p))},f=function(p){r.disabled||(o.value=!1,n("mouseleave",p))};return{classes:s,handleClick:c,handleMouseenter:h,handleMouseleave:f}},render:function(){var r,t;return oe("li",{class:this.classes,onClick:this.handleClick,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)])}}),ss=ar({name:"VContextmenuDivider",render:function(){return oe("li",{class:At.contextmenuDivider},null)}}),$3=ar({name:"VContextmenuIcon",props:{name:{type:String,required:!0}},render:function(){return oe("i",{class:[At.contextmenuIcon,"".concat(At.contextmenuIcon,"-").concat(this.name)]},null)}});ar({name:"VContextmenuSubmenu",props:{title:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["mouseenter","mouseleave"],setup:function(r,t){var n=t.emit,a=Lt(null),o=ms("autoAjustPlacement"),s=Lt(["top","right"]),c=Lt(!1),h=function(m){r.disabled||(c.value=!0,n("mouseenter",m),Nc(function(){var x=[];if(o){var v=m.target,_=v.getBoundingClientRect();if(!a.value)return;var I=a.value.clientWidth,T=a.value.clientHeight;_.right+I>=window.innerWidth?x.push("left"):x.push("right"),_.bottom+T>=window.innerHeight?x.push("bottom"):x.push("top")}s.value=x}))},f=function(m){r.disabled||(c.value=!1,n("mouseleave",m))},u=ft(function(){var A;return A={},pr(A,At.contextmenuItem,!0),pr(A,At.contextmenuSubmenuTitle,!0),pr(A,At.contextmenuItemHover,c.value),pr(A,At.contextmenuItemDisabled,r.disabled),A}),p=ft(function(){var A;return A={},pr(A,At.contextmenu,!0),pr(A,At.contextmenuSubmenuMenus,!0),pr(A,At.contextmenuSubmenuMenusTop,s.value.includes("top")),pr(A,At.contextmenuSubmenuMenusRight,s.value.includes("right")),pr(A,At.contextmenuSubmenuMenusBottom,s.value.includes("bottom")),pr(A,At.contextmenuSubmenuMenusLeft,s.value.includes("left")),A});return{hover:c,submenuRef:a,titleClasses:u,menusClasses:p,handleMouseenter:h,handleMouseleave:f}},render:function(){var r,t,n,a;return oe("li",{class:At.contextmenuSubmenu,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[oe("div",{class:this.titleClasses},[((r=(t=this.$slots).title)===null||r===void 0?void 0:r.call(t))||this.title,oe("span",{class:At.contextmenuSubmenuArrow},[oe($3,{name:"right-arrow"},null)])]),this.hover?oe("div",{ref:"submenuRef",class:this.menusClasses},[oe("ul",{class:At.contextmenuInner},[(n=(a=this.$slots).default)===null||n===void 0?void 0:n.call(a)])]):null])}});ar({name:"VContextmenuGroup",props:{title:{type:String,default:void 0},maxWidth:{type:[Number,String],default:void 0}},setup:function(r){var t=ft(function(){if(!!r.maxWidth)return{"max-width":typeof r.maxWidth=="number"?"".concat(r.maxWidth,"px"):r.maxWidth,"overflow-x":"auto"}});return{style:t}},methods:{renderTitle:function(){var r,t,n=((r=(t=this.$slots).title)===null||r===void 0?void 0:r.call(t))||this.title;return n?oe("div",{class:At.contextmenuGroupTitle},[n]):null}},render:function(){var r,t;return oe("li",{class:At.contextmenuGroup},[this.renderTitle(),oe("ul",{style:this.style,class:At.contextmenuGroupMenus},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)])])}});const{selectRows:Q3,clearSelection:X3,toggleRowSelection:q3}=Ao();let{storageKey:J3}=Mc(),K3=_s();const ls=Lt(!1),cs=Lt(!1);function Z3(e){return{showFileMenu:(t,n,a)=>{if(!J3.value)return;if(t instanceof Event){if(a=t,!a.target.classList.contains("zfile-index-body-wrapper")&&!a.target.classList.contains("zfile-index-body"))return;cs.value=!0}else{if(t.type==="BACK")return;K3.updateCurrentRightClickRow(t),Q3.value.includes(t)||(X3(),q3(t,!0)),ls.value=!0}let o=e.proxy.$refs.contextmenu;a.preventDefault(),a.stopPropagation(),o.show({top:a.clientY,left:a.clientX}),window.onclick=()=>{o.hide(),cs.value=!1,ls.value=!1},o.$el.hidden=!1},contextMenuTargetFile:ls,contextMenuTargetBlank:cs}}const _r=e=>(Pc("data-v-c8a7dd96"),e=e(),Lc(),e),e4=_r(()=>be("div",{class:"font-bold text-base"},"\u6570\u636E\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u4E0A\u4F20\u6216\u6DFB\u52A0\u6587\u4EF6",-1)),t4=_r(()=>be("span",null,"\u6587\u4EF6\u540D",-1)),r4=_r(()=>be("span",null,"\u4FEE\u6539\u65F6\u95F4",-1)),n4=_r(()=>be("span",null,"\u5927\u5C0F",-1)),a4=_r(()=>be("label",null,"\u6253\u5F00",-1)),i4=_r(()=>be("label",null,"\u9884\u89C8",-1)),o4=_r(()=>be("label",null,"\u4E0B\u8F7D",-1)),s4=_r(()=>be("label",null,"\u751F\u6210\u76F4\u94FE",-1)),l4=_r(()=>be("label",null,"\u91CD\u547D\u540D",-1)),c4=_r(()=>be("label",null,"\u65B0\u5EFA\u6587\u4EF6\u5939",-1)),u4=_r(()=>be("label",null,"\u4E0A\u4F20\u6587\u4EF6",-1)),f4=_r(()=>be("label",null,"\u4E0A\u4F20\u6587\u4EF6\u5939",-1)),h4=_r(()=>be("label",null,"\u5237\u65B0",-1)),d4={key:0,class:"text-green-500"},p4={key:1,class:"text-red-500"},A4={class:"zfile-index-hover-tools"},m4={class:"zfile-index-hover-body"},Lf={__name:"file",setup(e){const r=wa({loader:()=>new Promise((Se,Ye)=>{(async function(){try{const wt=await tn(()=>import("./preview.551a4e73.js").then(function(dt){return dt.p}),["assets/preview.551a4e73.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/vue.runtime.esm-bundler.39244c60.js"]);tn(()=>Promise.resolve({}),["assets/preview.ebfa3115.css"]),tn(()=>Promise.resolve({}),["assets/github.1e923e45.css"]);const ir=await tn(()=>import("./index.02d854ed.js").then(function(dt){return dt.i}),[]),zt=await tn(()=>import("./github.9e6677b1.js").then(function(dt){return dt.g}),["assets/github.9e6677b1.js","assets/index.552205f5.js","assets/index.3520fb77.css"]);wt.use(zt,{Hljs:ir}),Se(wt)}catch(wt){Ye(wt)}})()}),loadingComponent:rm}),t=wa({loader:()=>tn(()=>import("./VideoPlayer.e995af40.js"),["assets/VideoPlayer.e995af40.js","assets/VideoPlayer.583afd53.css","assets/button.cca160de.css","assets/useFileUpload.b18c246f.js","assets/request.3708b2c4.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:cm}),n=wa({loader:()=>tn(()=>import("./TextViewer.3239c454.js").then(function(Se){return Se.T}),["assets/TextViewer.3239c454.js","assets/TextViewer.a4e3072e.css","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:mm}),a=wa({loader:()=>tn(()=>import("./MarkdownViewer.d39dfde9.js"),["assets/MarkdownViewer.d39dfde9.js","assets/MarkdownViewer.f259d025.css","assets/common.c93e08d7.js","assets/request.3708b2c4.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:z0}),o=wa({loader:()=>tn(()=>import("./PdfViewer.7e03e0a4.js"),["assets/PdfViewer.7e03e0a4.js","assets/PdfViewer.a57095d4.css","assets/index.552205f5.js","assets/index.3520fb77.css","assets/vue.runtime.esm-bundler.39244c60.js","assets/request.3708b2c4.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:z0}),s=wa(()=>tn(()=>import("./FileGallery.092ebc7a.js"),["assets/FileGallery.092ebc7a.js","assets/FileGallery.6c944394.css","assets/button.cca160de.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/index.552205f5.js","assets/index.3520fb77.css","assets/common.0f75f163.js","assets/useFileUpload.b18c246f.js","assets/request.3708b2c4.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/directive.e250a256.js","assets/plugin-vue_export-helper.21dcd24c.js"])),{isNotMobile:c}=ws();let h=fo();vs();let f=_s(),u=po(),p=Cd();const A=Od(),{showFileMenu:m,contextMenuTargetFile:x}=Z3(A);let{checkSelectable:v,selectRowsChange:_,selectRow:I,selectRows:T,selectStatistics:b,tableRowClassName:P,clearSelection:j}=Ao(A);Dd(()=>{O()});const O=()=>{h.params.storageKey&&(Ae(),Ee())};Jn(()=>[h.params.storageKey,h.params.fullpath],()=>{O()});const{openRow:M,sortChangeMethod:q,basicLoading:U,skeletonLoading:le,skeletonData:he,loadFile:Ae,loadFileConfig:Ee}=$d(),{openLinkDialog:Ve,visible:Me}=eu(),{tableClickRow:yt,tableDbClickRow:Je,tableHoverRow:Zt,tableLeaveRow:vt}=Qd(),{dialogVideoVisible:Ot,dialogTextVisible:_t,dialogPdfVisible:z,dialogOfficeVisible:ie}=qd(),{rename:Q,batchDownloadFile:W,moveTo:de,copyTo:Ce,newFolder:De,batchDelete:Oe,batchDeleteResult:Te,batchDeleteDialogShow:Xe,batchDeleteCloseAction:We,batchDeletePercentage:Et}=Xd(),{openUploadDialog:$e,openUploadFolderDialog:It}=$c(),st=()=>{window.location.reload()};return(Se,Ye)=>{var wr,un;const wt=Wd,ir=Vd,zt=Wc,dt=Vr,Qr=bs,Xt=si,or=Yc,Xr=JA,Dr=VA,Br=NA,Ua=OA,cn=_A,qr=ys,sa=Xc,Ir=xs,la=ip;return xe(),Le("div",{class:"zfile-index-body-wrapper",onContextmenu:Ye[7]||(Ye[7]=(...nt)=>E(m)&&E(m)(...nt))},[be("div",{class:He(["zfile-index-body",((wr=E(u).globalConfig)==null?void 0:wr.layout)==="center"?"zfile-index-table-center":""])},[E(u).globalConfig.showAnnouncement&&E(u).globalConfig.announcement?(xe(),ze(wt,{key:0,class:"zfile-index-announcement",type:"success"},{default:me(()=>[oe(E(r),{text:E(u).globalConfig.announcement},null,8,["text"])]),_:1})):Ie("",!0),E(u).globalConfig.showDocument&&E(h).params.storageKey&&E(u).folderConfig.readmeDisplayMode==="top"?(xe(),ze(ir,{key:1,class:"my-3"},{default:me(()=>[oe(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),E(f).imgMode?Ie("",!0):it((xe(),ze(or,{key:2,id:"ListTable",ref:"fileTableRef","element-loading-text":"\u62FC\u547D\u52A0\u8F7D\u4E2D","element-loading-background":"rgba(255, 255, 255, 0.6)",onSortChange:E(q),onRowClick:E(yt),onRowDblclick:E(Je),onCellMouseEnter:E(Zt),onCellMouseLeave:E(vt),size:(un=E(u).globalConfig)==null?void 0:un.tableSize,"empty-text":"",onRowContextmenu:E(m),"row-class-name":E(P),onSelectionChange:E(_),data:E(le)?E(he):E(f).fileList},{empty:me(()=>[it(be("div",null,[oe(er,{class:"empty-icon",name:"empty"}),e4],512),[[ct,!E(U)]])]),default:me(()=>[oe(zt,{width:"45px",type:"selection",selectable:E(v)},null,8,["selectable"]),oe(zt,{prop:"name",sortable:"custom","class-name":"zfile-table-col-name","label-class-name":"table-header-left","min-width":"100%"},{header:me(()=>[oe(dt,null,{default:me(()=>[oe(E(gs))]),_:1}),t4]),default:me(nt=>[it(be("div",null,[oe(Xt,{animated:""},{template:me(()=>[oe(Qr,{variant:"circle",style:{"vertical-align":"middle",width:"18px",height:"18px","margin-right":"20px"}}),oe(Qr,{variant:"text",style:{"vertical-align":"middle",width:"30%"}})]),_:1})],512),[[ct,E(le)]]),it(be("div",null,[oe(er,{name:"file-type-"+nt.row.icon},null,8,["name"]),xr(" "+Pt(nt.row.name),1)],512),[[ct,!E(le)]])]),_:1}),E(c)?(xe(),ze(zt,{key:0,prop:"time",sortable:"custom","class-name":"zfile-table-col-time","min-width":"25%"},{header:me(()=>[oe(dt,null,{default:me(()=>[oe(E(Gc))]),_:1}),r4]),default:me(nt=>[it(be("div",null,[oe(Xt,{animated:""},{template:me(()=>[oe(Qr,{variant:"text",style:{width:"60%"}})]),_:1})],512),[[ct,E(le)]]),it(be("div",null,Pt(nt.row.time),513),[[ct,!E(le)]])]),_:1})):Ie("",!0),E(c)?(xe(),ze(zt,{key:1,prop:"size","class-name":"zfile-table-col-size",sortable:"custom","min-width":"20%"},{header:me(()=>[oe(dt,null,{default:me(()=>[oe(E(Vc))]),_:1}),n4]),default:me(nt=>[it(be("div",null,[oe(Xt,{animated:""},{template:me(()=>[oe(Qr,{variant:"text",style:{width:"30%"}})]),_:1})],512),[[ct,E(le)]]),it(be("div",null,Pt(E(Xn).fileSizeFilter(nt.row,null,nt.row.size)),513),[[ct,!E(le)]])]),_:1})):Ie("",!0)]),_:1},8,["onSortChange","onRowClick","onRowDblclick","onCellMouseEnter","onCellMouseLeave","size","onRowContextmenu","row-class-name","onSelectionChange","data"])),[[la,E(U)]]),E(f).imgMode?(xe(),ze(E(s),{key:3})):Ie("",!0),oe(E(Y3),{"auto-ajust-placement":"",ref:"contextmenu"},{default:me(()=>[E(x)?(xe(),Le(Ca,{key:0},[it(oe(E(rn),{onClick:Ye[0]||(Ye[0]=nt=>E(M)(E(I)))},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(E(R0))]),_:1}),a4]),_:1},512),[[ct,E(u).permission.open]]),it(oe(E(rn),{onClick:Ye[1]||(Ye[1]=nt=>E(M)(E(I)))},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(Xr)]),_:1}),i4]),_:1},512),[[ct,E(u).permission.preview]]),it(oe(E(rn),{onClick:E(W)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(Dr)]),_:1}),o4]),_:1},8,["onClick"]),[[ct,E(u).permission.download]]),it(oe(E(rn),{onClick:E(Ve)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(er,{class:"inline",name:"link"})]),_:1}),s4]),_:1},8,["onClick"]),[[ct,E(u).permission.link]]),it(oe(E(ss),null,null,512),[[ct,E(u).permission.rename||E(u).permission.delete]]),it(oe(E(rn),{onClick:E(Q)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(er,{name:"edit"})]),_:1}),l4]),_:1},8,["onClick"]),[[ct,E(u).permission.rename]]),E(u).permission.delete?(xe(),ze(E(rn),{key:0,onClick:E(Oe)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(er,{class:"inline",name:"delete"})]),_:1}),be("label",null,"\u5220\u9664 "+Pt(E(T).length>0?"("+E(T).length+")":""),1)]),_:1},8,["onClick"])):Ie("",!0),it(oe(E(ss),null,null,512),[[ct,E(u).permission.newFolder||E(u).permission.upload]])],64)):Ie("",!0),it(oe(E(rn),{onClick:E(De)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(E(R0))]),_:1}),c4]),_:1},8,["onClick"]),[[ct,E(u).permission.newFolder]]),it(oe(E(rn),{onClick:E($e)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(Br)]),_:1}),u4]),_:1},8,["onClick"]),[[ct,E(u).permission.upload]]),it(oe(E(rn),{onClick:E(It)},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(Ua)]),_:1}),f4]),_:1},8,["onClick"]),[[ct,E(u).permission.upload]]),it(oe(E(ss),null,null,512),[[ct,E(u).permission.newFolder||E(u).permission.upload]]),oe(E(rn),{onClick:st},{default:me(()=>[oe(dt,{class:"contextmenu-icon"},{default:me(()=>[oe(cn)]),_:1}),h4]),_:1})]),_:1},512),oe(qr,{draggable:"","custom-class":"zfile-video-dialog","destroy-on-close":!0,modelValue:E(Ot),"onUpdate:modelValue":Ye[2]||(Ye[2]=nt=>Dn(Ot)?Ot.value=nt:null)},{default:me(()=>[E(Ot)?(xe(),ze(E(t),{key:0,ref:"videoPlayer"},null,512)):Ie("",!0)]),_:1},8,["modelValue"]),oe(qr,{draggable:"","custom-class":"zfile-text-dialog","destroy-on-close":!0,title:E(f).currentClickRow.name,modelValue:E(_t),"onUpdate:modelValue":Ye[3]||(Ye[3]=nt=>Dn(_t)?_t.value=nt:null)},{default:me(()=>[E(_t)&&E(f).currentClickRow.name.indexOf(".md")===-1?(xe(),ze(E(n),{key:0,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0),E(_t)&&E(f).currentClickRow.name.indexOf(".md")!==-1?(xe(),ze(E(a),{key:1,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0)]),_:1},8,["title","modelValue"]),oe(qr,{draggable:"","custom-class":"zfile-pdf-dialog",title:E(f).currentClickRow.name,modelValue:E(z),"onUpdate:modelValue":Ye[4]||(Ye[4]=nt=>Dn(z)?z.value=nt:null)},{default:me(()=>[E(z)?(xe(),ze(E(o),{key:0,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0)]),_:1},8,["title","modelValue"]),oe(w3),oe(qr,{draggable:"","destroy-on-close":!0,width:"40%",title:"\u64CD\u4F5C\u7ED3\u679C",onClose:E(We),modelValue:E(Xe),"onUpdate:modelValue":Ye[5]||(Ye[5]=nt=>Dn(Xe)?Xe.value=nt:null)},{default:me(()=>[oe(sa,{"text-inside":!0,"stroke-width":26,percentage:E(Et),status:E(Et)===100?"success":""},null,8,["percentage","status"]),oe(or,{data:E(Te),height:"60vh",style:{width:"100%"}},{default:me(()=>[oe(zt,{"show-overflow-tooltip":"",prop:"name",label:"\u6587\u4EF6\u540D"}),oe(zt,{prop:"status",label:"\u72B6\u6001",width:"150"},{default:me(nt=>[nt.row.status?(xe(),Le("span",d4,"\u6210\u529F")):(xe(),Le("span",p4,"\u5931\u8D25"))]),_:1})]),_:1},8,["data"])]),_:1},8,["onClose","modelValue"]),oe(G3,{onClose:O}),oe(xm),it(oe(ym,null,null,512),[[ct,E(p).zfileConfig.gallery.showBackTop]]),E(u).globalConfig.showDocument&&E(u).folderConfig.readmeDisplayMode==="dialog"?(xe(),ze(qr,{key:4,draggable:"","custom-class":"zfile-readme-dialog","model-value":!0},{default:me(()=>[oe(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),E(u).globalConfig.showDocument&&E(u).folderConfig.readmeDisplayMode==="bottom"?(xe(),ze(ir,{key:5,class:"mt-5"},{default:me(()=>[oe(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),oe(As,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster","leave-active-class":"animate__animated animate__fadeOutDown animate__faster"},{default:me(()=>[it(be("div",A4,[be("div",m4,[E(u).permission.preview?(xe(),ze(Ir,{key:0,"show-arrow":!1,offset:15,effect:"dark",content:"\u9884\u89C8",placement:"top"},{default:me(()=>[oe(er,{onClick:Ye[6]||(Ye[6]=nt=>E(M)(E(I))),name:"tool-preview"})]),_:1})):Ie("",!0),E(u).permission.download?(xe(),ze(Ir,{key:1,"show-arrow":!1,offset:15,effect:"dark",content:"\u4E0B\u8F7D",placement:"top"},{default:me(()=>[oe(er,{onClick:E(W),name:"tool-download"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.link?(xe(),ze(Ir,{key:2,"show-arrow":!1,offset:15,effect:"dark",content:"\u751F\u6210\u76F4\u94FE",placement:"top"},{default:me(()=>[oe(er,{onClick:E(Ve),name:"tool-link"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.rename?(xe(),ze(Ir,{key:3,"show-arrow":!1,offset:15,effect:"dark",content:"\u91CD\u547D\u540D",placement:"top"},{default:me(()=>[oe(er,{onClick:E(Q),name:"tool-edit"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.delete?(xe(),ze(Ir,{key:4,"show-arrow":!1,offset:15,effect:"dark",content:"\u5220\u9664",placement:"top"},{default:me(()=>[oe(er,{onClick:E(Oe),name:"tool-delete"},null,8,["onClick"])]),_:1})):Ie("",!0),oe(Ir,{"show-arrow":!1,offset:15,disabled:E(T).length===0,effect:"dark",content:"\u53D6\u6D88\u9009\u62E9",placement:"top"},{default:me(()=>[oe(er,{onClick:E(j),name:"tool-close"},null,8,["onClick"])]),_:1},8,["disabled"])])],512),[[ct,E(T).length>0&&E(h).params.storageKey&&!E(f).imgMode&&E(Me)===!1]])]),_:1})],2)],32)}}};typeof M0=="function"&&M0(Lf);var t6=ta(Lf,[["__scopeId","data-v-c8a7dd96"]]);export{t6 as default}; +`))},{height:u}=_s(),p=()=>{let A={raw:!0},m=new Date,y=m.getFullYear(),v=m.getMonth()+1,_=m.getDate(),I=y+""+v+_,T=v4.table_to_book(document.querySelector(".zfile-download-link-table"),A),b=[{wch:50},{wch:50},{wch:50}];s.value.forEach(j=>{let O=j.row.name.length,R=j.directlink.length,H=j.link.length;O>b[0].wch&&(b[0].wch=O),R>b[1].wch&&(b[1].wch=R+20),H>b[2].wch&&(b[2].wch=H)}),T.Sheets.Sheet1["!cols"]=b;let L=If(T,{bookType:"xlsx",bookSST:!0,type:"array"});try{Fm.saveAs(new Blob([L],{type:"application/octet-stream"}),I+"ZFile \u76F4\u94FE\u5BFC\u51FA.xlsx")}catch(j){typeof console!="undefined"&&Vi.error(j+L)}return L};return(A,m)=>{const y=Yc,v=er,_=xs,I=$c,T=tp,b=np,L=Zd,j=ep,O=Dp,R=Gd,H=ys;return E(n)?(ve(),Re("div",g4,[ae(H,{modelValue:E(n),"onUpdate:modelValue":m[13]||(m[13]=U=>Bn(n)?n.value=U:n=U),"destroy-on-close":!0,onClose:m[14]||(m[14]=U=>Bn(n)?n.value=!1:n=!1),title:"\u751F\u6210\u76F4\u94FE","custom-class":E(t).length>1?"zfile-file-download-link-dialog-multiple":"zfile-file-download-link-dialog-single",draggable:"",top:"5vh"},{footer:me(()=>[ct(ae(R,{type:"primary",onClick:p},{default:me(()=>[E4]),_:1},512),[[ut,E(t).length>1]]),ae(R,{type:"info",onClick:m[12]||(m[12]=U=>Bn(n)?n.value=!1:n=!1)},{default:me(()=>[T4]),_:1})]),default:me(()=>[E(t).length>1?(ve(),Pe(I,{key:0,class:"zfile-download-link-table","max-height":E(u)*.7,data:E(s)},{default:me(()=>[ae(y,{"show-tooltip-when-overflow":"",label:"\u6587\u4EF6\u540D"},{default:me(U=>[xr(Et(U.row.row.name),1)]),_:1}),E(r).permission.pathLink?(ve(),Pe(y,{key:0,"show-overflow-tooltip":""},{header:me(U=>[x4,ae(_,{"show-arrow":!1,offset:15,effect:"dark",content:"\u6279\u91CF\u590D\u5236\u5230\u526A\u8D34\u677F",placement:"top"},{default:me(()=>[ae(v,{onClick:f,class:"inline cursor-pointer l-5",name:"copy"})]),_:1})]),default:me(U=>[xr(Et(U.row.directlink),1)]),_:1})):Ie("",!0),E(r).permission.shortLink?(ve(),Pe(y,{key:1,"show-overflow-tooltip":"",width:"250"},{header:me(U=>[y4,ae(_,{"show-arrow":!1,offset:15,effect:"dark",content:"\u6279\u91CF\u590D\u5236\u5230\u526A\u8D34\u677F",placement:"top"},{default:me(()=>[ae(v,{onClick:h,class:"inline cursor-pointer l-5",name:"copy"})]),_:1})]),default:me(U=>[xr(Et(U.row.link),1)]),_:1})):Ie("",!0)]),_:1},8,["max-height","data"])):Ie("",!0),E(t).length===1&&E(o)?(ve(),Pe(O,{key:1,class:"md:space-y-6"},{default:me(()=>[be("div",_4,[ae(T,{ref:"qrcodeRef",class:"w-3/4",src:E(o).currentImg},null,8,["src"]),be("div",w4,[be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.a1?"border-blue-400":""]),onClick:m[0]||(m[0]=U=>E(o).currentImg=E(o).img.a1)},[ae(T,{class:"w-full h-full",src:E(o).img.a1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.a2?"border-blue-400":""]),onClick:m[1]||(m[1]=U=>E(o).currentImg=E(o).img.a2)},[ae(T,{class:"w-full h-full",src:E(o).img.a2},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.sp1?"border-blue-400":""]),onClick:m[2]||(m[2]=U=>E(o).currentImg=E(o).img.sp1)},[ae(T,{class:"w-full h-full",src:E(o).img.sp1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.aa1?"border-blue-400":""]),onClick:m[3]||(m[3]=U=>E(o).currentImg=E(o).img.aa1)},[ae(T,{class:"w-full h-full",src:E(o).img.aa1},null,8,["src"])],2),be("div",{class:He(["border w-10 h-10 p-1 rounded-md cursor-pointer",E(o).currentImg===E(o).img.ab2?"border-blue-400":""]),onClick:m[4]||(m[4]=U=>E(o).currentImg=E(o).img.ab2)},[ae(T,{class:"w-full h-full",src:E(o).img.ab2},null,8,["src"])],2)])]),be("div",b4,[ae(j,null,{default:me(()=>[ae(L,null,{default:me(()=>[ae(b,{readonly:"","prefix-icon":E(gs),modelValue:E(o).row.name,"onUpdate:modelValue":m[5]||(m[5]=U=>E(o).row.name=U)},null,8,["prefix-icon","modelValue"])]),_:1}),ae(L,null,{default:me(()=>[ae(b,{readonly:"","prefix-icon":E(Vc),modelValue:E(o).row.time,"onUpdate:modelValue":m[6]||(m[6]=U=>E(o).row.time=U)},null,8,["prefix-icon","modelValue"])]),_:1}),ae(L,null,{default:me(()=>[ae(b,{readonly:"","prefix-icon":E(Wc),modelValue:E(o).row.size,"onUpdate:modelValue":m[7]||(m[7]=U=>E(o).row.size=U)},null,8,["prefix-icon","modelValue"])]),_:1}),E(r).permission.pathLink?(ve(),Pe(L,{key:0},{default:me(()=>[ae(_,{"append-to":".zfile-file-download-link-body","popper-class":"zfile-link-tips",placement:"left",content:"\u8DEF\u5F84\u76F4\u94FE\u5730\u5740\uFF0C\u5305\u542B\u6587\u4EF6\u5B8C\u6574\u8DEF\u5F84."},{default:me(()=>[ae(b,{onClick:m[8]||(m[8]=U=>E(a)(E(o).directlink)),"prefix-icon":E(R0),type:"small",modelValue:E(o).directlink,"onUpdate:modelValue":m[9]||(m[9]=U=>E(o).directlink=U)},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1})):Ie("",!0),E(r).permission.shortLink?(ve(),Pe(L,{key:1},{default:me(()=>[ae(_,{"append-to":".zfile-file-download-link-body","popper-class":"zfile-link-tips",placement:"left",content:"\u7F29\u77ED\u7248\u76F4\u94FE\u5730\u5740\uFF0C\u4FBF\u4E8E\u590D\u5236\u5206\u53D1."},{default:me(()=>[ae(b,{onClick:m[10]||(m[10]=U=>E(a)(E(o).link)),"prefix-icon":E(R0),type:"small",modelValue:E(o).link,"onUpdate:modelValue":m[11]||(m[11]=U=>E(o).link=U)},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1})):Ie("",!0)]),_:1})])]),_:1})):Ie("",!0)]),_:1},8,["modelValue","custom-class"])])):Ie("",!0)}}};var S4=ta(k4,[["__scopeId","data-v-5c9f65f2"]]);const Ws=e=>(Lc("data-v-46d584f4"),e=e(),Nc(),e),F4={class:"zfile-file-upload-body"},C4={class:"el-upload__text text-gray-400"},O4=xr(" \u62D6\u62FD\u6587\u4EF6\u5230\u8FD9\u91CC\u6216"),D4=Ws(()=>be("em",null," \u70B9\u51FB\u4E0A\u4F20",-1)),B4=xr(", \u4E0A\u4F20\u81F3 "),I4=xr(" \u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u5939\u4E0A\u4F20, \u4E0A\u4F20\u81F3 "),R4=Ws(()=>be("br",null,null,-1)),M4=Ws(()=>be("span",{class:"text-gray-400"},"\uFF08\u6B64\u5904\u4E0D\u652F\u6301\u62D6\u62FD\u6587\u4EF6\u5939\uFF0C\u53EA\u652F\u6301\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u5939\uFF09",-1)),P4={class:"mt-5 space-y-2.5"},L4={class:"mr-2 p-1.5"},N4={class:"p-1.5 py-2.5 sm:py-3 w-full flex flex-col justify-between"},U4={class:"flex justify-between"},j4={class:"flex sm:space-x-5 flex-col sm:flex-row"},z4={class:"font-medium text-sm max-w-[80%] line-clamp-1"},H4={class:"text-gray-400 text-xs leading-5 line-clamp-1 active:line-clamp-none"},G4={class:"mr-4 box animate__animated animate__fadeIn"},V4={key:0,class:"text-blue-500 box animate__animated animate__fadeIn"},W4={key:1,class:"text-blue-500 box animate__animated animate__fadeIn"},Y4={key:3,class:"text-yellow-500 box animate__animated animate__fadeIn"},$4={key:4,class:"text-red-500 box animate__animated animate__fadeIn"},Q4={key:0},X4={key:1},q4={key:2},J4={key:3},K4={class:"drop-sub"},Z4={__name:"ZUpload",setup(e,{emit:r}){vs(),uo();let{currentPath:t}=Ao();const{visible:n,uploadMode:a,cancelUpload:o,beforeUpload:s,uploadProgressInfoSorted:c,dropState:h,listenDropFile:f,clearALlFinishedUploadFile:u,removeUploadFileByIndex:p,retryUpload:A}=Qc();let m=po();ho();const y=()=>{u()>0&&r("close")},v=Lt();return co(()=>{f()}),(_,I)=>{const T=er,b=Vr,L=mA,j=er,O=ws,R=ys;return ve(),Re("div",F4,[E(n)?(ve(),Pe(R,{key:0,modelValue:E(n),"onUpdate:modelValue":I[0]||(I[0]=H=>Bn(n)?n.value=H:null),"destroy-on-close":!0,onClose:y,title:E(a)==="file"?"\u4E0A\u4F20\u6587\u4EF6":"\u4E0A\u4F20\u6587\u4EF6\u5939","custom-class":"zfile-file-upload-dialog",draggable:"",top:"5vh",width:"70%"},{default:me(()=>[ae(L,{drag:"","http-request":E(s),ref:"uploadRef","show-file-list":!1,multiple:""},{default:me(()=>[ae(b,{class:"el-icon--upload"},{default:me(()=>[ae(T,{name:"upload-1"})]),_:1}),be("div",C4,[ct(be("span",null,[O4,D4,B4,be("em",null,Et(E(t)),1)],512),[[ut,E(a)==="file"]]),ct(be("span",null,[I4,be("em",null,Et(E(t)),1),R4,M4],512),[[ut,E(a)==="folder"]])])]),_:1},8,["http-request"]),be("div",P4,[(ve(!0),Re(Ca,null,Wi(E(c),H=>(ve(),Re("div",{class:"flex flex-row w-full relative rounded-lg",key:H.index},[be("div",L4,[ae(j,{class:"text-5xl mt-1 py-1.5 sm:py-1",name:"file-type-"+E(Oa).getFileIconName(H)},null,8,["name"])]),be("div",N4,[be("div",U4,[be("div",j4,[be("div",z4,Et(H.name),1),be("div",H4,[be("span",G4,Et(E(Oa).fileSizeFormat(H.size)),1),H.status==="uploading"&&!H.msg?(ve(),Re("span",V4,Et(H.speed)+" / \u79D2",1)):Ie("",!0),H.status==="uploading"&&H.msg?(ve(),Re("span",W4,Et(H.msg),1)):H.status==="finished"?(ve(),Pe(j,{key:2,name:"check",class:"inline text-green-500 box animate__animated animate__fadeIn"})):H.status==="waiting"?(ve(),Re("span",Y4,Et(H.msg),1)):H.status==="error"?(ve(),Re("span",$4,Et(H.msg),1)):Ie("",!0)])]),be("div",null,[H.status==="uploading"?(ve(),Re("div",Q4,[ae(j,{onClick:U=>E(o)(H),name:"tool-close2",class:"inline text-gray-500 mr-1 text-lg cursor-pointer rounded-full hover:bg-gray-200 box animate__animated animate__fadeIn"},null,8,["onClick"])])):H.status==="finished"?(ve(),Re("div",X4,[ae(j,{onClick:U=>E(p)(H.index),name:"delete",class:"inline text-red-400 mr-1 text-base cursor-pointer rounded-full hover:bg-gray-200 box animate__animated animate__fadeIn"},null,8,["onClick"])])):H.status==="error"?(ve(),Re("div",q4,[ae(j,{onClick:U=>E(A)(H),name:"refresh",class:"inline text-red-500 mr-1 text-base cursor-pointer rounded-full hover:bg-gray-200 box animate__animated animate__fadeIn"},null,8,["onClick"])])):H.status==="waiting"?(ve(),Re("div",J4,[ae(j,{onClick:U=>E(p)(H.index),name:"delete",class:"inline text-red-400 mr-1 text-base cursor-pointer rounded-full hover:bg-gray-200 box animate__animated animate__fadeIn"},null,8,["onClick"])])):Ie("",!0)])]),be("div",null,[H.status==="finished"?(ve(),Pe(O,{key:0,"show-text":!1,percentage:H.progress,status:"success"},null,8,["percentage"])):H.status==="uploading"?(ve(),Pe(O,{key:1,"show-text":!1,percentage:H.progress},null,8,["percentage"])):H.status==="error"?(ve(),Pe(O,{key:2,"show-text":!1,percentage:100,status:"exception"})):H.status==="waiting"?(ve(),Pe(O,{key:3,"show-text":!1,percentage:0})):Ie("",!0)])])]))),128))])]),_:1},8,["modelValue","title"])):Ie("",!0),E(m).permission.upload?ct((ve(),Re("div",{key:1,ref_key:"dropBoxRef",ref:v,id:"dropBox",class:"drop-view"},[be("div",K4,[be("span",null,"\u4E0A\u4F20\u6587\u4EF6\u81F3 "+Et(E(t)),1)])],512)),[[ut,E(h)]]):Ie("",!0)])}}};var e3=ta(Z4,[["__scopeId","data-v-46d584f4"]]);var At={contextmenu:"v-contextmenu",contextmenuIcon:"v-contextmenu-icon",contextmenuInner:"v-contextmenu-inner",contextmenuDivider:"v-contextmenu-divider",contextmenuItem:"v-contextmenu-item",contextmenuItemHover:"v-contextmenu-item--hover",contextmenuItemDisabled:"v-contextmenu-item--disabled",contextmenuGroup:"v-contextmenu-group",contextmenuGroupTitle:"v-contextmenu-group__title",contextmenuGroupMenus:"v-contextmenu-group__menus",contextmenuSubmenu:"v-contextmenu-submenu",contextmenuSubmenuTitle:"v-contextmenu-submenu__title",contextmenuSubmenuMenus:"v-contextmenu-submenu__menus",contextmenuSubmenuMenusTop:"v-contextmenu-submenu__menus--top",contextmenuSubmenuMenusRight:"v-contextmenu-submenu__menus--right",contextmenuSubmenuMenusBottom:"v-contextmenu-submenu__menus--bottom",contextmenuSubmenuMenusLeft:"v-contextmenu-submenu__menus--left",contextmenuSubmenuArrow:"v-contextmenu-submenu__arrow"};function t3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fd(e)}var r3={trigger:["contextmenu"]},n3=ar({name:"VContextmenu",props:{modelValue:{type:Boolean,default:!1},autoAjustPlacement:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},teleport:{type:[String,Object],default:function(){return"body"}}},emits:["show","hide","update:modelValue"],setup:function(r,t){var n=t.emit,a=Lt(null),o=Lt(r.modelValue||!1),s=function(b){o.value=b,n("update:modelValue",b)},c=Lt({top:0,left:0}),h=ft(function(){return{top:"".concat(c.value.top,"px"),left:"".concat(c.value.left,"px")}}),f=Lt(null),u=function(b,L){var j=b instanceof Event?L:b,O=(j==null?void 0:j.autoAjustPlacement)||r.autoAjustPlacement,R={top:(j==null?void 0:j.top)||0,left:(j==null?void 0:j.left)||0};if(b instanceof Event){var H,U;b.preventDefault(),R.top=(H=j==null?void 0:j.top)!==null&&H!==void 0?H:b.pageY,R.left=(U=j==null?void 0:j.left)!==null&&U!==void 0?U:b.pageX}s(!0),Uc(function(){if(O){var le=a.value;if(!le)return;var he=le.clientWidth,Ae=le.clientHeight;if(Ae+R.top>=window.innerHeight+window.scrollY){var Ee=R.top-Ae;Ee>window.scrollY&&(R.top=Ee)}if(he+R.left>=window.innerWidth+window.scrollX){var Ve=R.left-he;Ve>window.scrollX&&(R.left=Ve)}}c.value=R,n("show")})},p=function(){f.value=null,s(!1),n("hide")},A=kd(new Map),m=Lt(),y=ft(function(){return m.value&&A.get(m.value)}),v=function(b,L){var j=function(){return L!=null&&L.trigger?Array.isArray(L.trigger)?L.trigger:[L.trigger]:r3.trigger}(),O=function(H){r.disabled||(m.value=b,u(H,{}))};j.forEach(function(R){b.addEventListener(R,O)}),A.set(b,{triggers:j,handler:O})},_=function(b){var L=A.get(b);!L||(L.triggers.forEach(function(j){b.removeEventListener(j,L.handler)}),A.delete(b))},I=function(b){if(!(!b.target||!a.value||!m.value)){var L=a.value.contains(b.target)||y.value&&y.value.triggers.includes("click")&&m.value.contains(b.target);L||s(!1)}};return Jn(o,function(T){T?document.addEventListener("click",I):document.removeEventListener("click",I)}),Mc(function(){document.removeEventListener("click",I)}),Sa("visible",o),Sa("autoAjustPlacement",r.autoAjustPlacement),Sa("show",u),Sa("hide",p),{visible:o,style:h,currentReferenceOptions:y,currentOptions:f,contextmenuRef:a,addReference:v,removeReference:_,toggle:s,show:u,hide:p}},methods:{renderContent:function(){var r,t;return ct(ae("div",{class:At.contextmenu,ref:"contextmenuRef",style:this.style},[ae("ul",{class:At.contextmenuInner},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t,{triggerOptions:"currentReferenceOptions",options:"currentOptions"})])]),[[ut,"visible"]])}},render:function(){var r;return this.visible?this.teleport?ae(Sd,{to:this.teleport},t3(r=this.renderContent())?r:{default:function(){return[r]}}):this.renderContent():null}});function pr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var rn=ar({name:"VContextmenuItem",props:{disabled:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0}},emits:["click","mouseenter","mouseleave"],setup:function(r,t){var n=t.emit,a=ms("hide"),o=Lt(!1),s=ft(function(){var u;return u={},pr(u,At.contextmenuItem,!0),pr(u,At.contextmenuItemDisabled,r.disabled),pr(u,At.contextmenuItemHover,o.value),u}),c=function(p){r.disabled||(n("click",p),r.hideOnClick&&(a==null||a()))},h=function(p){r.disabled||(o.value=!0,n("mouseenter",p))},f=function(p){r.disabled||(o.value=!1,n("mouseleave",p))};return{classes:s,handleClick:c,handleMouseenter:h,handleMouseleave:f}},render:function(){var r,t;return ae("li",{class:this.classes,onClick:this.handleClick,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)])}}),ss=ar({name:"VContextmenuDivider",render:function(){return ae("li",{class:At.contextmenuDivider},null)}}),a3=ar({name:"VContextmenuIcon",props:{name:{type:String,required:!0}},render:function(){return ae("i",{class:[At.contextmenuIcon,"".concat(At.contextmenuIcon,"-").concat(this.name)]},null)}});ar({name:"VContextmenuSubmenu",props:{title:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["mouseenter","mouseleave"],setup:function(r,t){var n=t.emit,a=Lt(null),o=ms("autoAjustPlacement"),s=Lt(["top","right"]),c=Lt(!1),h=function(m){r.disabled||(c.value=!0,n("mouseenter",m),Uc(function(){var y=[];if(o){var v=m.target,_=v.getBoundingClientRect();if(!a.value)return;var I=a.value.clientWidth,T=a.value.clientHeight;_.right+I>=window.innerWidth?y.push("left"):y.push("right"),_.bottom+T>=window.innerHeight?y.push("bottom"):y.push("top")}s.value=y}))},f=function(m){r.disabled||(c.value=!1,n("mouseleave",m))},u=ft(function(){var A;return A={},pr(A,At.contextmenuItem,!0),pr(A,At.contextmenuSubmenuTitle,!0),pr(A,At.contextmenuItemHover,c.value),pr(A,At.contextmenuItemDisabled,r.disabled),A}),p=ft(function(){var A;return A={},pr(A,At.contextmenu,!0),pr(A,At.contextmenuSubmenuMenus,!0),pr(A,At.contextmenuSubmenuMenusTop,s.value.includes("top")),pr(A,At.contextmenuSubmenuMenusRight,s.value.includes("right")),pr(A,At.contextmenuSubmenuMenusBottom,s.value.includes("bottom")),pr(A,At.contextmenuSubmenuMenusLeft,s.value.includes("left")),A});return{hover:c,submenuRef:a,titleClasses:u,menusClasses:p,handleMouseenter:h,handleMouseleave:f}},render:function(){var r,t,n,a;return ae("li",{class:At.contextmenuSubmenu,onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave},[ae("div",{class:this.titleClasses},[((r=(t=this.$slots).title)===null||r===void 0?void 0:r.call(t))||this.title,ae("span",{class:At.contextmenuSubmenuArrow},[ae(a3,{name:"right-arrow"},null)])]),this.hover?ae("div",{ref:"submenuRef",class:this.menusClasses},[ae("ul",{class:At.contextmenuInner},[(n=(a=this.$slots).default)===null||n===void 0?void 0:n.call(a)])]):null])}});ar({name:"VContextmenuGroup",props:{title:{type:String,default:void 0},maxWidth:{type:[Number,String],default:void 0}},setup:function(r){var t=ft(function(){if(!!r.maxWidth)return{"max-width":typeof r.maxWidth=="number"?"".concat(r.maxWidth,"px"):r.maxWidth,"overflow-x":"auto"}});return{style:t}},methods:{renderTitle:function(){var r,t,n=((r=(t=this.$slots).title)===null||r===void 0?void 0:r.call(t))||this.title;return n?ae("div",{class:At.contextmenuGroupTitle},[n]):null}},render:function(){var r,t;return ae("li",{class:At.contextmenuGroup},[this.renderTitle(),ae("ul",{style:this.style,class:At.contextmenuGroupMenus},[(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)])])}});const{selectRows:i3,clearSelection:o3,toggleRowSelection:s3}=Ao();let{storageKey:l3}=Pc(),c3=ho();const ls=Lt(!1),cs=Lt(!1);function u3(e){return{showFileMenu:(t,n,a)=>{if(!l3.value)return;if(t instanceof Event){if(a=t,!a.target.classList.contains("zfile-index-body-wrapper")&&!a.target.classList.contains("zfile-index-body"))return;cs.value=!0}else{if(t.type==="BACK")return;c3.updateCurrentRightClickRow(t),i3.value.includes(t)||(o3(),s3(t,!0)),ls.value=!0}let o=e.proxy.$refs.contextmenu;a.preventDefault(),a.stopPropagation(),o.show({top:a.clientY,left:a.clientX}),window.onclick=()=>{o.hide(),cs.value=!1,ls.value=!1},o.$el.hidden=!1},contextMenuTargetFile:ls,contextMenuTargetBlank:cs}}const Cr=e=>(Lc("data-v-149d5da8"),e=e(),Nc(),e),f3=Cr(()=>be("div",{class:"font-bold text-base"},"\u6570\u636E\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u4E0A\u4F20\u6216\u6DFB\u52A0\u6587\u4EF6",-1)),h3=Cr(()=>be("span",null,"\u6587\u4EF6\u540D",-1)),d3=Cr(()=>be("span",null,"\u4FEE\u6539\u65F6\u95F4",-1)),p3=Cr(()=>be("span",null,"\u5927\u5C0F",-1)),A3=Cr(()=>be("label",null,"\u6253\u5F00",-1)),m3=Cr(()=>be("label",null,"\u9884\u89C8",-1)),v3=Cr(()=>be("label",null,"\u751F\u6210\u76F4\u94FE",-1)),g3=Cr(()=>be("label",null,"\u91CD\u547D\u540D",-1)),x3=Cr(()=>be("label",null,"\u65B0\u5EFA\u6587\u4EF6\u5939",-1)),y3=Cr(()=>be("label",null,"\u4E0A\u4F20\u6587\u4EF6",-1)),_3=Cr(()=>be("label",null,"\u4E0A\u4F20\u6587\u4EF6\u5939",-1)),w3=Cr(()=>be("label",null,"\u5237\u65B0",-1)),b3={key:0,class:"text-green-500"},E3={key:1,class:"text-red-500"},T3={class:"zfile-index-hover-tools"},k3={class:"zfile-index-hover-body"},Lf={__name:"file",setup(e){const r=wa({loader:()=>new Promise((Se,Ye)=>{(async function(){try{const wt=await tn(()=>import("./preview.5ef64261.js").then(function(dt){return dt.p}),["assets/preview.5ef64261.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/vue.runtime.esm-bundler.196f46c4.js"]);tn(()=>Promise.resolve({}),["assets/preview.ebfa3115.css"]),tn(()=>Promise.resolve({}),["assets/github.1e923e45.css"]);const ir=await tn(()=>import("./index.02d854ed.js").then(function(dt){return dt.i}),[]),zt=await tn(()=>import("./github.786ba170.js").then(function(dt){return dt.g}),["assets/github.786ba170.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css"]);wt.use(zt,{Hljs:ir}),Se(wt)}catch(wt){Ye(wt)}})()}),loadingComponent:sm}),t=wa({loader:()=>tn(()=>import("./VideoPlayer.ea56af9f.js"),["assets/VideoPlayer.ea56af9f.js","assets/VideoPlayer.583afd53.css","assets/button.cca160de.css","assets/useFileUpload.72c71760.js","assets/request.e2daed10.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:pm}),n=wa({loader:()=>tn(()=>import("./TextViewer.0c511786.js").then(function(Se){return Se.T}),["assets/TextViewer.0c511786.js","assets/TextViewer.a4e3072e.css","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:_m}),a=wa({loader:()=>tn(()=>import("./MarkdownViewer.ddb249d6.js"),["assets/MarkdownViewer.ddb249d6.js","assets/MarkdownViewer.f259d025.css","assets/common.e7f4d4d2.js","assets/request.e2daed10.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:H0}),o=wa({loader:()=>tn(()=>import("./PdfViewer.dc22e5ba.js"),["assets/PdfViewer.dc22e5ba.js","assets/PdfViewer.a57095d4.css","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/vue.runtime.esm-bundler.196f46c4.js","assets/request.e2daed10.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/plugin-vue_export-helper.21dcd24c.js"]),loadingComponent:H0}),s=wa(()=>tn(()=>import("./FileGallery.a3ea12e6.js"),["assets/FileGallery.a3ea12e6.js","assets/FileGallery.3101d9da.css","assets/button.cca160de.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/common.72335e7c.js","assets/useFileUpload.72c71760.js","assets/request.e2daed10.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/event.3ec63147.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/plugin-vue_export-helper.21dcd24c.js"])),{isNotMobile:c}=_s();let h=uo();vs();let f=ho(),u=po(),p=Cd();const A=Od(),{showFileMenu:m,contextMenuTargetFile:y}=u3(A);let{checkSelectable:v,selectRowsChange:_,selectRow:I,selectRows:T,selectStatistics:b,tableRowClassName:L,clearSelection:j}=Ao(A);Dd(()=>{O()});const O=()=>{h.params.storageKey&&(Ae(),Ee())};Jn(()=>[h.params.storageKey,h.params.fullpath],()=>{O()});const{openRow:R,sortChangeMethod:H,basicLoading:U,skeletonLoading:le,skeletonData:he,loadFile:Ae,loadFileConfig:Ee}=$d(),{openLinkDialog:Ve,visible:Le}=eu(),{tableClickRow:yt,tableDbClickRow:Je,tableHoverRow:Zt,tableLeaveRow:vt}=Qd(),{dialogVideoVisible:Dt,dialogTextVisible:_t,dialogPdfVisible:z,dialogOfficeVisible:oe}=qd(),{rename:X,batchDownloadFile:Y,moveTo:de,copyTo:Ce,newFolder:De,batchDelete:Oe,batchDeleteResult:Te,batchDeleteDialogShow:Xe,batchDeleteCloseAction:We,batchDeletePercentage:Tt}=Xd(),{openUploadDialog:$e,openUploadFolderDialog:Rt}=Qc(),it=()=>{window.location.reload()};return(Se,Ye)=>{var cn,Tn;const wt=Wd,ir=Vd,zt=Yc,dt=Vr,Qr=bs,Xt=li,or=$c,Xr=rm,Or=XA,Dr=VA,ja=NA,ln=OA,sa=_A,qr=ys,la=ws,Br=xs,Ir=ip;return ve(),Re("div",{class:"zfile-index-body-wrapper",onContextmenu:Ye[7]||(Ye[7]=(...ot)=>E(m)&&E(m)(...ot))},[be("div",{class:He(["zfile-index-body",((cn=E(u).globalConfig)==null?void 0:cn.layout)==="center"?"zfile-index-table-center":""])},[E(u).globalConfig.showAnnouncement&&E(u).globalConfig.announcement?(ve(),Pe(wt,{key:0,class:"zfile-index-announcement",type:"success"},{default:me(()=>[ae(E(r),{text:E(u).globalConfig.announcement},null,8,["text"])]),_:1})):Ie("",!0),E(u).globalConfig.showDocument&&E(h).params.storageKey&&E(u).folderConfig.readmeDisplayMode==="top"&&E(u).folderConfig.readmeText?(ve(),Pe(ir,{key:1,class:"my-3"},{default:me(()=>[ae(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),E(f).imgMode?Ie("",!0):ct((ve(),Pe(or,{key:2,id:"ListTable",ref:"fileTableRef","element-loading-text":"\u62FC\u547D\u52A0\u8F7D\u4E2D","element-loading-background":"rgba(255, 255, 255, 0.6)",onSortChange:E(H),onRowClick:E(yt),onRowDblclick:E(Je),onCellMouseEnter:E(Zt),onCellMouseLeave:E(vt),size:(Tn=E(u).globalConfig)==null?void 0:Tn.tableSize,"empty-text":"",onRowContextmenu:E(m),"row-class-name":E(L),onSelectionChange:E(_),data:E(le)?E(he):E(f).fileList},{empty:me(()=>[ct(be("div",null,[ae(er,{class:"empty-icon",name:"empty"}),f3],512),[[ut,!E(U)]])]),default:me(()=>[ae(zt,{width:"45px",type:"selection",selectable:E(v)},null,8,["selectable"]),ae(zt,{prop:"name",sortable:"custom","class-name":"zfile-table-col-name","label-class-name":"table-header-left","min-width":"100%"},{header:me(()=>[ae(dt,null,{default:me(()=>[ae(E(gs))]),_:1}),h3]),default:me(ot=>[ct(be("div",null,[ae(Xt,{animated:""},{template:me(()=>[ae(Qr,{variant:"circle",style:{"vertical-align":"middle",width:"18px",height:"18px","margin-right":"20px"}}),ae(Qr,{variant:"text",style:{"vertical-align":"middle",width:"30%"}})]),_:1})],512),[[ut,E(le)]]),ct(be("div",null,[ae(er,{name:"file-type-"+ot.row.icon},null,8,["name"]),xr(" "+Et(ot.row.name),1)],512),[[ut,!E(le)]])]),_:1}),E(c)?(ve(),Pe(zt,{key:0,prop:"time",sortable:"custom","class-name":"zfile-table-col-time","min-width":"25%"},{header:me(()=>[ae(dt,null,{default:me(()=>[ae(E(Vc))]),_:1}),d3]),default:me(ot=>[ct(be("div",null,[ae(Xt,{animated:""},{template:me(()=>[ae(Qr,{variant:"text",style:{width:"60%"}})]),_:1})],512),[[ut,E(le)]]),ct(be("div",null,Et(ot.row.time),513),[[ut,!E(le)]])]),_:1})):Ie("",!0),E(c)?(ve(),Pe(zt,{key:1,prop:"size","class-name":"zfile-table-col-size",sortable:"custom","min-width":"20%"},{header:me(()=>[ae(dt,null,{default:me(()=>[ae(E(Wc))]),_:1}),p3]),default:me(ot=>[ct(be("div",null,[ae(Xt,{animated:""},{template:me(()=>[ae(Qr,{variant:"text",style:{width:"30%"}})]),_:1})],512),[[ut,E(le)]]),ct(be("div",null,Et(E(Oa).fileSizeFilter(ot.row,null,ot.row.size)),513),[[ut,!E(le)]])]),_:1})):Ie("",!0)]),_:1},8,["onSortChange","onRowClick","onRowDblclick","onCellMouseEnter","onCellMouseLeave","size","onRowContextmenu","row-class-name","onSelectionChange","data"])),[[Ir,E(U)]]),E(f).imgMode?(ve(),Pe(E(s),{key:3})):Ie("",!0),ae(E(n3),{"auto-ajust-placement":"",ref:"contextmenu"},{default:me(()=>[E(y)?(ve(),Re(Ca,{key:0},[ct(ae(E(rn),{onClick:Ye[0]||(Ye[0]=ot=>E(R)(E(I)))},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(E(M0))]),_:1}),A3]),_:1},512),[[ut,E(u).permission.open]]),ct(ae(E(rn),{onClick:Ye[1]||(Ye[1]=ot=>E(R)(E(I)))},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(Xr)]),_:1}),m3]),_:1},512),[[ut,E(u).permission.preview]]),ct(ae(E(rn),{onClick:E(Y)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[E(b).isSingleSelect?(ve(),Pe(Or,{key:0,class:"font-bold"})):(ve(),Pe(Dr,{key:1}))]),_:1}),be("label",null,Et(E(b).isSingleSelect?"\u4E0B\u8F7D":"\u6279\u91CF\u4E0B\u8F7D"),1)]),_:1},8,["onClick"]),[[ut,E(u).permission.download]]),ct(ae(E(rn),{onClick:E(Ve)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(er,{class:"inline",name:"link"})]),_:1}),v3]),_:1},8,["onClick"]),[[ut,E(u).permission.link]]),ct(ae(E(ss),null,null,512),[[ut,E(u).permission.rename||E(u).permission.delete]]),ct(ae(E(rn),{onClick:E(X)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(er,{name:"edit"})]),_:1}),g3]),_:1},8,["onClick"]),[[ut,E(u).permission.rename]]),E(u).permission.delete?(ve(),Pe(E(rn),{key:0,onClick:E(Oe)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(er,{class:"inline",name:"delete"})]),_:1}),be("label",null,"\u5220\u9664 "+Et(E(T).length>0?"("+E(T).length+")":""),1)]),_:1},8,["onClick"])):Ie("",!0),ct(ae(E(ss),null,null,512),[[ut,E(u).permission.newFolder||E(u).permission.upload]])],64)):Ie("",!0),ct(ae(E(rn),{onClick:E(De)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(E(M0))]),_:1}),x3]),_:1},8,["onClick"]),[[ut,E(u).permission.newFolder]]),ct(ae(E(rn),{onClick:E($e)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(ja)]),_:1}),y3]),_:1},8,["onClick"]),[[ut,E(u).permission.upload]]),ct(ae(E(rn),{onClick:E(Rt)},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(ln)]),_:1}),_3]),_:1},8,["onClick"]),[[ut,E(u).permission.upload]]),ct(ae(E(ss),null,null,512),[[ut,E(u).permission.newFolder||E(u).permission.upload]]),ae(E(rn),{onClick:it},{default:me(()=>[ae(dt,{class:"contextmenu-icon"},{default:me(()=>[ae(sa)]),_:1}),w3]),_:1})]),_:1},512),ae(qr,{draggable:"","custom-class":"zfile-video-dialog","destroy-on-close":!0,modelValue:E(Dt),"onUpdate:modelValue":Ye[2]||(Ye[2]=ot=>Bn(Dt)?Dt.value=ot:null)},{default:me(()=>[E(Dt)?(ve(),Pe(E(t),{key:0,ref:"videoPlayer"},null,512)):Ie("",!0)]),_:1},8,["modelValue"]),ae(qr,{draggable:"","custom-class":"zfile-text-dialog","destroy-on-close":!0,title:E(f).currentClickRow.name,modelValue:E(_t),"onUpdate:modelValue":Ye[3]||(Ye[3]=ot=>Bn(_t)?_t.value=ot:null)},{default:me(()=>[E(_t)&&E(f).currentClickRow.name.indexOf(".md")===-1?(ve(),Pe(E(n),{key:0,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0),E(_t)&&E(f).currentClickRow.name.indexOf(".md")!==-1?(ve(),Pe(E(a),{key:1,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0)]),_:1},8,["title","modelValue"]),ae(qr,{draggable:"","custom-class":"zfile-pdf-dialog",title:E(f).currentClickRow.name,modelValue:E(z),"onUpdate:modelValue":Ye[4]||(Ye[4]=ot=>Bn(z)?z.value=ot:null)},{default:me(()=>[E(z)?(ve(),Pe(E(o),{key:0,"file-name":E(f).currentClickRow.name,"file-url":E(f).currentClickRow.url},null,8,["file-name","file-url"])):Ie("",!0)]),_:1},8,["title","modelValue"]),ae(S4),ae(qr,{draggable:"","destroy-on-close":!0,width:"40%",title:"\u64CD\u4F5C\u7ED3\u679C",onClose:E(We),modelValue:E(Xe),"onUpdate:modelValue":Ye[5]||(Ye[5]=ot=>Bn(Xe)?Xe.value=ot:null)},{default:me(()=>[ae(la,{"text-inside":!0,"stroke-width":26,percentage:E(Tt),status:E(Tt)===100?"success":""},null,8,["percentage","status"]),ae(or,{data:E(Te),height:"60vh",style:{width:"100%"}},{default:me(()=>[ae(zt,{"show-overflow-tooltip":"",prop:"name",label:"\u6587\u4EF6\u540D"}),ae(zt,{prop:"status",label:"\u72B6\u6001",width:"150"},{default:me(ot=>[ot.row.status?(ve(),Re("span",b3,"\u6210\u529F")):(ve(),Re("span",E3,"\u5931\u8D25"))]),_:1})]),_:1},8,["data"])]),_:1},8,["onClose","modelValue"]),ae(e3,{onClose:O}),ae(Em),ct(ae(Tm,null,null,512),[[ut,E(p).zfileConfig.gallery.showBackTop]]),E(u).globalConfig.showDocument&&E(u).folderConfig.readmeText&&E(u).folderConfig.readmeDisplayMode==="dialog"?(ve(),Pe(qr,{key:4,draggable:"","custom-class":"zfile-readme-dialog","model-value":!0},{default:me(()=>[ae(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),E(u).globalConfig.showDocument&&E(u).folderConfig.readmeText&&E(u).folderConfig.readmeDisplayMode==="bottom"?(ve(),Pe(ir,{key:5,class:"mt-5"},{default:me(()=>[ae(E(r),{text:E(u).folderConfig.readmeText},null,8,["text"])]),_:1})):Ie("",!0),ae(As,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster","leave-active-class":"animate__animated animate__fadeOutDown animate__faster"},{default:me(()=>[ct(be("div",T3,[be("div",k3,[E(u).permission.preview?(ve(),Pe(Br,{key:0,"show-arrow":!1,offset:15,effect:"dark",content:"\u9884\u89C8",placement:"top"},{default:me(()=>[ae(er,{onClick:Ye[6]||(Ye[6]=ot=>E(R)(E(I))),name:"tool-preview"})]),_:1})):Ie("",!0),E(u).permission.download?(ve(),Pe(Br,{key:1,"show-arrow":!1,offset:15,effect:"dark",content:"\u4E0B\u8F7D",placement:"top"},{default:me(()=>[ae(er,{onClick:E(Y),name:"tool-download"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.link?(ve(),Pe(Br,{key:2,"show-arrow":!1,offset:15,effect:"dark",content:"\u751F\u6210\u76F4\u94FE",placement:"top"},{default:me(()=>[ae(er,{onClick:E(Ve),name:"tool-link"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.rename?(ve(),Pe(Br,{key:3,"show-arrow":!1,offset:15,effect:"dark",content:"\u91CD\u547D\u540D",placement:"top"},{default:me(()=>[ae(er,{onClick:E(X),name:"tool-edit"},null,8,["onClick"])]),_:1})):Ie("",!0),E(u).permission.delete?(ve(),Pe(Br,{key:4,"show-arrow":!1,offset:15,effect:"dark",content:"\u5220\u9664",placement:"top"},{default:me(()=>[ae(er,{onClick:E(Oe),name:"tool-delete"},null,8,["onClick"])]),_:1})):Ie("",!0),ae(Br,{"show-arrow":!1,offset:15,disabled:E(T).length===0,effect:"dark",content:"\u53D6\u6D88\u9009\u62E9",placement:"top"},{default:me(()=>[ae(er,{onClick:E(j),name:"tool-close"},null,8,["onClick"])]),_:1},8,["disabled"])])],512),[[ut,E(T).length>0&&E(h).params.storageKey&&!E(f).imgMode&&E(Le)===!1]])]),_:1})],2)],32)}}};typeof P0=="function"&&P0(Lf);var p5=ta(Lf,[["__scopeId","data-v-149d5da8"]]);export{p5 as default}; diff --git a/src/main/resources/static/assets/file.74773f11.js b/src/main/resources/static/assets/file.74773f11.js new file mode 100644 index 0000000..5dece6b --- /dev/null +++ b/src/main/resources/static/assets/file.74773f11.js @@ -0,0 +1 @@ +import{d as Q,r as W,v as Qe,o as Te,a as c,f as w,g as J,n as S,u as t,E as Ze,ad as Ce,p as m,b as B,e as p,q as _t,t as ge,a0 as wt,G as yt,c as z,i as le,ae as he,h as s,Q as Se,R as Ve,k as C,j as xt,T as kt,X as zt,D as St,Z as Ee,s as Vt,w as ue,W as Le,S as $e,m as He,al as Ct,F as de,y as fe,$ as De,P as Ne,L as et,U as Et,V as $t,M as Bt,J as A,a1 as It,aJ as Mt}from"./index.43b3cbf5.js";import{b as pe,N as Pt,u as Z,_ as ae,d as me,E as tt,w as Be,j as _e,i as Tt,M as Lt,P as Nt,S as Ye,V as Pe,aq as Ut,I as Rt,t as At,o as We,U as Ft,W as Kt,r as jt}from"./base.4ef7f45b.js";import{b as Ht,c as Yt,u as Wt}from"./overlay.533d94fc.js";import{E as Xt}from"./switch.87050cd5.js";import{E as rt}from"./input-number.4b8b8203.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as Ue}from"./popper.718d36e0.js";import{S as lt}from"./SvgIcon.eefd5347.js";/* empty css */import{E as at,a as ot}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{u as Ot,f as qt,E as nt,l as Gt,k as Jt}from"./request.e2daed10.js";import{a as Re,b as we,i as Ae,r as Qt,j as Zt,u as Dt,g as er,d as tr,e as rr,l as lr}from"./useFileUpload.72c71760.js";import{_ as Fe}from"./plugin-vue_export-helper.21dcd24c.js";import{U as ye,I as Ke,C as it}from"./event.776e7e11.js";import{d as Xe}from"./debounce.014e7b6e.js";import{u as st}from"./index.566ad052.js";import{E as ar}from"./index.d46124aa.js";import{E as or}from"./focus-trap.4cfde4b4.js";import{E as nr,a as ir,b as sr}from"./dropdown-item.dc1b3a74.js";/* empty css */import{r as dr}from"./badge.28b48511.js";import{E as ur}from"./index.439070da.js";import{E as cr}from"./index.88f36c37.js";import{c as xe}from"./common.72335e7c.js";import"./validator.b1ae6965.js";import"./index.da7dbe5d.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./index.9c287fed.js";import"./scroll.90c07eee.js";import"./isEqual.2263846a.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";import"./dropdown.2ef7612f.js";import"./refs.f6f7d296.js";const dt=Symbol("breadcrumbKey"),ut=Symbol("sliderContextKey"),mr=pe({separator:{type:String,default:"/"},separatorIcon:{type:Pt,default:""}}),fr={name:"ElBreadcrumb"},gr=Q({...fr,props:mr,setup(e){const r=e,l=Z("breadcrumb"),a=W();return Qe(dt,r),Te(()=>{const o=a.value.querySelectorAll(`.${l.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,d)=>(c(),w("div",{ref_key:"breadcrumb",ref:a,class:S(t(l).b()),"aria-label":"Breadcrumb",role:"navigation"},[J(o.$slots,"default")],2))}});var pr=ae(gr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const vr=pe({to:{type:me([String,Object]),default:""},replace:{type:Boolean,default:!1}}),br={name:"ElBreadcrumbItem"},hr=Q({...br,props:vr,setup(e){const r=e,l=wt(),a=Ze(dt,void 0),o=Z("breadcrumb"),{separator:d,separatorIcon:f}=Ce(a),b=l.appContext.config.globalProperties.$router,k=W(),i=()=>{!r.to||!b||(r.replace?b.replace(r.to):b.push(r.to))};return(g,n)=>(c(),w("span",{class:S(t(o).e("item"))},[m("span",{ref_key:"link",ref:k,class:S([t(o).e("inner"),t(o).is("link",!!g.to)]),role:"link",onClick:i},[J(g.$slots,"default")],2),t(f)?(c(),B(t(tt),{key:0,class:S(t(o).e("separator"))},{default:p(()=>[(c(),B(_t(t(f))))]),_:1},8,["class"])):(c(),w("span",{key:1,class:S(t(o).e("separator")),role:"presentation"},ge(t(d)),3))],2))}});var ct=ae(hr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const _r=Be(pr,{BreadcrumbItem:ct}),wr=_e(ct),yr={name:"ElContainer"},xr=Q({...yr,props:{direction:{type:String}},setup(e){const r=e,l=yt(),a=Z("container"),o=z(()=>r.direction==="vertical"?!0:r.direction==="horizontal"?!1:l&&l.default?l.default().some(f=>{const b=f.type.name;return b==="ElHeader"||b==="ElFooter"}):!1);return(d,f)=>(c(),w("section",{class:S([t(a).b(),t(a).is("vertical",t(o))])},[J(d.$slots,"default")],2))}});var kr=ae(xr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const zr={name:"ElAside"},Sr=Q({...zr,props:{width:{type:String,default:null}},setup(e){const r=e,l=Z("aside"),a=z(()=>r.width?l.cssVarBlock({width:r.width}):{});return(o,d)=>(c(),w("aside",{class:S(t(l).b()),style:le(t(a))},[J(o.$slots,"default")],6))}});var mt=ae(Sr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Vr={name:"ElFooter"},Cr=Q({...Vr,props:{height:{type:String,default:null}},setup(e){const r=e,l=Z("footer"),a=z(()=>r.height?l.cssVarBlock({height:r.height}):{});return(o,d)=>(c(),w("footer",{class:S(t(l).b()),style:le(t(a))},[J(o.$slots,"default")],6))}});var ft=ae(Cr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Er={name:"ElHeader"},$r=Q({...Er,props:{height:{type:String,default:null}},setup(e){const r=e,l=Z("header"),a=z(()=>r.height?l.cssVarBlock({height:r.height}):{});return(o,d)=>(c(),w("header",{class:S(t(l).b()),style:le(t(a))},[J(o.$slots,"default")],6))}});var gt=ae($r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Br={name:"ElMain"},Ir=Q({...Br,setup(e){const r=Z("main");return(l,a)=>(c(),w("main",{class:S(t(r).b())},[J(l.$slots,"default")],2))}});var pt=ae(Ir,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Mr=Be(kr,{Aside:mt,Footer:ft,Header:gt,Main:pt});_e(mt);const Pr=_e(ft),Tr=_e(gt),Lr=_e(pt),Nr=pe({...Ht,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Ur=Yt,Rr=Q({name:"ElDrawer",components:{ElOverlay:ar,ElFocusTrap:or,ElIcon:tt,Close:Tt},props:Nr,emits:Ur,setup(e,{slots:r}){Lt({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},z(()=>!!r.title));const l=W(),a=W(),o=Z("drawer"),{t:d}=st(),f=z(()=>e.direction==="rtl"||e.direction==="ltr"),b=z(()=>Nt(e.size));return{...Wt(e,l),drawerRef:l,focusStartRef:a,isHorizontal:f,drawerSize:b,ns:o,t:d}}}),Ar=["aria-label","aria-labelledby","aria-describedby"],Fr=["id"],Kr=["aria-label"],jr=["id"];function Hr(e,r,l,a,o,d){const f=he("close"),b=he("el-icon"),k=he("el-focus-trap"),i=he("el-overlay");return c(),B(zt,{to:"body",disabled:!e.appendToBody},[s(kt,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:p(()=>[Se(s(i,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:p(()=>[s(k,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:p(()=>[m("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:S([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:le(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:r[1]||(r[1]=xt(()=>{},["stop"]))},[m("span",{ref:"focusStartRef",class:S(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(c(),w("header",{key:0,class:S(e.ns.e("header"))},[e.$slots.title?J(e.$slots,"title",{key:1},()=>[C(" DEPRECATED SLOT ")]):J(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?C("v-if",!0):(c(),w("span",{key:0,id:e.titleId,role:"heading",class:S(e.ns.e("title"))},ge(e.title),11,Fr))]),e.showClose?(c(),w("button",{key:2,"aria-label":e.t("el.drawer.close"),class:S(e.ns.e("close-btn")),type:"button",onClick:r[0]||(r[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[s(b,{class:S(e.ns.e("close"))},{default:p(()=>[s(f)]),_:1},8,["class"])],10,Kr)):C("v-if",!0)],2)):C("v-if",!0),e.rendered?(c(),w("div",{key:1,id:e.bodyId,class:S(e.ns.e("body"))},[J(e.$slots,"default")],10,jr)):C("v-if",!0),e.$slots.footer?(c(),w("div",{key:2,class:S(e.ns.e("footer"))},[J(e.$slots,"footer")],2)):C("v-if",!0)],14,Ar)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ve,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Yr=ae(Rr,[["render",Hr],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Wr=Be(Yr),Xr=pe({modelValue:{type:me([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ye,inputSize:Ye,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:me(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:me(Function),default:void 0},tooltipClass:{type:String,default:void 0},marks:{type:me(Object)}}),Ie=e=>Pe(e)||St(e)&&e.every(Pe),Or={[ye]:Ie,[Ke]:Ie,[it]:Ie},qr=(e,r,l)=>{const a=W();return Te(async()=>{e.range?(Array.isArray(e.modelValue)?(r.firstValue=Math.max(e.min,e.modelValue[0]),r.secondValue=Math.min(e.max,e.modelValue[1])):(r.firstValue=e.min,r.secondValue=e.max),r.oldValue=[r.firstValue,r.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?r.firstValue=e.min:r.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),r.oldValue=r.firstValue),Ot(window,"resize",l),await Ee(),l()}),{sliderWrapper:a}},Gr=e=>z(()=>e.marks?Object.keys(e.marks).map(parseFloat).sort((l,a)=>l-a).filter(l=>l<=e.max&&l>=e.min).map(l=>({point:l,position:(l-e.min)*100/(e.max-e.min),mark:e.marks[l]})):[]),Jr=(e,r,l)=>{const{form:a,formItem:o}=Ut(),d=Vt(),f=W(),b=W(),k={firstButton:f,secondButton:b},i=z(()=>e.disabled||(a==null?void 0:a.disabled)||!1),g=z(()=>Math.min(r.firstValue,r.secondValue)),n=z(()=>Math.max(r.firstValue,r.secondValue)),V=z(()=>e.range?`${100*(n.value-g.value)/(e.max-e.min)}%`:`${100*(r.firstValue-e.min)/(e.max-e.min)}%`),P=z(()=>e.range?`${100*(g.value-e.min)/(e.max-e.min)}%`:"0%"),T=z(()=>e.vertical?{height:e.height}:{}),U=z(()=>e.vertical?{height:V.value,bottom:P.value}:{width:V.value,left:P.value}),F=()=>{d.value&&(r.sliderSize=d.value[`client${e.vertical?"Height":"Width"}`])},L=y=>{const _=e.min+y*(e.max-e.min)/100;if(!e.range)return f;let R;return Math.abs(g.value-_)r.secondValue?"firstButton":"secondButton",k[R]},I=y=>{const _=L(y);return _.value.setPosition(y),_},X=y=>{r.firstValue=y,h(e.range?[g.value,n.value]:y)},u=y=>{r.secondValue=y,e.range&&h([g.value,n.value])},h=y=>{l(ye,y),l(Ke,y)},E=async()=>{await Ee(),l(it,e.range?[g.value,n.value]:e.modelValue)},q=y=>{var _,R,N,ne,ie,se;if(i.value||r.dragging)return;F();let G=0;if(e.vertical){const K=(N=(R=(_=y.touches)==null?void 0:_.item(0))==null?void 0:R.clientY)!=null?N:y.clientY;G=(d.value.getBoundingClientRect().bottom-K)/r.sliderSize*100}else{const K=(se=(ie=(ne=y.touches)==null?void 0:ne.item(0))==null?void 0:ie.clientX)!=null?se:y.clientX,Y=d.value.getBoundingClientRect().left;G=(K-Y)/r.sliderSize*100}if(!(G<0||G>100))return I(G)};return{elFormItem:o,slider:d,firstButton:f,secondButton:b,sliderDisabled:i,minValue:g,maxValue:n,runwayStyle:T,barStyle:U,resetSize:F,setPosition:I,emitChange:E,onSliderWrapperPrevent:y=>{var _,R;(((_=k.firstButton.value)==null?void 0:_.dragging)||((R=k.secondButton.value)==null?void 0:R.dragging))&&y.preventDefault()},onSliderClick:y=>{q(y)&&E()},onSliderDown:async y=>{const _=q(y);_&&(await Ee(),_.value.onButtonDown(y))},setFirstValue:X,setSecondValue:u}},{left:Qr,down:Zr,right:Dr,up:el,home:tl,end:rl,pageUp:ll,pageDown:al}=Rt,ol=(e,r,l)=>{const a=W(),o=W(!1),d=z(()=>r.value instanceof Function),f=z(()=>d.value&&r.value(e.modelValue)||e.modelValue),b=Xe(()=>{l.value&&(o.value=!0)},50),k=Xe(()=>{l.value&&(o.value=!1)},50);return{tooltip:a,tooltipVisible:o,formatValue:f,displayTooltip:b,hideTooltip:k}},nl=(e,r,l)=>{const{disabled:a,min:o,max:d,step:f,showTooltip:b,precision:k,sliderSize:i,formatTooltip:g,emitChange:n,resetSize:V,updateDragging:P}=Ze(ut),{tooltip:T,tooltipVisible:U,formatValue:F,displayTooltip:L,hideTooltip:I}=ol(e,g,b),X=W(),u=z(()=>`${(e.modelValue-o.value)/(d.value-o.value)*100}%`),h=z(()=>e.vertical?{bottom:u.value}:{left:u.value}),E=()=>{r.hovering=!0,L()},q=()=>{r.hovering=!1,r.dragging||I()},D=v=>{a.value||(v.preventDefault(),G(v),window.addEventListener("mousemove",K),window.addEventListener("touchmove",K),window.addEventListener("mouseup",Y),window.addEventListener("touchend",Y),window.addEventListener("contextmenu",Y),X.value.focus())},O=v=>{a.value||(r.newPosition=Number.parseFloat(u.value)+v/(d.value-o.value)*100,$(r.newPosition),n())},oe=()=>{O(-f.value)},y=()=>{O(f.value)},_=()=>{O(-f.value*4)},R=()=>{O(f.value*4)},N=()=>{a.value||($(0),n())},ne=()=>{a.value||($(100),n())},ie=v=>{let M=!0;[Qr,Zr].includes(v.key)?oe():[Dr,el].includes(v.key)?y():v.key===tl?N():v.key===rl?ne():v.key===al?_():v.key===ll?R():M=!1,M&&v.preventDefault()},se=v=>{let M,ee;return v.type.startsWith("touch")?(ee=v.touches[0].clientY,M=v.touches[0].clientX):(ee=v.clientY,M=v.clientX),{clientX:M,clientY:ee}},G=v=>{r.dragging=!0,r.isClick=!0;const{clientX:M,clientY:ee}=se(v);e.vertical?r.startY=ee:r.startX=M,r.startPosition=Number.parseFloat(u.value),r.newPosition=r.startPosition},K=v=>{if(r.dragging){r.isClick=!1,L(),V();let M;const{clientX:ee,clientY:ce}=se(v);e.vertical?(r.currentY=ce,M=(r.startY-r.currentY)/i.value*100):(r.currentX=ee,M=(r.currentX-r.startX)/i.value*100),r.newPosition=r.startPosition+M,$(r.newPosition)}},Y=()=>{r.dragging&&(setTimeout(()=>{r.dragging=!1,r.hovering||I(),r.isClick||($(r.newPosition),n())},0),window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),window.removeEventListener("contextmenu",Y))},$=async v=>{if(v===null||Number.isNaN(+v))return;v<0?v=0:v>100&&(v=100);const M=100/((d.value-o.value)/f.value);let ce=Math.round(v/M)*M*(d.value-o.value)*.01+o.value;ce=Number.parseFloat(ce.toFixed(k.value)),l(ye,ce),!r.dragging&&e.modelValue!==r.oldValue&&(r.oldValue=e.modelValue),await Ee(),r.dragging&&L(),T.value.updatePopper()};return ue(()=>r.dragging,v=>{P(v)}),{button:X,tooltip:T,tooltipVisible:U,showTooltip:b,wrapperStyle:h,formatValue:F,handleMouseEnter:E,handleMouseLeave:q,onButtonDown:D,onKeyDown:ie,setPosition:$}},il=(e,r,l,a)=>({stops:z(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const f=(e.max-e.min)/e.step,b=100*e.step/(e.max-e.min),k=Array.from({length:f-1}).map((i,g)=>(g+1)*b);return e.range?k.filter(i=>i<100*(l.value-e.min)/(e.max-e.min)||i>100*(a.value-e.min)/(e.max-e.min)):k.filter(i=>i>100*(r.firstValue-e.min)/(e.max-e.min))}),getStopStyle:f=>e.vertical?{bottom:`${f}%`}:{left:`${f}%`}}),sl=(e,r,l,a,o,d)=>{const f=i=>{o(ye,i),o(Ke,i)},b=()=>e.range?![l.value,a.value].every((i,g)=>i===r.oldValue[g]):e.modelValue!==r.oldValue,k=()=>{var i,g;if(e.min>e.max){At("Slider","min should not be greater than max.");return}const n=e.modelValue;e.range&&Array.isArray(n)?n[1]e.max?f([e.max,e.max]):n[0]e.max?f([n[0],e.max]):(r.firstValue=n[0],r.secondValue=n[1],b()&&((i=d==null?void 0:d.validate)==null||i.call(d,"change").catch(V=>We()),r.oldValue=n.slice())):!e.range&&typeof n=="number"&&!Number.isNaN(n)&&(ne.max?f(e.max):(r.firstValue=n,b()&&((g=d==null?void 0:d.validate)==null||g.call(d,"change").catch(V=>We()),r.oldValue=n)))};k(),ue(()=>r.dragging,i=>{i||k()}),ue(()=>e.modelValue,(i,g)=>{r.dragging||Array.isArray(i)&&Array.isArray(g)&&i.every((n,V)=>n===g[V])&&r.firstValue===i[0]&&r.secondValue===i[1]||k()},{deep:!0}),ue(()=>[e.min,e.max],()=>{k()})},dl=pe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String}),ul={[ye]:e=>Pe(e)},cl={name:"ElSliderButton"},ml=Q({...cl,props:dl,emits:ul,setup(e,{expose:r,emit:l}){const a=e,o=Z("slider"),d=Le({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),{button:f,tooltip:b,showTooltip:k,tooltipVisible:i,wrapperStyle:g,formatValue:n,handleMouseEnter:V,handleMouseLeave:P,onButtonDown:T,onKeyDown:U,setPosition:F}=nl(a,d,l),{hovering:L,dragging:I}=Ce(d);return r({onButtonDown:T,onKeyDown:U,setPosition:F,hovering:L,dragging:I}),(X,u)=>(c(),w("div",{ref_key:"button",ref:f,class:S([t(o).e("button-wrapper"),{hover:t(L),dragging:t(I)}]),style:le(t(g)),tabindex:"0",onMouseenter:u[1]||(u[1]=(...h)=>t(V)&&t(V)(...h)),onMouseleave:u[2]||(u[2]=(...h)=>t(P)&&t(P)(...h)),onMousedown:u[3]||(u[3]=(...h)=>t(T)&&t(T)(...h)),onTouchstart:u[4]||(u[4]=(...h)=>t(T)&&t(T)(...h)),onFocus:u[5]||(u[5]=(...h)=>t(V)&&t(V)(...h)),onBlur:u[6]||(u[6]=(...h)=>t(P)&&t(P)(...h)),onKeydown:u[7]||(u[7]=(...h)=>t(U)&&t(U)(...h))},[s(t(Ue),{ref_key:"tooltip",ref:b,visible:t(i),"onUpdate:visible":u[0]||(u[0]=h=>$e(i)?i.value=h:null),placement:"top","stop-popper-mouse-event":!1,"popper-class":X.tooltipClass,disabled:!t(k),persistent:""},{content:p(()=>[m("span",null,ge(t(n)),1)]),default:p(()=>[m("div",{class:S([t(o).e("button"),{hover:t(L),dragging:t(I)}])},null,2)]),_:1},8,["visible","popper-class","disabled"])],38))}});var Oe=ae(ml,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const fl=pe({mark:{type:me([String,Object]),default:void 0}});var gl=Q({name:"ElSliderMarker",props:fl,setup(e){const r=Z("slider"),l=z(()=>He(e.mark)?e.mark:e.mark.label),a=z(()=>He(e.mark)?void 0:e.mark.style);return()=>Ct("div",{class:r.e("marks-text"),style:a},l.value)}});const pl=["id","role","aria-label","aria-labelledby"],vl={key:1},bl={name:"ElSlider"},hl=Q({...bl,props:Xr,emits:Or,setup(e,{expose:r,emit:l}){const a=e,o=Z("slider"),{t:d}=st(),f=Le({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:b,slider:k,firstButton:i,secondButton:g,sliderDisabled:n,minValue:V,maxValue:P,runwayStyle:T,barStyle:U,resetSize:F,emitChange:L,onSliderWrapperPrevent:I,onSliderClick:X,onSliderDown:u,setFirstValue:h,setSecondValue:E}=Jr(a,f,l),{stops:q,getStopStyle:D}=il(a,f,V,P),{inputId:O,isLabeledByFormItem:oe}=Ft(a,{formItemContext:b}),y=Kt(),_=z(()=>a.inputSize||y.value),R=z(()=>a.label||d("el.slider.defaultLabel",{min:a.min,max:a.max})),N=z(()=>a.range?a.rangeStartLabel||d("el.slider.defaultRangeStartLabel"):R.value),ne=z(()=>a.formatValueText?a.formatValueText(v.value):`${v.value}`),ie=z(()=>a.rangeEndLabel||d("el.slider.defaultRangeEndLabel")),se=z(()=>a.formatValueText?a.formatValueText(M.value):`${M.value}`),G=z(()=>[o.b(),o.m(y.value),o.is("vertical",a.vertical),{[o.m("with-input")]:a.showInput}]),K=Gr(a);sl(a,f,V,P,l,b);const Y=z(()=>{const x=[a.min,a.max,a.step].map(te=>{const ve=`${te}`.split(".")[1];return ve?ve.length:0});return Math.max.apply(null,x)}),{sliderWrapper:$}=qr(a,f,F),{firstValue:v,secondValue:M,sliderSize:ee}=Ce(f),ce=x=>{f.dragging=x};return Qe(ut,{...Ce(a),sliderSize:ee,disabled:n,precision:Y,emitChange:L,resetSize:F,updateDragging:ce}),r({onSliderClick:X}),(x,te)=>{var ve,je;return c(),w("div",{id:x.range?t(O):void 0,ref_key:"sliderWrapper",ref:$,class:S(t(G)),role:x.range?"group":void 0,"aria-label":x.range&&!t(oe)?t(R):void 0,"aria-labelledby":x.range&&t(oe)?(ve=t(b))==null?void 0:ve.labelId:void 0,onTouchstart:te[2]||(te[2]=(...j)=>t(I)&&t(I)(...j)),onTouchmove:te[3]||(te[3]=(...j)=>t(I)&&t(I)(...j))},[m("div",{ref_key:"slider",ref:k,class:S([t(o).e("runway"),{"show-input":x.showInput&&!x.range},t(o).is("disabled",t(n))]),style:le(t(T)),onMousedown:te[0]||(te[0]=(...j)=>t(u)&&t(u)(...j)),onTouchstart:te[1]||(te[1]=(...j)=>t(u)&&t(u)(...j))},[m("div",{class:S(t(o).e("bar")),style:le(t(U))},null,6),s(Oe,{id:x.range?void 0:t(O),ref_key:"firstButton",ref:i,"model-value":t(v),vertical:x.vertical,"tooltip-class":x.tooltipClass,role:"slider","aria-label":x.range||!t(oe)?t(N):void 0,"aria-labelledby":!x.range&&t(oe)?(je=t(b))==null?void 0:je.labelId:void 0,"aria-valuemin":x.min,"aria-valuemax":x.range?t(M):x.max,"aria-valuenow":t(v),"aria-valuetext":t(ne),"aria-orientation":x.vertical?"vertical":"horizontal","aria-disabled":t(n),"onUpdate:modelValue":t(h)},null,8,["id","model-value","vertical","tooltip-class","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),x.range?(c(),B(Oe,{key:0,ref_key:"secondButton",ref:g,"model-value":t(M),vertical:x.vertical,"tooltip-class":x.tooltipClass,role:"slider","aria-label":t(ie),"aria-valuemin":t(v),"aria-valuemax":x.max,"aria-valuenow":t(M),"aria-valuetext":t(se),"aria-orientation":x.vertical?"vertical":"horizontal","aria-disabled":t(n),"onUpdate:modelValue":t(E)},null,8,["model-value","vertical","tooltip-class","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):C("v-if",!0),x.showStops?(c(),w("div",vl,[(c(!0),w(de,null,fe(t(q),(j,be)=>(c(),w("div",{key:be,class:S(t(o).e("stop")),style:le(t(D)(j))},null,6))),128))])):C("v-if",!0),t(K).length>0?(c(),w(de,{key:2},[m("div",null,[(c(!0),w(de,null,fe(t(K),(j,be)=>(c(),w("div",{key:be,style:le(t(D)(j.position)),class:S([t(o).e("stop"),t(o).e("marks-stop")])},null,6))),128))]),m("div",{class:S(t(o).e("marks"))},[(c(!0),w(de,null,fe(t(K),(j,be)=>(c(),B(t(gl),{key:be,mark:j.mark,style:le(t(D)(j.position))},null,8,["mark","style"]))),128))],2)],64)):C("v-if",!0)],38),x.showInput&&!x.range?(c(),B(t(rt),{key:0,ref:"input","model-value":t(v),class:S(t(o).e("input")),step:x.step,disabled:t(n),controls:x.showInputControls,min:x.min,max:x.max,debounce:x.debounce,size:t(_),"onUpdate:modelValue":t(h),onChange:t(L)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):C("v-if",!0)],42,pl)}}});var _l=ae(hl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const wl=Be(_l);const qe=W(!1),{isMobile:yl}=Re();let xl=De(),re=xl.zfileConfig,vt={view:{size:2},gallery:{column:yl.value?re.gallery.mobileColumn:re.gallery.column,columnSpacing:re.gallery.columnSpacing,rowSpacing:re.gallery.rowSpacing,showInfo:re.gallery.showInfo,showInfoMode:re.gallery.showInfoMode,roundedBorder:re.gallery.roundedBorder,showBackTop:re.gallery.showBackTop},imagePreview:{mode:re.imagePreview.mode,gallery:re.imagePreview.gallery}};const bt=(e,r)=>{r=r||globalThis;for(let l in e)r[l]===void 0?r[l]=e[l]:e[l]instanceof Object&&r[l]instanceof Object&&bt(e[l],r[l])},Ge=qt("zfile-setting-cache",vt);function ht(){const e=()=>{qe.value=!0};return bt(vt,Ge.value),{visible:qe,zfileSettingCache:Ge,openSettingVisible:e}}const H=e=>(Et("data-v-45d09777"),e=e(),$t(),e),kl={class:"zfile-index-setting-drawer"},zl={class:"zfile-index-setting-drawer-body"},Sl={key:0,class:"zfile-index-setting-drawer-group"},Vl=H(()=>m("div",{class:"zfile-index-setting-drawer-title"},"\u5B58\u50A8\u6E90",-1)),Cl={class:"w-full"},El={class:"zfile-index-setting-drawer-group"},$l=H(()=>m("div",{class:"zfile-index-setting-drawer-title"},"\u89C6\u56FE",-1)),Bl={class:"zfile-index-setting-drawer-blockCheckbox"},Il={class:"zfile-index-setting-drawer-item current"},Ml={class:"zfile-index-setting-drawer-item"},Pl={class:"px-2.5"},Tl={class:"zfile-index-setting-drawer-group"},Ll=H(()=>m("div",{class:"zfile-index-setting-drawer-title"},"\u753B\u5ECA",-1)),Nl=H(()=>m("div",{class:"text-gray-400 text-sm"},"\u5982\u5DF2\u5904\u4E8E\u753B\u5ECA\u6A21\u5F0F\uFF0C\u9700\u91CD\u65B0\u542F\u7528\u753B\u5ECA\u6A21\u5F0F\u751F\u6548.",-1)),Ul={class:"flex justify-between"},Rl=H(()=>m("div",{class:"text-lg font-medium"},"\u56FE\u7247\u5217\u6570",-1)),Al={class:"flex justify-between"},Fl=H(()=>m("div",{class:"text-lg font-medium"},"\u5217\u95F4\u8DDD",-1)),Kl={class:"flex justify-between"},jl=H(()=>m("div",{class:"text-lg font-medium"},"\u884C\u95F4\u8DDD",-1)),Hl={class:"flex justify-between"},Yl=H(()=>m("div",{class:"text-lg font-medium"},"\u56FE\u7247\u662F\u5426\u5E26\u5706\u89D2\u8FB9\u6846",-1)),Wl={class:"flex justify-between"},Xl=H(()=>m("div",{class:"text-lg font-medium"},"\u663E\u793A\u540D\u79F0",-1)),Ol={class:"flex justify-between"},ql=H(()=>m("div",{class:"text-lg font-medium"},"\u540D\u79F0\u663E\u793A\u6A21\u5F0F",-1)),Gl={class:"flex justify-between"},Jl=H(()=>m("div",{class:"text-lg font-medium"},"\u53CC\u51FB\u9884\u89C8\u6A21\u5F0F",-1)),Ql={class:"flex justify-between"},Zl=H(()=>m("div",{class:"text-lg font-medium"},"\u70B9\u51FB\u653E\u5927\u9884\u89C8",-1)),Dl={class:"flex justify-between"},ea=H(()=>m("div",{class:"text-lg font-medium"},"\u56DE\u5230\u9876\u90E8\u6309\u94AE",-1)),ta=H(()=>m("div",{class:"text-gray-400 text-sm mt-10"}," Tips: \u8BBE\u7F6E\u4F1A\u81EA\u52A8\u4FDD\u5B58\uFF0C\u5237\u65B0\u540E\u4ECD\u6709\u6548. ",-1)),ra={__name:"Setting",setup(e){const{visible:r,zfileSettingCache:l}=ht();let a=De(),o=we();const d=Le({1:"\u5C0F",2:"\u4E2D",3:"\u5927"}),f={1:"small",2:"default",3:"large"};ue(()=>l.value,g=>{var n;a.zfileConfig.gallery=g.gallery,a.zfileConfig.imagePreview=g.imagePreview,(n=g==null?void 0:g.view)!=null&&n.size&&(o.globalConfig.tableSize=f[g.view.size]),o.globalConfig.tableSize||(o.globalConfig.tableSize="defualt")},{immediate:!0,deep:!0}),Ne(),et();const{isMobile:b}=Re(),{currentStorageKey:k,storageList:i}=Ae();return(g,n)=>{const V=at,P=ot,T=lt,U=Ue,F=wl,L=rt,I=Xt,X=Wr;return c(),w("div",kl,[s(X,{modelValue:t(r),"onUpdate:modelValue":n[11]||(n[11]=u=>$e(r)?r.value=u:null),title:"\u4E2A\u4EBA\u8BBE\u7F6E","custom-class":"text-left","with-header":!1,direction:"rtl"},{default:p(()=>[m("div",zl,[t(b)?(c(),w("div",Sl,[Vl,m("div",Cl,[s(P,{size:"large",class:"w-full",modelValue:t(k),"onUpdate:modelValue":n[0]||(n[0]=u=>$e(k)?k.value=u:null),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u6E90"},{default:p(()=>[(c(!0),w(de,null,fe(t(i),u=>(c(),B(V,{key:u.key,label:u.name,value:u.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])])):C("",!0),m("div",El,[$l,m("div",Bl,[s(U,{effect:"dark",content:"\u5217\u8868\u6A21\u5F0F",placement:"bottom"},{default:p(()=>[m("div",Il,[s(T,{name:"table-layout"})])]),_:1}),s(U,{effect:"dark",content:"\u56FE\u6807\u6A21\u5F0F\uFF08\u6682\u672A\u5B9E\u73B0\uFF09",placement:"bottom"},{default:p(()=>[m("div",Ml,[s(T,{name:"card-layout"})])]),_:1})]),m("div",Pl,[s(F,{size:"large","show-tooltip":!1,marks:d,modelValue:t(l).view.size,"onUpdate:modelValue":n[1]||(n[1]=u=>t(l).view.size=u),step:1,min:1,max:3,"show-stops":""},null,8,["marks","modelValue"])])]),m("div",Tl,[Ll,Nl,m("div",Ul,[Rl,s(L,{modelValue:t(l).gallery.column,"onUpdate:modelValue":n[2]||(n[2]=u=>t(l).gallery.column=u),min:1},null,8,["modelValue"])]),m("div",Al,[Fl,s(L,{modelValue:t(l).gallery.columnSpacing,"onUpdate:modelValue":n[3]||(n[3]=u=>t(l).gallery.columnSpacing=u),min:0},null,8,["modelValue"])]),m("div",Kl,[jl,s(L,{modelValue:t(l).gallery.rowSpacing,"onUpdate:modelValue":n[4]||(n[4]=u=>t(l).gallery.rowSpacing=u),min:0},null,8,["modelValue"])]),m("div",Hl,[Yl,s(I,{modelValue:t(l).gallery.roundedBorder,"onUpdate:modelValue":n[5]||(n[5]=u=>t(l).gallery.roundedBorder=u)},null,8,["modelValue"])]),m("div",Wl,[Xl,s(I,{modelValue:t(l).gallery.showInfo,"onUpdate:modelValue":n[6]||(n[6]=u=>t(l).gallery.showInfo=u)},null,8,["modelValue"])]),m("div",Ol,[ql,s(P,{class:"w-[150px]",modelValue:t(l).gallery.showInfoMode,"onUpdate:modelValue":n[7]||(n[7]=u=>t(l).gallery.showInfoMode=u)},{default:p(()=>[s(V,{label:"\u60AC\u6D6E\u663E\u793A",value:"hover"}),s(V,{label:"\u5E95\u90E8\u663E\u793A",value:"bottom"})]),_:1},8,["modelValue"])]),m("div",Gl,[Jl,s(P,{class:"w-[150px]",modelValue:t(l).imagePreview.mode,"onUpdate:modelValue":n[8]||(n[8]=u=>t(l).imagePreview.mode=u)},{default:p(()=>[s(V,{label:"\u663E\u793A\u5168\u90E8",value:"full"}),s(V,{label:"\u663E\u793A\u5355\u5F20",value:"only"})]),_:1},8,["modelValue"])]),m("div",Ql,[Zl,s(I,{modelValue:t(l).imagePreview.gallery,"onUpdate:modelValue":n[9]||(n[9]=u=>t(l).imagePreview.gallery=u)},null,8,["modelValue"])]),m("div",Dl,[ea,s(I,{modelValue:t(l).gallery.showBackTop,"onUpdate:modelValue":n[10]||(n[10]=u=>t(l).gallery.showBackTop=u)},null,8,["modelValue"])])]),ta])]),_:1},8,["modelValue"])])}}};var la=Fe(ra,[["__scopeId","data-v-45d09777"]]);const aa={"data-v-280b1501":"",xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-settings"},oa=m("circle",{"data-v-280b1501":"",cx:"12",cy:"12",r:"3"},null,-1),na=m("path",{"data-v-280b1501":"",d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},null,-1),ia=[oa,na];function sa(e,r){return c(),w("svg",aa,ia)}var da={name:"custom-tool-setting",render:sa};function ua(){return{resetAdminPwd:()=>{ur.confirm("\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u540E\u53F0\u7BA1\u7406\u5458\u5BC6\u7801\uFF1F\u91CD\u7F6E\u540E\u7528\u6237\u540D/\u5BC6\u7801\u5C06\u5F3A\u5236\u4FEE\u6539\u4E3A admin 123456","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:r=>{r==="confirm"&&Qt().then(l=>{l.code===0&&nt.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u8BF7\u53CA\u65F6\u5173\u95ED debug \u529F\u80FD\uFF0C\u9632\u6B62\u51FA\u73B0\u5B89\u5168\u95EE\u9898\uFF01")})}})}}}let ca=we(),{fullpath:Me,storageKey:ke}=Bt(),ze=W([]),Je=!1;function ma(){let e=ca.globalConfig.rootShowStorage,r=()=>{if(ze.value=[],e){let{findStorageByKey:a}=Ae(),o=a(ke.value);o&&ze.value.push({name:o.name,fullPath:"/"+o.key})}Me.value&&Me.value.forEach((a,o,d)=>{let f={name:a,fullPath:Zt("/"+ke.value+"/"+d.slice(0,o+1).join("/"))};ze.value.push(f)})},l=z(()=>"/"+(e?"":ke.value));return Je||(ue(()=>Me.value,()=>{r()}),ue(()=>ke.value,()=>{r()})),Je=!0,{rootPath:l,breadcrumbData:ze,buildBreadcrumbData:r}}const fa={class:"zfile-header"},ga={class:"zfile-header-breadcrumb box animate__animated animate__fadeIn"},pa=A(ge("\u9996\u9875")),va={class:"zfile-header-right box animate__animated animate__fadeIn"},ba={key:0,class:"zfile-header-btn"},ha=A(" \u6B64\u529F\u80FD\u4E3A DEBUG \u6A21\u5F0F\u4E0B\u91CD\u7F6E\u7BA1\u7406\u5458\u5BC6\u7801\u529F\u80FD, \u4F7F\u7528\u5B8C\u540E\u8BF7\u5173\u95ED DEBUG \u6A21\u5F0F\u5E76\u91CD\u542F\u670D\u52A1. "),_a=A(" \u91CD\u7F6E\u7BA1\u7406\u5458\u5BC6\u7801 "),wa=A(" \u540E\u53F0\u7BA1\u7406 "),ya=A(" \u65B0\u5EFA\u6587\u4EF6\u5939 "),xa=A(" \u4E0A\u4F20\u6587\u4EF6 "),ka=A(" \u4E0A\u4F20\u6587\u4EF6\u5939 "),za={key:1,class:"zfile-header-storage-select"},Sa={key:0},Va=A(" \u540E\u53F0\u7BA1\u7406 "),Ca=A(" \u65B0\u5EFA\u6587\u4EF6\u5939 "),Ea=A(" \u4E0A\u4F20\u6587\u4EF6 "),$a=A(" \u4E0A\u4F20\u6587\u4EF6\u5939 "),Ba=A(" \u6253\u5F00\u753B\u5ECA\u6A21\u5F0F "),Ia=A(" \u5173\u95ED\u753B\u5ECA\u6A21\u5F0F "),Ma=A(" \u66F4\u591A\u8BBE\u7F6E "),Pa={__name:"Header",setup(e){Ne();let r=et();const{resetAdminPwd:l}=ua(),{loadStorageSourceList:a,currentStorageKey:o,storageList:d}=Ae(),{buildBreadcrumbData:f,rootPath:b,breadcrumbData:k}=ma();let i=we(),g=Dt();Te(()=>{a().then(()=>{f()})}),ue(()=>r.params.storageKey,h=>{h===void 0&&(o.value="")});const{newFolder:n}=er(),{openUploadDialog:V,openUploadFolderDialog:P,uploadProgressInfoStatistics:T}=tr(),{openSettingVisible:U}=ht(),{isNotMobile:F,isMobile:L,encodeAllIgnoreSlashes:I}=Re();let{initStorageConfig:X}=rr();ue(()=>[i.folderConfig.defaultSwitchToImgMode,g.oldStorageKey],(h,E)=>{let q=h[0],D=h[1],O=E[1];D!==O&&(g.imgMode=q)});const u=()=>{window.location.href="/login"};if(i.globalConfig.customCss)try{Gt(i.globalConfig.customCss)}catch(h){console.error("\u52A0\u8F7D\u81EA\u5B9A\u4E49 css \u52A0\u8F7D\u5931\u8D25:",i.globalConfig.customCss,h)}if(i.globalConfig.customJs)try{let h=i.globalConfig.customJs.replace(/|<\/script>/ig,"");console.log("\u52A0\u8F7D\u81EA\u5B9A\u4E49 js:",h);let E=document.createElement("script");E.type="text/javascript",E.text=h,document.getElementsByTagName("head")[0].appendChild(E)}catch(h){console.log("\u52A0\u8F7D\u81EA\u5B9A\u4E49 js \u5931\u8D25: ",i.globalConfig.customJs,h)}return(h,E)=>{const q=wr,D=_r,O=cr,oe=jt,y=Ue,_=lt,R=Jt,N=nr,ne=ir,ie=sr,se=da,G=at,K=ot,Y=la;return c(),w(de,null,[m("div",fa,[s(O,null,{default:p(()=>[m("div",ga,[s(D,{separator:"/","separator-class":"ArrowRight"},{default:p(()=>[s(q,{to:t(b)},{default:p(()=>[pa]),_:1},8,["to"]),(c(!0),w(de,null,fe(t(k),$=>(c(),B(q,{to:{path:t(I)($.fullPath)},key:$.fullPath,class:"hidden-xs-only"},{default:p(()=>[A(ge($.name),1)]),_:2},1032,["to"]))),128))]),_:1})])]),_:1}),m("div",va,[t(F)&&t(X)?(c(),w("div",ba,[t(i).globalConfig.debugMode?(c(),B(y,{key:0,placement:"bottom"},{content:p(()=>[ha]),default:p(()=>[s(oe,{onClick:t(l),type:"danger"},{default:p(()=>[_a]),_:1},8,["onClick"])]),_:1})):C("",!0),t(i).globalConfig.showLogin?(c(),B(y,{key:1,placement:"bottom"},{content:p(()=>[wa]),default:p(()=>[m("div",{onClick:u},[s(_,{class:"text-2xl text-gray-500 hover:text-blue-500",name:"login"})])]),_:1})):C("",!0),t(i).permission.upload||t(i).permission.newFolder?(c(),B(ie,{key:2,trigger:"click","popper-class":"zfile-header-dropdown"},{dropdown:p(()=>[s(ne,{class:"font-medium"},{default:p(()=>[t(i).permission.newFolder?(c(),B(N,{key:0,onClick:t(n)},{default:p(()=>[s(_,{class:"text-[17px] mr-3",name:"add-folder"}),ya]),_:1},8,["onClick"])):C("",!0),t(i).permission.upload?(c(),w(de,{key:1},[s(N,{onClick:t(V),divided:t(i).permission.upload&&t(i).permission.newFolder},{default:p(()=>[s(_,{class:"text-[17px] mr-3",name:"upload"}),xa]),_:1},8,["onClick","divided"]),s(N,{onClick:t(P)},{default:p(()=>[s(_,{class:"text-[17px] mr-3",name:"upload-folder"}),ka]),_:1},8,["onClick"])],64)):C("",!0)]),_:1})]),default:p(()=>[Se(m("div",null,[s(R,{value:t(T).totalUploadingAndWaiting,hidden:t(T).totalUploadingAndWaiting===0,max:99,class:"!block"},{default:p(()=>[s(_,{class:"text-2xl text-gray-500 hover:text-blue-500",name:"add"})]),_:1},8,["value","hidden"])],512),[[Ve,t(r).params.storageKey]])]),_:1})):C("",!0),Se(m("div",{onClick:E[0]||(E[0]=$=>t(g).imgMode=!t(g).imgMode)},[t(g).imgMode?(c(),B(_,{key:0,class:"text-4xl",name:"img-enable"})):(c(),B(_,{key:1,class:"text-4xl",name:"img-disable"}))],512),[[Ve,t(r).params.storageKey]]),m("div",{onClick:E[1]||(E[1]=(...$)=>t(U)&&t(U)(...$))},[s(se)])])):C("",!0),t(F)?(c(),w("div",za,[s(K,{size:"default",modelValue:t(o),"onUpdate:modelValue":E[2]||(E[2]=$=>$e(o)?o.value=$:null),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u6E90"},{default:p(()=>[(c(!0),w(de,null,fe(t(d),$=>(c(),B(G,{key:$.key,label:$.name,value:$.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):C("",!0)]),t(L)?Se((c(),w("div",Sa,[s(ie,{trigger:"click",class:"top-3"},{dropdown:p(()=>[s(ne,null,{default:p(()=>[t(i).globalConfig.showLogin?(c(),B(N,{key:0,onClick:u},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"login"}),Va]),_:1})):C("",!0),t(i).permission.newFolder?(c(),B(N,{key:1,onClick:t(n)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"add-folder"}),Ca]),_:1},8,["onClick"])):C("",!0),t(i).permission.upload?(c(),B(N,{key:2,onClick:t(V)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"upload"}),Ea]),_:1},8,["onClick"])):C("",!0),t(i).permission.upload?(c(),B(N,{key:3,onClick:t(P)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"upload-folder"}),$a]),_:1},8,["onClick"])):C("",!0),t(g).imgMode?t(g).imgMode?(c(),B(N,{key:5,onClick:E[4]||(E[4]=$=>t(g).imgMode=!1)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"image"}),Ia]),_:1})):C("",!0):(c(),B(N,{key:4,onClick:E[3]||(E[3]=$=>t(g).imgMode=!0)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"image"}),Ba]),_:1})),s(N,{onClick:t(U)},{default:p(()=>[s(_,{class:"text-base mr-2 text-gray-500",name:"tool-setting"}),Ma]),_:1},8,["onClick"])]),_:1})]),default:p(()=>[s(t(dr),{class:"block h-6 w-6","aria-hidden":"true"})]),_:1})],512)),[[Ve,t(r).params.storageKey]]):C("",!0)]),s(Y)],64)}}};var Ta=Fe(Pa,[["__scopeId","data-v-c367f65e"]]);const La={target:"_blank",class:"text-gray-500",href:"https://beian.miit.gov.cn/"},Na={__name:"Footer",setup(e){let r=we();return(l,a)=>{var o;return c(),w("div",null,[m("a",La,ge((o=t(r).globalConfig)==null?void 0:o.icp),1)])}}};const Ua={__name:"file",setup(e){let r=we();It(()=>{o()});let l=Ne(),a=W(!1);const o=()=>{lr().then(d=>{if(!d.data.installed){l.push("/install");return}r.updateGlobalConfig(d.data),d.data.customAudioSuffix&&(xe.constant.fileTypeMap.audio=d.data.customAudioSuffix.split(",")),d.data.customImageSuffix&&(xe.constant.fileTypeMap.image=d.data.customImageSuffix.split(",")),d.data.customTextSuffix&&(xe.constant.fileTypeMap.text=d.data.customTextSuffix.split(",")),d.data.customVideoSuffix&&(xe.constant.fileTypeMap.video=d.data.customVideoSuffix.split(",")),a.value=!0}).catch(d=>{d.message==="Network Error"&&nt.error("\u52A0\u8F7D\u5931\u8D25\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\u7AEF\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458.")})};return(d,f)=>{const b=Tr,k=he("router-view"),i=Lr,g=Pr,n=Mr;return t(a)?(c(),B(n,{key:0},{default:p(()=>[s(b,null,{default:p(()=>[(c(),B(Mt,null,{default:p(()=>[s(Ta)]),_:1}))]),_:1}),s(i,null,{default:p(()=>[s(k)]),_:1}),s(g,null,{default:p(()=>[s(Na)]),_:1})]),_:1})):C("",!0)}}};var xo=Fe(Ua,[["__scopeId","data-v-3908aa5c"]]);export{xo as default}; diff --git a/src/main/resources/static/assets/file.9e059b07.css b/src/main/resources/static/assets/file.9e059b07.css deleted file mode 100644 index 75c9909..0000000 --- a/src/main/resources/static/assets/file.9e059b07.css +++ /dev/null @@ -1 +0,0 @@ -.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width, 300px)}.el-footer{--el-footer-padding: 0 20px;--el-footer-height: 60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-header{--el-header-padding: 0 20px;--el-header-height: 60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-main{--el-main-padding: 20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}.el-drawer{--el-drawer-bg-color: var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary: var(--el-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__close-btn .el-icon{font-size:inherit;vertical-align:text-bottom}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.ttb,.el-drawer.btt{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-from,.el-drawer-fade-enter-active,.el-drawer-fade-enter-to,.el-drawer-fade-leave-from,.el-drawer-fade-leave-active,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-input-number{position:relative;display:inline-block;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__increase,.el-input-number__decrease{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;user-select:none}.el-input-number__increase:hover,.el-input-number__decrease:hover{color:var(--el-color-primary)}.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color, var(--el-color-primary)) inset}.el-input-number__increase.is-disabled,.el-input-number__decrease.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__increase,.el-input-number.is-disabled .el-input-number__decrease{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__increase:hover,.el-input-number.is-disabled .el-input-number__decrease:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__increase,.el-input-number--large .el-input-number__decrease{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__increase,.el-input-number--small .el-input-number__decrease{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__increase [class*=el-icon],.el-input-number--small .el-input-number__decrease [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__increase,.el-input-number.is-controls-right .el-input-number__decrease{--el-input-number-controls-height: 15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon],.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=increase],.el-input-number.is-controls-right[class*=large] [class*=decrease]{--el-input-number-controls-height: 19px}.el-input-number.is-controls-right[class*=small] [class*=increase],.el-input-number.is-controls-right[class*=small] [class*=decrease]{--el-input-number-controls-height: 11px}.el-slider{--el-slider-main-bg-color: var(--el-color-primary);--el-slider-runway-bg-color: var(--el-border-color-light);--el-slider-stop-bg-color: var(--el-color-white);--el-slider-disabled-color: var(--el-text-color-placeholder);--el-slider-border-radius: 3px;--el-slider-height: 6px;--el-slider-button-size: 20px;--el-slider-button-wrapper-size: 36px;--el-slider-button-wrapper-offset: -15px;width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button.dragging{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;user-select:none;line-height:normal;outline:none}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper:hover,.el-slider__button-wrapper.hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;user-select:none}.el-slider__button:hover,.el-slider__button.hover,.el-slider__button.dragging{transform:scale(1.2)}.el-slider__button:hover,.el-slider__button.hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px}.el-slider.is-vertical{position:relative;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.zfile-index-setting-drawer[data-v-46b851ef] .el-drawer{width:90%!important}@media (min-width: 640px){.zfile-index-setting-drawer[data-v-46b851ef] .el-drawer{width:50%!important}}@media (min-width: 768px){.zfile-index-setting-drawer[data-v-46b851ef] .el-drawer{width:41.666667%!important}}@media (min-width: 1024px){.zfile-index-setting-drawer[data-v-46b851ef] .el-drawer{width:33.333333%!important}}@media (min-width: 1280px){.zfile-index-setting-drawer[data-v-46b851ef] .el-drawer{width:25%!important}}.zfile-index-setting-drawer .zfile-index-setting-drawer-body[data-v-46b851ef]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body[data-v-46b851ef]{padding-left:.375rem;padding-right:.375rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group[data-v-46b851ef]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group[data-v-46b851ef]:first-child>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-title[data-v-46b851ef]{font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox[data-v-46b851ef]{display:flex}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox[data-v-46b851ef]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item[data-v-46b851ef]{cursor:pointer;border-radius:.5rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item[data-v-46b851ef]:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item svg[data-v-46b851ef]{height:3rem;width:3rem;padding:.75rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item.current[data-v-46b851ef]{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item.current svg[data-v-46b851ef]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:before,.el-breadcrumb:after{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner.is-link,.el-breadcrumb__inner a{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner.is-link:hover,.el-breadcrumb__inner a:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.zfile-header[data-v-1f5350f4]{display:flex;flex-flow:row nowrap;justify-content:space-between;height:48px;line-height:48px!important;padding:0 15px;background-color:#fff;color:#606266;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration);border-bottom:1px solid rgba(132,133,141,.2)}.zfile-header[data-v-1f5350f4]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}@media (min-width: 640px){.zfile-header[data-v-1f5350f4]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}}.zfile-header .el-scrollbar[data-v-1f5350f4]{max-width:40%}@media (min-width: 768px){.zfile-header .el-scrollbar[data-v-1f5350f4]{max-width:50%}}@media (min-width: 1024px){.zfile-header .el-scrollbar[data-v-1f5350f4]{max-width:60%}}@media (min-width: 1280px){.zfile-header .el-scrollbar[data-v-1f5350f4]{max-width:70%}}.zfile-header .el-scrollbar[data-v-1f5350f4] .el-scrollbar__bar.is-vertical{display:none!important}.zfile-header .zfile-header-breadcrumb[data-v-1f5350f4] .el-breadcrumb{line-height:48px;font-size:13px;white-space:nowrap;margin-left:14px}.zfile-header .zfile-header-breadcrumb[data-v-1f5350f4] .el-breadcrumb .el-breadcrumb__item{display:inline;float:none}.zfile-header .zfile-header-right[data-v-1f5350f4]{display:flex}.zfile-header .zfile-header-right[data-v-1f5350f4]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-header .zfile-header-right[data-v-1f5350f4] .el-dropdown{line-height:48px!important}.zfile-header .zfile-header-right .zfile-header-btn[data-v-1f5350f4]{display:flex;align-items:center}.zfile-header .zfile-header-right .zfile-header-btn[data-v-1f5350f4]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-header .zfile-header-right .zfile-header-btn[data-v-1f5350f4]{font-size:2.25rem;line-height:2.5rem}.zfile-header .zfile-header-right .zfile-header-btn div[data-v-1f5350f4]{height:1.25rem!important;cursor:pointer!important}.zfile-header .zfile-header-right .zfile-header-storage-select[data-v-1f5350f4]{margin-right:1rem}@media only screen and (max-width: 767px){.zfile-header[data-v-1f5350f4] .el-breadcrumb__separator,.zfile-header[data-v-1f5350f4] .el-form-item__label{display:none!important}.zfile-header[data-v-1f5350f4] .el-select{width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}}.zfile-debug-tips[data-v-1f5350f4] .el-form-item__label{font-weight:700;color:red!important}.zfile-header-storage-select[data-v-1f5350f4] .el-input__wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500}.zfile-header-dropdown .el-dropdown-menu__item:hover,.zfile-header-dropdown .el-dropdown-menu__item:hover svg{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.el-container[data-v-3908aa5c]{height:100%;width:100%}.el-container .el-header[data-v-3908aa5c],.el-container .el-footer[data-v-3908aa5c]{color:var(--el-text-color-primary);padding:0;text-align:center}.el-container .el-header[data-v-3908aa5c]{--el-header-height: unset;height:48px;line-height:48px!important}.el-container .el-main[data-v-3908aa5c]{height:100%;width:100%;padding:0;overflow-x:hidden}.el-container .el-footer[data-v-3908aa5c]{border-top:var(--zfile-header-footer-border-top);height:40px;line-height:40px;font-size:14px} diff --git a/src/main/resources/static/assets/file.d112bd9c.css b/src/main/resources/static/assets/file.d112bd9c.css new file mode 100644 index 0000000..cd51e8f --- /dev/null +++ b/src/main/resources/static/assets/file.d112bd9c.css @@ -0,0 +1 @@ +.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width, 300px)}.el-footer{--el-footer-padding: 0 20px;--el-footer-height: 60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-header{--el-header-padding: 0 20px;--el-header-height: 60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-main{--el-main-padding: 20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}.el-drawer{--el-drawer-bg-color: var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary: var(--el-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__close-btn .el-icon{font-size:inherit;vertical-align:text-bottom}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.ttb,.el-drawer.btt{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-from,.el-drawer-fade-enter-active,.el-drawer-fade-enter-to,.el-drawer-fade-leave-from,.el-drawer-fade-leave-active,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-slider{--el-slider-main-bg-color: var(--el-color-primary);--el-slider-runway-bg-color: var(--el-border-color-light);--el-slider-stop-bg-color: var(--el-color-white);--el-slider-disabled-color: var(--el-text-color-placeholder);--el-slider-border-radius: 3px;--el-slider-height: 6px;--el-slider-button-size: 20px;--el-slider-button-wrapper-size: 36px;--el-slider-button-wrapper-offset: -15px;width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button.dragging{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;user-select:none;line-height:normal;outline:none}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper:hover,.el-slider__button-wrapper.hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;user-select:none}.el-slider__button:hover,.el-slider__button.hover,.el-slider__button.dragging{transform:scale(1.2)}.el-slider__button:hover,.el-slider__button.hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px}.el-slider.is-vertical{position:relative;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.zfile-index-setting-drawer[data-v-45d09777] .el-drawer{width:90%!important}@media (min-width: 640px){.zfile-index-setting-drawer[data-v-45d09777] .el-drawer{width:50%!important}}@media (min-width: 768px){.zfile-index-setting-drawer[data-v-45d09777] .el-drawer{width:41.666667%!important}}@media (min-width: 1024px){.zfile-index-setting-drawer[data-v-45d09777] .el-drawer{width:33.333333%!important}}@media (min-width: 1280px){.zfile-index-setting-drawer[data-v-45d09777] .el-drawer{width:25%!important}}.zfile-index-setting-drawer .zfile-index-setting-drawer-body[data-v-45d09777]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body[data-v-45d09777]{padding-left:.375rem;padding-right:.375rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group[data-v-45d09777]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group[data-v-45d09777]:first-child>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-title[data-v-45d09777]{font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox[data-v-45d09777]{display:flex}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox[data-v-45d09777]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item[data-v-45d09777]{cursor:pointer;border-radius:.5rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item[data-v-45d09777]:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item svg[data-v-45d09777]{height:3rem;width:3rem;padding:.75rem}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item.current[data-v-45d09777]{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.zfile-index-setting-drawer .zfile-index-setting-drawer-body .zfile-index-setting-drawer-group .zfile-index-setting-drawer-blockCheckbox .zfile-index-setting-drawer-item.current svg[data-v-45d09777]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:before,.el-breadcrumb:after{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner.is-link,.el-breadcrumb__inner a{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner.is-link:hover,.el-breadcrumb__inner a:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.zfile-header[data-v-c367f65e]{display:flex;flex-flow:row nowrap;justify-content:space-between;height:48px;line-height:48px!important;padding:0 15px;background-color:#fff;color:#606266;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration);border-bottom:1px solid rgba(132,133,141,.2)}.zfile-header[data-v-c367f65e]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}@media (min-width: 640px){.zfile-header[data-v-c367f65e]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}}.zfile-header .el-scrollbar[data-v-c367f65e]{max-width:40%}@media (min-width: 768px){.zfile-header .el-scrollbar[data-v-c367f65e]{max-width:50%}}@media (min-width: 1024px){.zfile-header .el-scrollbar[data-v-c367f65e]{max-width:60%}}@media (min-width: 1280px){.zfile-header .el-scrollbar[data-v-c367f65e]{max-width:70%}}.zfile-header .el-scrollbar[data-v-c367f65e] .el-scrollbar__bar.is-vertical{display:none!important}.zfile-header .zfile-header-breadcrumb[data-v-c367f65e] .el-breadcrumb{line-height:48px;font-size:13px;white-space:nowrap;margin-left:14px}.zfile-header .zfile-header-breadcrumb[data-v-c367f65e] .el-breadcrumb .el-breadcrumb__item{display:inline;float:none}.zfile-header .zfile-header-right[data-v-c367f65e]{display:flex}.zfile-header .zfile-header-right[data-v-c367f65e]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-header .zfile-header-right[data-v-c367f65e] .el-dropdown{line-height:48px!important}.zfile-header .zfile-header-right .zfile-header-btn[data-v-c367f65e]{display:flex;align-items:center}.zfile-header .zfile-header-right .zfile-header-btn[data-v-c367f65e]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.zfile-header .zfile-header-right .zfile-header-btn[data-v-c367f65e]{font-size:2.25rem;line-height:2.5rem}.zfile-header .zfile-header-right .zfile-header-btn div[data-v-c367f65e]{height:1.25rem!important;cursor:pointer!important}.zfile-header .zfile-header-right .zfile-header-storage-select[data-v-c367f65e]{margin-right:1rem}@media only screen and (max-width: 767px){.zfile-header[data-v-c367f65e] .el-breadcrumb__separator,.zfile-header[data-v-c367f65e] .el-form-item__label{display:none!important}.zfile-header[data-v-c367f65e] .el-select{width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}}.zfile-debug-tips[data-v-c367f65e] .el-form-item__label{font-weight:700;color:red!important}.zfile-header-storage-select[data-v-c367f65e] .el-input__wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500}.zfile-header-dropdown .el-dropdown-menu__item:hover,.zfile-header-dropdown .el-dropdown-menu__item:hover svg{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.el-container[data-v-3908aa5c]{height:100%;width:100%}.el-container .el-header[data-v-3908aa5c],.el-container .el-footer[data-v-3908aa5c]{color:var(--el-text-color-primary);padding:0;text-align:center}.el-container .el-header[data-v-3908aa5c]{--el-header-height: unset;height:48px;line-height:48px!important}.el-container .el-main[data-v-3908aa5c]{height:100%;width:100%;padding:0;overflow-x:hidden}.el-container .el-footer[data-v-3908aa5c]{border-top:var(--zfile-header-footer-border-top);height:40px;line-height:40px;font-size:14px} diff --git a/src/main/resources/static/assets/focus-trap.58847c97.js b/src/main/resources/static/assets/focus-trap.4cfde4b4.js similarity index 96% rename from src/main/resources/static/assets/focus-trap.58847c97.js rename to src/main/resources/static/assets/focus-trap.4cfde4b4.js index 31553f0..8e2d7f0 100644 --- a/src/main/resources/static/assets/focus-trap.58847c97.js +++ b/src/main/resources/static/assets/focus-trap.4cfde4b4.js @@ -1 +1 @@ -import{B as I,I as U,k as j,_ as q}from"./base.d698891e.js";import{o as H,H as x,d as W,r as J,v as Y,w as b,u as v,Z as N,m as Z,g as z}from"./index.552205f5.js";let l=[];const G=e=>{const n=s=>{const o=s;o.key===U.esc&&l.forEach(c=>c(o))};H(()=>{l.length===0&&document.addEventListener("keydown",n),I&&l.push(e)}),x(()=>{l=l.filter(s=>s!==e),l.length===0&&I&&document.removeEventListener("keydown",n)})},B=e=>{const n=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n},A=(e,n)=>{for(const s of e)if(!Q(s,n))return s},Q=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},X=e=>{const n=B(e),s=A(n,e),o=A(n.reverse(),e);return[s,o]},ee=e=>e instanceof HTMLInputElement&&"select"in e,d=(e,n)=>{if(e&&e.focus){const s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&ee(e)&&n&&e.select()}};function P(e,n){const s=[...e],o=e.indexOf(n);return o!==-1&&s.splice(o,1),s}const te=()=>{let e=[];return{push:o=>{const c=e[0];c&&o!==c&&c.pause(),e=P(e,o),e.unshift(o)},remove:o=>{var c,u;e=P(e,o),(u=(c=e[0])==null?void 0:c.resume)==null||u.call(c)}}},ne=(e,n=!1)=>{const s=document.activeElement;for(const o of e)if(d(o,n),document.activeElement!==s)return},w=te(),S="focus-trap.focus-after-trapped",y="focus-trap.focus-after-released",K={cancelable:!0,bubbles:!1},R="focusAfterTrapped",D="focusAfterReleased",se=Symbol("elFocusTrap"),oe=W({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[R,D,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const s=J();let o,c;G(t=>{e.trapped&&!u.paused&&n("release-requested",t)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},p=t=>{if(!e.loop&&!e.trapped||u.paused)return;const{key:r,altKey:a,ctrlKey:i,metaKey:f,currentTarget:V,shiftKey:O}=t,{loop:k}=e,M=r===U.tab&&!a&&!i&&!f,E=document.activeElement;if(M&&E){const T=V,[F,_]=X(T);F&&_?!O&&E===_?(t.preventDefault(),k&&d(F,!0),n("focusout-prevented")):O&&[F,T].includes(E)&&(t.preventDefault(),k&&d(_,!0),n("focusout-prevented")):E===T&&(t.preventDefault(),n("focusout-prevented"))}};Y(se,{focusTrapRef:s,onKeydown:p}),b(()=>e.focusTrapEl,t=>{t&&(s.value=t)},{immediate:!0}),b([s],([t],[r])=>{t&&(t.addEventListener("keydown",p),t.addEventListener("focusin",h),t.addEventListener("focusout",g)),r&&(r.removeEventListener("keydown",p),r.removeEventListener("focusin",h),r.removeEventListener("focusout",g))});const m=t=>{n(R,t)},$=t=>n(D,t),h=t=>{const r=v(s);if(!r)return;const a=t.target,i=a&&r.contains(a);i&&n("focusin",t),!u.paused&&e.trapped&&(i?c=a:d(c,!0))},g=t=>{const r=v(s);if(!(u.paused||!r))if(e.trapped){const a=t.relatedTarget;!j(a)&&!r.contains(a)&&setTimeout(()=>{!u.paused&&e.trapped&&d(c,!0)},0)}else{const a=t.target;a&&r.contains(a)||n("focusout",t)}};async function L(){await N();const t=v(s);if(t){w.push(u);const r=document.activeElement;if(o=r,!t.contains(r)){const i=new Event(S,K);t.addEventListener(S,m),t.dispatchEvent(i),i.defaultPrevented||N(()=>{let f=e.focusStartEl;Z(f)||(d(f),document.activeElement!==f&&(f="first")),f==="first"&&ne(B(t),!0),(document.activeElement===r||f==="container")&&d(t)})}}}function C(){const t=v(s);if(t){t.removeEventListener(S,m);const r=new Event(y,K);t.addEventListener(y,$),t.dispatchEvent(r),r.defaultPrevented||d(o!=null?o:document.body,!0),t.removeEventListener(y,m),w.remove(u)}}return H(()=>{e.trapped&&L(),b(()=>e.trapped,t=>{t?L():C()})}),x(()=>{e.trapped&&C()}),{onKeydown:p}}});function re(e,n,s,o,c,u){return z(e.$slots,"default",{handleKeydown:e.onKeydown})}var ie=q(oe,[["render",re],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);export{ie as E,se as F}; +import{B as I,I as U,k as j,_ as q}from"./base.4ef7f45b.js";import{o as H,H as x,d as W,r as J,v as Y,w as b,u as v,Z as N,m as Z,g as z}from"./index.43b3cbf5.js";let l=[];const G=e=>{const n=s=>{const o=s;o.key===U.esc&&l.forEach(c=>c(o))};H(()=>{l.length===0&&document.addEventListener("keydown",n),I&&l.push(e)}),x(()=>{l=l.filter(s=>s!==e),l.length===0&&I&&document.removeEventListener("keydown",n)})},B=e=>{const n=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n},A=(e,n)=>{for(const s of e)if(!Q(s,n))return s},Q=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},X=e=>{const n=B(e),s=A(n,e),o=A(n.reverse(),e);return[s,o]},ee=e=>e instanceof HTMLInputElement&&"select"in e,d=(e,n)=>{if(e&&e.focus){const s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&ee(e)&&n&&e.select()}};function P(e,n){const s=[...e],o=e.indexOf(n);return o!==-1&&s.splice(o,1),s}const te=()=>{let e=[];return{push:o=>{const c=e[0];c&&o!==c&&c.pause(),e=P(e,o),e.unshift(o)},remove:o=>{var c,u;e=P(e,o),(u=(c=e[0])==null?void 0:c.resume)==null||u.call(c)}}},ne=(e,n=!1)=>{const s=document.activeElement;for(const o of e)if(d(o,n),document.activeElement!==s)return},w=te(),S="focus-trap.focus-after-trapped",y="focus-trap.focus-after-released",K={cancelable:!0,bubbles:!1},R="focusAfterTrapped",D="focusAfterReleased",se=Symbol("elFocusTrap"),oe=W({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[R,D,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const s=J();let o,c;G(t=>{e.trapped&&!u.paused&&n("release-requested",t)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},p=t=>{if(!e.loop&&!e.trapped||u.paused)return;const{key:r,altKey:a,ctrlKey:i,metaKey:f,currentTarget:V,shiftKey:O}=t,{loop:k}=e,M=r===U.tab&&!a&&!i&&!f,E=document.activeElement;if(M&&E){const T=V,[F,_]=X(T);F&&_?!O&&E===_?(t.preventDefault(),k&&d(F,!0),n("focusout-prevented")):O&&[F,T].includes(E)&&(t.preventDefault(),k&&d(_,!0),n("focusout-prevented")):E===T&&(t.preventDefault(),n("focusout-prevented"))}};Y(se,{focusTrapRef:s,onKeydown:p}),b(()=>e.focusTrapEl,t=>{t&&(s.value=t)},{immediate:!0}),b([s],([t],[r])=>{t&&(t.addEventListener("keydown",p),t.addEventListener("focusin",h),t.addEventListener("focusout",g)),r&&(r.removeEventListener("keydown",p),r.removeEventListener("focusin",h),r.removeEventListener("focusout",g))});const m=t=>{n(R,t)},$=t=>n(D,t),h=t=>{const r=v(s);if(!r)return;const a=t.target,i=a&&r.contains(a);i&&n("focusin",t),!u.paused&&e.trapped&&(i?c=a:d(c,!0))},g=t=>{const r=v(s);if(!(u.paused||!r))if(e.trapped){const a=t.relatedTarget;!j(a)&&!r.contains(a)&&setTimeout(()=>{!u.paused&&e.trapped&&d(c,!0)},0)}else{const a=t.target;a&&r.contains(a)||n("focusout",t)}};async function L(){await N();const t=v(s);if(t){w.push(u);const r=document.activeElement;if(o=r,!t.contains(r)){const i=new Event(S,K);t.addEventListener(S,m),t.dispatchEvent(i),i.defaultPrevented||N(()=>{let f=e.focusStartEl;Z(f)||(d(f),document.activeElement!==f&&(f="first")),f==="first"&&ne(B(t),!0),(document.activeElement===r||f==="container")&&d(t)})}}}function C(){const t=v(s);if(t){t.removeEventListener(S,m);const r=new Event(y,K);t.addEventListener(y,$),t.dispatchEvent(r),r.defaultPrevented||d(o!=null?o:document.body,!0),t.removeEventListener(y,m),w.remove(u)}}return H(()=>{e.trapped&&L(),b(()=>e.trapped,t=>{t?L():C()})}),x(()=>{e.trapped&&C()}),{onKeydown:p}}});function re(e,n,s,o,c,u){return z(e.$slots,"default",{handleKeydown:e.onKeydown})}var ie=q(oe,[["render",re],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);export{ie as E,se as F}; diff --git a/src/main/resources/static/assets/form-item.1544fca0.js b/src/main/resources/static/assets/form-item.2dea3b0a.js similarity index 97% rename from src/main/resources/static/assets/form-item.1544fca0.js rename to src/main/resources/static/assets/form-item.2dea3b0a.js index b7b78ee..babae15 100644 --- a/src/main/resources/static/assets/form-item.1544fca0.js +++ b/src/main/resources/static/assets/form-item.2dea3b0a.js @@ -1 +1 @@ -import{aa as ee,ab as ct,ac as $e,ad as Oe,ae as mt,af as ce,ag as Ce,b as Ee,d as H,ah as Le,C as We,W as Me,u as te,o as pt,T as re,_ as Pe,G as J,t as gt,K as vt,ai as bt,P as me,a3 as k,w as ht,j as yt}from"./base.d698891e.js";import{D as _t,m as Z,r as O,c as v,d as oe,w as P,v as Be,W as ze,ad as Ne,a as Q,f as Ue,g as W,n as E,u as g,l as Re,E as B,o as Ve,H as qe,ak as xt,h as z,F as wt,Z as De,G as Tt,e as Y,b as St,J as At,t as pe,i as ge,q as jt,k as ve,p as be,T as It}from"./index.552205f5.js";import{S as Ft}from"./index.c92ded65.js";import{c as $t}from"./request.3708b2c4.js";import{i as Ge,a as Ot,b as Ct,o as Et,k as Ke,g as ke,s as Lt,c as Wt,d as Mt,U as he,e as ne,n as N,f as Ye,h as Pt,S as Bt,j as zt,l as Nt}from"./isEqual.fe8e5f6f.js";var ye=Object.create,Ut=function(){function e(){}return function(r){if(!ee(r))return{};if(ye)return ye(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),Rt=Ut;function Vt(e,r){var t=-1,l=e.length;for(r||(r=Array(l));++t(_t(e)||Z(e))&&We(r)&&Z(t)};function bo(){const e=O([]),r=v(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function t(i){return e.value.indexOf(i)}function l(i,a){if(i&&a){const s=t(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=t(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:r,registerLabelWidth:l,deregisterLabelWidth:o}}const L=(e,r)=>{const t=X(r);return t.length>0?e.filter(l=>l.prop&&t.includes(l.prop)):e},ho={name:"ElForm"},yo=oe({...ho,props:go,emits:vo,setup(e,{expose:r,emit:t}){const l=e,o=[],i=Me(),a=te("form"),s=v(()=>{const{labelPosition:f,inline:m}=l;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${f}`)]:f,[a.m("inline")]:m}]}),b=f=>{o.push(f)},_=f=>{f.prop&&o.splice(o.indexOf(f),1)},u=(f=[])=>{!l.model||L(o,f).forEach(m=>m.resetField())},p=(f=[])=>{L(o,f).forEach(m=>m.clearValidate())},x=v(()=>!!l.model),S=f=>{if(o.length===0)return[];const m=L(o,f);return m.length?m:[]},A=async f=>h(void 0,f),j=async(f=[])=>{if(!x.value)return!1;const m=S(f);if(m.length===0)return!0;let I={};for(const F of m)try{await F.validate("")}catch($){I={...I,...$}}return Object.keys(I).length===0?!0:Promise.reject(I)},h=async(f=[],m)=>{const I=!Re(m);try{const F=await j(f);return F===!0&&(m==null||m(F)),F}catch(F){const $=F;return l.scrollToError&&w(Object.keys($)[0]),m==null||m(!1,$),I&&Promise.reject($)}},w=f=>{var m;const I=L(o,f)[0];I&&((m=I.$el)==null||m.scrollIntoView())};return P(()=>l.rules,()=>{l.validateOnRuleChange&&A().catch(f=>pt())},{deep:!0}),Be(re,ze({...Ne(l),emit:t,resetFields:u,clearValidate:p,validateField:h,addField:b,removeField:_,...bo()})),r({validate:A,validateField:h,resetFields:u,clearValidate:p,scrollToField:w}),(f,m)=>(Q(),Ue("form",{class:E(g(s))},[W(f.$slots,"default")],2))}});var _o=Pe(yo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const xo=["","error","validating","success"],wo=Ee({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:H([String,Array])},required:{type:Boolean,default:void 0},rules:{type:H([Object,Array])},error:String,validateStatus:{type:String,values:xo},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Le}}),Fe="ElLabelWrap";var To=oe({name:Fe,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:r}){const t=B(re,void 0);B(J)||gt(Fe,"usage: ");const o=te("form"),i=O(),a=O(0),s=()=>{var u;if((u=i.value)!=null&&u.firstElementChild){const p=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},b=(u="update")=>{De(()=>{r.default&&e.isAutoWidth&&(u==="update"?a.value=s():u==="remove"&&(t==null||t.deregisterLabelWidth(a.value)))})},_=()=>b("update");return Ve(()=>{_()}),qe(()=>{b("remove")}),xt(()=>_()),P(a,(u,p)=>{e.updateAll&&(t==null||t.registerLabelWidth(u,p))}),$t(v(()=>{var u,p;return(p=(u=i.value)==null?void 0:u.firstElementChild)!=null?p:null}),_),()=>{var u,p;if(!r)return null;const{isAutoWidth:x}=e;if(x){const S=t==null?void 0:t.autoLabelWidth,A={};if(S&&S!=="auto"){const j=Math.max(0,Number.parseInt(S,10)-a.value),h=t.labelPosition==="left"?"marginRight":"marginLeft";j&&(A[h]=`${j}px`)}return z("div",{ref:i,class:[o.be("item","label-wrap")],style:A},[(u=r.default)==null?void 0:u.call(r)])}else return z(wt,{ref:i},[(p=r.default)==null?void 0:p.call(r)])}}});const So=["role","aria-labelledby"],Ao={name:"ElFormItem"},jo=oe({...Ao,props:wo,setup(e,{expose:r}){const t=e,l=Tt(),o=B(re,void 0),i=B(J,void 0),a=Me(void 0,{formItem:!1}),s=te("form-item"),b=vt().value,_=O([]),u=O(""),p=bt(u,100),x=O(""),S=O();let A,j=!1;const h=v(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const n=me(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return n?{width:n}:{}}),w=v(()=>{if((o==null?void 0:o.labelPosition)==="top"||(o==null?void 0:o.inline))return{};if(!t.label&&!t.labelWidth&&rt)return{};const n=me(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return!t.label&&!l.label?{marginLeft:n}:{}}),f=v(()=>[s.b(),s.m(a.value),s.is("error",u.value==="error"),s.is("validating",u.value==="validating"),s.is("success",u.value==="success"),s.is("required",lt.value||t.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),{[s.m("feedback")]:o==null?void 0:o.statusIcon}]),m=v(()=>We(t.inlineMessage)?t.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),I=v(()=>[s.e("error"),{[s.em("error","inline")]:m.value}]),F=v(()=>t.prop?Z(t.prop)?t.prop:t.prop.join("."):""),$=v(()=>!!(t.label||l.label)),R=v(()=>t.for||_.value.length===1?_.value[0]:void 0),V=v(()=>!R.value&&$.value),rt=!!i,ie=v(()=>{const n=o==null?void 0:o.model;if(!(!n||!t.prop))return k(n,t.prop).value}),q=v(()=>{const n=t.rules?X(t.rules):[],c=o==null?void 0:o.rules;if(c&&t.prop){const y=k(c,t.prop).value;y&&n.push(...X(y))}return t.required!==void 0&&n.push({required:!!t.required}),n}),ot=v(()=>q.value.length>0),nt=n=>q.value.filter(y=>!y.trigger||!n?!0:Array.isArray(y.trigger)?y.trigger.includes(n):y.trigger===n).map(({trigger:y,...T})=>T),lt=v(()=>q.value.some(n=>n.required===!0)),at=v(()=>{var n;return p.value==="error"&&t.showMessage&&((n=o==null?void 0:o.showMessage)!=null?n:!0)}),se=v(()=>`${t.label||""}${(o==null?void 0:o.labelSuffix)||""}`),C=n=>{u.value=n},it=n=>{var c,y;const{errors:T,fields:K}=n;(!T||!K)&&console.error(n),C("error"),x.value=T?(y=(c=T==null?void 0:T[0])==null?void 0:c.message)!=null?y:`${t.prop} is required`:"",o==null||o.emit("validate",t.prop,!1,x.value)},st=()=>{C("success"),o==null||o.emit("validate",t.prop,!0,"")},ut=async n=>{const c=F.value;return new Ft({[c]:n}).validate({[c]:ie.value},{firstFields:!0}).then(()=>(st(),!0)).catch(T=>(it(T),Promise.reject(T)))},ue=async(n,c)=>{if(j)return j=!1,!1;const y=Re(c);if(!ot.value)return c==null||c(!1),!1;const T=nt(n);return T.length===0?(c==null||c(!0),!0):(C("validating"),ut(T).then(()=>(c==null||c(!0),!0)).catch(K=>{const{fields:de}=K;return c==null||c(!1,de),y?!1:Promise.reject(de)}))},D=()=>{C(""),x.value=""},fe=async()=>{const n=o==null?void 0:o.model;if(!n||!t.prop)return;const c=k(n,t.prop);Nt(c.value,A)||(j=!0),c.value=Ie(A),await De(),D()},ft=n=>{_.value.includes(n)||_.value.push(n)},dt=n=>{_.value=_.value.filter(c=>c!==n)};P(()=>t.error,n=>{x.value=n||"",C(n?"error":"")},{immediate:!0}),P(()=>t.validateStatus,n=>C(n||""));const G=ze({...Ne(t),$el:S,size:a,validateState:u,labelId:b,inputIds:_,isGroup:V,addInputId:ft,removeInputId:dt,resetField:fe,clearValidate:D,validate:ue});return Be(J,G),Ve(()=>{t.prop&&(o==null||o.addField(G),A=Ie(ie.value))}),qe(()=>{o==null||o.removeField(G)}),r({size:a,validateMessage:x,validateState:u,validate:ue,clearValidate:D,resetField:fe}),(n,c)=>{var y;return Q(),Ue("div",{ref_key:"formItemRef",ref:S,class:E(g(f)),role:g(V)?"group":void 0,"aria-labelledby":g(V)?g(b):void 0},[z(g(To),{"is-auto-width":g(h).width==="auto","update-all":((y=g(o))==null?void 0:y.labelWidth)==="auto"},{default:Y(()=>[g($)?(Q(),St(jt(g(R)?"label":"div"),{key:0,id:g(b),for:g(R),class:E(g(s).e("label")),style:ge(g(h))},{default:Y(()=>[W(n.$slots,"label",{label:g(se)},()=>[At(pe(g(se)),1)])]),_:3},8,["id","for","class","style"])):ve("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),be("div",{class:E(g(s).e("content")),style:ge(g(w))},[W(n.$slots,"default"),z(It,{name:`${g(s).namespace.value}-zoom-in-top`},{default:Y(()=>[g(at)?W(n.$slots,"error",{key:0,error:x.value},()=>[be("div",{class:E(g(I))},pe(x.value),3)]):ve("v-if",!0)]),_:3},8,["name"])],6)],10,So)}}});var tt=Pe(jo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Eo=ht(_o,{FormItem:tt}),Lo=yt(tt);export{Lo as E,Eo as a}; +import{aa as ee,ab as ct,ac as $e,ad as Oe,ae as mt,af as ce,ag as Ce,b as Ee,d as H,ah as Le,C as We,W as Me,u as te,o as pt,T as re,_ as Pe,G as J,t as gt,K as vt,ai as bt,P as me,a3 as k,w as ht,j as yt}from"./base.4ef7f45b.js";import{D as _t,m as Z,r as O,c as v,d as oe,w as P,v as Be,W as ze,ad as Ne,a as Q,f as Ue,g as W,n as E,u as g,l as Re,E as B,o as Ve,H as qe,ak as xt,h as z,F as wt,Z as De,G as Tt,e as Y,b as St,J as At,t as pe,i as ge,q as jt,k as ve,p as be,T as It}from"./index.43b3cbf5.js";import{S as Ft}from"./index.5cf4e3bb.js";import{c as $t}from"./request.e2daed10.js";import{i as Ge,a as Ot,b as Ct,o as Et,k as Ke,g as ke,s as Lt,c as Wt,d as Mt,U as he,e as ne,n as N,f as Ye,h as Pt,S as Bt,j as zt,l as Nt}from"./isEqual.2263846a.js";var ye=Object.create,Ut=function(){function e(){}return function(r){if(!ee(r))return{};if(ye)return ye(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),Rt=Ut;function Vt(e,r){var t=-1,l=e.length;for(r||(r=Array(l));++t(_t(e)||Z(e))&&We(r)&&Z(t)};function bo(){const e=O([]),r=v(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function t(i){return e.value.indexOf(i)}function l(i,a){if(i&&a){const s=t(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=t(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:r,registerLabelWidth:l,deregisterLabelWidth:o}}const L=(e,r)=>{const t=X(r);return t.length>0?e.filter(l=>l.prop&&t.includes(l.prop)):e},ho={name:"ElForm"},yo=oe({...ho,props:go,emits:vo,setup(e,{expose:r,emit:t}){const l=e,o=[],i=Me(),a=te("form"),s=v(()=>{const{labelPosition:f,inline:m}=l;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${f}`)]:f,[a.m("inline")]:m}]}),b=f=>{o.push(f)},_=f=>{f.prop&&o.splice(o.indexOf(f),1)},u=(f=[])=>{!l.model||L(o,f).forEach(m=>m.resetField())},p=(f=[])=>{L(o,f).forEach(m=>m.clearValidate())},x=v(()=>!!l.model),S=f=>{if(o.length===0)return[];const m=L(o,f);return m.length?m:[]},A=async f=>h(void 0,f),j=async(f=[])=>{if(!x.value)return!1;const m=S(f);if(m.length===0)return!0;let I={};for(const F of m)try{await F.validate("")}catch($){I={...I,...$}}return Object.keys(I).length===0?!0:Promise.reject(I)},h=async(f=[],m)=>{const I=!Re(m);try{const F=await j(f);return F===!0&&(m==null||m(F)),F}catch(F){const $=F;return l.scrollToError&&w(Object.keys($)[0]),m==null||m(!1,$),I&&Promise.reject($)}},w=f=>{var m;const I=L(o,f)[0];I&&((m=I.$el)==null||m.scrollIntoView())};return P(()=>l.rules,()=>{l.validateOnRuleChange&&A().catch(f=>pt())},{deep:!0}),Be(re,ze({...Ne(l),emit:t,resetFields:u,clearValidate:p,validateField:h,addField:b,removeField:_,...bo()})),r({validate:A,validateField:h,resetFields:u,clearValidate:p,scrollToField:w}),(f,m)=>(Q(),Ue("form",{class:E(g(s))},[W(f.$slots,"default")],2))}});var _o=Pe(yo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const xo=["","error","validating","success"],wo=Ee({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:H([String,Array])},required:{type:Boolean,default:void 0},rules:{type:H([Object,Array])},error:String,validateStatus:{type:String,values:xo},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Le}}),Fe="ElLabelWrap";var To=oe({name:Fe,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:r}){const t=B(re,void 0);B(J)||gt(Fe,"usage: ");const o=te("form"),i=O(),a=O(0),s=()=>{var u;if((u=i.value)!=null&&u.firstElementChild){const p=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},b=(u="update")=>{De(()=>{r.default&&e.isAutoWidth&&(u==="update"?a.value=s():u==="remove"&&(t==null||t.deregisterLabelWidth(a.value)))})},_=()=>b("update");return Ve(()=>{_()}),qe(()=>{b("remove")}),xt(()=>_()),P(a,(u,p)=>{e.updateAll&&(t==null||t.registerLabelWidth(u,p))}),$t(v(()=>{var u,p;return(p=(u=i.value)==null?void 0:u.firstElementChild)!=null?p:null}),_),()=>{var u,p;if(!r)return null;const{isAutoWidth:x}=e;if(x){const S=t==null?void 0:t.autoLabelWidth,A={};if(S&&S!=="auto"){const j=Math.max(0,Number.parseInt(S,10)-a.value),h=t.labelPosition==="left"?"marginRight":"marginLeft";j&&(A[h]=`${j}px`)}return z("div",{ref:i,class:[o.be("item","label-wrap")],style:A},[(u=r.default)==null?void 0:u.call(r)])}else return z(wt,{ref:i},[(p=r.default)==null?void 0:p.call(r)])}}});const So=["role","aria-labelledby"],Ao={name:"ElFormItem"},jo=oe({...Ao,props:wo,setup(e,{expose:r}){const t=e,l=Tt(),o=B(re,void 0),i=B(J,void 0),a=Me(void 0,{formItem:!1}),s=te("form-item"),b=vt().value,_=O([]),u=O(""),p=bt(u,100),x=O(""),S=O();let A,j=!1;const h=v(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const n=me(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return n?{width:n}:{}}),w=v(()=>{if((o==null?void 0:o.labelPosition)==="top"||(o==null?void 0:o.inline))return{};if(!t.label&&!t.labelWidth&&rt)return{};const n=me(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return!t.label&&!l.label?{marginLeft:n}:{}}),f=v(()=>[s.b(),s.m(a.value),s.is("error",u.value==="error"),s.is("validating",u.value==="validating"),s.is("success",u.value==="success"),s.is("required",lt.value||t.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),{[s.m("feedback")]:o==null?void 0:o.statusIcon}]),m=v(()=>We(t.inlineMessage)?t.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),I=v(()=>[s.e("error"),{[s.em("error","inline")]:m.value}]),F=v(()=>t.prop?Z(t.prop)?t.prop:t.prop.join("."):""),$=v(()=>!!(t.label||l.label)),R=v(()=>t.for||_.value.length===1?_.value[0]:void 0),V=v(()=>!R.value&&$.value),rt=!!i,ie=v(()=>{const n=o==null?void 0:o.model;if(!(!n||!t.prop))return k(n,t.prop).value}),q=v(()=>{const n=t.rules?X(t.rules):[],c=o==null?void 0:o.rules;if(c&&t.prop){const y=k(c,t.prop).value;y&&n.push(...X(y))}return t.required!==void 0&&n.push({required:!!t.required}),n}),ot=v(()=>q.value.length>0),nt=n=>q.value.filter(y=>!y.trigger||!n?!0:Array.isArray(y.trigger)?y.trigger.includes(n):y.trigger===n).map(({trigger:y,...T})=>T),lt=v(()=>q.value.some(n=>n.required===!0)),at=v(()=>{var n;return p.value==="error"&&t.showMessage&&((n=o==null?void 0:o.showMessage)!=null?n:!0)}),se=v(()=>`${t.label||""}${(o==null?void 0:o.labelSuffix)||""}`),C=n=>{u.value=n},it=n=>{var c,y;const{errors:T,fields:K}=n;(!T||!K)&&console.error(n),C("error"),x.value=T?(y=(c=T==null?void 0:T[0])==null?void 0:c.message)!=null?y:`${t.prop} is required`:"",o==null||o.emit("validate",t.prop,!1,x.value)},st=()=>{C("success"),o==null||o.emit("validate",t.prop,!0,"")},ut=async n=>{const c=F.value;return new Ft({[c]:n}).validate({[c]:ie.value},{firstFields:!0}).then(()=>(st(),!0)).catch(T=>(it(T),Promise.reject(T)))},ue=async(n,c)=>{if(j)return j=!1,!1;const y=Re(c);if(!ot.value)return c==null||c(!1),!1;const T=nt(n);return T.length===0?(c==null||c(!0),!0):(C("validating"),ut(T).then(()=>(c==null||c(!0),!0)).catch(K=>{const{fields:de}=K;return c==null||c(!1,de),y?!1:Promise.reject(de)}))},D=()=>{C(""),x.value=""},fe=async()=>{const n=o==null?void 0:o.model;if(!n||!t.prop)return;const c=k(n,t.prop);Nt(c.value,A)||(j=!0),c.value=Ie(A),await De(),D()},ft=n=>{_.value.includes(n)||_.value.push(n)},dt=n=>{_.value=_.value.filter(c=>c!==n)};P(()=>t.error,n=>{x.value=n||"",C(n?"error":"")},{immediate:!0}),P(()=>t.validateStatus,n=>C(n||""));const G=ze({...Ne(t),$el:S,size:a,validateState:u,labelId:b,inputIds:_,isGroup:V,addInputId:ft,removeInputId:dt,resetField:fe,clearValidate:D,validate:ue});return Be(J,G),Ve(()=>{t.prop&&(o==null||o.addField(G),A=Ie(ie.value))}),qe(()=>{o==null||o.removeField(G)}),r({size:a,validateMessage:x,validateState:u,validate:ue,clearValidate:D,resetField:fe}),(n,c)=>{var y;return Q(),Ue("div",{ref_key:"formItemRef",ref:S,class:E(g(f)),role:g(V)?"group":void 0,"aria-labelledby":g(V)?g(b):void 0},[z(g(To),{"is-auto-width":g(h).width==="auto","update-all":((y=g(o))==null?void 0:y.labelWidth)==="auto"},{default:Y(()=>[g($)?(Q(),St(jt(g(R)?"label":"div"),{key:0,id:g(b),for:g(R),class:E(g(s).e("label")),style:ge(g(h))},{default:Y(()=>[W(n.$slots,"label",{label:g(se)},()=>[At(pe(g(se)),1)])]),_:3},8,["id","for","class","style"])):ve("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),be("div",{class:E(g(s).e("content")),style:ge(g(w))},[W(n.$slots,"default"),z(It,{name:`${g(s).namespace.value}-zoom-in-top`},{default:Y(()=>[g(at)?W(n.$slots,"error",{key:0,error:x.value},()=>[be("div",{class:E(g(I))},pe(x.value),3)]):ve("v-if",!0)]),_:3},8,["name"])],6)],10,So)}}});var tt=Pe(jo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Eo=ht(_o,{FormItem:tt}),Lo=yt(tt);export{Lo as E,Eo as a}; diff --git a/src/main/resources/static/assets/github.9e6677b1.js b/src/main/resources/static/assets/github.786ba170.js similarity index 99% rename from src/main/resources/static/assets/github.9e6677b1.js rename to src/main/resources/static/assets/github.786ba170.js index d1669ef..b6e1ece 100644 --- a/src/main/resources/static/assets/github.9e6677b1.js +++ b/src/main/resources/static/assets/github.786ba170.js @@ -1,4 +1,4 @@ -import{K as J,O as W}from"./index.552205f5.js";function Y(U,Z){return Z.forEach(function(b){b&&typeof b!="string"&&!Array.isArray(b)&&Object.keys(b).forEach(function(x){if(x!=="default"&&!(x in U)){var g=Object.getOwnPropertyDescriptor(b,x);Object.defineProperty(U,x,g.get?g:{enumerable:!0,get:function(){return b[x]}})}})}),Object.freeze(Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}))}var V={exports:{}};(function(U,Z){(function(b,x){U.exports=x()})(typeof self!="undefined"?self:W,function(){return function(b){var x={};function g(a){if(x[a])return x[a].exports;var t=x[a]={i:a,l:!1,exports:{}};return b[a].call(t.exports,t,t.exports,g),t.l=!0,t.exports}return g.m=b,g.c=x,g.d=function(a,t,e){g.o(a,t)||Object.defineProperty(a,t,{enumerable:!0,get:e})},g.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},g.t=function(a,t){if(1&t&&(a=g(a)),8&t||4&t&&typeof a=="object"&&a&&a.__esModule)return a;var e=Object.create(null);if(g.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:a}),2&t&&typeof a!="string")for(var r in a)g.d(e,r,function(n){return a[n]}.bind(null,r));return e},g.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return g.d(t,"a",t),t},g.o=function(a,t){return Object.prototype.hasOwnProperty.call(a,t)},g.p="",g(g.s=82)}([function(b,x,g){var a=Object.prototype.hasOwnProperty;function t(d,k){return a.call(d,k)}function e(d){return!(d>=55296&&d<=57343)&&!(d>=64976&&d<=65007)&&(65535&d)!=65535&&(65535&d)!=65534&&!(d>=0&&d<=8)&&d!==11&&!(d>=14&&d<=31)&&!(d>=127&&d<=159)&&!(d>1114111)}function r(d){if(d>65535){var k=55296+((d-=65536)>>10),y=56320+(1023&d);return String.fromCharCode(k,y)}return String.fromCharCode(d)}var n=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,o=new RegExp(n.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),i=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=g(7),l=/[&<>"]/,u=/[&<>"]/g,c={"&":"&","<":"<",">":">",'"':"""};function f(d){return c[d]}var p=/[.?*+^$[\]\\(){}|-]/g,h=g(3);x.lib={},x.lib.mdurl=g(8),x.lib.ucmicro=g(26),x.assign=function(d){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(y){if(y){if(typeof y!="object")throw new TypeError(y+"must be object");Object.keys(y).forEach(function(v){d[v]=y[v]})}}),d},x.isString=function(d){return function(k){return Object.prototype.toString.call(k)}(d)==="[object String]"},x.has=t,x.unescapeMd=function(d){return d.indexOf("\\")<0?d:d.replace(n,"$1")},x.unescapeAll=function(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(o,function(k,y,v){return y||function(_,m){var q=0;return t(s,m)?s[m]:m.charCodeAt(0)===35&&i.test(m)&&e(q=m[1].toLowerCase()==="x"?parseInt(m.slice(2),16):parseInt(m.slice(1),10))?r(q):_}(k,v)})},x.isValidEntityCode=e,x.fromCodePoint=r,x.escapeHtml=function(d){return l.test(d)?d.replace(u,f):d},x.arrayReplaceAt=function(d,k,y){return[].concat(d.slice(0,k),y,d.slice(k+1))},x.isSpace=function(d){switch(d){case 9:case 32:return!0}return!1},x.isWhiteSpace=function(d){if(d>=8192&&d<=8202)return!0;switch(d){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},x.isMdAsciiPunct=function(d){switch(d){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},x.isPunctChar=function(d){return h.test(d)},x.escapeRE=function(d){return d.replace(p,"\\$&")},x.normalizeReference=function(d){return d=d.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(d=d.replace(/ẞ/g,"\xDF")),d.toLowerCase().toUpperCase()}},function(b,x,g){function a(){return(a=Object.assign||function(t){for(var e=1;e'+d+""}}x.b=function(){var n=new t.a;return n.set({html:!0,breaks:!0,linkify:!1,typographer:!0}),n}},function(b,x){b.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(b,x,g){function a(){this.__rules__=[],this.__cache__=null}a.prototype.__find__=function(t){for(var e=0;e=0&&(r=this.attrs[e][1]),r},a.prototype.attrJoin=function(t,e){var r=this.attrIndex(t);r<0?this.attrPush([t,e]):this.attrs[r][1]=this.attrs[r][1]+" "+e},b.exports=a},function(b,x,g){const a=/[\u0000-\u001f]/g,t=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’–—<>,.?/]+/g,e=/[\u0300-\u036F]/g;b.exports=function(r){return r.normalize("NFKD").replace(e,"").replace(a,"").replace(t,"-").replace(/\-{2,}/g,"-").replace(/^\-+|\-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase()}},function(b,x,g){b.exports=g(21)},function(b,x,g){b.exports.encode=g(22),b.exports.decode=g(23),b.exports.format=g(24),b.exports.parse=g(25)},function(b,x){b.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(b,x){b.exports=/[\0-\x1F\x7F-\x9F]/},function(b,x){b.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(b,x,g){var a=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,t="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",e=new RegExp("^(?:"+a+"|"+t+"|||<[?][\\s\\S]*?[?]>|]*>|)"),r=new RegExp("^(?:"+a+"|"+t+")");b.exports.HTML_TAG_RE=e,b.exports.HTML_OPEN_CLOSE_TAG_RE=r},function(b,x,g){function a(t,e){var r,n,o,i,s,l=[],u=e.length;for(r=0;r=0;r--)(n=e[r]).marker!==95&&n.marker!==42||n.end!==-1&&(o=e[n.end],l=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===o.token+1,s=String.fromCharCode(n.marker),(i=t.tokens[n.token]).type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?s+s:s,i.content="",(i=t.tokens[o.token]).type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?s+s:s,i.content="",l&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}b.exports.tokenize=function(t,e){var r,n,o=t.pos,i=t.src.charCodeAt(o);if(e||i!==95&&i!==42)return!1;for(n=t.scanDelims(t.pos,i===42),r=0;r=0?p[h]:p[p.length+h]);var p,h;if(f===void 0)return u;for(let d in l)if(d!=="shift"&&d!=="position"){if(f[d]===void 0)return u;if(d==="children"&&r(l.children)){if(f.children.length===0)return u;let k,y=l.children,v=f.children;if(y.every(_=>_.position!==void 0)){if(k=y.every(_=>e(v,_.position,_).match),k){let _=o(y).position;u.j=_>=0?_:v.length+_}}else for(let _=0;_e(v,_,m).match),k){u.j=_;break}if(k===!1)return u}else switch(typeof l[d]){case"boolean":case"number":case"string":if(f[d]!==l[d])return u;break;case"function":if(!l[d](f[d]))return u;break;case"object":if(n(l[d])){if(l[d].every(k=>k(f[d]))===!1)return u;break}default:throw new Error(`Unknown type of pattern test (key: ${d}). Test should be of type boolean, number, string, function or array of functions.`)}}return u.match=!0,u}function r(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="object")}function n(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="function")}function o(i){return i.slice(-1)[0]||{}}b.exports=function(i,s){let l=Object.assign({},t);l=Object.assign(l,s);const u=a(l);i.core.ruler.before("linkify","curly_attributes",function(c){let f=c.tokens;for(let p=0;p{let v=e(f,p,y);return v.j!==null&&(k=v.j),v.match})&&(d.transform(f,p,k),d.name!=="inline attributes"&&d.name!=="inline nesting 0"||h--)}})}},function(b,x,g){b.exports=g(20)},function(b,x,g){g.r(x),g.d(x,"default",function(){return p});var a=g(1),t=g(15),e=g.n(t),r=function(h,d){var k=(d===void 0?{}:d).lineMarkup,y=k===void 0?"data-line":k,v=function(A,w,C,D,E){return E.renderToken(A,w,C)};function _(A){return function(w,C,D,E,S){var F=w[C];return F.attrPush([y,F.map[0]+1]),A(w,C,D,E,S)}}function m(A){return function(w,C,D,E,S){var F=A(w,C,D,E,S),L=w[C].map[0]+1;return"
'+F+"
"}}var q={table_open:_,blockquote_open:_,bullet_list_open:_,ordered_list_open:_,reference_open:_,heading_open:_,lheading_open:_,paragraph_open:_,hr:_,html_block:m,code_block:m,fence:m};Object.keys(q).forEach(function(A){var w=h.renderer.rules[A]||v;h.renderer.rules[A]=q[A](w)})},n=function(h,d){d===void 0&&(d={});var k=d.getMarks;k&&h.core.ruler.push("anchor",function(y){var v={},_=y.tokens;_.filter(function(m){return m.type==="heading_open"}).forEach(function(m){var q=_[_.indexOf(m)+1].content,A=Number(m.tag.substr(1));v[q]=q in v?Number(v[q])+1:"";var w=k(q,A,v[q]);w&&w.forEach(function(C){var D=C.attr,E=C.value;m.attrPush([D,E])})})})},o={includeLevel:[2,3],containerClass:"table-of-contents",listClass:"table-of-content-list",listItemClass:"table-of-content-list-item",markerPattern:/^\[\[toc\]\]/im,listType:"ul",getAnchorAttrs:function(){return[]},format:void 0,forceFullToc:!1,containerHeaderHtml:void 0,containerFooterHtml:void 0,transformLink:void 0},i=function(h,d){var k,y=Object(a.a)({},o,d),v=y.markerPattern;function _(m,q,A){for(var w,C,D=[],E="",S=q.length,F=m;Fw){E+=(C=_(F,q,A))[1],F=C[0];continue}if(I'+D.join("")+""];I==w&&(E+="",D.push(E))}else w=I;var B=z.children.reduce(function(j,O){return j+O.content},""),R=z.content,M=A[R]=R in A?Number(A[R])+1:"",T=y.getAnchorAttrs(R,I,M);E='
  • +import{K as J,O as W}from"./index.43b3cbf5.js";function Y(U,Z){return Z.forEach(function(b){b&&typeof b!="string"&&!Array.isArray(b)&&Object.keys(b).forEach(function(x){if(x!=="default"&&!(x in U)){var g=Object.getOwnPropertyDescriptor(b,x);Object.defineProperty(U,x,g.get?g:{enumerable:!0,get:function(){return b[x]}})}})}),Object.freeze(Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}))}var V={exports:{}};(function(U,Z){(function(b,x){U.exports=x()})(typeof self!="undefined"?self:W,function(){return function(b){var x={};function g(a){if(x[a])return x[a].exports;var t=x[a]={i:a,l:!1,exports:{}};return b[a].call(t.exports,t,t.exports,g),t.l=!0,t.exports}return g.m=b,g.c=x,g.d=function(a,t,e){g.o(a,t)||Object.defineProperty(a,t,{enumerable:!0,get:e})},g.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},g.t=function(a,t){if(1&t&&(a=g(a)),8&t||4&t&&typeof a=="object"&&a&&a.__esModule)return a;var e=Object.create(null);if(g.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:a}),2&t&&typeof a!="string")for(var r in a)g.d(e,r,function(n){return a[n]}.bind(null,r));return e},g.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return g.d(t,"a",t),t},g.o=function(a,t){return Object.prototype.hasOwnProperty.call(a,t)},g.p="",g(g.s=82)}([function(b,x,g){var a=Object.prototype.hasOwnProperty;function t(d,k){return a.call(d,k)}function e(d){return!(d>=55296&&d<=57343)&&!(d>=64976&&d<=65007)&&(65535&d)!=65535&&(65535&d)!=65534&&!(d>=0&&d<=8)&&d!==11&&!(d>=14&&d<=31)&&!(d>=127&&d<=159)&&!(d>1114111)}function r(d){if(d>65535){var k=55296+((d-=65536)>>10),y=56320+(1023&d);return String.fromCharCode(k,y)}return String.fromCharCode(d)}var n=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,o=new RegExp(n.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),i=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=g(7),l=/[&<>"]/,u=/[&<>"]/g,c={"&":"&","<":"<",">":">",'"':"""};function f(d){return c[d]}var p=/[.?*+^$[\]\\(){}|-]/g,h=g(3);x.lib={},x.lib.mdurl=g(8),x.lib.ucmicro=g(26),x.assign=function(d){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(y){if(y){if(typeof y!="object")throw new TypeError(y+"must be object");Object.keys(y).forEach(function(v){d[v]=y[v]})}}),d},x.isString=function(d){return function(k){return Object.prototype.toString.call(k)}(d)==="[object String]"},x.has=t,x.unescapeMd=function(d){return d.indexOf("\\")<0?d:d.replace(n,"$1")},x.unescapeAll=function(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(o,function(k,y,v){return y||function(_,m){var q=0;return t(s,m)?s[m]:m.charCodeAt(0)===35&&i.test(m)&&e(q=m[1].toLowerCase()==="x"?parseInt(m.slice(2),16):parseInt(m.slice(1),10))?r(q):_}(k,v)})},x.isValidEntityCode=e,x.fromCodePoint=r,x.escapeHtml=function(d){return l.test(d)?d.replace(u,f):d},x.arrayReplaceAt=function(d,k,y){return[].concat(d.slice(0,k),y,d.slice(k+1))},x.isSpace=function(d){switch(d){case 9:case 32:return!0}return!1},x.isWhiteSpace=function(d){if(d>=8192&&d<=8202)return!0;switch(d){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},x.isMdAsciiPunct=function(d){switch(d){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},x.isPunctChar=function(d){return h.test(d)},x.escapeRE=function(d){return d.replace(p,"\\$&")},x.normalizeReference=function(d){return d=d.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(d=d.replace(/ẞ/g,"\xDF")),d.toLowerCase().toUpperCase()}},function(b,x,g){function a(){return(a=Object.assign||function(t){for(var e=1;e'+d+""}}x.b=function(){var n=new t.a;return n.set({html:!0,breaks:!0,linkify:!1,typographer:!0}),n}},function(b,x){b.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(b,x,g){function a(){this.__rules__=[],this.__cache__=null}a.prototype.__find__=function(t){for(var e=0;e=0&&(r=this.attrs[e][1]),r},a.prototype.attrJoin=function(t,e){var r=this.attrIndex(t);r<0?this.attrPush([t,e]):this.attrs[r][1]=this.attrs[r][1]+" "+e},b.exports=a},function(b,x,g){const a=/[\u0000-\u001f]/g,t=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’–—<>,.?/]+/g,e=/[\u0300-\u036F]/g;b.exports=function(r){return r.normalize("NFKD").replace(e,"").replace(a,"").replace(t,"-").replace(/\-{2,}/g,"-").replace(/^\-+|\-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase()}},function(b,x,g){b.exports=g(21)},function(b,x,g){b.exports.encode=g(22),b.exports.decode=g(23),b.exports.format=g(24),b.exports.parse=g(25)},function(b,x){b.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(b,x){b.exports=/[\0-\x1F\x7F-\x9F]/},function(b,x){b.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(b,x,g){var a=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,t="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",e=new RegExp("^(?:"+a+"|"+t+"|||<[?][\\s\\S]*?[?]>|]*>|)"),r=new RegExp("^(?:"+a+"|"+t+")");b.exports.HTML_TAG_RE=e,b.exports.HTML_OPEN_CLOSE_TAG_RE=r},function(b,x,g){function a(t,e){var r,n,o,i,s,l=[],u=e.length;for(r=0;r=0;r--)(n=e[r]).marker!==95&&n.marker!==42||n.end!==-1&&(o=e[n.end],l=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===o.token+1,s=String.fromCharCode(n.marker),(i=t.tokens[n.token]).type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?s+s:s,i.content="",(i=t.tokens[o.token]).type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?s+s:s,i.content="",l&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}b.exports.tokenize=function(t,e){var r,n,o=t.pos,i=t.src.charCodeAt(o);if(e||i!==95&&i!==42)return!1;for(n=t.scanDelims(t.pos,i===42),r=0;r=0?p[h]:p[p.length+h]);var p,h;if(f===void 0)return u;for(let d in l)if(d!=="shift"&&d!=="position"){if(f[d]===void 0)return u;if(d==="children"&&r(l.children)){if(f.children.length===0)return u;let k,y=l.children,v=f.children;if(y.every(_=>_.position!==void 0)){if(k=y.every(_=>e(v,_.position,_).match),k){let _=o(y).position;u.j=_>=0?_:v.length+_}}else for(let _=0;_e(v,_,m).match),k){u.j=_;break}if(k===!1)return u}else switch(typeof l[d]){case"boolean":case"number":case"string":if(f[d]!==l[d])return u;break;case"function":if(!l[d](f[d]))return u;break;case"object":if(n(l[d])){if(l[d].every(k=>k(f[d]))===!1)return u;break}default:throw new Error(`Unknown type of pattern test (key: ${d}). Test should be of type boolean, number, string, function or array of functions.`)}}return u.match=!0,u}function r(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="object")}function n(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="function")}function o(i){return i.slice(-1)[0]||{}}b.exports=function(i,s){let l=Object.assign({},t);l=Object.assign(l,s);const u=a(l);i.core.ruler.before("linkify","curly_attributes",function(c){let f=c.tokens;for(let p=0;p{let v=e(f,p,y);return v.j!==null&&(k=v.j),v.match})&&(d.transform(f,p,k),d.name!=="inline attributes"&&d.name!=="inline nesting 0"||h--)}})}},function(b,x,g){b.exports=g(20)},function(b,x,g){g.r(x),g.d(x,"default",function(){return p});var a=g(1),t=g(15),e=g.n(t),r=function(h,d){var k=(d===void 0?{}:d).lineMarkup,y=k===void 0?"data-line":k,v=function(A,w,C,D,E){return E.renderToken(A,w,C)};function _(A){return function(w,C,D,E,S){var F=w[C];return F.attrPush([y,F.map[0]+1]),A(w,C,D,E,S)}}function m(A){return function(w,C,D,E,S){var F=A(w,C,D,E,S),L=w[C].map[0]+1;return"
    '+F+"
    "}}var q={table_open:_,blockquote_open:_,bullet_list_open:_,ordered_list_open:_,reference_open:_,heading_open:_,lheading_open:_,paragraph_open:_,hr:_,html_block:m,code_block:m,fence:m};Object.keys(q).forEach(function(A){var w=h.renderer.rules[A]||v;h.renderer.rules[A]=q[A](w)})},n=function(h,d){d===void 0&&(d={});var k=d.getMarks;k&&h.core.ruler.push("anchor",function(y){var v={},_=y.tokens;_.filter(function(m){return m.type==="heading_open"}).forEach(function(m){var q=_[_.indexOf(m)+1].content,A=Number(m.tag.substr(1));v[q]=q in v?Number(v[q])+1:"";var w=k(q,A,v[q]);w&&w.forEach(function(C){var D=C.attr,E=C.value;m.attrPush([D,E])})})})},o={includeLevel:[2,3],containerClass:"table-of-contents",listClass:"table-of-content-list",listItemClass:"table-of-content-list-item",markerPattern:/^\[\[toc\]\]/im,listType:"ul",getAnchorAttrs:function(){return[]},format:void 0,forceFullToc:!1,containerHeaderHtml:void 0,containerFooterHtml:void 0,transformLink:void 0},i=function(h,d){var k,y=Object(a.a)({},o,d),v=y.markerPattern;function _(m,q,A){for(var w,C,D=[],E="",S=q.length,F=m;Fw){E+=(C=_(F,q,A))[1],F=C[0];continue}if(I'+D.join("")+""];I==w&&(E+="
  • ",D.push(E))}else w=I;var B=z.children.reduce(function(j,O){return j+O.content},""),R=z.content,M=A[R]=R in A?Number(A[R])+1:"",T=y.getAnchorAttrs(R,I,M);E='
  • ",E+=B,E+="",F++}else F++}return E+=E===""?"":"
  • ",D.push(E),[F,"<"+y.listType+' class="'+y.listClass+'">'+D.join("")+""]}h.renderer.rules.toc_open=function(m,q){var A='
    ';return y.containerHeaderHtml&&(A+=y.containerHeaderHtml),A},h.renderer.rules.toc_close=function(m,q){var A="";return y.containerFooterHtml&&(A=y.containerFooterHtml),A+"
    "},h.renderer.rules.toc_body=function(m,q){var A={};if(y.forceFullToc){for(var w="",C=0,D=k&&k.tokens&&k.tokens.length;C
    '+L+"
    "}},_=h.renderer.rules,m=_.fence,q=_.code_block;h.renderer.rules.fence=v(m),h.renderer.rules.code_block=v(q)},l=function(h,d){var k=d.externalAttrs,y=d.openLinkIcon,v=d.openLinkIconClass,_=!1;h.renderer.rules.link_open=function(m,q,A,w,C){var D=m[q],E=D.attrIndex("href");if(E>=0){var S=D.attrs[E][1];/^https?:/.test(S)&&(Object.keys(k).forEach(function(F){D.attrSet(F,k[F])}),/_blank/i.test(k.target)&&(_=!0))}return C.renderToken(m,q,A)},h.renderer.rules.link_close=function(m,q,A,w,C){return _&&(_=!1,y)?v?''+C.renderToken(m,q,A):''+C.renderToken(m,q,A):C.renderToken(m,q,A)}},u=g(6),c=g.n(u),f=g(2);function p(h){var d=h===void 0?{}:h,k=d.toc,y=d.link,v=d.attrs,_=Object(f.b)();return _.use(l,Object(a.a)({externalAttrs:{target:"_blank"}},y)).use(s,{getWrapperClass:function(m){return"v-md-pre-wrapper v-md-pre-wrapper-"+m}}).use(e.a,Object(a.a)({leftDelimiter:"{{{",rightDelimiter:"}}}"},v,{allowedAttributes:["width","height"].concat(v==null?void 0:v.allowedAttributes)})).use(n,{getMarks:function(m,q,A){return[{attr:"data-v-md-heading",value:c()(m)+(A?"-"+A:"")}]}}).use(i,Object(a.a)({listClass:"v-md-toc",listItemClass:"v-md-toc-item",getAnchorAttrs:function(m,q,A){return[{attr:"data-v-md-anchor",value:c()(m)+(A?"-"+A:"")}]}},k)).use(r,{lineMarkup:"data-v-md-line"}),{previewClass:"markdown-body",extend:function(m){m(_)},markdownParser:_}}},function(b,x,g){const a=g(19);function t(e){return e.slice(-1)[0]}b.exports=e=>{const r=new RegExp("^ {0,3}[-*_]{3,} ?"+a.escapeRegExp(e.leftDelimiter)+"[^"+a.escapeRegExp(e.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:a.hasDelimiters("end",e)}],transform:(n,o)=>{let i=n[o],s=i.info.lastIndexOf(e.leftDelimiter),l=a.getAttrs(i.info,s,e);a.addAttrs(l,i),i.info=a.removeDelimiter(i.info,e)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:a.hasDelimiters("start",e)}]}],transform:(n,o,i)=>{let s=n[o].children[i],l=s.content.indexOf(e.rightDelimiter),u=n[o].children[i-1],c=a.getAttrs(s.content,0,e);a.addAttrs(c,u),s.content.length===l+e.rightDelimiter.length?n[o].children.splice(i,1):s.content=s.content.slice(l+e.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:a.hasDelimiters("only",e)}],transform:(n,o)=>{let i=n[o+2],s=a.getMatchingOpeningToken(n,o),l=a.getAttrs(i.content,0,e);a.addAttrs(l,s),n.splice(o+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:a.hasDelimiters("start",e)}]}],transform:(n,o,i)=>{let s=n[o].children[i],l=s.content,u=a.getAttrs(l,0,e),c=a.getMatchingOpeningToken(n[o].children,i-1);a.addAttrs(u,c),s.content=l.slice(l.indexOf(e.rightDelimiter)+e.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:a.hasDelimiters("only",e)}]}],transform:(n,o,i)=>{let s=n[o].children[i].content,l=a.getAttrs(s,0,e),u=o-2;for(;n[u-1]&&n[u-1].type!=="ordered_list_open"&&n[u-1].type!=="bullet_list_open";)u--;a.addAttrs(l,n[u-1]),n[o].children=n[o].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:a.hasDelimiters("only",e),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,o)=>{let i=n[o+2].content,s=a.getAttrs(i,0,e),l=a.getMatchingOpeningToken(n,o);a.addAttrs(s,l),n.splice(o+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:a.hasDelimiters("end",e)}]}],transform:(n,o,i)=>{let s=n[o].children[i],l=s.content,u=a.getAttrs(l,l.lastIndexOf(e.leftDelimiter),e);a.addAttrs(u,n[o-2]);let c=l.slice(0,l.lastIndexOf(e.leftDelimiter));s.content=t(c)!==" "?c:c.slice(0,-1)}},{name:` {.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:a.hasDelimiters("only",e)}]}],transform:(n,o,i)=>{let s=n[o].children[i],l=a.getAttrs(s.content,0,e),u=o+1;for(;n[u+1]&&n[u+1].nesting===-1;)u++;let c=a.getMatchingOpeningToken(n,u);a.addAttrs(l,c),n[o].children=n[o].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:n=>n.length===1,content:n=>n.match(r)!==null},{shift:2,type:"paragraph_close"}],transform:(n,o)=>{let i=n[o];i.type="hr",i.tag="hr",i.nesting=0;let s=n[o+1].content,l=s.lastIndexOf(e.leftDelimiter);i.attrs=a.getAttrs(s,l,e),i.markup=s,n.splice(o+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:a.hasDelimiters("end",e),type:n=>n!=="code_inline"}]}],transform:(n,o,i)=>{let s=n[o].children[i],l=s.content,u=a.getAttrs(l,l.lastIndexOf(e.leftDelimiter),e),c=o+1;for(;n[c+1]&&n[c+1].nesting===-1;)c++;let f=a.getMatchingOpeningToken(n,c);a.addAttrs(u,f);let p=l.slice(0,l.lastIndexOf(e.leftDelimiter));s.content=t(p)!==" "?p:p.slice(0,-1)}}]}},function(b,x,g){function a(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}x.getAttrs=function(o,i,s){const l=/[^\t\n\f />"'=]/,u=[];let c="",f="",p=!0,h=!1;for(let d=i+s.leftDelimiter.length;d=p+1:d.length>=p}(s.substring(l,u+i.rightDelimiter.length))}},x.removeDelimiter=function(o,i){const s=a(i.leftDelimiter),l=a(i.rightDelimiter);let u=new RegExp("[ \\n]?"+s+"[^"+s+l+"]+"+l+"$"),c=o.search(u);return c!==-1?o.slice(0,c):o},x.escapeRegExp=a,x.getMatchingOpeningToken=function(o,i){if(o[i].type==="softbreak")return!1;if(o[i].nesting===0)return o[i];let s=o[i].level,l=o[i].type.replace("_close","_open");for(;i>=0;--i)if(o[i].type===l&&o[i].level===s)return o[i]};let t=/[&<>"]/,e=/[&<>"]/g,r={"&":"&","<":"<",">":">",'"':"""};function n(o){return r[o]}x.escapeHtml=function(o){return t.test(o)?o.replace(e,n):o}},function(b,x,g){var a=g(0),t=g(28),e=g(32),r=g(33),n=g(41),o=g(55),i=g(68),s=g(8),l=g(70),u={default:g(73),zero:g(74),commonmark:g(75)},c=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(v){var _=v.trim().toLowerCase();return!c.test(_)||!!f.test(_)}var h=["http:","https:","mailto:"];function d(v){var _=s.parse(v,!0);if(_.hostname&&(!_.protocol||h.indexOf(_.protocol)>=0))try{_.hostname=l.toASCII(_.hostname)}catch{}return s.encode(s.format(_))}function k(v){var _=s.parse(v,!0);if(_.hostname&&(!_.protocol||h.indexOf(_.protocol)>=0))try{_.hostname=l.toUnicode(_.hostname)}catch{}return s.decode(s.format(_),s.decode.defaultChars+"%")}function y(v,_){if(!(this instanceof y))return new y(v,_);_||a.isString(v)||(_=v||{},v="default"),this.inline=new o,this.block=new n,this.core=new r,this.renderer=new e,this.linkify=new i,this.validateLink=p,this.normalizeLink=d,this.normalizeLinkText=k,this.utils=a,this.helpers=a.assign({},t),this.options={},this.configure(v),_&&this.set(_)}y.prototype.set=function(v){return a.assign(this.options,v),this},y.prototype.configure=function(v){var _,m=this;if(a.isString(v)&&!(v=u[_=v]))throw new Error('Wrong `markdown-it` preset "'+_+'", check name');if(!v)throw new Error("Wrong `markdown-it` preset, can't be empty");return v.options&&m.set(v.options),v.components&&Object.keys(v.components).forEach(function(q){v.components[q].rules&&m[q].ruler.enableOnly(v.components[q].rules),v.components[q].rules2&&m[q].ruler2.enableOnly(v.components[q].rules2)}),this},y.prototype.enable=function(v,_){var m=[];Array.isArray(v)||(v=[v]),["core","block","inline"].forEach(function(A){m=m.concat(this[A].ruler.enable(v,!0))},this),m=m.concat(this.inline.ruler2.enable(v,!0));var q=v.filter(function(A){return m.indexOf(A)<0});if(q.length&&!_)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+q);return this},y.prototype.disable=function(v,_){var m=[];Array.isArray(v)||(v=[v]),["core","block","inline"].forEach(function(A){m=m.concat(this[A].ruler.disable(v,!0))},this),m=m.concat(this.inline.ruler2.disable(v,!0));var q=v.filter(function(A){return m.indexOf(A)<0});if(q.length&&!_)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+q);return this},y.prototype.use=function(v){var _=[this].concat(Array.prototype.slice.call(arguments,1));return v.apply(v,_),this},y.prototype.parse=function(v,_){if(typeof v!="string")throw new Error("Input data should be a String");var m=new this.core.State(v,this,_);return this.core.process(m),m.tokens},y.prototype.render=function(v,_){return _=_||{},this.renderer.render(this.parse(v,_),this.options,_)},y.prototype.parseInline=function(v,_){var m=new this.core.State(v,this,_);return m.inlineMode=!0,this.core.process(m),m.tokens},y.prototype.renderInline=function(v,_){return _=_||{},this.renderer.render(this.parseInline(v,_),this.options,_)},b.exports=y},function(b){b.exports=JSON.parse('{"Aacute":"\xC1","aacute":"\xE1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223E","acd":"\u223F","acE":"\u223E\u0333","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","Acy":"\u0410","acy":"\u0430","AElig":"\xC6","aelig":"\xE6","af":"\u2061","Afr":"\u{1D504}","afr":"\u{1D51E}","Agrave":"\xC0","agrave":"\xE0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03B1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2A3F","amp":"&","AMP":"&","andand":"\u2A55","And":"\u2A53","and":"\u2227","andd":"\u2A5C","andslope":"\u2A58","andv":"\u2A5A","ang":"\u2220","ange":"\u29A4","angle":"\u2220","angmsdaa":"\u29A8","angmsdab":"\u29A9","angmsdac":"\u29AA","angmsdad":"\u29AB","angmsdae":"\u29AC","angmsdaf":"\u29AD","angmsdag":"\u29AE","angmsdah":"\u29AF","angmsd":"\u2221","angrt":"\u221F","angrtvb":"\u22BE","angrtvbd":"\u299D","angsph":"\u2222","angst":"\xC5","angzarr":"\u237C","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1D538}","aopf":"\u{1D552}","apacir":"\u2A6F","ap":"\u2248","apE":"\u2A70","ape":"\u224A","apid":"\u224B","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224A","Aring":"\xC5","aring":"\xE5","Ascr":"\u{1D49C}","ascr":"\u{1D4B6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224D","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","awconint":"\u2233","awint":"\u2A11","backcong":"\u224C","backepsilon":"\u03F6","backprime":"\u2035","backsim":"\u223D","backsimeq":"\u22CD","Backslash":"\u2216","Barv":"\u2AE7","barvee":"\u22BD","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23B5","bbrktbrk":"\u23B6","bcong":"\u224C","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201E","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29B0","bepsi":"\u03F6","bernou":"\u212C","Bernoullis":"\u212C","Beta":"\u0392","beta":"\u03B2","beth":"\u2136","between":"\u226C","Bfr":"\u{1D505}","bfr":"\u{1D51F}","bigcap":"\u22C2","bigcirc":"\u25EF","bigcup":"\u22C3","bigodot":"\u2A00","bigoplus":"\u2A01","bigotimes":"\u2A02","bigsqcup":"\u2A06","bigstar":"\u2605","bigtriangledown":"\u25BD","bigtriangleup":"\u25B3","biguplus":"\u2A04","bigvee":"\u22C1","bigwedge":"\u22C0","bkarow":"\u290D","blacklozenge":"\u29EB","blacksquare":"\u25AA","blacktriangle":"\u25B4","blacktriangledown":"\u25BE","blacktriangleleft":"\u25C2","blacktriangleright":"\u25B8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20E5","bnequiv":"\u2261\u20E5","bNot":"\u2AED","bnot":"\u2310","Bopf":"\u{1D539}","bopf":"\u{1D553}","bot":"\u22A5","bottom":"\u22A5","bowtie":"\u22C8","boxbox":"\u29C9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250C","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252C","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229F","boxplus":"\u229E","boxtimes":"\u22A0","boxul":"\u2518","boxuL":"\u255B","boxUl":"\u255C","boxUL":"\u255D","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255A","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253C","boxvH":"\u256A","boxVh":"\u256B","boxVH":"\u256C","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251C","boxvR":"\u255E","boxVr":"\u255F","boxVR":"\u2560","bprime":"\u2035","breve":"\u02D8","Breve":"\u02D8","brvbar":"\xA6","bscr":"\u{1D4B7}","Bscr":"\u212C","bsemi":"\u204F","bsim":"\u223D","bsime":"\u22CD","bsolb":"\u29C5","bsol":"\\\\","bsolhsub":"\u27C8","bull":"\u2022","bullet":"\u2022","bump":"\u224E","bumpE":"\u2AAE","bumpe":"\u224F","Bumpeq":"\u224E","bumpeq":"\u224F","Cacute":"\u0106","cacute":"\u0107","capand":"\u2A44","capbrcup":"\u2A49","capcap":"\u2A4B","cap":"\u2229","Cap":"\u22D2","capcup":"\u2A47","capdot":"\u2A40","CapitalDifferentialD":"\u2145","caps":"\u2229\uFE00","caret":"\u2041","caron":"\u02C7","Cayleys":"\u212D","ccaps":"\u2A4D","Ccaron":"\u010C","ccaron":"\u010D","Ccedil":"\xC7","ccedil":"\xE7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2A4C","ccupssm":"\u2A50","Cdot":"\u010A","cdot":"\u010B","cedil":"\xB8","Cedilla":"\xB8","cemptyv":"\u29B2","cent":"\xA2","centerdot":"\xB7","CenterDot":"\xB7","cfr":"\u{1D520}","Cfr":"\u212D","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03A7","chi":"\u03C7","circ":"\u02C6","circeq":"\u2257","circlearrowleft":"\u21BA","circlearrowright":"\u21BB","circledast":"\u229B","circledcirc":"\u229A","circleddash":"\u229D","CircleDot":"\u2299","circledR":"\xAE","circledS":"\u24C8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25CB","cirE":"\u29C3","cire":"\u2257","cirfnint":"\u2A10","cirmid":"\u2AEF","cirscir":"\u29C2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201D","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2A74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2A6D","Congruent":"\u2261","conint":"\u222E","Conint":"\u222F","ContourIntegral":"\u222E","copf":"\u{1D554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xA9","COPY":"\xA9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21B5","cross":"\u2717","Cross":"\u2A2F","Cscr":"\u{1D49E}","cscr":"\u{1D4B8}","csub":"\u2ACF","csube":"\u2AD1","csup":"\u2AD0","csupe":"\u2AD2","ctdot":"\u22EF","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22DE","cuesc":"\u22DF","cularr":"\u21B6","cularrp":"\u293D","cupbrcap":"\u2A48","cupcap":"\u2A46","CupCap":"\u224D","cup":"\u222A","Cup":"\u22D3","cupcup":"\u2A4A","cupdot":"\u228D","cupor":"\u2A45","cups":"\u222A\uFE00","curarr":"\u21B7","curarrm":"\u293C","curlyeqprec":"\u22DE","curlyeqsucc":"\u22DF","curlyvee":"\u22CE","curlywedge":"\u22CF","curren":"\xA4","curvearrowleft":"\u21B6","curvearrowright":"\u21B7","cuvee":"\u22CE","cuwed":"\u22CF","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232D","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21A1","dArr":"\u21D3","dash":"\u2010","Dashv":"\u2AE4","dashv":"\u22A3","dbkarow":"\u290F","dblac":"\u02DD","Dcaron":"\u010E","dcaron":"\u010F","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21CA","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2A77","deg":"\xB0","Del":"\u2207","Delta":"\u0394","delta":"\u03B4","demptyv":"\u29B1","dfisht":"\u297F","Dfr":"\u{1D507}","dfr":"\u{1D521}","dHar":"\u2965","dharl":"\u21C3","dharr":"\u21C2","DiacriticalAcute":"\xB4","DiacriticalDot":"\u02D9","DiacriticalDoubleAcute":"\u02DD","DiacriticalGrave":"`","DiacriticalTilde":"\u02DC","diam":"\u22C4","diamond":"\u22C4","Diamond":"\u22C4","diamondsuit":"\u2666","diams":"\u2666","die":"\xA8","DifferentialD":"\u2146","digamma":"\u03DD","disin":"\u22F2","div":"\xF7","divide":"\xF7","divideontimes":"\u22C7","divonx":"\u22C7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231E","dlcrop":"\u230D","dollar":"$","Dopf":"\u{1D53B}","dopf":"\u{1D555}","Dot":"\xA8","dot":"\u02D9","DotDot":"\u20DC","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22A1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222F","DoubleDot":"\xA8","DoubleDownArrow":"\u21D3","DoubleLeftArrow":"\u21D0","DoubleLeftRightArrow":"\u21D4","DoubleLeftTee":"\u2AE4","DoubleLongLeftArrow":"\u27F8","DoubleLongLeftRightArrow":"\u27FA","DoubleLongRightArrow":"\u27F9","DoubleRightArrow":"\u21D2","DoubleRightTee":"\u22A8","DoubleUpArrow":"\u21D1","DoubleUpDownArrow":"\u21D5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21D3","DownArrowUpArrow":"\u21F5","DownBreve":"\u0311","downdownarrows":"\u21CA","downharpoonleft":"\u21C3","downharpoonright":"\u21C2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295E","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21BD","DownRightTeeVector":"\u295F","DownRightVectorBar":"\u2957","DownRightVector":"\u21C1","DownTeeArrow":"\u21A7","DownTee":"\u22A4","drbkarow":"\u2910","drcorn":"\u231F","drcrop":"\u230C","Dscr":"\u{1D49F}","dscr":"\u{1D4B9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29F6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22F1","dtri":"\u25BF","dtrif":"\u25BE","duarr":"\u21F5","duhar":"\u296F","dwangle":"\u29A6","DZcy":"\u040F","dzcy":"\u045F","dzigrarr":"\u27FF","Eacute":"\xC9","eacute":"\xE9","easter":"\u2A6E","Ecaron":"\u011A","ecaron":"\u011B","Ecirc":"\xCA","ecirc":"\xEA","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042D","ecy":"\u044D","eDDot":"\u2A77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1D508}","efr":"\u{1D522}","eg":"\u2A9A","Egrave":"\xC8","egrave":"\xE8","egs":"\u2A96","egsdot":"\u2A98","el":"\u2A99","Element":"\u2208","elinters":"\u23E7","ell":"\u2113","els":"\u2A95","elsdot":"\u2A97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25FB","emptyv":"\u2205","EmptyVerySmallSquare":"\u25AB","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014A","eng":"\u014B","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1D53C}","eopf":"\u{1D556}","epar":"\u22D5","eparsl":"\u29E3","eplus":"\u2A71","epsi":"\u03B5","Epsilon":"\u0395","epsilon":"\u03B5","epsiv":"\u03F5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2A96","eqslantless":"\u2A95","Equal":"\u2A75","equals":"=","EqualTilde":"\u2242","equest":"\u225F","Equilibrium":"\u21CC","equiv":"\u2261","equivDD":"\u2A78","eqvparsl":"\u29E5","erarr":"\u2971","erDot":"\u2253","escr":"\u212F","Escr":"\u2130","esdot":"\u2250","Esim":"\u2A73","esim":"\u2242","Eta":"\u0397","eta":"\u03B7","ETH":"\xD0","eth":"\xF0","Euml":"\xCB","euml":"\xEB","euro":"\u20AC","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\uFB03","fflig":"\uFB00","ffllig":"\uFB04","Ffr":"\u{1D509}","ffr":"\u{1D523}","filig":"\uFB01","FilledSmallSquare":"\u25FC","FilledVerySmallSquare":"\u25AA","fjlig":"fj","flat":"\u266D","fllig":"\uFB02","fltns":"\u25B1","fnof":"\u0192","Fopf":"\u{1D53D}","fopf":"\u{1D557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22D4","forkv":"\u2AD9","Fouriertrf":"\u2131","fpartint":"\u2A0D","frac12":"\xBD","frac13":"\u2153","frac14":"\xBC","frac15":"\u2155","frac16":"\u2159","frac18":"\u215B","frac23":"\u2154","frac25":"\u2156","frac34":"\xBE","frac35":"\u2157","frac38":"\u215C","frac45":"\u2158","frac56":"\u215A","frac58":"\u215D","frac78":"\u215E","frasl":"\u2044","frown":"\u2322","fscr":"\u{1D4BB}","Fscr":"\u2131","gacute":"\u01F5","Gamma":"\u0393","gamma":"\u03B3","Gammad":"\u03DC","gammad":"\u03DD","gap":"\u2A86","Gbreve":"\u011E","gbreve":"\u011F","Gcedil":"\u0122","Gcirc":"\u011C","gcirc":"\u011D","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2A8C","gel":"\u22DB","geq":"\u2265","geqq":"\u2267","geqslant":"\u2A7E","gescc":"\u2AA9","ges":"\u2A7E","gesdot":"\u2A80","gesdoto":"\u2A82","gesdotol":"\u2A84","gesl":"\u22DB\uFE00","gesles":"\u2A94","Gfr":"\u{1D50A}","gfr":"\u{1D524}","gg":"\u226B","Gg":"\u22D9","ggg":"\u22D9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2AA5","gl":"\u2277","glE":"\u2A92","glj":"\u2AA4","gnap":"\u2A8A","gnapprox":"\u2A8A","gne":"\u2A88","gnE":"\u2269","gneq":"\u2A88","gneqq":"\u2269","gnsim":"\u22E7","Gopf":"\u{1D53E}","gopf":"\u{1D558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22DB","GreaterFullEqual":"\u2267","GreaterGreater":"\u2AA2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2A7E","GreaterTilde":"\u2273","Gscr":"\u{1D4A2}","gscr":"\u210A","gsim":"\u2273","gsime":"\u2A8E","gsiml":"\u2A90","gtcc":"\u2AA7","gtcir":"\u2A7A","gt":">","GT":">","Gt":"\u226B","gtdot":"\u22D7","gtlPar":"\u2995","gtquest":"\u2A7C","gtrapprox":"\u2A86","gtrarr":"\u2978","gtrdot":"\u22D7","gtreqless":"\u22DB","gtreqqless":"\u2A8C","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\uFE00","gvnE":"\u2269\uFE00","Hacek":"\u02C7","hairsp":"\u200A","half":"\xBD","hamilt":"\u210B","HARDcy":"\u042A","hardcy":"\u044A","harrcir":"\u2948","harr":"\u2194","hArr":"\u21D4","harrw":"\u21AD","Hat":"^","hbar":"\u210F","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22B9","hfr":"\u{1D525}","Hfr":"\u210C","HilbertSpace":"\u210B","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21FF","homtht":"\u223B","hookleftarrow":"\u21A9","hookrightarrow":"\u21AA","hopf":"\u{1D559}","Hopf":"\u210D","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1D4BD}","Hscr":"\u210B","hslash":"\u210F","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224E","HumpEqual":"\u224F","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xCD","iacute":"\xED","ic":"\u2063","Icirc":"\xCE","icirc":"\xEE","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xA1","iff":"\u21D4","ifr":"\u{1D526}","Ifr":"\u2111","Igrave":"\xCC","igrave":"\xEC","ii":"\u2148","iiiint":"\u2A0C","iiint":"\u222D","iinfin":"\u29DC","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012A","imacr":"\u012B","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22B7","imped":"\u01B5","Implies":"\u21D2","incare":"\u2105","in":"\u2208","infin":"\u221E","infintie":"\u29DD","inodot":"\u0131","intcal":"\u22BA","int":"\u222B","Int":"\u222C","integers":"\u2124","Integral":"\u222B","intercal":"\u22BA","Intersection":"\u22C2","intlarhk":"\u2A17","intprod":"\u2A3C","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012E","iogon":"\u012F","Iopf":"\u{1D540}","iopf":"\u{1D55A}","Iota":"\u0399","iota":"\u03B9","iprod":"\u2A3C","iquest":"\xBF","iscr":"\u{1D4BE}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22F5","isinE":"\u22F9","isins":"\u22F4","isinsv":"\u22F3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xCF","iuml":"\xEF","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1D50D}","jfr":"\u{1D527}","jmath":"\u0237","Jopf":"\u{1D541}","jopf":"\u{1D55B}","Jscr":"\u{1D4A5}","jscr":"\u{1D4BF}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039A","kappa":"\u03BA","kappav":"\u03F0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041A","kcy":"\u043A","Kfr":"\u{1D50E}","kfr":"\u{1D528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040C","kjcy":"\u045C","Kopf":"\u{1D542}","kopf":"\u{1D55C}","Kscr":"\u{1D4A6}","kscr":"\u{1D4C0}","lAarr":"\u21DA","Lacute":"\u0139","lacute":"\u013A","laemptyv":"\u29B4","lagran":"\u2112","Lambda":"\u039B","lambda":"\u03BB","lang":"\u27E8","Lang":"\u27EA","langd":"\u2991","langle":"\u27E8","lap":"\u2A85","Laplacetrf":"\u2112","laquo":"\xAB","larrb":"\u21E4","larrbfs":"\u291F","larr":"\u2190","Larr":"\u219E","lArr":"\u21D0","larrfs":"\u291D","larrhk":"\u21A9","larrlp":"\u21AB","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21A2","latail":"\u2919","lAtail":"\u291B","lat":"\u2AAB","late":"\u2AAD","lates":"\u2AAD\uFE00","lbarr":"\u290C","lBarr":"\u290E","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298B","lbrksld":"\u298F","lbrkslu":"\u298D","Lcaron":"\u013D","lcaron":"\u013E","Lcedil":"\u013B","lcedil":"\u013C","lceil":"\u2308","lcub":"{","Lcy":"\u041B","lcy":"\u043B","ldca":"\u2936","ldquo":"\u201C","ldquor":"\u201E","ldrdhar":"\u2967","ldrushar":"\u294B","ldsh":"\u21B2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27E8","LeftArrowBar":"\u21E4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21D0","LeftArrowRightArrow":"\u21C6","leftarrowtail":"\u21A2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27E6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21C3","LeftFloor":"\u230A","leftharpoondown":"\u21BD","leftharpoonup":"\u21BC","leftleftarrows":"\u21C7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21D4","leftrightarrows":"\u21C6","leftrightharpoons":"\u21CB","leftrightsquigarrow":"\u21AD","LeftRightVector":"\u294E","LeftTeeArrow":"\u21A4","LeftTee":"\u22A3","LeftTeeVector":"\u295A","leftthreetimes":"\u22CB","LeftTriangleBar":"\u29CF","LeftTriangle":"\u22B2","LeftTriangleEqual":"\u22B4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21BF","LeftVectorBar":"\u2952","LeftVector":"\u21BC","lEg":"\u2A8B","leg":"\u22DA","leq":"\u2264","leqq":"\u2266","leqslant":"\u2A7D","lescc":"\u2AA8","les":"\u2A7D","lesdot":"\u2A7F","lesdoto":"\u2A81","lesdotor":"\u2A83","lesg":"\u22DA\uFE00","lesges":"\u2A93","lessapprox":"\u2A85","lessdot":"\u22D6","lesseqgtr":"\u22DA","lesseqqgtr":"\u2A8B","LessEqualGreater":"\u22DA","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2AA1","lesssim":"\u2272","LessSlantEqual":"\u2A7D","LessTilde":"\u2272","lfisht":"\u297C","lfloor":"\u230A","Lfr":"\u{1D50F}","lfr":"\u{1D529}","lg":"\u2276","lgE":"\u2A91","lHar":"\u2962","lhard":"\u21BD","lharu":"\u21BC","lharul":"\u296A","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21C7","ll":"\u226A","Ll":"\u22D8","llcorner":"\u231E","Lleftarrow":"\u21DA","llhard":"\u296B","lltri":"\u25FA","Lmidot":"\u013F","lmidot":"\u0140","lmoustache":"\u23B0","lmoust":"\u23B0","lnap":"\u2A89","lnapprox":"\u2A89","lne":"\u2A87","lnE":"\u2268","lneq":"\u2A87","lneqq":"\u2268","lnsim":"\u22E6","loang":"\u27EC","loarr":"\u21FD","lobrk":"\u27E6","longleftarrow":"\u27F5","LongLeftArrow":"\u27F5","Longleftarrow":"\u27F8","longleftrightarrow":"\u27F7","LongLeftRightArrow":"\u27F7","Longleftrightarrow":"\u27FA","longmapsto":"\u27FC","longrightarrow":"\u27F6","LongRightArrow":"\u27F6","Longrightarrow":"\u27F9","looparrowleft":"\u21AB","looparrowright":"\u21AC","lopar":"\u2985","Lopf":"\u{1D543}","lopf":"\u{1D55D}","loplus":"\u2A2D","lotimes":"\u2A34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25CA","lozenge":"\u25CA","lozf":"\u29EB","lpar":"(","lparlt":"\u2993","lrarr":"\u21C6","lrcorner":"\u231F","lrhar":"\u21CB","lrhard":"\u296D","lrm":"\u200E","lrtri":"\u22BF","lsaquo":"\u2039","lscr":"\u{1D4C1}","Lscr":"\u2112","lsh":"\u21B0","Lsh":"\u21B0","lsim":"\u2272","lsime":"\u2A8D","lsimg":"\u2A8F","lsqb":"[","lsquo":"\u2018","lsquor":"\u201A","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2AA6","ltcir":"\u2A79","lt":"<","LT":"<","Lt":"\u226A","ltdot":"\u22D6","lthree":"\u22CB","ltimes":"\u22C9","ltlarr":"\u2976","ltquest":"\u2A7B","ltri":"\u25C3","ltrie":"\u22B4","ltrif":"\u25C2","ltrPar":"\u2996","lurdshar":"\u294A","luruhar":"\u2966","lvertneqq":"\u2268\uFE00","lvnE":"\u2268\uFE00","macr":"\xAF","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21A6","mapsto":"\u21A6","mapstodown":"\u21A7","mapstoleft":"\u21A4","mapstoup":"\u21A5","marker":"\u25AE","mcomma":"\u2A29","Mcy":"\u041C","mcy":"\u043C","mdash":"\u2014","mDDot":"\u223A","measuredangle":"\u2221","MediumSpace":"\u205F","Mellintrf":"\u2133","Mfr":"\u{1D510}","mfr":"\u{1D52A}","mho":"\u2127","micro":"\xB5","midast":"*","midcir":"\u2AF0","mid":"\u2223","middot":"\xB7","minusb":"\u229F","minus":"\u2212","minusd":"\u2238","minusdu":"\u2A2A","MinusPlus":"\u2213","mlcp":"\u2ADB","mldr":"\u2026","mnplus":"\u2213","models":"\u22A7","Mopf":"\u{1D544}","mopf":"\u{1D55E}","mp":"\u2213","mscr":"\u{1D4C2}","Mscr":"\u2133","mstpos":"\u223E","Mu":"\u039C","mu":"\u03BC","multimap":"\u22B8","mumap":"\u22B8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20D2","nap":"\u2249","napE":"\u2A70\u0338","napid":"\u224B\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266E","naturals":"\u2115","natur":"\u266E","nbsp":"\xA0","nbump":"\u224E\u0338","nbumpe":"\u224F\u0338","ncap":"\u2A43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2A6D\u0338","ncup":"\u2A42","Ncy":"\u041D","ncy":"\u043D","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21D7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200B","NegativeThickSpace":"\u200B","NegativeThinSpace":"\u200B","NegativeVeryThinSpace":"\u200B","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226B","NestedLessLess":"\u226A","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1D511}","nfr":"\u{1D52B}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2A7E\u0338","nges":"\u2A7E\u0338","nGg":"\u22D9\u0338","ngsim":"\u2275","nGt":"\u226B\u20D2","ngt":"\u226F","ngtr":"\u226F","nGtv":"\u226B\u0338","nharr":"\u21AE","nhArr":"\u21CE","nhpar":"\u2AF2","ni":"\u220B","nis":"\u22FC","nisd":"\u22FA","niv":"\u220B","NJcy":"\u040A","njcy":"\u045A","nlarr":"\u219A","nlArr":"\u21CD","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219A","nLeftarrow":"\u21CD","nleftrightarrow":"\u21AE","nLeftrightarrow":"\u21CE","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2A7D\u0338","nles":"\u2A7D\u0338","nless":"\u226E","nLl":"\u22D8\u0338","nlsim":"\u2274","nLt":"\u226A\u20D2","nlt":"\u226E","nltri":"\u22EA","nltrie":"\u22EC","nLtv":"\u226A\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xA0","nopf":"\u{1D55F}","Nopf":"\u2115","Not":"\u2AEC","not":"\xAC","NotCongruent":"\u2262","NotCupCap":"\u226D","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226F","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226B\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2A7E\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224E\u0338","NotHumpEqual":"\u224F\u0338","notin":"\u2209","notindot":"\u22F5\u0338","notinE":"\u22F9\u0338","notinva":"\u2209","notinvb":"\u22F7","notinvc":"\u22F6","NotLeftTriangleBar":"\u29CF\u0338","NotLeftTriangle":"\u22EA","NotLeftTriangleEqual":"\u22EC","NotLess":"\u226E","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226A\u0338","NotLessSlantEqual":"\u2A7D\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2AA2\u0338","NotNestedLessLess":"\u2AA1\u0338","notni":"\u220C","notniva":"\u220C","notnivb":"\u22FE","notnivc":"\u22FD","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2AAF\u0338","NotPrecedesSlantEqual":"\u22E0","NotReverseElement":"\u220C","NotRightTriangleBar":"\u29D0\u0338","NotRightTriangle":"\u22EB","NotRightTriangleEqual":"\u22ED","NotSquareSubset":"\u228F\u0338","NotSquareSubsetEqual":"\u22E2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22E3","NotSubset":"\u2282\u20D2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2AB0\u0338","NotSucceedsSlantEqual":"\u22E1","NotSucceedsTilde":"\u227F\u0338","NotSuperset":"\u2283\u20D2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2AFD\u20E5","npart":"\u2202\u0338","npolint":"\u2A14","npr":"\u2280","nprcue":"\u22E0","nprec":"\u2280","npreceq":"\u2AAF\u0338","npre":"\u2AAF\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219B","nrArr":"\u21CF","nrarrw":"\u219D\u0338","nrightarrow":"\u219B","nRightarrow":"\u21CF","nrtri":"\u22EB","nrtrie":"\u22ED","nsc":"\u2281","nsccue":"\u22E1","nsce":"\u2AB0\u0338","Nscr":"\u{1D4A9}","nscr":"\u{1D4C3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22E2","nsqsupe":"\u22E3","nsub":"\u2284","nsubE":"\u2AC5\u0338","nsube":"\u2288","nsubset":"\u2282\u20D2","nsubseteq":"\u2288","nsubseteqq":"\u2AC5\u0338","nsucc":"\u2281","nsucceq":"\u2AB0\u0338","nsup":"\u2285","nsupE":"\u2AC6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20D2","nsupseteq":"\u2289","nsupseteqq":"\u2AC6\u0338","ntgl":"\u2279","Ntilde":"\xD1","ntilde":"\xF1","ntlg":"\u2278","ntriangleleft":"\u22EA","ntrianglelefteq":"\u22EC","ntriangleright":"\u22EB","ntrianglerighteq":"\u22ED","Nu":"\u039D","nu":"\u03BD","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224D\u20D2","nvdash":"\u22AC","nvDash":"\u22AD","nVdash":"\u22AE","nVDash":"\u22AF","nvge":"\u2265\u20D2","nvgt":">\u20D2","nvHarr":"\u2904","nvinfin":"\u29DE","nvlArr":"\u2902","nvle":"\u2264\u20D2","nvlt":"<\u20D2","nvltrie":"\u22B4\u20D2","nvrArr":"\u2903","nvrtrie":"\u22B5\u20D2","nvsim":"\u223C\u20D2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21D6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xD3","oacute":"\xF3","oast":"\u229B","Ocirc":"\xD4","ocirc":"\xF4","ocir":"\u229A","Ocy":"\u041E","ocy":"\u043E","odash":"\u229D","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2A38","odot":"\u2299","odsold":"\u29BC","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29BF","Ofr":"\u{1D512}","ofr":"\u{1D52C}","ogon":"\u02DB","Ograve":"\xD2","ograve":"\xF2","ogt":"\u29C1","ohbar":"\u29B5","ohm":"\u03A9","oint":"\u222E","olarr":"\u21BA","olcir":"\u29BE","olcross":"\u29BB","oline":"\u203E","olt":"\u29C0","Omacr":"\u014C","omacr":"\u014D","Omega":"\u03A9","omega":"\u03C9","Omicron":"\u039F","omicron":"\u03BF","omid":"\u29B6","ominus":"\u2296","Oopf":"\u{1D546}","oopf":"\u{1D560}","opar":"\u29B7","OpenCurlyDoubleQuote":"\u201C","OpenCurlyQuote":"\u2018","operp":"\u29B9","oplus":"\u2295","orarr":"\u21BB","Or":"\u2A54","or":"\u2228","ord":"\u2A5D","order":"\u2134","orderof":"\u2134","ordf":"\xAA","ordm":"\xBA","origof":"\u22B6","oror":"\u2A56","orslope":"\u2A57","orv":"\u2A5B","oS":"\u24C8","Oscr":"\u{1D4AA}","oscr":"\u2134","Oslash":"\xD8","oslash":"\xF8","osol":"\u2298","Otilde":"\xD5","otilde":"\xF5","otimesas":"\u2A36","Otimes":"\u2A37","otimes":"\u2297","Ouml":"\xD6","ouml":"\xF6","ovbar":"\u233D","OverBar":"\u203E","OverBrace":"\u23DE","OverBracket":"\u23B4","OverParenthesis":"\u23DC","para":"\xB6","parallel":"\u2225","par":"\u2225","parsim":"\u2AF3","parsl":"\u2AFD","part":"\u2202","PartialD":"\u2202","Pcy":"\u041F","pcy":"\u043F","percnt":"%","period":".","permil":"\u2030","perp":"\u22A5","pertenk":"\u2031","Pfr":"\u{1D513}","pfr":"\u{1D52D}","Phi":"\u03A6","phi":"\u03C6","phiv":"\u03D5","phmmat":"\u2133","phone":"\u260E","Pi":"\u03A0","pi":"\u03C0","pitchfork":"\u22D4","piv":"\u03D6","planck":"\u210F","planckh":"\u210E","plankv":"\u210F","plusacir":"\u2A23","plusb":"\u229E","pluscir":"\u2A22","plus":"+","plusdo":"\u2214","plusdu":"\u2A25","pluse":"\u2A72","PlusMinus":"\xB1","plusmn":"\xB1","plussim":"\u2A26","plustwo":"\u2A27","pm":"\xB1","Poincareplane":"\u210C","pointint":"\u2A15","popf":"\u{1D561}","Popf":"\u2119","pound":"\xA3","prap":"\u2AB7","Pr":"\u2ABB","pr":"\u227A","prcue":"\u227C","precapprox":"\u2AB7","prec":"\u227A","preccurlyeq":"\u227C","Precedes":"\u227A","PrecedesEqual":"\u2AAF","PrecedesSlantEqual":"\u227C","PrecedesTilde":"\u227E","preceq":"\u2AAF","precnapprox":"\u2AB9","precneqq":"\u2AB5","precnsim":"\u22E8","pre":"\u2AAF","prE":"\u2AB3","precsim":"\u227E","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2AB9","prnE":"\u2AB5","prnsim":"\u22E8","prod":"\u220F","Product":"\u220F","profalar":"\u232E","profline":"\u2312","profsurf":"\u2313","prop":"\u221D","Proportional":"\u221D","Proportion":"\u2237","propto":"\u221D","prsim":"\u227E","prurel":"\u22B0","Pscr":"\u{1D4AB}","pscr":"\u{1D4C5}","Psi":"\u03A8","psi":"\u03C8","puncsp":"\u2008","Qfr":"\u{1D514}","qfr":"\u{1D52E}","qint":"\u2A0C","qopf":"\u{1D562}","Qopf":"\u211A","qprime":"\u2057","Qscr":"\u{1D4AC}","qscr":"\u{1D4C6}","quaternions":"\u210D","quatint":"\u2A16","quest":"?","questeq":"\u225F","quot":"\\"","QUOT":"\\"","rAarr":"\u21DB","race":"\u223D\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221A","raemptyv":"\u29B3","rang":"\u27E9","Rang":"\u27EB","rangd":"\u2992","range":"\u29A5","rangle":"\u27E9","raquo":"\xBB","rarrap":"\u2975","rarrb":"\u21E5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21A0","rArr":"\u21D2","rarrfs":"\u291E","rarrhk":"\u21AA","rarrlp":"\u21AC","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21A3","rarrw":"\u219D","ratail":"\u291A","rAtail":"\u291C","ratio":"\u2236","rationals":"\u211A","rbarr":"\u290D","rBarr":"\u290F","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298C","rbrksld":"\u298E","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201D","rdquor":"\u201D","rdsh":"\u21B3","real":"\u211C","realine":"\u211B","realpart":"\u211C","reals":"\u211D","Re":"\u211C","rect":"\u25AD","reg":"\xAE","REG":"\xAE","ReverseElement":"\u220B","ReverseEquilibrium":"\u21CB","ReverseUpEquilibrium":"\u296F","rfisht":"\u297D","rfloor":"\u230B","rfr":"\u{1D52F}","Rfr":"\u211C","rHar":"\u2964","rhard":"\u21C1","rharu":"\u21C0","rharul":"\u296C","Rho":"\u03A1","rho":"\u03C1","rhov":"\u03F1","RightAngleBracket":"\u27E9","RightArrowBar":"\u21E5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21D2","RightArrowLeftArrow":"\u21C4","rightarrowtail":"\u21A3","RightCeiling":"\u2309","RightDoubleBracket":"\u27E7","RightDownTeeVector":"\u295D","RightDownVectorBar":"\u2955","RightDownVector":"\u21C2","RightFloor":"\u230B","rightharpoondown":"\u21C1","rightharpoonup":"\u21C0","rightleftarrows":"\u21C4","rightleftharpoons":"\u21CC","rightrightarrows":"\u21C9","rightsquigarrow":"\u219D","RightTeeArrow":"\u21A6","RightTee":"\u22A2","RightTeeVector":"\u295B","rightthreetimes":"\u22CC","RightTriangleBar":"\u29D0","RightTriangle":"\u22B3","RightTriangleEqual":"\u22B5","RightUpDownVector":"\u294F","RightUpTeeVector":"\u295C","RightUpVectorBar":"\u2954","RightUpVector":"\u21BE","RightVectorBar":"\u2953","RightVector":"\u21C0","ring":"\u02DA","risingdotseq":"\u2253","rlarr":"\u21C4","rlhar":"\u21CC","rlm":"\u200F","rmoustache":"\u23B1","rmoust":"\u23B1","rnmid":"\u2AEE","roang":"\u27ED","roarr":"\u21FE","robrk":"\u27E7","ropar":"\u2986","ropf":"\u{1D563}","Ropf":"\u211D","roplus":"\u2A2E","rotimes":"\u2A35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2A12","rrarr":"\u21C9","Rrightarrow":"\u21DB","rsaquo":"\u203A","rscr":"\u{1D4C7}","Rscr":"\u211B","rsh":"\u21B1","Rsh":"\u21B1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22CC","rtimes":"\u22CA","rtri":"\u25B9","rtrie":"\u22B5","rtrif":"\u25B8","rtriltri":"\u29CE","RuleDelayed":"\u29F4","ruluhar":"\u2968","rx":"\u211E","Sacute":"\u015A","sacute":"\u015B","sbquo":"\u201A","scap":"\u2AB8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2ABC","sc":"\u227B","sccue":"\u227D","sce":"\u2AB0","scE":"\u2AB4","Scedil":"\u015E","scedil":"\u015F","Scirc":"\u015C","scirc":"\u015D","scnap":"\u2ABA","scnE":"\u2AB6","scnsim":"\u22E9","scpolint":"\u2A13","scsim":"\u227F","Scy":"\u0421","scy":"\u0441","sdotb":"\u22A1","sdot":"\u22C5","sdote":"\u2A66","searhk":"\u2925","searr":"\u2198","seArr":"\u21D8","searrow":"\u2198","sect":"\xA7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1D516}","sfr":"\u{1D530}","sfrown":"\u2322","sharp":"\u266F","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xAD","Sigma":"\u03A3","sigma":"\u03C3","sigmaf":"\u03C2","sigmav":"\u03C2","sim":"\u223C","simdot":"\u2A6A","sime":"\u2243","simeq":"\u2243","simg":"\u2A9E","simgE":"\u2AA0","siml":"\u2A9D","simlE":"\u2A9F","simne":"\u2246","simplus":"\u2A24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2A33","smeparsl":"\u29E4","smid":"\u2223","smile":"\u2323","smt":"\u2AAA","smte":"\u2AAC","smtes":"\u2AAC\uFE00","SOFTcy":"\u042C","softcy":"\u044C","solbar":"\u233F","solb":"\u29C4","sol":"/","Sopf":"\u{1D54A}","sopf":"\u{1D564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\uFE00","sqcup":"\u2294","sqcups":"\u2294\uFE00","Sqrt":"\u221A","sqsub":"\u228F","sqsube":"\u2291","sqsubset":"\u228F","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25A1","Square":"\u25A1","SquareIntersection":"\u2293","SquareSubset":"\u228F","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25AA","squ":"\u25A1","squf":"\u25AA","srarr":"\u2192","Sscr":"\u{1D4AE}","sscr":"\u{1D4C8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22C6","Star":"\u22C6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03F5","straightphi":"\u03D5","strns":"\xAF","sub":"\u2282","Sub":"\u22D0","subdot":"\u2ABD","subE":"\u2AC5","sube":"\u2286","subedot":"\u2AC3","submult":"\u2AC1","subnE":"\u2ACB","subne":"\u228A","subplus":"\u2ABF","subrarr":"\u2979","subset":"\u2282","Subset":"\u22D0","subseteq":"\u2286","subseteqq":"\u2AC5","SubsetEqual":"\u2286","subsetneq":"\u228A","subsetneqq":"\u2ACB","subsim":"\u2AC7","subsub":"\u2AD5","subsup":"\u2AD3","succapprox":"\u2AB8","succ":"\u227B","succcurlyeq":"\u227D","Succeeds":"\u227B","SucceedsEqual":"\u2AB0","SucceedsSlantEqual":"\u227D","SucceedsTilde":"\u227F","succeq":"\u2AB0","succnapprox":"\u2ABA","succneqq":"\u2AB6","succnsim":"\u22E9","succsim":"\u227F","SuchThat":"\u220B","sum":"\u2211","Sum":"\u2211","sung":"\u266A","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","sup":"\u2283","Sup":"\u22D1","supdot":"\u2ABE","supdsub":"\u2AD8","supE":"\u2AC6","supe":"\u2287","supedot":"\u2AC4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27C9","suphsub":"\u2AD7","suplarr":"\u297B","supmult":"\u2AC2","supnE":"\u2ACC","supne":"\u228B","supplus":"\u2AC0","supset":"\u2283","Supset":"\u22D1","supseteq":"\u2287","supseteqq":"\u2AC6","supsetneq":"\u228B","supsetneqq":"\u2ACC","supsim":"\u2AC8","supsub":"\u2AD4","supsup":"\u2AD6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21D9","swarrow":"\u2199","swnwar":"\u292A","szlig":"\xDF","Tab":"\\t","target":"\u2316","Tau":"\u03A4","tau":"\u03C4","tbrk":"\u23B4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20DB","telrec":"\u2315","Tfr":"\u{1D517}","tfr":"\u{1D531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03B8","thetasym":"\u03D1","thetav":"\u03D1","thickapprox":"\u2248","thicksim":"\u223C","ThickSpace":"\u205F\u200A","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223C","THORN":"\xDE","thorn":"\xFE","tilde":"\u02DC","Tilde":"\u223C","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2A31","timesb":"\u22A0","times":"\xD7","timesd":"\u2A30","tint":"\u222D","toea":"\u2928","topbot":"\u2336","topcir":"\u2AF1","top":"\u22A4","Topf":"\u{1D54B}","topf":"\u{1D565}","topfork":"\u2ADA","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25B5","triangledown":"\u25BF","triangleleft":"\u25C3","trianglelefteq":"\u22B4","triangleq":"\u225C","triangleright":"\u25B9","trianglerighteq":"\u22B5","tridot":"\u25EC","trie":"\u225C","triminus":"\u2A3A","TripleDot":"\u20DB","triplus":"\u2A39","trisb":"\u29CD","tritime":"\u2A3B","trpezium":"\u23E2","Tscr":"\u{1D4AF}","tscr":"\u{1D4C9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040B","tshcy":"\u045B","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226C","twoheadleftarrow":"\u219E","twoheadrightarrow":"\u21A0","Uacute":"\xDA","uacute":"\xFA","uarr":"\u2191","Uarr":"\u219F","uArr":"\u21D1","Uarrocir":"\u2949","Ubrcy":"\u040E","ubrcy":"\u045E","Ubreve":"\u016C","ubreve":"\u016D","Ucirc":"\xDB","ucirc":"\xFB","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21C5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296E","ufisht":"\u297E","Ufr":"\u{1D518}","ufr":"\u{1D532}","Ugrave":"\xD9","ugrave":"\xF9","uHar":"\u2963","uharl":"\u21BF","uharr":"\u21BE","uhblk":"\u2580","ulcorn":"\u231C","ulcorner":"\u231C","ulcrop":"\u230F","ultri":"\u25F8","Umacr":"\u016A","umacr":"\u016B","uml":"\xA8","UnderBar":"_","UnderBrace":"\u23DF","UnderBracket":"\u23B5","UnderParenthesis":"\u23DD","Union":"\u22C3","UnionPlus":"\u228E","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1D54C}","uopf":"\u{1D566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21D1","UpArrowDownArrow":"\u21C5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21D5","UpEquilibrium":"\u296E","upharpoonleft":"\u21BF","upharpoonright":"\u21BE","uplus":"\u228E","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03C5","Upsi":"\u03D2","upsih":"\u03D2","Upsilon":"\u03A5","upsilon":"\u03C5","UpTeeArrow":"\u21A5","UpTee":"\u22A5","upuparrows":"\u21C8","urcorn":"\u231D","urcorner":"\u231D","urcrop":"\u230E","Uring":"\u016E","uring":"\u016F","urtri":"\u25F9","Uscr":"\u{1D4B0}","uscr":"\u{1D4CA}","utdot":"\u22F0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25B5","utrif":"\u25B4","uuarr":"\u21C8","Uuml":"\xDC","uuml":"\xFC","uwangle":"\u29A7","vangrt":"\u299C","varepsilon":"\u03F5","varkappa":"\u03F0","varnothing":"\u2205","varphi":"\u03D5","varpi":"\u03D6","varpropto":"\u221D","varr":"\u2195","vArr":"\u21D5","varrho":"\u03F1","varsigma":"\u03C2","varsubsetneq":"\u228A\uFE00","varsubsetneqq":"\u2ACB\uFE00","varsupsetneq":"\u228B\uFE00","varsupsetneqq":"\u2ACC\uFE00","vartheta":"\u03D1","vartriangleleft":"\u22B2","vartriangleright":"\u22B3","vBar":"\u2AE8","Vbar":"\u2AEB","vBarv":"\u2AE9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22A2","vDash":"\u22A8","Vdash":"\u22A9","VDash":"\u22AB","Vdashl":"\u2AE6","veebar":"\u22BB","vee":"\u2228","Vee":"\u22C1","veeeq":"\u225A","vellip":"\u22EE","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200A","Vfr":"\u{1D519}","vfr":"\u{1D533}","vltri":"\u22B2","vnsub":"\u2282\u20D2","vnsup":"\u2283\u20D2","Vopf":"\u{1D54D}","vopf":"\u{1D567}","vprop":"\u221D","vrtri":"\u22B3","Vscr":"\u{1D4B1}","vscr":"\u{1D4CB}","vsubnE":"\u2ACB\uFE00","vsubne":"\u228A\uFE00","vsupnE":"\u2ACC\uFE00","vsupne":"\u228B\uFE00","Vvdash":"\u22AA","vzigzag":"\u299A","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2A5F","wedge":"\u2227","Wedge":"\u22C0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1D51A}","wfr":"\u{1D534}","Wopf":"\u{1D54E}","wopf":"\u{1D568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1D4B2}","wscr":"\u{1D4CC}","xcap":"\u22C2","xcirc":"\u25EF","xcup":"\u22C3","xdtri":"\u25BD","Xfr":"\u{1D51B}","xfr":"\u{1D535}","xharr":"\u27F7","xhArr":"\u27FA","Xi":"\u039E","xi":"\u03BE","xlarr":"\u27F5","xlArr":"\u27F8","xmap":"\u27FC","xnis":"\u22FB","xodot":"\u2A00","Xopf":"\u{1D54F}","xopf":"\u{1D569}","xoplus":"\u2A01","xotime":"\u2A02","xrarr":"\u27F6","xrArr":"\u27F9","Xscr":"\u{1D4B3}","xscr":"\u{1D4CD}","xsqcup":"\u2A06","xuplus":"\u2A04","xutri":"\u25B3","xvee":"\u22C1","xwedge":"\u22C0","Yacute":"\xDD","yacute":"\xFD","YAcy":"\u042F","yacy":"\u044F","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042B","ycy":"\u044B","yen":"\xA5","Yfr":"\u{1D51C}","yfr":"\u{1D536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1D550}","yopf":"\u{1D56A}","Yscr":"\u{1D4B4}","yscr":"\u{1D4CE}","YUcy":"\u042E","yucy":"\u044E","yuml":"\xFF","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017A","Zcaron":"\u017D","zcaron":"\u017E","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017B","zdot":"\u017C","zeetrf":"\u2128","ZeroWidthSpace":"\u200B","Zeta":"\u0396","zeta":"\u03B6","zfr":"\u{1D537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21DD","zopf":"\u{1D56B}","Zopf":"\u2124","Zscr":"\u{1D4B5}","zscr":"\u{1D4CF}","zwj":"\u200D","zwnj":"\u200C"}')},function(b,x,g){var a={};function t(e,r,n){var o,i,s,l,u,c="";for(typeof r!="string"&&(n=r,r=t.defaultChars),n===void 0&&(n=!0),u=function(f){var p,h,d=a[f];if(d)return d;for(d=a[f]=[],p=0;p<128;p++)h=String.fromCharCode(p),/^[0-9a-z]$/i.test(h)?d.push(h):d.push("%"+("0"+p.toString(16).toUpperCase()).slice(-2));for(p=0;p=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",b.exports=t},function(b,x,g){var a={};function t(e,r){var n;return typeof r!="string"&&(r=t.defaultChars),n=function(o){var i,s,l=a[o];if(l)return l;for(l=a[o]=[],i=0;i<128;i++)s=String.fromCharCode(i),l.push(s);for(i=0;i=55296&&p<=57343?"\uFFFD\uFFFD\uFFFD":String.fromCharCode(p),i+=6):(248&l)==240&&i+91114111?h+="\uFFFD\uFFFD\uFFFD\uFFFD":(p-=65536,h+=String.fromCharCode(55296+(p>>10),56320+(1023&p))),i+=9):h+="\uFFFD";return h})}t.defaultChars=";/?:@&=+$,#",t.componentChars="",b.exports=t},function(b,x,g){b.exports=function(a){var t="";return t+=a.protocol||"",t+=a.slashes?"//":"",t+=a.auth?a.auth+"@":"",a.hostname&&a.hostname.indexOf(":")!==-1?t+="["+a.hostname+"]":t+=a.hostname||"",t+=a.port?":"+a.port:"",t+=a.pathname||"",t+=a.search||"",t+=a.hash||""}},function(b,x,g){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` diff --git a/src/main/resources/static/assets/html.e524b74e.js b/src/main/resources/static/assets/html.882d0548.js similarity index 79% rename from src/main/resources/static/assets/html.e524b74e.js rename to src/main/resources/static/assets/html.882d0548.js index 8b1fb1c..451d329 100644 --- a/src/main/resources/static/assets/html.e524b74e.js +++ b/src/main/resources/static/assets/html.882d0548.js @@ -1,6 +1,6 @@ -import{m as a}from"./TextViewer.3239c454.js";import"./index.552205f5.js";import"./common.c93e08d7.js";import"./request.3708b2c4.js";import"./base.d698891e.js";import"./useFileUpload.b18c246f.js";import"./common.0f75f163.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./event.776e7e11.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./directive.e250a256.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./TextViewer.0c511786.js";import"./index.43b3cbf5.js";import"./common.e7f4d4d2.js";import"./request.e2daed10.js";import"./base.4ef7f45b.js";import"./useFileUpload.72c71760.js";import"./common.72335e7c.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./event.776e7e11.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./event.3ec63147.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";import"./index.566ad052.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var m=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(r,e,p,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!l.call(r,t)&&(p||t!=="default")&&m(r,t,{get:()=>e[t],enumerable:!(i=s(e,t))||i.enumerable});return r},n={};c(n,a);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],C={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},W={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{C as conf,W as language}; + *-----------------------------------------------------------------------------*/var m=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(r,e,p,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!l.call(r,t)&&(p||t!=="default")&&m(r,t,{get:()=>e[t],enumerable:!(n=s(e,t))||n.enumerable});return r},i={};c(i,a);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],W={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},R={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{W as conf,R as language}; diff --git a/src/main/resources/static/assets/image-viewer.65ed4853.js b/src/main/resources/static/assets/image-viewer.ed2baaff.js similarity index 94% rename from src/main/resources/static/assets/image-viewer.65ed4853.js rename to src/main/resources/static/assets/image-viewer.ed2baaff.js index a286faf..e7b5338 100644 --- a/src/main/resources/static/assets/image-viewer.65ed4853.js +++ b/src/main/resources/static/assets/image-viewer.ed2baaff.js @@ -1 +1 @@ -import{m as ce,u as M}from"./request.3708b2c4.js";import{d as ue,au as se,r as w,av as he,s as ye,c as h,w as ae,Z as fe,o as de,a as y,b as ne,h as c,e as I,p as m,n as u,u as t,j as _e,k as _,f as S,F as oe,q as be,y as ke,Q as xe,R as ze,i as le,g as G,T as Ie,X as Le,aw as Ee,z as Ce,t as Oe,m as Se}from"./index.552205f5.js";import{aa as Te,B as $,b as pe,d as re,V as ie,aj as Ne,ak as $e,u as ve,H as Ae,E as O,i as Re,al as Be,a4 as Ve,am as Me,z as De,an as Ye,ao as Fe,_ as me,I as V,a6 as je,w as ge,F as Xe,a as He}from"./base.d698891e.js";import{u as we}from"./index.1e624cbf.js";import{d as Pe}from"./debounce.32892d61.js";import{u as Ze}from"./index.4ab44dc8.js";import{g as We}from"./scroll.cbf731df.js";var qe="Expected a function";function te(i,f,n){var l=!0,T=!0;if(typeof i!="function")throw new TypeError(qe);return Te(n)&&(l="leading"in n?!!n.leading:l,T="trailing"in n?!!n.trailing:T),Pe(i,f,{leading:l,maxWait:f,trailing:T})}const Ge=(i,f)=>{if(!$||!i||!f)return!1;const n=i.getBoundingClientRect();let l;return f instanceof Element?l=f.getBoundingClientRect():l={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topl.top&&n.right>l.left&&n.left$&&/firefox/i.test(window.navigator.userAgent),Qe=pe({urlList:{type:re(Array),default:()=>ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),Ue={close:()=>!0,switch:i=>ie(i)},Je=["src"],et={name:"ElImageViewer"},tt=ue({...et,props:Qe,emits:Ue,setup(i,{emit:f}){const n=i,l={CONTAIN:{name:"contain",icon:se(Ne)},ORIGINAL:{name:"original",icon:se($e)}},T=Ke()?"DOMMouseScroll":"mousewheel",{t:L}=we(),r=ve("image-viewer"),{nextZIndex:K}=Ae(),N=w(),b=w([]),k=he(),x=w(!0),d=w(n.initialIndex),v=ye(l.CONTAIN),s=w({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),D=h(()=>{const{urlList:a}=n;return a.length<=1}),A=h(()=>d.value===0),H=h(()=>d.value===n.urlList.length-1),Q=h(()=>n.urlList[d.value]),Y=h(()=>{const{scale:a,deg:e,offsetX:o,offsetY:p,enableTransition:E}=s.value;let g=o/a,C=p/a;switch(e%360){case 90:case-270:[g,C]=[C,-g];break;case 180:case-180:[g,C]=[-g,-C];break;case 270:case-90:[g,C]=[-C,g];break}const B={transform:`scale(${a}) rotate(${e}deg) translate(${g}px, ${C}px)`,transition:E?"transform .3s":""};return v.value.name===l.CONTAIN.name&&(B.maxWidth=B.maxHeight="100%"),B}),U=h(()=>ie(n.zIndex)?n.zIndex:K());function R(){J(),f("close")}function F(){const a=te(o=>{switch(o.code){case V.esc:n.closeOnPressEscape&&R();break;case V.space:X();break;case V.left:W();break;case V.up:z("zoomIn");break;case V.right:q();break;case V.down:z("zoomOut");break}}),e=te(o=>{(o.wheelDelta?o.wheelDelta:-o.detail)>0?z("zoomIn",{zoomRate:1.2,enableTransition:!1}):z("zoomOut",{zoomRate:1.2,enableTransition:!1})});k.run(()=>{M(document,"keydown",a),M(document,T,e)})}function J(){k.stop()}function ee(){x.value=!1}function P(a){x.value=!1,a.target.alt=L("el.image.error")}function Z(a){if(x.value||a.button!==0||!N.value)return;s.value.enableTransition=!1;const{offsetX:e,offsetY:o}=s.value,p=a.pageX,E=a.pageY,g=te(B=>{s.value={...s.value,offsetX:e+B.pageX-p,offsetY:o+B.pageY-E}}),C=M(document,"mousemove",g);M(document,"mouseup",()=>{C()}),a.preventDefault()}function j(){s.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function X(){if(x.value)return;const a=je(l),e=Object.values(l),o=v.value.name,E=(e.findIndex(g=>g.name===o)+1)%a.length;v.value=l[a[E]],j()}function W(){if(A.value&&!n.infinite)return;const a=n.urlList.length;d.value=(d.value-1+a)%a}function q(){if(H.value&&!n.infinite)return;const a=n.urlList.length;d.value=(d.value+1)%a}function z(a,e={}){if(x.value)return;const{zoomRate:o,rotateDeg:p,enableTransition:E}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...e};switch(a){case"zoomOut":s.value.scale>.2&&(s.value.scale=Number.parseFloat((s.value.scale/o).toFixed(3)));break;case"zoomIn":s.value.scale<7&&(s.value.scale=Number.parseFloat((s.value.scale*o).toFixed(3)));break;case"clockwise":s.value.deg+=p;break;case"anticlockwise":s.value.deg-=p;break}s.value.enableTransition=E}return ae(Q,()=>{fe(()=>{const a=b.value[0];a!=null&&a.complete||(x.value=!0)})}),ae(d,a=>{j(),f("switch",a)}),de(()=>{var a,e;F(),(e=(a=N.value)==null?void 0:a.focus)==null||e.call(a)}),(a,e)=>(y(),ne(Le,{to:"body",disabled:!a.teleported},[c(Ie,{name:"viewer-fade",appear:""},{default:I(()=>[m("div",{ref_key:"wrapper",ref:N,tabindex:-1,class:u(t(r).e("wrapper")),style:le({zIndex:t(U)})},[m("div",{class:u(t(r).e("mask")),onClick:e[0]||(e[0]=_e(o=>a.hideOnClickModal&&R(),["self"]))},null,2),_(" CLOSE "),m("span",{class:u([t(r).e("btn"),t(r).e("close")]),onClick:R},[c(t(O),null,{default:I(()=>[c(t(Re))]),_:1})],2),_(" ARROW "),t(D)?_("v-if",!0):(y(),S(oe,{key:0},[m("span",{class:u([t(r).e("btn"),t(r).e("prev"),t(r).is("disabled",!a.infinite&&t(A))]),onClick:W},[c(t(O),null,{default:I(()=>[c(t(Be))]),_:1})],2),m("span",{class:u([t(r).e("btn"),t(r).e("next"),t(r).is("disabled",!a.infinite&&t(H))]),onClick:q},[c(t(O),null,{default:I(()=>[c(t(Ve))]),_:1})],2)],64)),_(" ACTIONS "),m("div",{class:u([t(r).e("btn"),t(r).e("actions")])},[m("div",{class:u(t(r).e("actions__inner"))},[c(t(O),{onClick:e[1]||(e[1]=o=>z("zoomOut"))},{default:I(()=>[c(t(Me))]),_:1}),c(t(O),{onClick:e[2]||(e[2]=o=>z("zoomIn"))},{default:I(()=>[c(t(De))]),_:1}),m("i",{class:u(t(r).e("actions__divider"))},null,2),c(t(O),{onClick:X},{default:I(()=>[(y(),ne(be(t(v).icon)))]),_:1}),m("i",{class:u(t(r).e("actions__divider"))},null,2),c(t(O),{onClick:e[3]||(e[3]=o=>z("anticlockwise"))},{default:I(()=>[c(t(Ye))]),_:1}),c(t(O),{onClick:e[4]||(e[4]=o=>z("clockwise"))},{default:I(()=>[c(t(Fe))]),_:1})],2)],2),_(" CANVAS "),m("div",{class:u(t(r).e("canvas"))},[(y(!0),S(oe,null,ke(a.urlList,(o,p)=>xe((y(),S("img",{ref_for:!0,ref:E=>b.value[p]=E,key:o,src:o,style:le(t(Y)),class:u(t(r).e("img")),onLoad:ee,onError:P,onMousedown:Z},null,46,Je)),[[ze,p===d.value]])),128))],2),G(a.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var at=me(tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const nt=ge(at),ot=pe({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:re([String,Object])},previewSrcList:{type:re(Array),default:()=>ce([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),lt={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>ie(i),close:()=>!0},rt=["src","loading"],it={key:0},st={name:"ElImage",inheritAttrs:!1},ct=ue({...st,props:ot,emits:lt,setup(i,{emit:f}){const n=i;let l="";const{t:T}=we(),L=ve("image"),r=Ee(),K=Ze(),N=w(),b=w(!1),k=w(!0),x=w(!1),d=w(),v=w(),s=$&&"loading"in HTMLImageElement.prototype;let D,A;const H=h(()=>r.style),Q=h(()=>{const{fit:e}=n;return $&&e?{objectFit:e}:{}}),Y=h(()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0}),U=h(()=>{const{previewSrcList:e,initialIndex:o}=n;let p=o;return o>e.length-1&&(p=0),p}),R=h(()=>n.loading==="eager"?!1:!s&&n.loading==="lazy"||n.lazy),F=()=>{!$||(k.value=!0,b.value=!1,N.value=n.src)};function J(e){k.value=!1,b.value=!1,f("load",e)}function ee(e){k.value=!1,b.value=!0,f("error",e)}function P(){Ge(d.value,v.value)&&(F(),X())}const Z=He(P,200);async function j(){var e;if(!$)return;await fe();const{scrollContainer:o}=n;Xe(o)?v.value=o:Se(o)&&o!==""?v.value=(e=document.querySelector(o))!=null?e:void 0:d.value&&(v.value=We(d.value)),v.value&&(D=M(v,"scroll",Z),setTimeout(()=>P(),100))}function X(){!$||!v.value||!Z||(D==null||D(),v.value=void 0)}function W(e){if(!!e.ctrlKey){if(e.deltaY<0)return e.preventDefault(),!1;if(e.deltaY>0)return e.preventDefault(),!1}}function q(){!Y.value||(A=M("wheel",W,{passive:!1}),l=document.body.style.overflow,document.body.style.overflow="hidden",x.value=!0)}function z(){A==null||A(),document.body.style.overflow=l,x.value=!1,f("close")}function a(e){f("switch",e)}return ae(()=>n.src,()=>{R.value?(k.value=!0,b.value=!1,X(),j()):F()}),de(()=>{R.value?j():F()}),(e,o)=>(y(),S("div",{ref_key:"container",ref:d,class:u([t(L).b(),e.$attrs.class]),style:le(t(H))},[N.value!==void 0&&!b.value?(y(),S("img",Ce({key:0},t(K),{src:N.value,loading:e.loading,style:t(Q),class:[t(L).e("inner"),t(Y)&&t(L).e("preview"),k.value&&t(L).is("loading")],onClick:q,onLoad:J,onError:ee}),null,16,rt)):_("v-if",!0),k.value||b.value?(y(),S("div",{key:1,class:u(t(L).e("wrapper"))},[k.value?G(e.$slots,"placeholder",{key:0},()=>[m("div",{class:u(t(L).e("placeholder"))},null,2)]):b.value?G(e.$slots,"error",{key:1},()=>[m("div",{class:u(t(L).e("error"))},Oe(t(T)("el.image.error")),3)]):_("v-if",!0)],2)):_("v-if",!0),t(Y)?(y(),S(oe,{key:2},[x.value?(y(),ne(t(nt),{key:0,"z-index":e.zIndex,"initial-index":t(U),infinite:e.infinite,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:z,onSwitch:a},{default:I(()=>[e.$slots.viewer?(y(),S("div",it,[G(e.$slots,"viewer")])):_("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):_("v-if",!0)],64)):_("v-if",!0)],6))}});var ut=me(ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ht=ge(ut);export{ht as E}; +import{m as ce,u as M}from"./request.e2daed10.js";import{d as ue,av as se,r as w,aw as he,s as ye,c as h,w as ae,Z as fe,o as de,a as y,b as ne,h as c,e as I,p as m,n as u,u as t,j as _e,k as _,f as S,F as oe,q as be,y as ke,Q as xe,R as ze,i as le,g as G,T as Ie,X as Le,ax as Ee,z as Ce,t as Oe,m as Se}from"./index.43b3cbf5.js";import{aa as Te,B as $,b as pe,d as re,V as ie,aj as Ne,ak as $e,u as ve,H as Ae,E as O,i as Re,al as Be,a4 as Ve,am as Me,z as De,an as Ye,ao as Fe,_ as me,I as V,a6 as je,w as ge,F as Xe,a as He}from"./base.4ef7f45b.js";import{u as we}from"./index.566ad052.js";import{d as Pe}from"./debounce.014e7b6e.js";import{u as Ze}from"./index.da7dbe5d.js";import{g as We}from"./scroll.90c07eee.js";var qe="Expected a function";function te(i,f,n){var l=!0,T=!0;if(typeof i!="function")throw new TypeError(qe);return Te(n)&&(l="leading"in n?!!n.leading:l,T="trailing"in n?!!n.trailing:T),Pe(i,f,{leading:l,maxWait:f,trailing:T})}const Ge=(i,f)=>{if(!$||!i||!f)return!1;const n=i.getBoundingClientRect();let l;return f instanceof Element?l=f.getBoundingClientRect():l={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topl.top&&n.right>l.left&&n.left$&&/firefox/i.test(window.navigator.userAgent),Qe=pe({urlList:{type:re(Array),default:()=>ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),Ue={close:()=>!0,switch:i=>ie(i)},Je=["src"],et={name:"ElImageViewer"},tt=ue({...et,props:Qe,emits:Ue,setup(i,{emit:f}){const n=i,l={CONTAIN:{name:"contain",icon:se(Ne)},ORIGINAL:{name:"original",icon:se($e)}},T=Ke()?"DOMMouseScroll":"mousewheel",{t:L}=we(),r=ve("image-viewer"),{nextZIndex:K}=Ae(),N=w(),b=w([]),k=he(),x=w(!0),d=w(n.initialIndex),v=ye(l.CONTAIN),s=w({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),D=h(()=>{const{urlList:a}=n;return a.length<=1}),A=h(()=>d.value===0),H=h(()=>d.value===n.urlList.length-1),Q=h(()=>n.urlList[d.value]),Y=h(()=>{const{scale:a,deg:e,offsetX:o,offsetY:p,enableTransition:E}=s.value;let g=o/a,C=p/a;switch(e%360){case 90:case-270:[g,C]=[C,-g];break;case 180:case-180:[g,C]=[-g,-C];break;case 270:case-90:[g,C]=[-C,g];break}const B={transform:`scale(${a}) rotate(${e}deg) translate(${g}px, ${C}px)`,transition:E?"transform .3s":""};return v.value.name===l.CONTAIN.name&&(B.maxWidth=B.maxHeight="100%"),B}),U=h(()=>ie(n.zIndex)?n.zIndex:K());function R(){J(),f("close")}function F(){const a=te(o=>{switch(o.code){case V.esc:n.closeOnPressEscape&&R();break;case V.space:X();break;case V.left:W();break;case V.up:z("zoomIn");break;case V.right:q();break;case V.down:z("zoomOut");break}}),e=te(o=>{(o.wheelDelta?o.wheelDelta:-o.detail)>0?z("zoomIn",{zoomRate:1.2,enableTransition:!1}):z("zoomOut",{zoomRate:1.2,enableTransition:!1})});k.run(()=>{M(document,"keydown",a),M(document,T,e)})}function J(){k.stop()}function ee(){x.value=!1}function P(a){x.value=!1,a.target.alt=L("el.image.error")}function Z(a){if(x.value||a.button!==0||!N.value)return;s.value.enableTransition=!1;const{offsetX:e,offsetY:o}=s.value,p=a.pageX,E=a.pageY,g=te(B=>{s.value={...s.value,offsetX:e+B.pageX-p,offsetY:o+B.pageY-E}}),C=M(document,"mousemove",g);M(document,"mouseup",()=>{C()}),a.preventDefault()}function j(){s.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function X(){if(x.value)return;const a=je(l),e=Object.values(l),o=v.value.name,E=(e.findIndex(g=>g.name===o)+1)%a.length;v.value=l[a[E]],j()}function W(){if(A.value&&!n.infinite)return;const a=n.urlList.length;d.value=(d.value-1+a)%a}function q(){if(H.value&&!n.infinite)return;const a=n.urlList.length;d.value=(d.value+1)%a}function z(a,e={}){if(x.value)return;const{zoomRate:o,rotateDeg:p,enableTransition:E}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...e};switch(a){case"zoomOut":s.value.scale>.2&&(s.value.scale=Number.parseFloat((s.value.scale/o).toFixed(3)));break;case"zoomIn":s.value.scale<7&&(s.value.scale=Number.parseFloat((s.value.scale*o).toFixed(3)));break;case"clockwise":s.value.deg+=p;break;case"anticlockwise":s.value.deg-=p;break}s.value.enableTransition=E}return ae(Q,()=>{fe(()=>{const a=b.value[0];a!=null&&a.complete||(x.value=!0)})}),ae(d,a=>{j(),f("switch",a)}),de(()=>{var a,e;F(),(e=(a=N.value)==null?void 0:a.focus)==null||e.call(a)}),(a,e)=>(y(),ne(Le,{to:"body",disabled:!a.teleported},[c(Ie,{name:"viewer-fade",appear:""},{default:I(()=>[m("div",{ref_key:"wrapper",ref:N,tabindex:-1,class:u(t(r).e("wrapper")),style:le({zIndex:t(U)})},[m("div",{class:u(t(r).e("mask")),onClick:e[0]||(e[0]=_e(o=>a.hideOnClickModal&&R(),["self"]))},null,2),_(" CLOSE "),m("span",{class:u([t(r).e("btn"),t(r).e("close")]),onClick:R},[c(t(O),null,{default:I(()=>[c(t(Re))]),_:1})],2),_(" ARROW "),t(D)?_("v-if",!0):(y(),S(oe,{key:0},[m("span",{class:u([t(r).e("btn"),t(r).e("prev"),t(r).is("disabled",!a.infinite&&t(A))]),onClick:W},[c(t(O),null,{default:I(()=>[c(t(Be))]),_:1})],2),m("span",{class:u([t(r).e("btn"),t(r).e("next"),t(r).is("disabled",!a.infinite&&t(H))]),onClick:q},[c(t(O),null,{default:I(()=>[c(t(Ve))]),_:1})],2)],64)),_(" ACTIONS "),m("div",{class:u([t(r).e("btn"),t(r).e("actions")])},[m("div",{class:u(t(r).e("actions__inner"))},[c(t(O),{onClick:e[1]||(e[1]=o=>z("zoomOut"))},{default:I(()=>[c(t(Me))]),_:1}),c(t(O),{onClick:e[2]||(e[2]=o=>z("zoomIn"))},{default:I(()=>[c(t(De))]),_:1}),m("i",{class:u(t(r).e("actions__divider"))},null,2),c(t(O),{onClick:X},{default:I(()=>[(y(),ne(be(t(v).icon)))]),_:1}),m("i",{class:u(t(r).e("actions__divider"))},null,2),c(t(O),{onClick:e[3]||(e[3]=o=>z("anticlockwise"))},{default:I(()=>[c(t(Ye))]),_:1}),c(t(O),{onClick:e[4]||(e[4]=o=>z("clockwise"))},{default:I(()=>[c(t(Fe))]),_:1})],2)],2),_(" CANVAS "),m("div",{class:u(t(r).e("canvas"))},[(y(!0),S(oe,null,ke(a.urlList,(o,p)=>xe((y(),S("img",{ref_for:!0,ref:E=>b.value[p]=E,key:o,src:o,style:le(t(Y)),class:u(t(r).e("img")),onLoad:ee,onError:P,onMousedown:Z},null,46,Je)),[[ze,p===d.value]])),128))],2),G(a.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var at=me(tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const nt=ge(at),ot=pe({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:re([String,Object])},previewSrcList:{type:re(Array),default:()=>ce([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),lt={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>ie(i),close:()=>!0},rt=["src","loading"],it={key:0},st={name:"ElImage",inheritAttrs:!1},ct=ue({...st,props:ot,emits:lt,setup(i,{emit:f}){const n=i;let l="";const{t:T}=we(),L=ve("image"),r=Ee(),K=Ze(),N=w(),b=w(!1),k=w(!0),x=w(!1),d=w(),v=w(),s=$&&"loading"in HTMLImageElement.prototype;let D,A;const H=h(()=>r.style),Q=h(()=>{const{fit:e}=n;return $&&e?{objectFit:e}:{}}),Y=h(()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0}),U=h(()=>{const{previewSrcList:e,initialIndex:o}=n;let p=o;return o>e.length-1&&(p=0),p}),R=h(()=>n.loading==="eager"?!1:!s&&n.loading==="lazy"||n.lazy),F=()=>{!$||(k.value=!0,b.value=!1,N.value=n.src)};function J(e){k.value=!1,b.value=!1,f("load",e)}function ee(e){k.value=!1,b.value=!0,f("error",e)}function P(){Ge(d.value,v.value)&&(F(),X())}const Z=He(P,200);async function j(){var e;if(!$)return;await fe();const{scrollContainer:o}=n;Xe(o)?v.value=o:Se(o)&&o!==""?v.value=(e=document.querySelector(o))!=null?e:void 0:d.value&&(v.value=We(d.value)),v.value&&(D=M(v,"scroll",Z),setTimeout(()=>P(),100))}function X(){!$||!v.value||!Z||(D==null||D(),v.value=void 0)}function W(e){if(!!e.ctrlKey){if(e.deltaY<0)return e.preventDefault(),!1;if(e.deltaY>0)return e.preventDefault(),!1}}function q(){!Y.value||(A=M("wheel",W,{passive:!1}),l=document.body.style.overflow,document.body.style.overflow="hidden",x.value=!0)}function z(){A==null||A(),document.body.style.overflow=l,x.value=!1,f("close")}function a(e){f("switch",e)}return ae(()=>n.src,()=>{R.value?(k.value=!0,b.value=!1,X(),j()):F()}),de(()=>{R.value?j():F()}),(e,o)=>(y(),S("div",{ref_key:"container",ref:d,class:u([t(L).b(),e.$attrs.class]),style:le(t(H))},[N.value!==void 0&&!b.value?(y(),S("img",Ce({key:0},t(K),{src:N.value,loading:e.loading,style:t(Q),class:[t(L).e("inner"),t(Y)&&t(L).e("preview"),k.value&&t(L).is("loading")],onClick:q,onLoad:J,onError:ee}),null,16,rt)):_("v-if",!0),k.value||b.value?(y(),S("div",{key:1,class:u(t(L).e("wrapper"))},[k.value?G(e.$slots,"placeholder",{key:0},()=>[m("div",{class:u(t(L).e("placeholder"))},null,2)]):b.value?G(e.$slots,"error",{key:1},()=>[m("div",{class:u(t(L).e("error"))},Oe(t(T)("el.image.error")),3)]):_("v-if",!0)],2)):_("v-if",!0),t(Y)?(y(),S(oe,{key:2},[x.value?(y(),ne(t(nt),{key:0,"z-index":e.zIndex,"initial-index":t(U),infinite:e.infinite,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:z,onSwitch:a},{default:I(()=>[e.$slots.viewer?(y(),S("div",it,[G(e.$slots,"viewer")])):_("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):_("v-if",!0)],64)):_("v-if",!0)],6))}});var ut=me(ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ht=ge(ut);export{ht as E}; diff --git a/src/main/resources/static/assets/index.13892a7e.js b/src/main/resources/static/assets/index.13892a7e.js deleted file mode 100644 index 8dcaffb..0000000 --- a/src/main/resources/static/assets/index.13892a7e.js +++ /dev/null @@ -1 +0,0 @@ -import{P as V,r as h,o as C,a as u,f as b,b as g,e as l,h as a,u as s,k,J as w}from"./index.552205f5.js";import"./base.d698891e.js";import{a as x}from"./checkbox.cfb94aee.js";import"./scrollbar.97fa2ffd.js";import"./tooltip.f118fcb0.js";import"./popper.14a92806.js";import{Z as E,a as R}from"./ZFormItem.7a4b4758.js";import{E as S}from"./switch.2393edfd.js";import{e as B}from"./admin-storage.260bbac1.js";import{u as I}from"./storage-list.66a3eccf.js";import"./index.24f1077d.js";import"./request.3708b2c4.js";import"./event.3ec63147.js";import"./debounce.32892d61.js";import"./event.776e7e11.js";import"./index.1e624cbf.js";import"./focus-trap.58847c97.js";import"./index.c92ded65.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./validator.6f3b33db.js";import"./sortable.esm.a99254e8.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";const M=w(" \u6B64\u9875\u9762\u53EF\u4EE5\u7BA1\u7406\u60A8\u7684\u7F13\u5B58\u76F8\u5173\u8BBE\u7F6E\uFF0C\u5305\u62EC\u7F13\u5B58\u7684\u7BA1\u7406\u3001\u7F13\u5B58\u7684\u6E05\u7406\u3001\u7F13\u5B58\u7684\u7EDF\u8BA1\u7B49\u3002 "),le={__name:"index",setup(N){let i=V();const{cacheManageVisible:U,switchCacheEnableStatus:p,switchCacheAutoRefreshStatus:d,currentCacheManageId:f}=I(i),e=h(null),c=()=>{B(f.value).then(r=>{e.value=r.data})};return C(()=>{c()}),(r,t)=>{const m=S,n=E,_=R,v=x;return u(),b("div",null,[e.value?(u(),g(_,{key:0,modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=o=>e.value=o)},{"form-sub-title":l(()=>[M]),default:l(()=>[a(n,{label:"\u5F00\u542F\u7F13\u5B58"},{default:l(()=>[a(m,{onChange:t[0]||(t[0]=o=>s(p)(e.value)),modelValue:e.value.enableCache,"onUpdate:modelValue":t[1]||(t[1]=o=>e.value.enableCache=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"\u5F00\u542F\u7F13\u5B58\u81EA\u52A8\u5237\u65B0"},{default:l(()=>[a(m,{onChange:t[2]||(t[2]=o=>s(d)(e.value)),modelValue:e.value.autoRefreshCache,"onUpdate:modelValue":t[3]||(t[3]=o=>e.value.autoRefreshCache=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])):k("",!0),a(v)])}}};export{le as default}; diff --git a/src/main/resources/static/assets/index.3c72444b.css b/src/main/resources/static/assets/index.3c72444b.css deleted file mode 100644 index 99ce22a..0000000 --- a/src/main/resources/static/assets/index.3c72444b.css +++ /dev/null @@ -1 +0,0 @@ -.zfile-admin-down-link[data-v-1670c199] .el-select-dropdown__item{padding-right:15px}.zfile-admin-down-link[data-v-1670c199] .el-dialog__header{text-align:center}.zfile-admin-down-link[data-v-1670c199] .el-dialog__body{height:80vh;overflow-y:auto} diff --git a/src/main/resources/static/assets/index.11692625.js b/src/main/resources/static/assets/index.439070da.js similarity index 96% rename from src/main/resources/static/assets/index.11692625.js rename to src/main/resources/static/assets/index.439070da.js index 4e1708d..c8209e5 100644 --- a/src/main/resources/static/assets/index.11692625.js +++ b/src/main/resources/static/assets/index.439070da.js @@ -1 +1 @@ -import{w as N,S as me,Z as A,d as ve,r as h,W as ge,c as E,o as be,H as ye,ad as Ce,ae as B,a as d,b as v,e as f,Q as K,R as j,h as w,p as c,n as i,i as _,j as z,f as q,q as P,k as M,t as I,B as O,g as he,J as W,T as Ee,m as Be,Y as D,a5 as we,ao as ae,a7 as ee,al as Me}from"./index.552205f5.js";import{I as Se,r as ke,E as Te,a8 as Ie,u as Ae,H as Re,a7 as ne,K as se,W as $e,_ as Le,B as Ve,J as ze}from"./base.d698891e.js";import{E as Pe}from"./index.4ab44dc8.js";import{E as Oe,u as De,b as Ne,a as Ue}from"./index.0f572ca8.js";import{a as le,o as re}from"./event.3ec63147.js";import{E as He}from"./focus-trap.58847c97.js";import{i as Fe}from"./validator.6f3b33db.js";import{u as Ke}from"./index.1e624cbf.js";const je='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',qe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,oe=e=>Array.from(e.querySelectorAll(je)).filter(n=>We(n)&&qe(n)),We=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Xe=(e,n)=>{let a;N(()=>e.value,l=>{var t,o;l?(a=document.activeElement,me(n)&&((o=(t=n.value).focus)==null||o.call(t))):a.focus()})},X="_trap-focus-children",b=[],te=e=>{if(b.length===0)return;const n=b[b.length-1][X];if(n.length>0&&e.code===Se.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,l=e.target===n[0],t=e.target===n[n.length-1];l&&a&&(e.preventDefault(),n[n.length-1].focus()),t&&!a&&(e.preventDefault(),n[0].focus())}},Ze={beforeMount(e){e[X]=oe(e),b.push(e),b.length<=1&&le(document,"keydown",te)},updated(e){A(()=>{e[X]=oe(e)})},unmounted(){b.shift(),b.length===0&&re(document,"keydown",te)}},Ge=ve({name:"ElMessageBox",directives:{TrapFocus:Ze},components:{ElButton:ke,ElFocusTrap:He,ElInput:Pe,ElOverlay:Oe,ElIcon:Te,...Ie},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Fe},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{t:a}=Ke(),l=Ae("message-box"),t=h(!1),{nextZIndex:o}=Re(),s=ge({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),p=E(()=>{const r=s.type;return{[l.bm("icon",r)]:r&&ne[r]}}),U=se(),$=se(),H=$e(E(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),F=E(()=>s.icon||ne[s.type]||""),u=E(()=>!!s.message),y=h(),Z=h(),k=h(),L=h(),G=h(),ie=E(()=>s.confirmButtonClass);N(()=>s.inputValue,async r=>{await A(),e.boxType==="prompt"&&r!==null&&Q()},{immediate:!0}),N(()=>t.value,r=>{var m,C;r&&(e.boxType!=="prompt"&&(s.autofocus?k.value=(C=(m=G.value)==null?void 0:m.$el)!=null?C:y.value:k.value=y.value),s.zIndex=o()),e.boxType==="prompt"&&(r?A().then(()=>{var x;L.value&&L.value.$el&&(s.autofocus?k.value=(x=ce())!=null?x:y.value:k.value=y.value)}):(s.editorErrorMessage="",s.validateError=!1))});const ue=E(()=>e.draggable);De(y,Z,ue),be(async()=>{await A(),e.closeOnHashChange&&le(window,"hashchange",T)}),ye(()=>{e.closeOnHashChange&&re(window,"hashchange",T)});function T(){!t.value||(t.value=!1,A(()=>{s.action&&n("action",s.action)}))}const J=()=>{e.closeOnClickModal&&V(s.distinguishCancelAndClose?"close":"cancel")},de=Ue(J),fe=r=>{if(s.inputType!=="textarea")return r.preventDefault(),V("confirm")},V=r=>{var m;e.boxType==="prompt"&&r==="confirm"&&!Q()||(s.action=r,s.beforeClose?(m=s.beforeClose)==null||m.call(s,r,s,T):T())},Q=()=>{if(e.boxType==="prompt"){const r=s.inputPattern;if(r&&!r.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||a("el.messagebox.error"),s.validateError=!0,!1;const m=s.inputValidator;if(typeof m=="function"){const C=m(s.inputValue);if(C===!1)return s.editorErrorMessage=s.inputErrorMessage||a("el.messagebox.error"),s.validateError=!0,!1;if(typeof C=="string")return s.editorErrorMessage=C,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},ce=()=>{const r=L.value.$refs;return r.input||r.textarea},Y=()=>{V("close")},pe=()=>{e.closeOnPressEscape&&Y()};return e.lockScroll&&Ne(t),Xe(t),{...Ce(s),ns:l,overlayEvent:de,visible:t,hasMessage:u,typeClass:p,contentId:U,inputId:$,btnSize:H,iconComponent:F,confirmButtonClasses:ie,rootRef:y,focusStartRef:k,headerRef:Z,inputRef:L,confirmRef:G,doClose:T,handleClose:Y,onCloseRequested:pe,handleWrapperClick:J,handleInputEnter:fe,handleAction:V,t:a}}}),Je=["aria-label","aria-describedby"],Qe=["aria-label"],Ye=["id"];function xe(e,n,a,l,t,o){const s=B("el-icon"),p=B("close"),U=B("el-input"),$=B("el-button"),H=B("el-focus-trap"),F=B("el-overlay");return d(),v(Ee,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=u=>e.$emit("vanish")),persisted:""},{default:f(()=>[K(w(F,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:f(()=>[c("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:i(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...u)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...u)),onMousedown:n[9]||(n[9]=(...u)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...u)),onMouseup:n[10]||(n[10]=(...u)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...u))},[w(H,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:f(()=>[c("div",{ref:"rootRef",class:i([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:_(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=z(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(d(),q("div",{key:0,ref:"headerRef",class:i(e.ns.e("header"))},[c("div",{class:i(e.ns.e("title"))},[e.iconComponent&&e.center?(d(),v(s,{key:0,class:i([e.ns.e("status"),e.typeClass])},{default:f(()=>[(d(),v(P(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),c("span",null,I(e.title),1)],2),e.showClose?(d(),q("button",{key:0,type:"button",class:i(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=O(z(u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[w(s,{class:i(e.ns.e("close"))},{default:f(()=>[w(p)]),_:1},8,["class"])],42,Qe)):M("v-if",!0)],2)):M("v-if",!0),c("div",{id:e.contentId,class:i(e.ns.e("content"))},[c("div",{class:i(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(d(),v(s,{key:0,class:i([e.ns.e("status"),e.typeClass])},{default:f(()=>[(d(),v(P(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.hasMessage?(d(),q("div",{key:1,class:i(e.ns.e("message"))},[he(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(d(),v(P(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(d(),v(P(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:f(()=>[W(I(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):M("v-if",!0)],2),K(c("div",{class:i(e.ns.e("input"))},[w(U,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=u=>e.inputValue=u),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:i({invalid:e.validateError}),onKeydown:O(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),c("div",{class:i(e.ns.e("errormsg")),style:_({visibility:e.editorErrorMessage?"visible":"hidden"})},I(e.editorErrorMessage),7)],2),[[j,e.showInput]])],10,Ye),c("div",{class:i(e.ns.e("btns"))},[e.showCancelButton?(d(),v($,{key:0,loading:e.cancelButtonLoading,class:i([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=u=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=O(z(u=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:f(()=>[W(I(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):M("v-if",!0),K(w($,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:i([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=u=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=O(z(u=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:f(()=>[W(I(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[j,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Je)]),_:3},8,["z-index","overlay-class","mask"]),[[j,e.visible]])]),_:3})}var _e=Le(Ge,[["render",xe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const R=new Map,en=(e,n,a=null)=>{const l=Me(_e,e);return l.appContext=a,ae(l,n),document.body.appendChild(n.firstElementChild),l.component},nn=()=>document.createElement("div"),sn=(e,n)=>{const a=nn();e.onVanish=()=>{ae(null,a),R.delete(t)},e.onAction=o=>{const s=R.get(t);let p;e.showInput?p={value:t.inputValue,action:o}:p=o,e.callback?e.callback(p,l.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(p)};const l=en(e,a,n),t=l.proxy;for(const o in e)ee(e,o)&&!ee(t.$props,o)&&(t[o]=e[o]);return N(()=>t.message,(o,s)=>{D(o)?l.slots.default=()=>[o]:D(s)&&!D(o)&&delete l.slots.default},{immediate:!0}),t.visible=!0,t};function S(e,n=null){if(!Ve)return Promise.reject();let a;return Be(e)||D(e)?e={message:e}:a=e.callback,new Promise((l,t)=>{const o=sn(e,n!=null?n:S._context);R.set(o,{options:e,callback:a,resolve:l,reject:t})})}const on=["alert","confirm","prompt"],tn={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};on.forEach(e=>{S[e]=an(e)});function an(e){return(n,a,l,t)=>{let o;return we(a)?(l=a,o=""):ze(a)?o="":o=a,S(Object.assign({title:o,message:n,type:"",...tn[e]},l,{boxType:e}),t)}}S.close=()=>{R.forEach((e,n)=>{n.doClose()}),R.clear()};S._context=null;const g=S;g.install=e=>{g._context=e._context,e.config.globalProperties.$msgbox=g,e.config.globalProperties.$messageBox=g,e.config.globalProperties.$alert=g.alert,e.config.globalProperties.$confirm=g.confirm,e.config.globalProperties.$prompt=g.prompt};const vn=g;export{vn as E}; +import{w as N,S as me,Z as A,d as ve,r as h,W as ge,c as E,o as be,H as ye,ad as Ce,ae as B,a as d,b as v,e as f,Q as K,R as j,h as w,p as c,n as i,i as _,j as z,f as q,q as P,k as M,t as I,B as O,g as he,J as W,T as Ee,m as Be,Y as D,a5 as we,ao as ae,a7 as ee,al as Me}from"./index.43b3cbf5.js";import{I as Se,r as ke,E as Te,a8 as Ie,u as Ae,H as Re,a7 as ne,K as se,W as $e,_ as Le,B as Ve,J as ze}from"./base.4ef7f45b.js";import{E as Pe}from"./index.da7dbe5d.js";import{E as Oe,u as De,b as Ne,a as Ue}from"./index.d46124aa.js";import{a as le,o as re}from"./event.3ec63147.js";import{E as He}from"./focus-trap.4cfde4b4.js";import{i as Fe}from"./validator.b1ae6965.js";import{u as Ke}from"./index.566ad052.js";const je='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',qe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,oe=e=>Array.from(e.querySelectorAll(je)).filter(n=>We(n)&&qe(n)),We=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Xe=(e,n)=>{let a;N(()=>e.value,l=>{var t,o;l?(a=document.activeElement,me(n)&&((o=(t=n.value).focus)==null||o.call(t))):a.focus()})},X="_trap-focus-children",b=[],te=e=>{if(b.length===0)return;const n=b[b.length-1][X];if(n.length>0&&e.code===Se.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,l=e.target===n[0],t=e.target===n[n.length-1];l&&a&&(e.preventDefault(),n[n.length-1].focus()),t&&!a&&(e.preventDefault(),n[0].focus())}},Ze={beforeMount(e){e[X]=oe(e),b.push(e),b.length<=1&&le(document,"keydown",te)},updated(e){A(()=>{e[X]=oe(e)})},unmounted(){b.shift(),b.length===0&&re(document,"keydown",te)}},Ge=ve({name:"ElMessageBox",directives:{TrapFocus:Ze},components:{ElButton:ke,ElFocusTrap:He,ElInput:Pe,ElOverlay:Oe,ElIcon:Te,...Ie},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Fe},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{t:a}=Ke(),l=Ae("message-box"),t=h(!1),{nextZIndex:o}=Re(),s=ge({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),p=E(()=>{const r=s.type;return{[l.bm("icon",r)]:r&&ne[r]}}),U=se(),$=se(),H=$e(E(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),F=E(()=>s.icon||ne[s.type]||""),u=E(()=>!!s.message),y=h(),Z=h(),k=h(),L=h(),G=h(),ie=E(()=>s.confirmButtonClass);N(()=>s.inputValue,async r=>{await A(),e.boxType==="prompt"&&r!==null&&Q()},{immediate:!0}),N(()=>t.value,r=>{var m,C;r&&(e.boxType!=="prompt"&&(s.autofocus?k.value=(C=(m=G.value)==null?void 0:m.$el)!=null?C:y.value:k.value=y.value),s.zIndex=o()),e.boxType==="prompt"&&(r?A().then(()=>{var x;L.value&&L.value.$el&&(s.autofocus?k.value=(x=ce())!=null?x:y.value:k.value=y.value)}):(s.editorErrorMessage="",s.validateError=!1))});const ue=E(()=>e.draggable);De(y,Z,ue),be(async()=>{await A(),e.closeOnHashChange&&le(window,"hashchange",T)}),ye(()=>{e.closeOnHashChange&&re(window,"hashchange",T)});function T(){!t.value||(t.value=!1,A(()=>{s.action&&n("action",s.action)}))}const J=()=>{e.closeOnClickModal&&V(s.distinguishCancelAndClose?"close":"cancel")},de=Ue(J),fe=r=>{if(s.inputType!=="textarea")return r.preventDefault(),V("confirm")},V=r=>{var m;e.boxType==="prompt"&&r==="confirm"&&!Q()||(s.action=r,s.beforeClose?(m=s.beforeClose)==null||m.call(s,r,s,T):T())},Q=()=>{if(e.boxType==="prompt"){const r=s.inputPattern;if(r&&!r.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||a("el.messagebox.error"),s.validateError=!0,!1;const m=s.inputValidator;if(typeof m=="function"){const C=m(s.inputValue);if(C===!1)return s.editorErrorMessage=s.inputErrorMessage||a("el.messagebox.error"),s.validateError=!0,!1;if(typeof C=="string")return s.editorErrorMessage=C,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},ce=()=>{const r=L.value.$refs;return r.input||r.textarea},Y=()=>{V("close")},pe=()=>{e.closeOnPressEscape&&Y()};return e.lockScroll&&Ne(t),Xe(t),{...Ce(s),ns:l,overlayEvent:de,visible:t,hasMessage:u,typeClass:p,contentId:U,inputId:$,btnSize:H,iconComponent:F,confirmButtonClasses:ie,rootRef:y,focusStartRef:k,headerRef:Z,inputRef:L,confirmRef:G,doClose:T,handleClose:Y,onCloseRequested:pe,handleWrapperClick:J,handleInputEnter:fe,handleAction:V,t:a}}}),Je=["aria-label","aria-describedby"],Qe=["aria-label"],Ye=["id"];function xe(e,n,a,l,t,o){const s=B("el-icon"),p=B("close"),U=B("el-input"),$=B("el-button"),H=B("el-focus-trap"),F=B("el-overlay");return d(),v(Ee,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=u=>e.$emit("vanish")),persisted:""},{default:f(()=>[K(w(F,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:f(()=>[c("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:i(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...u)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...u)),onMousedown:n[9]||(n[9]=(...u)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...u)),onMouseup:n[10]||(n[10]=(...u)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...u))},[w(H,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:f(()=>[c("div",{ref:"rootRef",class:i([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:_(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=z(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(d(),q("div",{key:0,ref:"headerRef",class:i(e.ns.e("header"))},[c("div",{class:i(e.ns.e("title"))},[e.iconComponent&&e.center?(d(),v(s,{key:0,class:i([e.ns.e("status"),e.typeClass])},{default:f(()=>[(d(),v(P(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),c("span",null,I(e.title),1)],2),e.showClose?(d(),q("button",{key:0,type:"button",class:i(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=O(z(u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[w(s,{class:i(e.ns.e("close"))},{default:f(()=>[w(p)]),_:1},8,["class"])],42,Qe)):M("v-if",!0)],2)):M("v-if",!0),c("div",{id:e.contentId,class:i(e.ns.e("content"))},[c("div",{class:i(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(d(),v(s,{key:0,class:i([e.ns.e("status"),e.typeClass])},{default:f(()=>[(d(),v(P(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.hasMessage?(d(),q("div",{key:1,class:i(e.ns.e("message"))},[he(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(d(),v(P(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(d(),v(P(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:f(()=>[W(I(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):M("v-if",!0)],2),K(c("div",{class:i(e.ns.e("input"))},[w(U,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=u=>e.inputValue=u),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:i({invalid:e.validateError}),onKeydown:O(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),c("div",{class:i(e.ns.e("errormsg")),style:_({visibility:e.editorErrorMessage?"visible":"hidden"})},I(e.editorErrorMessage),7)],2),[[j,e.showInput]])],10,Ye),c("div",{class:i(e.ns.e("btns"))},[e.showCancelButton?(d(),v($,{key:0,loading:e.cancelButtonLoading,class:i([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=u=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=O(z(u=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:f(()=>[W(I(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):M("v-if",!0),K(w($,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:i([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=u=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=O(z(u=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:f(()=>[W(I(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[j,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Je)]),_:3},8,["z-index","overlay-class","mask"]),[[j,e.visible]])]),_:3})}var _e=Le(Ge,[["render",xe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const R=new Map,en=(e,n,a=null)=>{const l=Me(_e,e);return l.appContext=a,ae(l,n),document.body.appendChild(n.firstElementChild),l.component},nn=()=>document.createElement("div"),sn=(e,n)=>{const a=nn();e.onVanish=()=>{ae(null,a),R.delete(t)},e.onAction=o=>{const s=R.get(t);let p;e.showInput?p={value:t.inputValue,action:o}:p=o,e.callback?e.callback(p,l.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(p)};const l=en(e,a,n),t=l.proxy;for(const o in e)ee(e,o)&&!ee(t.$props,o)&&(t[o]=e[o]);return N(()=>t.message,(o,s)=>{D(o)?l.slots.default=()=>[o]:D(s)&&!D(o)&&delete l.slots.default},{immediate:!0}),t.visible=!0,t};function S(e,n=null){if(!Ve)return Promise.reject();let a;return Be(e)||D(e)?e={message:e}:a=e.callback,new Promise((l,t)=>{const o=sn(e,n!=null?n:S._context);R.set(o,{options:e,callback:a,resolve:l,reject:t})})}const on=["alert","confirm","prompt"],tn={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};on.forEach(e=>{S[e]=an(e)});function an(e){return(n,a,l,t)=>{let o;return we(a)?(l=a,o=""):ze(a)?o="":o=a,S(Object.assign({title:o,message:n,type:"",...tn[e]},l,{boxType:e}),t)}}S.close=()=>{R.forEach((e,n)=>{n.doClose()}),R.clear()};S._context=null;const g=S;g.install=e=>{g._context=e._context,e.config.globalProperties.$msgbox=g,e.config.globalProperties.$messageBox=g,e.config.globalProperties.$alert=g.alert,e.config.globalProperties.$confirm=g.confirm,e.config.globalProperties.$prompt=g.prompt};const vn=g;export{vn as E}; diff --git a/src/main/resources/static/assets/index.552205f5.js b/src/main/resources/static/assets/index.43b3cbf5.js similarity index 58% rename from src/main/resources/static/assets/index.552205f5.js rename to src/main/resources/static/assets/index.43b3cbf5.js index 5c312af..47dcbe2 100644 --- a/src/main/resources/static/assets/index.552205f5.js +++ b/src/main/resources/static/assets/index.43b3cbf5.js @@ -1,7 +1,7 @@ const p$1=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerpolicy&&(o.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?o.credentials="include":a.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}};p$1();function makeMap(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a!!r[a.toLowerCase()]:a=>!!r[a]}const GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||e===""}function normalizeStyle(e){if(isArray$2(e)){const t={};for(let r=0;r{if(r){const n=r.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function normalizeClass(e){let t="";if(isString$3(e))t=e;else if(isArray$2(e))for(let r=0;rlooseEqual(r,t))}const toDisplayString$1=e=>isString$3(e)?e:e==null?"":isArray$2(e)||isObject$4(e)&&(e.toString===objectToString$2||!isFunction$3(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>t&&t.__v_isRef?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a])=>(r[`${n} =>`]=a,r),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()]}:isObject$4(t)&&!isArray$2(t)&&!isPlainObject$4(t)?String(t):t,EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend$1=Object.assign,remove=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn$2=(e,t)=>hasOwnProperty$2.call(e,t),isArray$2=Array.isArray,isMap=e=>toTypeString$2(e)==="[object Map]",isSet=e=>toTypeString$2(e)==="[object Set]",isDate$2=e=>toTypeString$2(e)==="[object Date]",isFunction$3=e=>typeof e=="function",isString$3=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject$4=e=>e!==null&&typeof e=="object",isPromise$1=e=>isObject$4(e)&&isFunction$3(e.then)&&isFunction$3(e.catch),objectToString$2=Object.prototype.toString,toTypeString$2=e=>objectToString$2.call(e),toRawType=e=>toTypeString$2(e).slice(8,-1),isPlainObject$4=e=>toTypeString$2(e)==="[object Object]",isIntegerKey=e=>isString$3(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let activeEffectScope;class EffectScope{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&activeEffectScope&&(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}run(t){if(this.active){const r=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},wasTracked=e=>(e.w&trackOpBit)>0,newTracked=e=>(e.n&trackOpBit)>0,initDepMarkers=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(u==="length"||u>=n)&&l.push(c)});else switch(r!==void 0&&l.push(s.get(r)),t){case"add":isArray$2(e)?isIntegerKey(r)&&l.push(s.get("length")):(l.push(s.get(ITERATE_KEY)),isMap(e)&&l.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$2(e)||(l.push(s.get(ITERATE_KEY)),isMap(e)&&l.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&l.push(s.get(ITERATE_KEY));break}if(l.length===1)l[0]&&triggerEffects(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);triggerEffects(createDep(c))}}function triggerEffects(e,t){const r=isArray$2(e)?e:[...e];for(const n of r)n.computed&&triggerEffect(n);for(const n of r)n.computed||triggerEffect(n)}function triggerEffect(e,t){(e!==activeEffect||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol)),get=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=toRaw(this);for(let o=0,s=this.length;o{e[t]=function(...r){pauseTracking();const n=toRaw(this)[t].apply(this,r);return resetTracking(),n}}),e}function createGetter(e=!1,t=!1){return function(n,a,o){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&o===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(n))return n;const s=isArray$2(n);if(!e&&s&&hasOwn$2(arrayInstrumentations,a))return Reflect.get(arrayInstrumentations,a,o);const l=Reflect.get(n,a,o);return(isSymbol(a)?builtInSymbols.has(a):isNonTrackableKeys(a))||(e||track(n,"get",a),t)?l:isRef(l)?s&&isIntegerKey(a)?l:l.value:isObject$4(l)?e?readonly(l):reactive(l):l}}const set=createSetter(),shallowSet=createSetter(!0);function createSetter(e=!1){return function(r,n,a,o){let s=r[n];if(isReadonly(s)&&isRef(s)&&!isRef(a))return!1;if(!e&&!isReadonly(a)&&(isShallow(a)||(a=toRaw(a),s=toRaw(s)),!isArray$2(r)&&isRef(s)&&!isRef(a)))return s.value=a,!0;const l=isArray$2(r)&&isIntegerKey(n)?Number(n)e,getProto=e=>Reflect.getPrototypeOf(e);function get$1(e,t,r=!1,n=!1){e=e.__v_raw;const a=toRaw(e),o=toRaw(t);r||(t!==o&&track(a,"get",t),track(a,"get",o));const{has:s}=getProto(a),l=n?toShallow:r?toReadonly:toReactive;if(s.call(a,t))return l(e.get(t));if(s.call(a,o))return l(e.get(o));e!==a&&e.get(t)}function has$1(e,t=!1){const r=this.__v_raw,n=toRaw(r),a=toRaw(e);return t||(e!==a&&track(n,"has",e),track(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const r=toRaw(this),{has:n,get:a}=getProto(r);let o=n.call(r,e);o||(e=toRaw(e),o=n.call(r,e));const s=a.call(r,e);return r.set(e,t),o?hasChanged(t,s)&&trigger(r,"set",e,t):trigger(r,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:r,get:n}=getProto(t);let a=r.call(t,e);a||(e=toRaw(e),a=r.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return a&&trigger(t,"delete",e,void 0),o}function clear(){const e=toRaw(this),t=e.size!==0,r=e.clear();return t&&trigger(e,"clear",void 0,void 0),r}function createForEach(e,t){return function(n,a){const o=this,s=o.__v_raw,l=toRaw(s),c=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),s.forEach((u,d)=>n.call(a,c(u),c(d),o))}}function createIterableMethod(e,t,r){return function(...n){const a=this.__v_raw,o=toRaw(a),s=isMap(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=a[e](...n),d=r?toShallow:t?toReadonly:toReactive;return!t&&track(o,"iterate",c?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:m,done:b}=u.next();return b?{value:m,done:b}:{value:l?[d(m[0]),d(m[1])]:d(m),done:b}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){return e==="delete"?!1:this}}function createInstrumentations(){const e={get(o){return get$1(this,o)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(o){return get$1(this,o,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(o){return get$1(this,o,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},n={get(o){return get$1(this,o,!0,!0)},get size(){return size(this,!0)},has(o){return has$1.call(this,o,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=createIterableMethod(o,!1,!1),r[o]=createIterableMethod(o,!0,!1),t[o]=createIterableMethod(o,!1,!0),n[o]=createIterableMethod(o,!0,!0)}),[e,r,t,n]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const r=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(n,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(hasOwn$2(r,a)&&a in n?r:n,a,o)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,r,n,a){if(!isObject$4(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=a.get(e);if(o)return o;const s=getTargetType(e);if(s===0)return e;const l=new Proxy(e,s===2?n:r);return a.set(e,l),l}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return def(e,"__v_skip",!0),e}const toReactive=e=>isObject$4(e)?reactive(e):e,toReadonly=e=>isObject$4(e)?readonly(e):e;function trackRefValue(e){shouldTrack&&activeEffect&&(e=toRaw(e),trackEffects(e.dep||(e.dep=createDep())))}function triggerRefValue(e,t){e=toRaw(e),e.dep&&triggerEffects(e.dep)}function isRef(e){return!!(e&&e.__v_isRef===!0)}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:toRaw(t),this._value=r?t:toReactive(t)}get value(){return trackRefValue(this),this._value}set value(t){t=this.__v_isShallow?t:toRaw(t),hasChanged(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:toReactive(t),triggerRefValue(this))}}function triggerRef(e){triggerRefValue(e)}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,r)=>unref(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return isRef(a)&&!isRef(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class CustomRefImpl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function customRef(e){return new CustomRefImpl(e)}function toRefs(e){const t=isArray$2(e)?new Array(e.length):{};for(const r in e)t[r]=toRef(e,r);return t}class ObjectRefImpl{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function toRef(e,t,r){const n=e[t];return isRef(n)?n:new ObjectRefImpl(e,t,r)}class ComputedRefImpl{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ReactiveEffect(t,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=toRaw(this);return trackRefValue(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function computed$1(e,t,r=!1){let n,a;const o=isFunction$3(e);return o?(n=e,a=NOOP):(n=e.get,a=e.set),new ComputedRefImpl(n,a,o||!a,r)}const stack=[];function warn$1(e,...t){pauseTracking();const r=stack.length?stack[stack.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=getComponentTrace();if(n)callWithErrorHandling(n,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:o})=>`at <${formatComponentName(r,o.type)}>`).join(` `),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(` `,...formatTrace(a)),console.warn(...o)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function formatTrace(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[` -`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${formatComponentName(e.component,e.type,n)}`,o=">"+r;return e.props?[a,...formatProps(e.props),o]:[a+o]}function formatProps(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...formatProp(n,e[n]))}),r.length>3&&t.push(" ..."),t}function formatProp(e,t,r){return isString$3(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):isFunction$3(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${e}=`,t])}function callWithErrorHandling(e,t,r,n){let a;try{a=n?e(...n):e()}catch(o){handleError(o,t,r)}return a}function callWithAsyncErrorHandling(e,t,r,n){if(isFunction$3(e)){const o=callWithErrorHandling(e,t,r,n);return o&&isPromise$1(o)&&o.catch(s=>{handleError(s,t,r)}),o}const a=[];for(let o=0;o>>1;getId(queue[n])flushIndex&&queue.splice(t,1)}function queueCb(e,t,r,n){isArray$2(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,t=null){if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndexgetId(r)-getId(n)),postFlushIndex=0;postFlushIndexe.id==null?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue.sort((r,n)=>getId(r)-getId(n));const t=NOOP;try{for(flushIndex=0;flushIndexdevtools$1.emit(a,...o)),buffer=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((n=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{setDevtoolsHook(o,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit$1(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||EMPTY_OBJ;let a=r;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const d=`${s==="modelValue"?"model":s}Modifiers`,{number:m,trim:b}=n[d]||EMPTY_OBJ;b&&(a=r.map(x=>x.trim())),m&&(a=r.map(toNumber))}let l,c=n[l=toHandlerKey(t)]||n[l=toHandlerKey(camelize(t))];!c&&o&&(c=n[l=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,e,6,a);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,callWithAsyncErrorHandling(u,e,6,a)}}function normalizeEmitsOptions(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const o=e.emits;let s={},l=!1;if(!isFunction$3(e)){const c=u=>{const d=normalizeEmitsOptions(u,t,!0);d&&(l=!0,extend$1(s,d))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(n.set(e,null),null):(isArray$2(o)?o.forEach(c=>s[c]=null):extend$1(s,o),n.set(e,s),s)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn$2(e,t[0].toLowerCase()+t.slice(1))||hasOwn$2(e,hyphenate(t))||hasOwn$2(e,t))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}const withScopeId=e=>withCtx;function withCtx(e,t=currentRenderingInstance,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&setBlockTracking(-1);const o=setCurrentRenderingInstance(t),s=e(...a);return setCurrentRenderingInstance(o),n._d&&setBlockTracking(1),s};return n._n=!0,n._c=!0,n._d=!0,n}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:o,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:m,data:b,setupState:x,ctx:g,inheritAttrs:y}=e;let w,_;const E=setCurrentRenderingInstance(e);try{if(r.shapeFlag&4){const R=a||n;w=normalizeVNode(d.call(R,R,m,o,x,b,g)),_=c}else{const R=t;w=normalizeVNode(R.length>1?R(o,{attrs:c,slots:l,emit:u}):R(o,null)),_=t.props?c:getFunctionalFallthrough(c)}}catch(R){blockStack.length=0,handleError(R,e,1),w=createVNode(Comment)}let z=w;if(_&&y!==!1){const R=Object.keys(_),{shapeFlag:$}=z;R.length&&$&7&&(s&&R.some(isModelListener)&&(_=filterModelListeners(_,s)),z=cloneVNode(z,_))}return r.dirs&&(z=cloneVNode(z),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&(z.transition=r.transition),w=z,setCurrentRenderingInstance(E),w}function filterSingleRoot(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=e[r]);return t},filterModelListeners=(e,t)=>{const r={};for(const n in e)(!isModelListener(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function shouldUpdateComponent(e,t,r){const{props:n,children:a,component:o}=e,{props:s,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?hasPropsChanged(n,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let m=0;me.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(e,t,r,n,a,o,s,l,c,u){e==null?mountSuspense(t,r,n,a,o,s,l,c,u):patchSuspense(e,t,r,n,a,s,l,c,u)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(e,t){const r=e.props&&e.props[t];isFunction$3(r)&&r()}function mountSuspense(e,t,r,n,a,o,s,l,c){const{p:u,o:{createElement:d}}=c,m=d("div"),b=e.suspense=createSuspenseBoundary(e,a,n,t,m,r,o,s,l,c);u(null,b.pendingBranch=e.ssContent,m,null,n,b,o,s),b.deps>0?(triggerEvent(e,"onPending"),triggerEvent(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,o,s),setActiveBranch(b,e.ssFallback)):b.resolve()}function patchSuspense(e,t,r,n,a,o,s,l,{p:c,um:u,o:{createElement:d}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:g,pendingBranch:y,isInFallback:w,isHydrating:_}=m;if(y)m.pendingBranch=b,isSameVNodeType(b,y)?(c(y,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0?m.resolve():w&&(c(g,x,r,n,a,null,o,s,l),setActiveBranch(m,x))):(m.pendingId++,_?(m.isHydrating=!1,m.activeBranch=y):u(y,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=d("div"),w?(c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0?m.resolve():(c(g,x,r,n,a,null,o,s,l),setActiveBranch(m,x))):g&&isSameVNodeType(b,g)?(c(g,b,r,n,a,m,o,s,l),m.resolve(!0)):(c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0&&m.resolve()));else if(g&&isSameVNodeType(b,g))c(g,b,r,n,a,m,o,s,l),setActiveBranch(m,b);else if(triggerEvent(t,"onPending"),m.pendingBranch=b,m.pendingId++,c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0)m.resolve();else{const{timeout:E,pendingId:z}=m;E>0?setTimeout(()=>{m.pendingId===z&&m.fallback(x)},E):E===0&&m.fallback(x)}}function createSuspenseBoundary(e,t,r,n,a,o,s,l,c,u,d=!1){const{p:m,m:b,um:x,n:g,o:{parentNode:y,remove:w}}=u,_=toNumber(e.props&&e.props.timeout),E={vnode:e,parent:t,parentComponent:r,isSVG:s,container:n,hiddenContainer:a,anchor:o,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(z=!1){const{vnode:R,activeBranch:$,pendingBranch:H,pendingId:M,effects:I,parentComponent:j,container:N}=E;if(E.isHydrating)E.isHydrating=!1;else if(!z){const J=$&&H.transition&&H.transition.mode==="out-in";J&&($.transition.afterLeave=()=>{M===E.pendingId&&b(H,N,X,0)});let{anchor:X}=E;$&&(X=g($),x($,j,E,!0)),J||b(H,N,X,0)}setActiveBranch(E,H),E.pendingBranch=null,E.isInFallback=!1;let T=E.parent,Y=!1;for(;T;){if(T.pendingBranch){T.effects.push(...I),Y=!0;break}T=T.parent}Y||queuePostFlushCb(I),E.effects=[],triggerEvent(R,"onResolve")},fallback(z){if(!E.pendingBranch)return;const{vnode:R,activeBranch:$,parentComponent:H,container:M,isSVG:I}=E;triggerEvent(R,"onFallback");const j=g($),N=()=>{!E.isInFallback||(m(null,z,M,j,H,null,I,l,c),setActiveBranch(E,z))},T=z.transition&&z.transition.mode==="out-in";T&&($.transition.afterLeave=N),E.isInFallback=!0,x($,H,null,!0),T||N()},move(z,R,$){E.activeBranch&&b(E.activeBranch,z,R,$),E.container=z},next(){return E.activeBranch&&g(E.activeBranch)},registerDep(z,R){const $=!!E.pendingBranch;$&&E.deps++;const H=z.vnode.el;z.asyncDep.catch(M=>{handleError(M,z,0)}).then(M=>{if(z.isUnmounted||E.isUnmounted||E.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:I}=z;handleSetupResult(z,M,!1),H&&(I.el=H);const j=!H&&z.subTree.el;R(z,I,y(H||z.subTree.el),H?null:g(z.subTree),E,s,c),j&&w(j),updateHOCHostEl(z,I.el),$&&--E.deps===0&&E.resolve()})},unmount(z,R){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,r,z,R),E.pendingBranch&&x(E.pendingBranch,r,z,R)}};return E}function hydrateSuspense(e,t,r,n,a,o,s,l,c){const u=t.suspense=createSuspenseBoundary(t,n,r,e.parentNode,document.createElement("div"),null,a,o,s,l,!0),d=c(e,u.pendingBranch=t.ssContent,r,u,o,s);return u.deps===0&&u.resolve(),d}function normalizeSuspenseChildren(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=normalizeSuspenseSlot(n?r.default:r),e.ssFallback=n?normalizeSuspenseSlot(r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(e){let t;if(isFunction$3(e)){const r=isBlockTreeEnabled&&e._c;r&&(e._d=!1,openBlock()),e=e(),r&&(e._d=!0,t=currentBlock,closeBlock())}return isArray$2(e)&&(e=filterSingleRoot(e)),e=normalizeVNode(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray$2(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function setActiveBranch(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,a=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=a,updateHOCHostEl(n,a))}function provide(e,t){if(currentInstance){let r=currentInstance.provides;const n=currentInstance.parent&¤tInstance.parent.provides;n===r&&(r=currentInstance.provides=Object.create(n)),r[e]=t}}function inject(e,t,r=!1){const n=currentInstance||currentRenderingInstance;if(n){const a=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&isFunction$3(t)?t.call(n.proxy):t}}function watchEffect(e,t){return doWatch(e,null,t)}function watchPostEffect(e,t){return doWatch(e,null,{flush:"post"})}function watchSyncEffect(e,t){return doWatch(e,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(e,t,r){return doWatch(e,t,r)}function doWatch(e,t,{immediate:r,deep:n,flush:a,onTrack:o,onTrigger:s}=EMPTY_OBJ){const l=currentInstance;let c,u=!1,d=!1;if(isRef(e)?(c=()=>e.value,u=isShallow(e)):isReactive(e)?(c=()=>e,n=!0):isArray$2(e)?(d=!0,u=e.some(_=>isReactive(_)||isShallow(_)),c=()=>e.map(_=>{if(isRef(_))return _.value;if(isReactive(_))return traverse(_);if(isFunction$3(_))return callWithErrorHandling(_,l,2)})):isFunction$3(e)?t?c=()=>callWithErrorHandling(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),callWithAsyncErrorHandling(e,l,3,[b])}:c=NOOP,t&&n){const _=c;c=()=>traverse(_())}let m,b=_=>{m=w.onStop=()=>{callWithErrorHandling(_,l,4)}};if(isInSSRComponentSetup)return b=NOOP,t?r&&callWithAsyncErrorHandling(t,l,3,[c(),d?[]:void 0,b]):c(),NOOP;let x=d?[]:INITIAL_WATCHER_VALUE;const g=()=>{if(!!w.active)if(t){const _=w.run();(n||u||(d?_.some((E,z)=>hasChanged(E,x[z])):hasChanged(_,x)))&&(m&&m(),callWithAsyncErrorHandling(t,l,3,[_,x===INITIAL_WATCHER_VALUE?void 0:x,b]),x=_)}else w.run()};g.allowRecurse=!!t;let y;a==="sync"?y=g:a==="post"?y=()=>queuePostRenderEffect(g,l&&l.suspense):y=()=>queuePreFlushCb(g);const w=new ReactiveEffect(c,y);return t?r?g():x=w.run():a==="post"?queuePostRenderEffect(w.run.bind(w),l&&l.suspense):w.run(),()=>{w.stop(),l&&l.scope&&remove(l.scope.effects,w)}}function instanceWatch(e,t,r){const n=this.proxy,a=isString$3(e)?e.includes(".")?createPathGetter(n,e):()=>n[e]:e.bind(n,n);let o;isFunction$3(t)?o=t:(o=t.handler,r=t);const s=currentInstance;setCurrentInstance(this);const l=doWatch(a,o.bind(n),r);return s?setCurrentInstance(s):unsetCurrentInstance(),l}function createPathGetter(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a{traverse(r,t)});else if(isPlainObject$4(e))for(const r in e)traverse(e[r],t);return e}function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(e,{slots:t}){const r=getCurrentInstance(),n=useTransitionState();let a;return()=>{const o=t.default&&getTransitionRawChildren(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const y of o)if(y.type!==Comment){s=y;break}}const l=toRaw(e),{mode:c}=l;if(n.isLeaving)return emptyPlaceholder(s);const u=getKeepAliveChild(s);if(!u)return emptyPlaceholder(s);const d=resolveTransitionHooks(u,l,n,r);setTransitionHooks(u,d);const m=r.subTree,b=m&&getKeepAliveChild(m);let x=!1;const{getTransitionKey:g}=u.type;if(g){const y=g();a===void 0?a=y:y!==a&&(a=y,x=!0)}if(b&&b.type!==Comment&&(!isSameVNodeType(u,b)||x)){const y=resolveTransitionHooks(b,l,n,r);if(setTransitionHooks(b,y),c==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update()},emptyPlaceholder(s);c==="in-out"&&u.type!==Comment&&(y.delayLeave=(w,_,E)=>{const z=getLeavingNodesForType(n,b);z[String(b.key)]=b,w._leaveCb=()=>{_(),w._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=E})}return s}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function resolveTransitionHooks(e,t,r,n){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:b,onAfterLeave:x,onLeaveCancelled:g,onBeforeAppear:y,onAppear:w,onAfterAppear:_,onAppearCancelled:E}=t,z=String(e.key),R=getLeavingNodesForType(r,e),$=(I,j)=>{I&&callWithAsyncErrorHandling(I,n,9,j)},H=(I,j)=>{const N=j[1];$(I,j),isArray$2(I)?I.every(T=>T.length<=1)&&N():I.length<=1&&N()},M={mode:o,persisted:s,beforeEnter(I){let j=l;if(!r.isMounted)if(a)j=y||l;else return;I._leaveCb&&I._leaveCb(!0);const N=R[z];N&&isSameVNodeType(e,N)&&N.el._leaveCb&&N.el._leaveCb(),$(j,[I])},enter(I){let j=c,N=u,T=d;if(!r.isMounted)if(a)j=w||c,N=_||u,T=E||d;else return;let Y=!1;const J=I._enterCb=X=>{Y||(Y=!0,X?$(T,[I]):$(N,[I]),M.delayedLeave&&M.delayedLeave(),I._enterCb=void 0)};j?H(j,[I,J]):J()},leave(I,j){const N=String(e.key);if(I._enterCb&&I._enterCb(!0),r.isUnmounting)return j();$(m,[I]);let T=!1;const Y=I._leaveCb=J=>{T||(T=!0,j(),J?$(g,[I]):$(x,[I]),I._leaveCb=void 0,R[N]===e&&delete R[N])};R[N]=e,b?H(b,[I,Y]):Y()},clone(I){return resolveTransitionHooks(I,t,r,n)}};return M}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?setTransitionHooks(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 getTransitionRawChildren(e,t=!1,r){let n=[],a=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;function defineAsyncComponent(e){isFunction$3(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:a=200,timeout:o,suspensible:s=!0,onError:l}=e;let c=null,u,d=0;const m=()=>(d++,c=null,b()),b=()=>{let x;return c||(x=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,w)=>{l(g,()=>y(m()),()=>w(g),d+1)});throw g}).then(g=>x!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:b,get __asyncResolved(){return u},setup(){const x=currentInstance;if(u)return()=>createInnerComp(u,x);const g=E=>{c=null,handleError(E,x,13,!n)};if(s&&x.suspense||isInSSRComponentSetup)return b().then(E=>()=>createInnerComp(E,x)).catch(E=>(g(E),()=>n?createVNode(n,{error:E}):null));const y=ref(!1),w=ref(),_=ref(!!a);return a&&setTimeout(()=>{_.value=!1},a),o!=null&&setTimeout(()=>{if(!y.value&&!w.value){const E=new Error(`Async component timed out after ${o}ms.`);g(E),w.value=E}},o),b().then(()=>{y.value=!0,x.parent&&isKeepAlive(x.parent.vnode)&&queueJob(x.parent.update)}).catch(E=>{g(E),w.value=E}),()=>{if(y.value&&u)return createInnerComp(u,x);if(w.value&&n)return createVNode(n,{error:w.value});if(r&&!_.value)return createVNode(r)}}})}function createInnerComp(e,{vnode:{ref:t,props:r,children:n,shapeFlag:a},parent:o}){const s=createVNode(e,r,n);return s.ref=t,s}const isKeepAlive=e=>e.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=getCurrentInstance(),n=r.ctx;if(!n.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const a=new Map,o=new Set;let s=null;const l=r.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:m}}}=n,b=m("div");n.activate=(E,z,R,$,H)=>{const M=E.component;u(E,z,R,0,l),c(M.vnode,E,z,R,M,l,$,E.slotScopeIds,H),queuePostRenderEffect(()=>{M.isDeactivated=!1,M.a&&invokeArrayFns(M.a);const I=E.props&&E.props.onVnodeMounted;I&&invokeVNodeHook(I,M.parent,E)},l)},n.deactivate=E=>{const z=E.component;u(E,b,null,1,l),queuePostRenderEffect(()=>{z.da&&invokeArrayFns(z.da);const R=E.props&&E.props.onVnodeUnmounted;R&&invokeVNodeHook(R,z.parent,E),z.isDeactivated=!0},l)};function x(E){resetShapeFlag(E),d(E,r,l,!0)}function g(E){a.forEach((z,R)=>{const $=getComponentName(z.type);$&&(!E||!E($))&&y(R)})}function y(E){const z=a.get(E);!s||z.type!==s.type?x(z):s&&resetShapeFlag(s),a.delete(E),o.delete(E)}watch(()=>[e.include,e.exclude],([E,z])=>{E&&g(R=>matches(E,R)),z&&g(R=>!matches(z,R))},{flush:"post",deep:!0});let w=null;const _=()=>{w!=null&&a.set(w,getInnerChild(r.subTree))};return onMounted(_),onUpdated(_),onBeforeUnmount(()=>{a.forEach(E=>{const{subTree:z,suspense:R}=r,$=getInnerChild(z);if(E.type===$.type){resetShapeFlag($);const H=$.component.da;H&&queuePostRenderEffect(H,R);return}x(E)})}),()=>{if(w=null,!t.default)return null;const E=t.default(),z=E[0];if(E.length>1)return s=null,E;if(!isVNode(z)||!(z.shapeFlag&4)&&!(z.shapeFlag&128))return s=null,z;let R=getInnerChild(z);const $=R.type,H=getComponentName(isAsyncWrapper(R)?R.type.__asyncResolved||{}:$),{include:M,exclude:I,max:j}=e;if(M&&(!H||!matches(M,H))||I&&H&&matches(I,H))return s=R,z;const N=R.key==null?$:R.key,T=a.get(N);return R.el&&(R=cloneVNode(R),z.shapeFlag&128&&(z.ssContent=R)),w=N,T?(R.el=T.el,R.component=T.component,R.transition&&setTransitionHooks(R,R.transition),R.shapeFlag|=512,o.delete(N),o.add(N)):(o.add(N),j&&o.size>parseInt(j,10)&&y(o.values().next().value)),R.shapeFlag|=256,s=R,isSuspense(z.type)?z:R}}},KeepAlive=KeepAliveImpl;function matches(e,t){return isArray$2(e)?e.some(r=>matches(r,t)):isString$3(e)?e.split(",").includes(t):e.test?e.test(t):!1}function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,r=currentInstance){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(injectHook(t,n,r),r){let a=r.parent;for(;a&&a.parent;)isKeepAlive(a.parent.vnode)&&injectToKeepAliveRoot(n,t,r,a),a=a.parent}}function injectToKeepAliveRoot(e,t,r,n){const a=injectHook(t,e,n,!0);onUnmounted(()=>{remove(n[t],a)},r)}function resetShapeFlag(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function getInnerChild(e){return e.shapeFlag&128?e.ssContent:e}function injectHook(e,t,r=currentInstance,n=!1){if(r){const a=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;pauseTracking(),setCurrentInstance(r);const l=callWithAsyncErrorHandling(t,r,e,s);return unsetCurrentInstance(),resetTracking(),l});return n?a.unshift(o):a.push(o),o}}const createHook=e=>(t,r=currentInstance)=>(!isInSSRComponentSetup||e==="sp")&&injectHook(e,t,r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}function withDirectives(e,t){const r=currentRenderingInstance;if(r===null)return e;const n=getExposeProxy(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;ot(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,c=s.length;lisVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?e:null}function toHandlers(e){const t={};for(const r in e)t[toHandlerKey(r)]=e[r];return t}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend$1(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=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>queueJob(e.update)),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:r,setupState:n,data:a,props:o,accessCache:s,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else{if(n!==EMPTY_OBJ&&hasOwn$2(n,t))return s[t]=1,n[t];if(a!==EMPTY_OBJ&&hasOwn$2(a,t))return s[t]=2,a[t];if((u=e.propsOptions[0])&&hasOwn$2(u,t))return s[t]=3,o[t];if(r!==EMPTY_OBJ&&hasOwn$2(r,t))return s[t]=4,r[t];shouldCacheAccess&&(s[t]=0)}}const d=publicPropertiesMap[t];let m,b;if(d)return t==="$attrs"&&track(e,"get",t),d(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(r!==EMPTY_OBJ&&hasOwn$2(r,t))return s[t]=4,r[t];if(b=c.config.globalProperties,hasOwn$2(b,t))return b[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:o}=e;return a!==EMPTY_OBJ&&hasOwn$2(a,t)?(a[t]=r,!0):n!==EMPTY_OBJ&&hasOwn$2(n,t)?(n[t]=r,!0):hasOwn$2(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:o}},s){let l;return!!r[s]||e!==EMPTY_OBJ&&hasOwn$2(e,s)||t!==EMPTY_OBJ&&hasOwn$2(t,s)||(l=o[0])&&hasOwn$2(l,s)||hasOwn$2(n,s)||hasOwn$2(publicPropertiesMap,s)||hasOwn$2(a.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:hasOwn$2(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(e,t){if(t!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,t,e)},has(e,t){return t[0]!=="_"&&!isGloballyWhitelisted(t)}});let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),r=e.proxy,n=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:m,mounted:b,beforeUpdate:x,updated:g,activated:y,deactivated:w,beforeDestroy:_,beforeUnmount:E,destroyed:z,unmounted:R,render:$,renderTracked:H,renderTriggered:M,errorCaptured:I,serverPrefetch:j,expose:N,inheritAttrs:T,components:Y,directives:J,filters:X}=t;if(u&&resolveInjections(u,n,null,e.appContext.config.unwrapInjectedRef),s)for(const me in s){const fe=s[me];isFunction$3(fe)&&(n[me]=fe.bind(r))}if(a){const me=a.call(r,r);isObject$4(me)&&(e.data=reactive(me))}if(shouldCacheAccess=!0,o)for(const me in o){const fe=o[me],ye=isFunction$3(fe)?fe.bind(r,r):isFunction$3(fe.get)?fe.get.bind(r,r):NOOP,xe=!isFunction$3(fe)&&isFunction$3(fe.set)?fe.set.bind(r):NOOP,_e=computed({get:ye,set:xe});Object.defineProperty(n,me,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Ee=>_e.value=Ee})}if(l)for(const me in l)createWatcher(l[me],n,r,me);if(c){const me=isFunction$3(c)?c.call(r):c;Reflect.ownKeys(me).forEach(fe=>{provide(fe,me[fe])})}d&&callHook$1(d,e,"c");function ae(me,fe){isArray$2(fe)?fe.forEach(ye=>me(ye.bind(r))):fe&&me(fe.bind(r))}if(ae(onBeforeMount,m),ae(onMounted,b),ae(onBeforeUpdate,x),ae(onUpdated,g),ae(onActivated,y),ae(onDeactivated,w),ae(onErrorCaptured,I),ae(onRenderTracked,H),ae(onRenderTriggered,M),ae(onBeforeUnmount,E),ae(onUnmounted,R),ae(onServerPrefetch,j),isArray$2(N))if(N.length){const me=e.exposed||(e.exposed={});N.forEach(fe=>{Object.defineProperty(me,fe,{get:()=>r[fe],set:ye=>r[fe]=ye})})}else e.exposed||(e.exposed={});$&&e.render===NOOP&&(e.render=$),T!=null&&(e.inheritAttrs=T),Y&&(e.components=Y),J&&(e.directives=J)}function resolveInjections(e,t,r=NOOP,n=!1){isArray$2(e)&&(e=normalizeInject(e));for(const a in e){const o=e[a];let s;isObject$4(o)?"default"in o?s=inject(o.from||a,o.default,!0):s=inject(o.from||a):s=inject(o),isRef(s)&&n?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[a]=s}}function callHook$1(e,t,r){callWithAsyncErrorHandling(isArray$2(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function createWatcher(e,t,r,n){const a=n.includes(".")?createPathGetter(r,n):()=>r[n];if(isString$3(e)){const o=t[e];isFunction$3(o)&&watch(a,o)}else if(isFunction$3(e))watch(a,e.bind(r));else if(isObject$4(e))if(isArray$2(e))e.forEach(o=>createWatcher(o,t,r,n));else{const o=isFunction$3(e.handler)?e.handler.bind(r):t[e.handler];isFunction$3(o)&&watch(a,o,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!a.length&&!r&&!n?c=t:(c={},a.length&&a.forEach(u=>mergeOptions$1(c,u,s,!0)),mergeOptions$1(c,t,s)),o.set(t,c),c}function mergeOptions$1(e,t,r,n=!1){const{mixins:a,extends:o}=t;o&&mergeOptions$1(e,o,r,!0),a&&a.forEach(s=>mergeOptions$1(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const l=internalOptionMergeStrats[s]||r&&r[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend$1(isFunction$3(e)?e.call(this,this):e,isFunction$3(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$2(e)){const t={};for(let r=0;r0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let m=0;m{c=!0;const[b,x]=normalizePropsOptions(m,t,!0);extend$1(s,b),x&&l.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return n.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$2(o))for(let d=0;d-1,x[1]=y<0||g-1||hasOwn$2(x,"default"))&&l.push(m)}}}const u=[s,l];return n.set(e,u),u}function validatePropName(e){return e[0]!=="$"}function getType(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray$2(t)?t.findIndex(r=>isSameType(r,e)):isFunction$3(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>e[0]==="_"||e==="$stable",normalizeSlotValue=e=>isArray$2(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot$1=(e,t,r)=>{if(t._n)return t;const n=withCtx((...a)=>normalizeSlotValue(t(...a)),r);return n._c=!1,n},normalizeObjectSlots=(e,t,r)=>{const n=e._ctx;for(const a in e){if(isInternalKey(a))continue;const o=e[a];if(isFunction$3(o))t[a]=normalizeSlot$1(a,o,n);else if(o!=null){const s=normalizeSlotValue(o);t[a]=()=>s}}},normalizeVNodeSlots=(e,t)=>{const r=normalizeSlotValue(t);e.slots.default=()=>r},initSlots=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=toRaw(t),def(t,"_",r)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,r)=>{const{vnode:n,slots:a}=e;let o=!0,s=EMPTY_OBJ;if(n.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:(extend$1(a,t),!r&&l===1&&delete a._):(o=!t.$stable,normalizeObjectSlots(t,a)),s=t}else t&&(normalizeVNodeSlots(e,t),s={default:1});if(o)for(const l in a)!isInternalKey(l)&&!(l in s)&&delete a[l]};function createAppContext(){return{app:null,config:{isNativeTag:NO,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 uid=0;function createAppAPI(e,t){return function(n,a=null){isFunction$3(n)||(n=Object.assign({},n)),a!=null&&!isObject$4(a)&&(a=null);const o=createAppContext(),s=new Set;let l=!1;const c=o.app={_uid:uid++,_component:n,_props:a,_container:null,_context:o,_instance:null,version:version$1,get config(){return o.config},set config(u){},use(u,...d){return s.has(u)||(u&&isFunction$3(u.install)?(s.add(u),u.install(c,...d)):isFunction$3(u)&&(s.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,m){if(!l){const b=createVNode(n,a);return b.appContext=o,d&&t?t(b,u):e(b,u,m),l=!0,c._container=u,u.__vue_app__=c,getExposeProxy(b.component)||b.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c}};return c}}function setRef(e,t,r,n,a=!1){if(isArray$2(e)){e.forEach((b,x)=>setRef(b,t&&(isArray$2(t)?t[x]:t),r,n,a));return}if(isAsyncWrapper(n)&&!a)return;const o=n.shapeFlag&4?getExposeProxy(n.component)||n.component.proxy:n.el,s=a?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===EMPTY_OBJ?l.refs={}:l.refs,m=l.setupState;if(u!=null&&u!==c&&(isString$3(u)?(d[u]=null,hasOwn$2(m,u)&&(m[u]=null)):isRef(u)&&(u.value=null)),isFunction$3(c))callWithErrorHandling(c,l,12,[s,d]);else{const b=isString$3(c),x=isRef(c);if(b||x){const g=()=>{if(e.f){const y=b?d[c]:c.value;a?isArray$2(y)&&remove(y,o):isArray$2(y)?y.includes(o)||y.push(o):b?(d[c]=[o],hasOwn$2(m,c)&&(m[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else b?(d[c]=s,hasOwn$2(m,c)&&(m[c]=s)):x&&(c.value=s,e.k&&(d[e.k]=s))};s?(g.id=-1,queuePostRenderEffect(g,r)):g()}}}let hasMismatch=!1;const isSVGContainer=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",isComment=e=>e.nodeType===8;function createHydrationFunctions(e){const{mt:t,p:r,o:{patchProp:n,createText:a,nextSibling:o,parentNode:s,remove:l,insert:c,createComment:u}}=e,d=(_,E)=>{if(!E.hasChildNodes()){r(null,_,E),flushPostFlushCbs(),E._vnode=_;return}hasMismatch=!1,m(E.firstChild,_,null,null,null),flushPostFlushCbs(),E._vnode=_,hasMismatch&&console.error("Hydration completed but contains mismatches.")},m=(_,E,z,R,$,H=!1)=>{const M=isComment(_)&&_.data==="[",I=()=>y(_,E,z,R,$,M),{type:j,ref:N,shapeFlag:T,patchFlag:Y}=E,J=_.nodeType;E.el=_,Y===-2&&(H=!1,E.dynamicChildren=null);let X=null;switch(j){case Text:J!==3?E.children===""?(c(E.el=a(""),s(_),_),X=_):X=I():(_.data!==E.children&&(hasMismatch=!0,_.data=E.children),X=o(_));break;case Comment:J!==8||M?X=I():X=o(_);break;case Static:if(J!==1&&J!==3)X=I();else{X=_;const ue=!E.children.length;for(let ae=0;ae{H=H||!!E.dynamicChildren;const{type:M,props:I,patchFlag:j,shapeFlag:N,dirs:T}=E,Y=M==="input"&&T||M==="option";if(Y||j!==-1){if(T&&invokeDirectiveHook(E,null,z,"created"),I)if(Y||!H||j&48)for(const X in I)(Y&&X.endsWith("value")||isOn(X)&&!isReservedProp(X))&&n(_,X,null,I[X],!1,void 0,z);else I.onClick&&n(_,"onClick",null,I.onClick,!1,void 0,z);let J;if((J=I&&I.onVnodeBeforeMount)&&invokeVNodeHook(J,z,E),T&&invokeDirectiveHook(E,null,z,"beforeMount"),((J=I&&I.onVnodeMounted)||T)&&queueEffectWithSuspense(()=>{J&&invokeVNodeHook(J,z,E),T&&invokeDirectiveHook(E,null,z,"mounted")},R),N&16&&!(I&&(I.innerHTML||I.textContent))){let X=x(_.firstChild,E,_,z,R,$,H);for(;X;){hasMismatch=!0;const ue=X;X=X.nextSibling,l(ue)}}else N&8&&_.textContent!==E.children&&(hasMismatch=!0,_.textContent=E.children)}return _.nextSibling},x=(_,E,z,R,$,H,M)=>{M=M||!!E.dynamicChildren;const I=E.children,j=I.length;for(let N=0;N{const{slotScopeIds:M}=E;M&&($=$?$.concat(M):M);const I=s(_),j=x(o(_),E,I,z,R,$,H);return j&&isComment(j)&&j.data==="]"?o(E.anchor=j):(hasMismatch=!0,c(E.anchor=u("]"),I,j),j)},y=(_,E,z,R,$,H)=>{if(hasMismatch=!0,E.el=null,H){const j=w(_);for(;;){const N=o(_);if(N&&N!==j)l(N);else break}}const M=o(_),I=s(_);return l(_),r(null,E,I,M,z,R,isSVGContainer(I),$),M},w=_=>{let E=0;for(;_;)if(_=o(_),_&&isComment(_)&&(_.data==="["&&E++,_.data==="]")){if(E===0)return o(_);E--}return _};return[d,m]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function createHydrationRenderer(e){return baseCreateRenderer(e,createHydrationFunctions)}function baseCreateRenderer(e,t){const r=getGlobalThis$1();r.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:m,nextSibling:b,setScopeId:x=NOOP,cloneNode:g,insertStaticContent:y}=e,w=(C,S,P,B=null,D=null,q=null,V=!1,Z=null,O=!!S.dynamicChildren)=>{if(C===S)return;C&&!isSameVNodeType(C,S)&&(B=Q(C),ke(C,D,q,!0),C=null),S.patchFlag===-2&&(O=!1,S.dynamicChildren=null);const{type:A,ref:ee,shapeFlag:K}=S;switch(A){case Text:_(C,S,P,B);break;case Comment:E(C,S,P,B);break;case Static:C==null&&z(S,P,B,V);break;case Fragment:J(C,S,P,B,D,q,V,Z,O);break;default:K&1?H(C,S,P,B,D,q,V,Z,O):K&6?X(C,S,P,B,D,q,V,Z,O):(K&64||K&128)&&A.process(C,S,P,B,D,q,V,Z,O,he)}ee!=null&&D&&setRef(ee,C&&C.ref,q,S||C,!S)},_=(C,S,P,B)=>{if(C==null)n(S.el=l(S.children),P,B);else{const D=S.el=C.el;S.children!==C.children&&u(D,S.children)}},E=(C,S,P,B)=>{C==null?n(S.el=c(S.children||""),P,B):S.el=C.el},z=(C,S,P,B)=>{[C.el,C.anchor]=y(C.children,S,P,B,C.el,C.anchor)},R=({el:C,anchor:S},P,B)=>{let D;for(;C&&C!==S;)D=b(C),n(C,P,B),C=D;n(S,P,B)},$=({el:C,anchor:S})=>{let P;for(;C&&C!==S;)P=b(C),a(C),C=P;a(S)},H=(C,S,P,B,D,q,V,Z,O)=>{V=V||S.type==="svg",C==null?M(S,P,B,D,q,V,Z,O):N(C,S,D,q,V,Z,O)},M=(C,S,P,B,D,q,V,Z)=>{let O,A;const{type:ee,props:K,shapeFlag:ne,transition:ie,patchFlag:pe,dirs:be}=C;if(C.el&&g!==void 0&&pe===-1)O=C.el=g(C.el);else{if(O=C.el=s(C.type,q,K&&K.is,K),ne&8?d(O,C.children):ne&16&&j(C.children,O,null,B,D,q&&ee!=="foreignObject",V,Z),be&&invokeDirectiveHook(C,null,B,"created"),K){for(const we in K)we!=="value"&&!isReservedProp(we)&&o(O,we,null,K[we],q,C.children,B,D,U);"value"in K&&o(O,"value",null,K.value),(A=K.onVnodeBeforeMount)&&invokeVNodeHook(A,B,C)}I(O,C,C.scopeId,V,B)}be&&invokeDirectiveHook(C,null,B,"beforeMount");const ve=(!D||D&&!D.pendingBranch)&&ie&&!ie.persisted;ve&&ie.beforeEnter(O),n(O,S,P),((A=K&&K.onVnodeMounted)||ve||be)&&queuePostRenderEffect(()=>{A&&invokeVNodeHook(A,B,C),ve&&ie.enter(O),be&&invokeDirectiveHook(C,null,B,"mounted")},D)},I=(C,S,P,B,D)=>{if(P&&x(C,P),B)for(let q=0;q{for(let A=O;A{const Z=S.el=C.el;let{patchFlag:O,dynamicChildren:A,dirs:ee}=S;O|=C.patchFlag&16;const K=C.props||EMPTY_OBJ,ne=S.props||EMPTY_OBJ;let ie;P&&toggleRecurse(P,!1),(ie=ne.onVnodeBeforeUpdate)&&invokeVNodeHook(ie,P,S,C),ee&&invokeDirectiveHook(S,C,P,"beforeUpdate"),P&&toggleRecurse(P,!0);const pe=D&&S.type!=="foreignObject";if(A?T(C.dynamicChildren,A,Z,P,B,pe,q):V||ye(C,S,Z,null,P,B,pe,q,!1),O>0){if(O&16)Y(Z,S,K,ne,P,B,D);else if(O&2&&K.class!==ne.class&&o(Z,"class",null,ne.class,D),O&4&&o(Z,"style",K.style,ne.style,D),O&8){const be=S.dynamicProps;for(let ve=0;ve{ie&&invokeVNodeHook(ie,P,S,C),ee&&invokeDirectiveHook(S,C,P,"updated")},B)},T=(C,S,P,B,D,q,V)=>{for(let Z=0;Z{if(P!==B){for(const Z in B){if(isReservedProp(Z))continue;const O=B[Z],A=P[Z];O!==A&&Z!=="value"&&o(C,Z,A,O,V,S.children,D,q,U)}if(P!==EMPTY_OBJ)for(const Z in P)!isReservedProp(Z)&&!(Z in B)&&o(C,Z,P[Z],null,V,S.children,D,q,U);"value"in B&&o(C,"value",P.value,B.value)}},J=(C,S,P,B,D,q,V,Z,O)=>{const A=S.el=C?C.el:l(""),ee=S.anchor=C?C.anchor:l("");let{patchFlag:K,dynamicChildren:ne,slotScopeIds:ie}=S;ie&&(Z=Z?Z.concat(ie):ie),C==null?(n(A,P,B),n(ee,P,B),j(S.children,P,ee,D,q,V,Z,O)):K>0&&K&64&&ne&&C.dynamicChildren?(T(C.dynamicChildren,ne,P,D,q,V,Z),(S.key!=null||D&&S===D.subTree)&&traverseStaticChildren(C,S,!0)):ye(C,S,P,ee,D,q,V,Z,O)},X=(C,S,P,B,D,q,V,Z,O)=>{S.slotScopeIds=Z,C==null?S.shapeFlag&512?D.ctx.activate(S,P,B,V,O):ue(S,P,B,D,q,V,O):ae(C,S,O)},ue=(C,S,P,B,D,q,V)=>{const Z=C.component=createComponentInstance(C,B,D);if(isKeepAlive(C)&&(Z.ctx.renderer=he),setupComponent(Z),Z.asyncDep){if(D&&D.registerDep(Z,me),!C.el){const O=Z.subTree=createVNode(Comment);E(null,O,S,P)}return}me(Z,C,S,P,D,q,V)},ae=(C,S,P)=>{const B=S.component=C.component;if(shouldUpdateComponent(C,S,P))if(B.asyncDep&&!B.asyncResolved){fe(B,S,P);return}else B.next=S,invalidateJob(B.update),B.update();else S.el=C.el,B.vnode=S},me=(C,S,P,B,D,q,V)=>{const Z=()=>{if(C.isMounted){let{next:ee,bu:K,u:ne,parent:ie,vnode:pe}=C,be=ee,ve;toggleRecurse(C,!1),ee?(ee.el=pe.el,fe(C,ee,V)):ee=pe,K&&invokeArrayFns(K),(ve=ee.props&&ee.props.onVnodeBeforeUpdate)&&invokeVNodeHook(ve,ie,ee,pe),toggleRecurse(C,!0);const we=renderComponentRoot(C),Re=C.subTree;C.subTree=we,w(Re,we,m(Re.el),Q(Re),C,D,q),ee.el=we.el,be===null&&updateHOCHostEl(C,we.el),ne&&queuePostRenderEffect(ne,D),(ve=ee.props&&ee.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(ve,ie,ee,pe),D)}else{let ee;const{el:K,props:ne}=S,{bm:ie,m:pe,parent:be}=C,ve=isAsyncWrapper(S);if(toggleRecurse(C,!1),ie&&invokeArrayFns(ie),!ve&&(ee=ne&&ne.onVnodeBeforeMount)&&invokeVNodeHook(ee,be,S),toggleRecurse(C,!0),K&&ce){const we=()=>{C.subTree=renderComponentRoot(C),ce(K,C.subTree,C,D,null)};ve?S.type.__asyncLoader().then(()=>!C.isUnmounted&&we()):we()}else{const we=C.subTree=renderComponentRoot(C);w(null,we,P,B,C,D,q),S.el=we.el}if(pe&&queuePostRenderEffect(pe,D),!ve&&(ee=ne&&ne.onVnodeMounted)){const we=S;queuePostRenderEffect(()=>invokeVNodeHook(ee,be,we),D)}(S.shapeFlag&256||be&&isAsyncWrapper(be.vnode)&&be.vnode.shapeFlag&256)&&C.a&&queuePostRenderEffect(C.a,D),C.isMounted=!0,S=P=B=null}},O=C.effect=new ReactiveEffect(Z,()=>queueJob(A),C.scope),A=C.update=()=>O.run();A.id=C.uid,toggleRecurse(C,!0),A()},fe=(C,S,P)=>{S.component=C;const B=C.vnode.props;C.vnode=S,C.next=null,updateProps(C,S.props,B,P),updateSlots(C,S.children,P),pauseTracking(),flushPreFlushCbs(void 0,C.update),resetTracking()},ye=(C,S,P,B,D,q,V,Z,O=!1)=>{const A=C&&C.children,ee=C?C.shapeFlag:0,K=S.children,{patchFlag:ne,shapeFlag:ie}=S;if(ne>0){if(ne&128){_e(A,K,P,B,D,q,V,Z,O);return}else if(ne&256){xe(A,K,P,B,D,q,V,Z,O);return}}ie&8?(ee&16&&U(A,D,q),K!==A&&d(P,K)):ee&16?ie&16?_e(A,K,P,B,D,q,V,Z,O):U(A,D,q,!0):(ee&8&&d(P,""),ie&16&&j(K,P,B,D,q,V,Z,O))},xe=(C,S,P,B,D,q,V,Z,O)=>{C=C||EMPTY_ARR,S=S||EMPTY_ARR;const A=C.length,ee=S.length,K=Math.min(A,ee);let ne;for(ne=0;neee?U(C,D,q,!0,!1,K):j(S,P,B,D,q,V,Z,O,K)},_e=(C,S,P,B,D,q,V,Z,O)=>{let A=0;const ee=S.length;let K=C.length-1,ne=ee-1;for(;A<=K&&A<=ne;){const ie=C[A],pe=S[A]=O?cloneIfMounted(S[A]):normalizeVNode(S[A]);if(isSameVNodeType(ie,pe))w(ie,pe,P,null,D,q,V,Z,O);else break;A++}for(;A<=K&&A<=ne;){const ie=C[K],pe=S[ne]=O?cloneIfMounted(S[ne]):normalizeVNode(S[ne]);if(isSameVNodeType(ie,pe))w(ie,pe,P,null,D,q,V,Z,O);else break;K--,ne--}if(A>K){if(A<=ne){const ie=ne+1,pe=iene)for(;A<=K;)ke(C[A],D,q,!0),A++;else{const ie=A,pe=A,be=new Map;for(A=pe;A<=ne;A++){const Ce=S[A]=O?cloneIfMounted(S[A]):normalizeVNode(S[A]);Ce.key!=null&&be.set(Ce.key,A)}let ve,we=0;const Re=ne-pe+1;let Se=!1,Ie=0;const Ae=new Array(Re);for(A=0;A=Re){ke(Ce,D,q,!0);continue}let Me;if(Ce.key!=null)Me=be.get(Ce.key);else for(ve=pe;ve<=ne;ve++)if(Ae[ve-pe]===0&&isSameVNodeType(Ce,S[ve])){Me=ve;break}Me===void 0?ke(Ce,D,q,!0):(Ae[Me-pe]=A+1,Me>=Ie?Ie=Me:Se=!0,w(Ce,S[Me],P,null,D,q,V,Z,O),we++)}const Fe=Se?getSequence(Ae):EMPTY_ARR;for(ve=Fe.length-1,A=Re-1;A>=0;A--){const Ce=pe+A,Me=S[Ce],Le=Ce+1{const{el:q,type:V,transition:Z,children:O,shapeFlag:A}=C;if(A&6){Ee(C.component.subTree,S,P,B);return}if(A&128){C.suspense.move(S,P,B);return}if(A&64){V.move(C,S,P,he);return}if(V===Fragment){n(q,S,P);for(let K=0;KZ.enter(q),D);else{const{leave:K,delayLeave:ne,afterLeave:ie}=Z,pe=()=>n(q,S,P),be=()=>{K(q,()=>{pe(),ie&&ie()})};ne?ne(q,pe,be):be()}else n(q,S,P)},ke=(C,S,P,B=!1,D=!1)=>{const{type:q,props:V,ref:Z,children:O,dynamicChildren:A,shapeFlag:ee,patchFlag:K,dirs:ne}=C;if(Z!=null&&setRef(Z,null,P,C,!0),ee&256){S.ctx.deactivate(C);return}const ie=ee&1&&ne,pe=!isAsyncWrapper(C);let be;if(pe&&(be=V&&V.onVnodeBeforeUnmount)&&invokeVNodeHook(be,S,C),ee&6)W(C.component,P,B);else{if(ee&128){C.suspense.unmount(P,B);return}ie&&invokeDirectiveHook(C,null,S,"beforeUnmount"),ee&64?C.type.remove(C,S,P,D,he,B):A&&(q!==Fragment||K>0&&K&64)?U(A,S,P,!1,!0):(q===Fragment&&K&384||!D&&ee&16)&&U(O,S,P),B&&Oe(C)}(pe&&(be=V&&V.onVnodeUnmounted)||ie)&&queuePostRenderEffect(()=>{be&&invokeVNodeHook(be,S,C),ie&&invokeDirectiveHook(C,null,S,"unmounted")},P)},Oe=C=>{const{type:S,el:P,anchor:B,transition:D}=C;if(S===Fragment){F(P,B);return}if(S===Static){$(C);return}const q=()=>{a(P),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(C.shapeFlag&1&&D&&!D.persisted){const{leave:V,delayLeave:Z}=D,O=()=>V(P,q);Z?Z(C.el,q,O):O()}else q()},F=(C,S)=>{let P;for(;C!==S;)P=b(C),a(C),C=P;a(S)},W=(C,S,P)=>{const{bum:B,scope:D,update:q,subTree:V,um:Z}=C;B&&invokeArrayFns(B),D.stop(),q&&(q.active=!1,ke(V,C,S,P)),Z&&queuePostRenderEffect(Z,S),queuePostRenderEffect(()=>{C.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},U=(C,S,P,B=!1,D=!1,q=0)=>{for(let V=q;VC.shapeFlag&6?Q(C.component.subTree):C.shapeFlag&128?C.suspense.next():b(C.anchor||C.el),de=(C,S,P)=>{C==null?S._vnode&&ke(S._vnode,null,null,!0):w(S._vnode||null,C,S,null,null,null,P),flushPostFlushCbs(),S._vnode=C},he={p:w,um:ke,m:Ee,r:Oe,mt:ue,mc:j,pc:ye,pbc:T,n:Q,o:e};let le,ce;return t&&([le,ce]=t(he)),{render:de,hydrate:le,createApp:createAppAPI(de,le)}}function toggleRecurse({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function traverseStaticChildren(e,t,r=!1){const n=e.children,a=t.children;if(isArray$2(n)&&isArray$2(a))for(let o=0;o>1,e[r[l]]0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}const isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===""),isTargetSVG=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,resolveTarget=(e,t)=>{const r=e&&e.to;return isString$3(r)?t?t(r):null:r},TeleportImpl={__isTeleport:!0,process(e,t,r,n,a,o,s,l,c,u){const{mc:d,pc:m,pbc:b,o:{insert:x,querySelector:g,createText:y,createComment:w}}=u,_=isTeleportDisabled(t.props);let{shapeFlag:E,children:z,dynamicChildren:R}=t;if(e==null){const $=t.el=y(""),H=t.anchor=y("");x($,r,n),x(H,r,n);const M=t.target=resolveTarget(t.props,g),I=t.targetAnchor=y("");M&&(x(I,M),s=s||isTargetSVG(M));const j=(N,T)=>{E&16&&d(z,N,T,a,o,s,l,c)};_?j(r,H):M&&j(M,I)}else{t.el=e.el;const $=t.anchor=e.anchor,H=t.target=e.target,M=t.targetAnchor=e.targetAnchor,I=isTeleportDisabled(e.props),j=I?r:H,N=I?$:M;if(s=s||isTargetSVG(H),R?(b(e.dynamicChildren,R,j,a,o,s,l),traverseStaticChildren(e,t,!0)):c||m(e,t,j,N,a,o,s,l,!1),_)I||moveTeleport(t,r,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=resolveTarget(t.props,g);T&&moveTeleport(t,T,null,u,0)}else I&&moveTeleport(t,H,M,u,1)}},remove(e,t,r,n,{um:a,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:u,targetAnchor:d,target:m,props:b}=e;if(m&&o(d),(s||!isTeleportDisabled(b))&&(o(u),l&16))for(let x=0;x0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),e}function createElementBlock(e,t,r,n,a,o){return setupBlock(createBaseVNode(e,t,r,n,a,o,!0))}function createBlock(e,t,r,n,a){return setupBlock(createVNode(e,t,r,n,a,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}function transformVNodeArgs(e){}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>e!=null?e:null,normalizeRef=({ref:e,ref_key:t,ref_for:r})=>e!=null?isString$3(e)||isRef(e)||isFunction$3(e)?{i:currentRenderingInstance,r:e,k:t,f:!!r}:e:null;function createBaseVNode(e,t=null,r=null,n=0,a=null,o=e===Fragment?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null};return l?(normalizeChildren(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=isString$3(r)?8:16),isBlockTreeEnabled>0&&!s&¤tBlock&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&¤tBlock.push(c),c}const createVNode=_createVNode;function _createVNode(e,t=null,r=null,n=0,a=null,o=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){const l=cloneVNode(e,t,!0);return r&&normalizeChildren(l,r),isBlockTreeEnabled>0&&!o&¤tBlock&&(l.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=l:currentBlock.push(l)),l.patchFlag|=-2,l}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:l,style:c}=t;l&&!isString$3(l)&&(t.class=normalizeClass(l)),isObject$4(c)&&(isProxy(c)&&!isArray$2(c)&&(c=extend$1({},c)),t.style=normalizeStyle(c))}const s=isString$3(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction$3(e)?2:0;return createBaseVNode(e,t,r,n,a,s,o,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend$1({},e):e:null}function cloneVNode(e,t,r=!1){const{props:n,ref:a,patchFlag:o,children:s}=e,l=t?mergeProps(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&normalizeKey(l),ref:t&&t.ref?r&&a?isArray$2(a)?a.concat(normalizeRef(t)):[a,normalizeRef(t)]:normalizeRef(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const r=createVNode(Static,null,e);return r.staticCount=t,r}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray$2(e)?createVNode(Fragment,null,e.slice()):typeof e=="object"?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(isArray$2(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),normalizeChildren(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(InternalObjectKey in t)?t._ctx=currentRenderingInstance:a===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction$3(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),n&64?(r=16,t=[createTextVNode(t)]):r=8);e.children=t,e.shapeFlag|=r}function mergeProps(...e){const t={};for(let r=0;rcurrentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e,e.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(e,t=!1){isInSSRComponentSetup=t;const{props:r,children:n}=e.vnode,a=isStatefulComponent(e);initProps(e,r,a,t),initSlots(e,n);const o=a?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,o}function setupStatefulComponent(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:n}=r;if(n){const a=e.setupContext=n.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const o=callWithErrorHandling(n,e,0,[e.props,a]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(o)){if(o.then(unsetCurrentInstance,unsetCurrentInstance),t)return o.then(s=>{handleSetupResult(e,s,t)}).catch(s=>{handleError(s,e,0)});e.asyncDep=o}else handleSetupResult(e,o,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,r){isFunction$3(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$4(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,r)}let compile,installWithProxy;function registerRuntimeCompiler(e){compile=e,installWithProxy=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile;function finishComponentSetup(e,t,r){const n=e.type;if(!e.render){if(!t&&compile&&!n.render){const a=n.template;if(a){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=n,u=extend$1(extend$1({isCustomElement:o,delimiters:l},s),c);n.render=compile(a,u)}}e.render=n.render||NOOP,installWithProxy&&installWithProxy(e)}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(e){return new Proxy(e.attrs,{get(t,r){return track(e,"get","$attrs"),t[r]}})}function createSetupContext(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=createAttrsProxy(e))},slots:e.slots,emit:e.emit,expose:t}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](e)}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction$3(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,r=!1){let n=getComponentName(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&e&&e.parent){const a=o=>{for(const s in o)if(o[s]===t)return s};n=a(e.components||e.parent.type.components)||a(e.appContext.components)}return n?classify(n):r?"App":"Anonymous"}function isClassComponent(e){return isFunction$3(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function defineProps(){return null}function defineEmits(){return null}function defineExpose(e){}function withDefaults(e,t){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const e=getCurrentInstance();return e.setupContext||(e.setupContext=createSetupContext(e))}function mergeDefaults(e,t){const r=isArray$2(e)?e.reduce((n,a)=>(n[a]={},n),{}):e;for(const n in t){const a=r[n];a?isArray$2(a)||isFunction$3(a)?r[n]={type:a,default:t[n]}:a.default=t[n]:a===null&&(r[n]={default:t[n]})}return r}function createPropsRestProxy(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function withAsyncContext(e){const t=getCurrentInstance();let r=e();return unsetCurrentInstance(),isPromise$1(r)&&(r=r.catch(n=>{throw setCurrentInstance(t),n})),[r,()=>setCurrentInstance(t)]}function h(e,t,r){const n=arguments.length;return n===2?isObject$4(t)&&!isArray$2(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&isVNode(r)&&(r=[r]),createVNode(e,t,r))}const ssrContextKey=Symbol(""),useSSRContext=()=>{{const e=inject(ssrContextKey);return e||warn$1("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function initCustomFormatter(){}function withMemo(e,t,r,n){const a=r[n];if(a&&isMemoSame(a,e))return a;const o=t();return o.memo=e.slice(),r[n]=o}function isMemoSame(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n0&¤tBlock&¤tBlock.push(e),!0}const version$1="3.2.37",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?doc.createElementNS(svgNS,e):doc.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,a,o){const s=r?r.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===o||!(a=a.nextSibling)););else{templateContainer.innerHTML=n?`${e}`:e;const l=templateContainer.content;if(n){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function patchClass(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,r){const n=e.style,a=isString$3(r);if(r&&!a){for(const o in r)setStyle(n,o,r[o]);if(t&&!isString$3(t))for(const o in t)r[o]==null&&setStyle(n,o,"")}else{const o=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=o)}}const importantRE=/\s*!important$/;function setStyle(e,t,r){if(isArray$2(r))r.forEach(n=>setStyle(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=autoPrefix(e,t);importantRE.test(r)?e.setProperty(hyphenate(n),r.replace(importantRE,""),"important"):e[n]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const r=prefixCache[t];if(r)return r;let n=camelize(t);if(n!=="filter"&&n in e)return prefixCache[t]=n;n=capitalize(n);for(let a=0;a{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let cachedNow=0;const p=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p.then(reset),cachedNow=_getNow());function addEventListener(e,t,r,n){e.addEventListener(t,r,n)}function removeEventListener(e,t,r,n){e.removeEventListener(t,r,n)}function patchEvent(e,t,r,n,a=null){const o=e._vei||(e._vei={}),s=o[t];if(n&&s)s.value=n;else{const[l,c]=parseName(t);if(n){const u=o[t]=createInvoker(n,a);addEventListener(e,l,u,c)}else s&&(removeEventListener(e,l,s,c),o[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){t={};let r;for(;r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),t]}function createInvoker(e,t){const r=n=>{const a=n.timeStamp||_getNow();(skipTimestampCheck||a>=r.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(n,r.value),t,5,[n])};return r.value=e,r.attached=getNow(),r}function patchStopImmediatePropagation(e,t){if(isArray$2(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const nativeOnRE=/^on[a-z]/,patchProp=(e,t,r,n,a=!1,o,s,l,c)=>{t==="class"?patchClass(e,n,a):t==="style"?patchStyle(e,r,n):isOn(t)?isModelListener(t)||patchEvent(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(e,t,n,a))?patchDOMProp(e,t,n,o,s,l,c):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),patchAttr(e,t,n,a))};function shouldSetAsProp(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&nativeOnRE.test(t)&&isFunction$3(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nativeOnRE.test(t)&&isString$3(r)?!1:t in e}function defineCustomElement(e,t){const r=defineComponent(e);class n extends VueElement{constructor(o){super(r,o,t)}}return n.def=r,n}const defineSSRCustomElement=e=>defineCustomElement(e,hydrate),BaseClass=typeof HTMLElement!="undefined"?HTMLElement:class{};class VueElement extends BaseClass{constructor(t,r={},n){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n{for(const a of n)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const t=n=>{const{props:a,styles:o}=n,s=!isArray$2(a),l=a?s?Object.keys(a):a:[];let c;if(s)for(const u in this._props){const d=a[u];(d===Number||d&&d.type===Number)&&(this._props[u]=toNumber(this._props[u]),(c||(c=Object.create(null)))[u]=!0)}this._numberProps=c;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of l.map(camelize))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(d){this._setProp(u,d)}});this._applyStyles(o),this._update()},r=this._def.__asyncLoader;r?r().then(t):t(this._def)}_setAttr(t){let r=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(r=toNumber(r)),this._setProp(camelize(t),r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,a=!0){r!==this._props[t]&&(this._props[t]=r,a&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(hyphenate(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hyphenate(t),r+""):r||this.removeAttribute(hyphenate(t))))}_update(){render(this._createVNode(),this.shadowRoot)}_createVNode(){const t=createVNode(this._def,extend$1({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,r.emit=(a,...o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof VueElement){r.parent=n._instance;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function useCssModule(e="$style"){{const t=getCurrentInstance();if(!t)return EMPTY_OBJ;const r=t.type.__cssModules;if(!r)return EMPTY_OBJ;const n=r[e];return n||EMPTY_OBJ}}function useCssVars(e){const t=getCurrentInstance();if(!t)return;const r=()=>setVarsOnVNode(t.subTree,e(t.proxy));watchPostEffect(r),onMounted(()=>{const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>n.disconnect())})}function setVarsOnVNode(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)setVarsOnNode(e.el,t);else if(e.type===Fragment)e.children.forEach(r=>setVarsOnVNode(r,t));else if(e.type===Static){let{el:r,anchor:n}=e;for(;r&&(setVarsOnNode(r,t),r!==n);)r=r.nextSibling}}function setVarsOnNode(e,t){if(e.nodeType===1){const r=e.style;for(const n in t)r.setProperty(`--${n}`,t[n])}}const TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$1({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(e,t=[])=>{isArray$2(e)?e.forEach(r=>r(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray$2(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const Y in e)Y in DOMTransitionPropsValidators||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:c=o,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,g=normalizeDuration(a),y=g&&g[0],w=g&&g[1],{onBeforeEnter:_,onEnter:E,onEnterCancelled:z,onLeave:R,onLeaveCancelled:$,onBeforeAppear:H=_,onAppear:M=E,onAppearCancelled:I=z}=t,j=(Y,J,X)=>{removeTransitionClass(Y,J?d:l),removeTransitionClass(Y,J?u:s),X&&X()},N=(Y,J)=>{Y._isLeaving=!1,removeTransitionClass(Y,m),removeTransitionClass(Y,x),removeTransitionClass(Y,b),J&&J()},T=Y=>(J,X)=>{const ue=Y?M:E,ae=()=>j(J,Y,X);callHook(ue,[J,ae]),nextFrame(()=>{removeTransitionClass(J,Y?c:o),addTransitionClass(J,Y?d:l),hasExplicitCallback(ue)||whenTransitionEnds(J,n,y,ae)})};return extend$1(t,{onBeforeEnter(Y){callHook(_,[Y]),addTransitionClass(Y,o),addTransitionClass(Y,s)},onBeforeAppear(Y){callHook(H,[Y]),addTransitionClass(Y,c),addTransitionClass(Y,u)},onEnter:T(!1),onAppear:T(!0),onLeave(Y,J){Y._isLeaving=!0;const X=()=>N(Y,J);addTransitionClass(Y,m),forceReflow(),addTransitionClass(Y,b),nextFrame(()=>{!Y._isLeaving||(removeTransitionClass(Y,m),addTransitionClass(Y,x),hasExplicitCallback(R)||whenTransitionEnds(Y,n,w,X))}),callHook(R,[Y,X])},onEnterCancelled(Y){j(Y,!1),callHook(z,[Y])},onAppearCancelled(Y){j(Y,!0),callHook(I,[Y])},onLeaveCancelled(Y){N(Y),callHook($,[Y])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,t,r,n){const a=e._endId=++endId,o=()=>{a===e._endId&&n()};if(r)return setTimeout(o,r);const{type:s,timeout:l,propCount:c}=getTransitionInfo(e,t);if(!s)return n();const u=s+"end";let d=0;const m=()=>{e.removeEventListener(u,b),o()},b=x=>{x.target===e&&++d>=c&&m()};setTimeout(()=>{d(r[g]||"").split(", "),a=n(TRANSITION+"Delay"),o=n(TRANSITION+"Duration"),s=getTimeout(a,o),l=n(ANIMATION+"Delay"),c=n(ANIMATION+"Duration"),u=getTimeout(l,c);let d=null,m=0,b=0;t===TRANSITION?s>0&&(d=TRANSITION,m=s,b=o.length):t===ANIMATION?u>0&&(d=ANIMATION,m=u,b=c.length):(m=Math.max(s,u),d=m>0?s>u?TRANSITION:ANIMATION:null,b=d?d===TRANSITION?o.length:c.length:0);const x=d===TRANSITION&&/\b(transform|all)(,|$)/.test(r[TRANSITION+"Property"]);return{type:d,timeout:m,propCount:b,hasTransform:x}}function getTimeout(e,t){for(;e.lengthtoMs(r)+toMs(e[n])))}function toMs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=getCurrentInstance(),n=useTransitionState();let a,o;return onUpdated(()=>{if(!a.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!hasCSSTransform(a[0].el,r.vnode.el,s))return;a.forEach(callPendingCbs),a.forEach(recordPosition);const l=a.filter(applyTranslation);forceReflow(),l.forEach(c=>{const u=c.el,d=u.style;addTransitionClass(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const m=u._moveCb=b=>{b&&b.target!==u||(!b||/transform$/.test(b.propertyName))&&(u.removeEventListener("transitionend",m),u._moveCb=null,removeTransitionClass(u,s))};u.addEventListener("transitionend",m)})}),()=>{const s=toRaw(e),l=resolveTransitionProps(s);let c=s.tag||Fragment;a=o,o=t.default?getTransitionRawChildren(t.default()):[];for(let u=0;u{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=getTransitionInfo(n);return a.removeChild(n),o}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray$2(t)?r=>invokeArrayFns(t,r):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vModelText={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e._assign=getModelAssigner(a);const o=n||a.props&&a.props.type==="number";addEventListener(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;r&&(l=l.trim()),o&&(l=toNumber(l)),e._assign(l)}),r&&addEventListener(e,"change",()=>{e.value=e.value.trim()}),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},o){if(e._assign=getModelAssigner(o),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(a||e.type==="number")&&toNumber(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},vModelCheckbox={deep:!0,created(e,t,r){e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{const n=e._modelValue,a=getValue(e),o=e.checked,s=e._assign;if(isArray$2(n)){const l=looseIndexOf(n,a),c=l!==-1;if(o&&!c)s(n.concat(a));else if(!o&&c){const u=[...n];u.splice(l,1),s(u)}}else if(isSet(n)){const l=new Set(n);o?l.add(a):l.delete(a),s(l)}else s(getCheckboxValue(e,o))})},mounted:setChecked,beforeUpdate(e,t,r){e._assign=getModelAssigner(r),setChecked(e,t,r)}};function setChecked(e,{value:t,oldValue:r},n){e._modelValue=t,isArray$2(t)?e.checked=looseIndexOf(t,n.props.value)>-1:isSet(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=looseEqual(t,getCheckboxValue(e,!0)))}const vModelRadio={created(e,{value:t},r){e.checked=looseEqual(t,r.props.value),e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{e._assign(getValue(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=getModelAssigner(n),t!==r&&(e.checked=looseEqual(t,n.props.value))}},vModelSelect={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const a=isSet(t);addEventListener(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?toNumber(getValue(s)):getValue(s));e._assign(e.multiple?a?new Set(o):o:o[0])}),e._assign=getModelAssigner(n)},mounted(e,{value:t}){setSelected(e,t)},beforeUpdate(e,t,r){e._assign=getModelAssigner(r)},updated(e,{value:t}){setSelected(e,t)}};function setSelected(e,t){const r=e.multiple;if(!(r&&!isArray$2(t)&&!isSet(t))){for(let n=0,a=e.options.length;n-1:o.selected=t.has(s);else if(looseEqual(getValue(o),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function getValue(e){return"_value"in e?e._value:e.value}function getCheckboxValue(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vModelDynamic={created(e,t,r){callModelHook(e,t,r,null,"created")},mounted(e,t,r){callModelHook(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){callModelHook(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){callModelHook(e,t,r,n,"updated")}};function resolveDynamicModel(e,t){switch(e){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(t){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(e,t,r,n,a){const s=resolveDynamicModel(e.tagName,r.props&&r.props.type)[a];s&&s(e,t,r,n)}function initVModelForSSR(){vModelText.getSSRProps=({value:e})=>({value:e}),vModelRadio.getSSRProps=({value:e},t)=>{if(t.props&&looseEqual(t.props.value,e))return{checked:!0}},vModelCheckbox.getSSRProps=({value:e},t)=>{if(isArray$2(e)){if(t.props&&looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vModelDynamic.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=resolveDynamicModel(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>systemModifiers.some(r=>e[`${r}Key`]&&!t.includes(r))},withModifiers=(e,t)=>(r,...n)=>{for(let a=0;ar=>{if(!("key"in r))return;const n=hyphenate(r.key);if(t.some(a=>a===n||keyNames[a]===n))return e(r)},vShow={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),setDisplay(e,!0),n.enter(e)):n.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...e)=>{ensureRenderer().render(...e)},hydrate=(...e)=>{ensureHydrationRenderer().hydrate(...e)},createApp=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=normalizeContainer(n);if(!a)return;const o=t._component;!isFunction$3(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const s=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},t},createSSRApp=(...e)=>{const t=ensureHydrationRenderer().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=normalizeContainer(n);if(a)return r(a,!0,a instanceof SVGElement)},t};function normalizeContainer(e){return isString$3(e)?document.querySelector(e):e}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())};var animate_min=(()=>`@charset "UTF-8";/*! +`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${formatComponentName(e.component,e.type,n)}`,o=">"+r;return e.props?[a,...formatProps(e.props),o]:[a+o]}function formatProps(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...formatProp(n,e[n]))}),r.length>3&&t.push(" ..."),t}function formatProp(e,t,r){return isString$3(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):isFunction$3(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${e}=`,t])}function callWithErrorHandling(e,t,r,n){let a;try{a=n?e(...n):e()}catch(o){handleError(o,t,r)}return a}function callWithAsyncErrorHandling(e,t,r,n){if(isFunction$3(e)){const o=callWithErrorHandling(e,t,r,n);return o&&isPromise$1(o)&&o.catch(s=>{handleError(s,t,r)}),o}const a=[];for(let o=0;o>>1;getId(queue[n])flushIndex&&queue.splice(t,1)}function queueCb(e,t,r,n){isArray$2(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,t=null){if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndexgetId(r)-getId(n)),postFlushIndex=0;postFlushIndexe.id==null?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue.sort((r,n)=>getId(r)-getId(n));const t=NOOP;try{for(flushIndex=0;flushIndexdevtools$1.emit(a,...o)),buffer=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((n=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{setDevtoolsHook(o,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit$1(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||EMPTY_OBJ;let a=r;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const d=`${s==="modelValue"?"model":s}Modifiers`,{number:m,trim:b}=n[d]||EMPTY_OBJ;b&&(a=r.map(x=>x.trim())),m&&(a=r.map(toNumber))}let l,c=n[l=toHandlerKey(t)]||n[l=toHandlerKey(camelize(t))];!c&&o&&(c=n[l=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,e,6,a);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,callWithAsyncErrorHandling(u,e,6,a)}}function normalizeEmitsOptions(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const o=e.emits;let s={},l=!1;if(!isFunction$3(e)){const c=u=>{const d=normalizeEmitsOptions(u,t,!0);d&&(l=!0,extend$1(s,d))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(n.set(e,null),null):(isArray$2(o)?o.forEach(c=>s[c]=null):extend$1(s,o),n.set(e,s),s)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn$2(e,t[0].toLowerCase()+t.slice(1))||hasOwn$2(e,hyphenate(t))||hasOwn$2(e,t))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}const withScopeId=e=>withCtx;function withCtx(e,t=currentRenderingInstance,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&setBlockTracking(-1);const o=setCurrentRenderingInstance(t),s=e(...a);return setCurrentRenderingInstance(o),n._d&&setBlockTracking(1),s};return n._n=!0,n._c=!0,n._d=!0,n}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:o,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:m,data:b,setupState:x,ctx:g,inheritAttrs:y}=e;let w,k;const _=setCurrentRenderingInstance(e);try{if(r.shapeFlag&4){const S=a||n;w=normalizeVNode(d.call(S,S,m,o,x,b,g)),k=c}else{const S=t;w=normalizeVNode(S.length>1?S(o,{attrs:c,slots:l,emit:u}):S(o,null)),k=t.props?c:getFunctionalFallthrough(c)}}catch(S){blockStack.length=0,handleError(S,e,1),w=createVNode(Comment)}let $=w;if(k&&y!==!1){const S=Object.keys(k),{shapeFlag:L}=$;S.length&&L&7&&(s&&S.some(isModelListener)&&(k=filterModelListeners(k,s)),$=cloneVNode($,k))}return r.dirs&&($=cloneVNode($),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&($.transition=r.transition),w=$,setCurrentRenderingInstance(_),w}function filterSingleRoot(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=e[r]);return t},filterModelListeners=(e,t)=>{const r={};for(const n in e)(!isModelListener(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function shouldUpdateComponent(e,t,r){const{props:n,children:a,component:o}=e,{props:s,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?hasPropsChanged(n,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let m=0;me.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(e,t,r,n,a,o,s,l,c,u){e==null?mountSuspense(t,r,n,a,o,s,l,c,u):patchSuspense(e,t,r,n,a,s,l,c,u)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(e,t){const r=e.props&&e.props[t];isFunction$3(r)&&r()}function mountSuspense(e,t,r,n,a,o,s,l,c){const{p:u,o:{createElement:d}}=c,m=d("div"),b=e.suspense=createSuspenseBoundary(e,a,n,t,m,r,o,s,l,c);u(null,b.pendingBranch=e.ssContent,m,null,n,b,o,s),b.deps>0?(triggerEvent(e,"onPending"),triggerEvent(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,o,s),setActiveBranch(b,e.ssFallback)):b.resolve()}function patchSuspense(e,t,r,n,a,o,s,l,{p:c,um:u,o:{createElement:d}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:g,pendingBranch:y,isInFallback:w,isHydrating:k}=m;if(y)m.pendingBranch=b,isSameVNodeType(b,y)?(c(y,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0?m.resolve():w&&(c(g,x,r,n,a,null,o,s,l),setActiveBranch(m,x))):(m.pendingId++,k?(m.isHydrating=!1,m.activeBranch=y):u(y,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=d("div"),w?(c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0?m.resolve():(c(g,x,r,n,a,null,o,s,l),setActiveBranch(m,x))):g&&isSameVNodeType(b,g)?(c(g,b,r,n,a,m,o,s,l),m.resolve(!0)):(c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0&&m.resolve()));else if(g&&isSameVNodeType(b,g))c(g,b,r,n,a,m,o,s,l),setActiveBranch(m,b);else if(triggerEvent(t,"onPending"),m.pendingBranch=b,m.pendingId++,c(null,b,m.hiddenContainer,null,a,m,o,s,l),m.deps<=0)m.resolve();else{const{timeout:_,pendingId:$}=m;_>0?setTimeout(()=>{m.pendingId===$&&m.fallback(x)},_):_===0&&m.fallback(x)}}function createSuspenseBoundary(e,t,r,n,a,o,s,l,c,u,d=!1){const{p:m,m:b,um:x,n:g,o:{parentNode:y,remove:w}}=u,k=toNumber(e.props&&e.props.timeout),_={vnode:e,parent:t,parentComponent:r,isSVG:s,container:n,hiddenContainer:a,anchor:o,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve($=!1){const{vnode:S,activeBranch:L,pendingBranch:V,pendingId:O,effects:T,parentComponent:I,container:B}=_;if(_.isHydrating)_.isHydrating=!1;else if(!$){const W=L&&V.transition&&V.transition.mode==="out-in";W&&(L.transition.afterLeave=()=>{O===_.pendingId&&b(V,B,N,0)});let{anchor:N}=_;L&&(N=g(L),x(L,I,_,!0)),W||b(V,B,N,0)}setActiveBranch(_,V),_.pendingBranch=null,_.isInFallback=!1;let C=_.parent,P=!1;for(;C;){if(C.pendingBranch){C.effects.push(...T),P=!0;break}C=C.parent}P||queuePostFlushCb(T),_.effects=[],triggerEvent(S,"onResolve")},fallback($){if(!_.pendingBranch)return;const{vnode:S,activeBranch:L,parentComponent:V,container:O,isSVG:T}=_;triggerEvent(S,"onFallback");const I=g(L),B=()=>{!_.isInFallback||(m(null,$,O,I,V,null,T,l,c),setActiveBranch(_,$))},C=$.transition&&$.transition.mode==="out-in";C&&(L.transition.afterLeave=B),_.isInFallback=!0,x(L,V,null,!0),C||B()},move($,S,L){_.activeBranch&&b(_.activeBranch,$,S,L),_.container=$},next(){return _.activeBranch&&g(_.activeBranch)},registerDep($,S){const L=!!_.pendingBranch;L&&_.deps++;const V=$.vnode.el;$.asyncDep.catch(O=>{handleError(O,$,0)}).then(O=>{if($.isUnmounted||_.isUnmounted||_.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:T}=$;handleSetupResult($,O,!1),V&&(T.el=V);const I=!V&&$.subTree.el;S($,T,y(V||$.subTree.el),V?null:g($.subTree),_,s,c),I&&w(I),updateHOCHostEl($,T.el),L&&--_.deps===0&&_.resolve()})},unmount($,S){_.isUnmounted=!0,_.activeBranch&&x(_.activeBranch,r,$,S),_.pendingBranch&&x(_.pendingBranch,r,$,S)}};return _}function hydrateSuspense(e,t,r,n,a,o,s,l,c){const u=t.suspense=createSuspenseBoundary(t,n,r,e.parentNode,document.createElement("div"),null,a,o,s,l,!0),d=c(e,u.pendingBranch=t.ssContent,r,u,o,s);return u.deps===0&&u.resolve(),d}function normalizeSuspenseChildren(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=normalizeSuspenseSlot(n?r.default:r),e.ssFallback=n?normalizeSuspenseSlot(r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(e){let t;if(isFunction$3(e)){const r=isBlockTreeEnabled&&e._c;r&&(e._d=!1,openBlock()),e=e(),r&&(e._d=!0,t=currentBlock,closeBlock())}return isArray$2(e)&&(e=filterSingleRoot(e)),e=normalizeVNode(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray$2(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function setActiveBranch(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,a=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=a,updateHOCHostEl(n,a))}function provide(e,t){if(currentInstance){let r=currentInstance.provides;const n=currentInstance.parent&¤tInstance.parent.provides;n===r&&(r=currentInstance.provides=Object.create(n)),r[e]=t}}function inject(e,t,r=!1){const n=currentInstance||currentRenderingInstance;if(n){const a=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&isFunction$3(t)?t.call(n.proxy):t}}function watchEffect(e,t){return doWatch(e,null,t)}function watchPostEffect(e,t){return doWatch(e,null,{flush:"post"})}function watchSyncEffect(e,t){return doWatch(e,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(e,t,r){return doWatch(e,t,r)}function doWatch(e,t,{immediate:r,deep:n,flush:a,onTrack:o,onTrigger:s}=EMPTY_OBJ){const l=currentInstance;let c,u=!1,d=!1;if(isRef(e)?(c=()=>e.value,u=isShallow(e)):isReactive(e)?(c=()=>e,n=!0):isArray$2(e)?(d=!0,u=e.some(k=>isReactive(k)||isShallow(k)),c=()=>e.map(k=>{if(isRef(k))return k.value;if(isReactive(k))return traverse(k);if(isFunction$3(k))return callWithErrorHandling(k,l,2)})):isFunction$3(e)?t?c=()=>callWithErrorHandling(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),callWithAsyncErrorHandling(e,l,3,[b])}:c=NOOP,t&&n){const k=c;c=()=>traverse(k())}let m,b=k=>{m=w.onStop=()=>{callWithErrorHandling(k,l,4)}};if(isInSSRComponentSetup)return b=NOOP,t?r&&callWithAsyncErrorHandling(t,l,3,[c(),d?[]:void 0,b]):c(),NOOP;let x=d?[]:INITIAL_WATCHER_VALUE;const g=()=>{if(!!w.active)if(t){const k=w.run();(n||u||(d?k.some((_,$)=>hasChanged(_,x[$])):hasChanged(k,x)))&&(m&&m(),callWithAsyncErrorHandling(t,l,3,[k,x===INITIAL_WATCHER_VALUE?void 0:x,b]),x=k)}else w.run()};g.allowRecurse=!!t;let y;a==="sync"?y=g:a==="post"?y=()=>queuePostRenderEffect(g,l&&l.suspense):y=()=>queuePreFlushCb(g);const w=new ReactiveEffect(c,y);return t?r?g():x=w.run():a==="post"?queuePostRenderEffect(w.run.bind(w),l&&l.suspense):w.run(),()=>{w.stop(),l&&l.scope&&remove(l.scope.effects,w)}}function instanceWatch(e,t,r){const n=this.proxy,a=isString$3(e)?e.includes(".")?createPathGetter(n,e):()=>n[e]:e.bind(n,n);let o;isFunction$3(t)?o=t:(o=t.handler,r=t);const s=currentInstance;setCurrentInstance(this);const l=doWatch(a,o.bind(n),r);return s?setCurrentInstance(s):unsetCurrentInstance(),l}function createPathGetter(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a{traverse(r,t)});else if(isPlainObject$4(e))for(const r in e)traverse(e[r],t);return e}function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(e,{slots:t}){const r=getCurrentInstance(),n=useTransitionState();let a;return()=>{const o=t.default&&getTransitionRawChildren(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const y of o)if(y.type!==Comment){s=y;break}}const l=toRaw(e),{mode:c}=l;if(n.isLeaving)return emptyPlaceholder(s);const u=getKeepAliveChild(s);if(!u)return emptyPlaceholder(s);const d=resolveTransitionHooks(u,l,n,r);setTransitionHooks(u,d);const m=r.subTree,b=m&&getKeepAliveChild(m);let x=!1;const{getTransitionKey:g}=u.type;if(g){const y=g();a===void 0?a=y:y!==a&&(a=y,x=!0)}if(b&&b.type!==Comment&&(!isSameVNodeType(u,b)||x)){const y=resolveTransitionHooks(b,l,n,r);if(setTransitionHooks(b,y),c==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update()},emptyPlaceholder(s);c==="in-out"&&u.type!==Comment&&(y.delayLeave=(w,k,_)=>{const $=getLeavingNodesForType(n,b);$[String(b.key)]=b,w._leaveCb=()=>{k(),w._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=_})}return s}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function resolveTransitionHooks(e,t,r,n){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:b,onAfterLeave:x,onLeaveCancelled:g,onBeforeAppear:y,onAppear:w,onAfterAppear:k,onAppearCancelled:_}=t,$=String(e.key),S=getLeavingNodesForType(r,e),L=(T,I)=>{T&&callWithAsyncErrorHandling(T,n,9,I)},V=(T,I)=>{const B=I[1];L(T,I),isArray$2(T)?T.every(C=>C.length<=1)&&B():T.length<=1&&B()},O={mode:o,persisted:s,beforeEnter(T){let I=l;if(!r.isMounted)if(a)I=y||l;else return;T._leaveCb&&T._leaveCb(!0);const B=S[$];B&&isSameVNodeType(e,B)&&B.el._leaveCb&&B.el._leaveCb(),L(I,[T])},enter(T){let I=c,B=u,C=d;if(!r.isMounted)if(a)I=w||c,B=k||u,C=_||d;else return;let P=!1;const W=T._enterCb=N=>{P||(P=!0,N?L(C,[T]):L(B,[T]),O.delayedLeave&&O.delayedLeave(),T._enterCb=void 0)};I?V(I,[T,W]):W()},leave(T,I){const B=String(e.key);if(T._enterCb&&T._enterCb(!0),r.isUnmounting)return I();L(m,[T]);let C=!1;const P=T._leaveCb=W=>{C||(C=!0,I(),W?L(g,[T]):L(x,[T]),T._leaveCb=void 0,S[B]===e&&delete S[B])};S[B]=e,b?V(b,[T,P]):P()},clone(T){return resolveTransitionHooks(T,t,r,n)}};return O}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?setTransitionHooks(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 getTransitionRawChildren(e,t=!1,r){let n=[],a=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;function defineAsyncComponent(e){isFunction$3(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:a=200,timeout:o,suspensible:s=!0,onError:l}=e;let c=null,u,d=0;const m=()=>(d++,c=null,b()),b=()=>{let x;return c||(x=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,w)=>{l(g,()=>y(m()),()=>w(g),d+1)});throw g}).then(g=>x!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:b,get __asyncResolved(){return u},setup(){const x=currentInstance;if(u)return()=>createInnerComp(u,x);const g=_=>{c=null,handleError(_,x,13,!n)};if(s&&x.suspense||isInSSRComponentSetup)return b().then(_=>()=>createInnerComp(_,x)).catch(_=>(g(_),()=>n?createVNode(n,{error:_}):null));const y=ref(!1),w=ref(),k=ref(!!a);return a&&setTimeout(()=>{k.value=!1},a),o!=null&&setTimeout(()=>{if(!y.value&&!w.value){const _=new Error(`Async component timed out after ${o}ms.`);g(_),w.value=_}},o),b().then(()=>{y.value=!0,x.parent&&isKeepAlive(x.parent.vnode)&&queueJob(x.parent.update)}).catch(_=>{g(_),w.value=_}),()=>{if(y.value&&u)return createInnerComp(u,x);if(w.value&&n)return createVNode(n,{error:w.value});if(r&&!k.value)return createVNode(r)}}})}function createInnerComp(e,{vnode:{ref:t,props:r,children:n,shapeFlag:a},parent:o}){const s=createVNode(e,r,n);return s.ref=t,s}const isKeepAlive=e=>e.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=getCurrentInstance(),n=r.ctx;if(!n.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const a=new Map,o=new Set;let s=null;const l=r.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:m}}}=n,b=m("div");n.activate=(_,$,S,L,V)=>{const O=_.component;u(_,$,S,0,l),c(O.vnode,_,$,S,O,l,L,_.slotScopeIds,V),queuePostRenderEffect(()=>{O.isDeactivated=!1,O.a&&invokeArrayFns(O.a);const T=_.props&&_.props.onVnodeMounted;T&&invokeVNodeHook(T,O.parent,_)},l)},n.deactivate=_=>{const $=_.component;u(_,b,null,1,l),queuePostRenderEffect(()=>{$.da&&invokeArrayFns($.da);const S=_.props&&_.props.onVnodeUnmounted;S&&invokeVNodeHook(S,$.parent,_),$.isDeactivated=!0},l)};function x(_){resetShapeFlag(_),d(_,r,l,!0)}function g(_){a.forEach(($,S)=>{const L=getComponentName($.type);L&&(!_||!_(L))&&y(S)})}function y(_){const $=a.get(_);!s||$.type!==s.type?x($):s&&resetShapeFlag(s),a.delete(_),o.delete(_)}watch(()=>[e.include,e.exclude],([_,$])=>{_&&g(S=>matches(_,S)),$&&g(S=>!matches($,S))},{flush:"post",deep:!0});let w=null;const k=()=>{w!=null&&a.set(w,getInnerChild(r.subTree))};return onMounted(k),onUpdated(k),onBeforeUnmount(()=>{a.forEach(_=>{const{subTree:$,suspense:S}=r,L=getInnerChild($);if(_.type===L.type){resetShapeFlag(L);const V=L.component.da;V&&queuePostRenderEffect(V,S);return}x(_)})}),()=>{if(w=null,!t.default)return null;const _=t.default(),$=_[0];if(_.length>1)return s=null,_;if(!isVNode($)||!($.shapeFlag&4)&&!($.shapeFlag&128))return s=null,$;let S=getInnerChild($);const L=S.type,V=getComponentName(isAsyncWrapper(S)?S.type.__asyncResolved||{}:L),{include:O,exclude:T,max:I}=e;if(O&&(!V||!matches(O,V))||T&&V&&matches(T,V))return s=S,$;const B=S.key==null?L:S.key,C=a.get(B);return S.el&&(S=cloneVNode(S),$.shapeFlag&128&&($.ssContent=S)),w=B,C?(S.el=C.el,S.component=C.component,S.transition&&setTransitionHooks(S,S.transition),S.shapeFlag|=512,o.delete(B),o.add(B)):(o.add(B),I&&o.size>parseInt(I,10)&&y(o.values().next().value)),S.shapeFlag|=256,s=S,isSuspense($.type)?$:S}}},KeepAlive=KeepAliveImpl;function matches(e,t){return isArray$2(e)?e.some(r=>matches(r,t)):isString$3(e)?e.split(",").includes(t):e.test?e.test(t):!1}function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,r=currentInstance){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(injectHook(t,n,r),r){let a=r.parent;for(;a&&a.parent;)isKeepAlive(a.parent.vnode)&&injectToKeepAliveRoot(n,t,r,a),a=a.parent}}function injectToKeepAliveRoot(e,t,r,n){const a=injectHook(t,e,n,!0);onUnmounted(()=>{remove(n[t],a)},r)}function resetShapeFlag(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function getInnerChild(e){return e.shapeFlag&128?e.ssContent:e}function injectHook(e,t,r=currentInstance,n=!1){if(r){const a=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;pauseTracking(),setCurrentInstance(r);const l=callWithAsyncErrorHandling(t,r,e,s);return unsetCurrentInstance(),resetTracking(),l});return n?a.unshift(o):a.push(o),o}}const createHook=e=>(t,r=currentInstance)=>(!isInSSRComponentSetup||e==="sp")&&injectHook(e,t,r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}function withDirectives(e,t){const r=currentRenderingInstance;if(r===null)return e;const n=getExposeProxy(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;ot(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,c=s.length;lisVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?e:null}function toHandlers(e){const t={};for(const r in e)t[toHandlerKey(r)]=e[r];return t}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend$1(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=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>queueJob(e.update)),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:r,setupState:n,data:a,props:o,accessCache:s,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else{if(n!==EMPTY_OBJ&&hasOwn$2(n,t))return s[t]=1,n[t];if(a!==EMPTY_OBJ&&hasOwn$2(a,t))return s[t]=2,a[t];if((u=e.propsOptions[0])&&hasOwn$2(u,t))return s[t]=3,o[t];if(r!==EMPTY_OBJ&&hasOwn$2(r,t))return s[t]=4,r[t];shouldCacheAccess&&(s[t]=0)}}const d=publicPropertiesMap[t];let m,b;if(d)return t==="$attrs"&&track(e,"get",t),d(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(r!==EMPTY_OBJ&&hasOwn$2(r,t))return s[t]=4,r[t];if(b=c.config.globalProperties,hasOwn$2(b,t))return b[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:o}=e;return a!==EMPTY_OBJ&&hasOwn$2(a,t)?(a[t]=r,!0):n!==EMPTY_OBJ&&hasOwn$2(n,t)?(n[t]=r,!0):hasOwn$2(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:o}},s){let l;return!!r[s]||e!==EMPTY_OBJ&&hasOwn$2(e,s)||t!==EMPTY_OBJ&&hasOwn$2(t,s)||(l=o[0])&&hasOwn$2(l,s)||hasOwn$2(n,s)||hasOwn$2(publicPropertiesMap,s)||hasOwn$2(a.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:hasOwn$2(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(e,t){if(t!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,t,e)},has(e,t){return t[0]!=="_"&&!isGloballyWhitelisted(t)}});let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),r=e.proxy,n=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:m,mounted:b,beforeUpdate:x,updated:g,activated:y,deactivated:w,beforeDestroy:k,beforeUnmount:_,destroyed:$,unmounted:S,render:L,renderTracked:V,renderTriggered:O,errorCaptured:T,serverPrefetch:I,expose:B,inheritAttrs:C,components:P,directives:W,filters:N}=t;if(u&&resolveInjections(u,n,null,e.appContext.config.unwrapInjectedRef),s)for(const fe in s){const de=s[fe];isFunction$3(de)&&(n[fe]=de.bind(r))}if(a){const fe=a.call(r,r);isObject$4(fe)&&(e.data=reactive(fe))}if(shouldCacheAccess=!0,o)for(const fe in o){const de=o[fe],ye=isFunction$3(de)?de.bind(r,r):isFunction$3(de.get)?de.get.bind(r,r):NOOP,xe=!isFunction$3(de)&&isFunction$3(de.set)?de.set.bind(r):NOOP,_e=computed({get:ye,set:xe});Object.defineProperty(n,fe,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Ee=>_e.value=Ee})}if(l)for(const fe in l)createWatcher(l[fe],n,r,fe);if(c){const fe=isFunction$3(c)?c.call(r):c;Reflect.ownKeys(fe).forEach(de=>{provide(de,fe[de])})}d&&callHook$1(d,e,"c");function ne(fe,de){isArray$2(de)?de.forEach(ye=>fe(ye.bind(r))):de&&fe(de.bind(r))}if(ne(onBeforeMount,m),ne(onMounted,b),ne(onBeforeUpdate,x),ne(onUpdated,g),ne(onActivated,y),ne(onDeactivated,w),ne(onErrorCaptured,T),ne(onRenderTracked,V),ne(onRenderTriggered,O),ne(onBeforeUnmount,_),ne(onUnmounted,S),ne(onServerPrefetch,I),isArray$2(B))if(B.length){const fe=e.exposed||(e.exposed={});B.forEach(de=>{Object.defineProperty(fe,de,{get:()=>r[de],set:ye=>r[de]=ye})})}else e.exposed||(e.exposed={});L&&e.render===NOOP&&(e.render=L),C!=null&&(e.inheritAttrs=C),P&&(e.components=P),W&&(e.directives=W)}function resolveInjections(e,t,r=NOOP,n=!1){isArray$2(e)&&(e=normalizeInject(e));for(const a in e){const o=e[a];let s;isObject$4(o)?"default"in o?s=inject(o.from||a,o.default,!0):s=inject(o.from||a):s=inject(o),isRef(s)&&n?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[a]=s}}function callHook$1(e,t,r){callWithAsyncErrorHandling(isArray$2(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function createWatcher(e,t,r,n){const a=n.includes(".")?createPathGetter(r,n):()=>r[n];if(isString$3(e)){const o=t[e];isFunction$3(o)&&watch(a,o)}else if(isFunction$3(e))watch(a,e.bind(r));else if(isObject$4(e))if(isArray$2(e))e.forEach(o=>createWatcher(o,t,r,n));else{const o=isFunction$3(e.handler)?e.handler.bind(r):t[e.handler];isFunction$3(o)&&watch(a,o,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!a.length&&!r&&!n?c=t:(c={},a.length&&a.forEach(u=>mergeOptions$1(c,u,s,!0)),mergeOptions$1(c,t,s)),o.set(t,c),c}function mergeOptions$1(e,t,r,n=!1){const{mixins:a,extends:o}=t;o&&mergeOptions$1(e,o,r,!0),a&&a.forEach(s=>mergeOptions$1(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const l=internalOptionMergeStrats[s]||r&&r[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend$1(isFunction$3(e)?e.call(this,this):e,isFunction$3(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$2(e)){const t={};for(let r=0;r0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let m=0;m{c=!0;const[b,x]=normalizePropsOptions(m,t,!0);extend$1(s,b),x&&l.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return n.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$2(o))for(let d=0;d-1,x[1]=y<0||g-1||hasOwn$2(x,"default"))&&l.push(m)}}}const u=[s,l];return n.set(e,u),u}function validatePropName(e){return e[0]!=="$"}function getType(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray$2(t)?t.findIndex(r=>isSameType(r,e)):isFunction$3(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>e[0]==="_"||e==="$stable",normalizeSlotValue=e=>isArray$2(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot$1=(e,t,r)=>{if(t._n)return t;const n=withCtx((...a)=>normalizeSlotValue(t(...a)),r);return n._c=!1,n},normalizeObjectSlots=(e,t,r)=>{const n=e._ctx;for(const a in e){if(isInternalKey(a))continue;const o=e[a];if(isFunction$3(o))t[a]=normalizeSlot$1(a,o,n);else if(o!=null){const s=normalizeSlotValue(o);t[a]=()=>s}}},normalizeVNodeSlots=(e,t)=>{const r=normalizeSlotValue(t);e.slots.default=()=>r},initSlots=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=toRaw(t),def(t,"_",r)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,r)=>{const{vnode:n,slots:a}=e;let o=!0,s=EMPTY_OBJ;if(n.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:(extend$1(a,t),!r&&l===1&&delete a._):(o=!t.$stable,normalizeObjectSlots(t,a)),s=t}else t&&(normalizeVNodeSlots(e,t),s={default:1});if(o)for(const l in a)!isInternalKey(l)&&!(l in s)&&delete a[l]};function createAppContext(){return{app:null,config:{isNativeTag:NO,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 uid=0;function createAppAPI(e,t){return function(n,a=null){isFunction$3(n)||(n=Object.assign({},n)),a!=null&&!isObject$4(a)&&(a=null);const o=createAppContext(),s=new Set;let l=!1;const c=o.app={_uid:uid++,_component:n,_props:a,_container:null,_context:o,_instance:null,version:version$1,get config(){return o.config},set config(u){},use(u,...d){return s.has(u)||(u&&isFunction$3(u.install)?(s.add(u),u.install(c,...d)):isFunction$3(u)&&(s.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,m){if(!l){const b=createVNode(n,a);return b.appContext=o,d&&t?t(b,u):e(b,u,m),l=!0,c._container=u,u.__vue_app__=c,getExposeProxy(b.component)||b.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c}};return c}}function setRef(e,t,r,n,a=!1){if(isArray$2(e)){e.forEach((b,x)=>setRef(b,t&&(isArray$2(t)?t[x]:t),r,n,a));return}if(isAsyncWrapper(n)&&!a)return;const o=n.shapeFlag&4?getExposeProxy(n.component)||n.component.proxy:n.el,s=a?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===EMPTY_OBJ?l.refs={}:l.refs,m=l.setupState;if(u!=null&&u!==c&&(isString$3(u)?(d[u]=null,hasOwn$2(m,u)&&(m[u]=null)):isRef(u)&&(u.value=null)),isFunction$3(c))callWithErrorHandling(c,l,12,[s,d]);else{const b=isString$3(c),x=isRef(c);if(b||x){const g=()=>{if(e.f){const y=b?d[c]:c.value;a?isArray$2(y)&&remove(y,o):isArray$2(y)?y.includes(o)||y.push(o):b?(d[c]=[o],hasOwn$2(m,c)&&(m[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else b?(d[c]=s,hasOwn$2(m,c)&&(m[c]=s)):x&&(c.value=s,e.k&&(d[e.k]=s))};s?(g.id=-1,queuePostRenderEffect(g,r)):g()}}}let hasMismatch=!1;const isSVGContainer=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",isComment=e=>e.nodeType===8;function createHydrationFunctions(e){const{mt:t,p:r,o:{patchProp:n,createText:a,nextSibling:o,parentNode:s,remove:l,insert:c,createComment:u}}=e,d=(k,_)=>{if(!_.hasChildNodes()){r(null,k,_),flushPostFlushCbs(),_._vnode=k;return}hasMismatch=!1,m(_.firstChild,k,null,null,null),flushPostFlushCbs(),_._vnode=k,hasMismatch&&console.error("Hydration completed but contains mismatches.")},m=(k,_,$,S,L,V=!1)=>{const O=isComment(k)&&k.data==="[",T=()=>y(k,_,$,S,L,O),{type:I,ref:B,shapeFlag:C,patchFlag:P}=_,W=k.nodeType;_.el=k,P===-2&&(V=!1,_.dynamicChildren=null);let N=null;switch(I){case Text:W!==3?_.children===""?(c(_.el=a(""),s(k),k),N=k):N=T():(k.data!==_.children&&(hasMismatch=!0,k.data=_.children),N=o(k));break;case Comment:W!==8||O?N=T():N=o(k);break;case Static:if(W!==1&&W!==3)N=T();else{N=k;const ie=!_.children.length;for(let ne=0;ne<_.staticCount;ne++)ie&&(_.children+=N.nodeType===1?N.outerHTML:N.data),ne===_.staticCount-1&&(_.anchor=N),N=o(N);return N}break;case Fragment:O?N=g(k,_,$,S,L,V):N=T();break;default:if(C&1)W!==1||_.type.toLowerCase()!==k.tagName.toLowerCase()?N=T():N=b(k,_,$,S,L,V);else if(C&6){_.slotScopeIds=L;const ie=s(k);if(t(_,ie,null,$,S,isSVGContainer(ie),V),N=O?w(k):o(k),N&&isComment(N)&&N.data==="teleport end"&&(N=o(N)),isAsyncWrapper(_)){let ne;O?(ne=createVNode(Fragment),ne.anchor=N?N.previousSibling:ie.lastChild):ne=k.nodeType===3?createTextVNode(""):createVNode("div"),ne.el=k,_.component.subTree=ne}}else C&64?W!==8?N=T():N=_.type.hydrate(k,_,$,S,L,V,e,x):C&128&&(N=_.type.hydrate(k,_,$,S,isSVGContainer(s(k)),L,V,e,m))}return B!=null&&setRef(B,null,S,_),N},b=(k,_,$,S,L,V)=>{V=V||!!_.dynamicChildren;const{type:O,props:T,patchFlag:I,shapeFlag:B,dirs:C}=_,P=O==="input"&&C||O==="option";if(P||I!==-1){if(C&&invokeDirectiveHook(_,null,$,"created"),T)if(P||!V||I&48)for(const N in T)(P&&N.endsWith("value")||isOn(N)&&!isReservedProp(N))&&n(k,N,null,T[N],!1,void 0,$);else T.onClick&&n(k,"onClick",null,T.onClick,!1,void 0,$);let W;if((W=T&&T.onVnodeBeforeMount)&&invokeVNodeHook(W,$,_),C&&invokeDirectiveHook(_,null,$,"beforeMount"),((W=T&&T.onVnodeMounted)||C)&&queueEffectWithSuspense(()=>{W&&invokeVNodeHook(W,$,_),C&&invokeDirectiveHook(_,null,$,"mounted")},S),B&16&&!(T&&(T.innerHTML||T.textContent))){let N=x(k.firstChild,_,k,$,S,L,V);for(;N;){hasMismatch=!0;const ie=N;N=N.nextSibling,l(ie)}}else B&8&&k.textContent!==_.children&&(hasMismatch=!0,k.textContent=_.children)}return k.nextSibling},x=(k,_,$,S,L,V,O)=>{O=O||!!_.dynamicChildren;const T=_.children,I=T.length;for(let B=0;B{const{slotScopeIds:O}=_;O&&(L=L?L.concat(O):O);const T=s(k),I=x(o(k),_,T,$,S,L,V);return I&&isComment(I)&&I.data==="]"?o(_.anchor=I):(hasMismatch=!0,c(_.anchor=u("]"),T,I),I)},y=(k,_,$,S,L,V)=>{if(hasMismatch=!0,_.el=null,V){const I=w(k);for(;;){const B=o(k);if(B&&B!==I)l(B);else break}}const O=o(k),T=s(k);return l(k),r(null,_,T,O,$,S,isSVGContainer(T),L),O},w=k=>{let _=0;for(;k;)if(k=o(k),k&&isComment(k)&&(k.data==="["&&_++,k.data==="]")){if(_===0)return o(k);_--}return k};return[d,m]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function createHydrationRenderer(e){return baseCreateRenderer(e,createHydrationFunctions)}function baseCreateRenderer(e,t){const r=getGlobalThis$1();r.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:m,nextSibling:b,setScopeId:x=NOOP,cloneNode:g,insertStaticContent:y}=e,w=(M,A,H,Z=null,j=null,X=null,U=!1,Y=null,R=!!A.dynamicChildren)=>{if(M===A)return;M&&!isSameVNodeType(M,A)&&(Z=J(M),ke(M,j,X,!0),M=null),A.patchFlag===-2&&(R=!1,A.dynamicChildren=null);const{type:z,ref:ee,shapeFlag:G}=A;switch(z){case Text:k(M,A,H,Z);break;case Comment:_(M,A,H,Z);break;case Static:M==null&&$(A,H,Z,U);break;case Fragment:W(M,A,H,Z,j,X,U,Y,R);break;default:G&1?V(M,A,H,Z,j,X,U,Y,R):G&6?N(M,A,H,Z,j,X,U,Y,R):(G&64||G&128)&&z.process(M,A,H,Z,j,X,U,Y,R,he)}ee!=null&&j&&setRef(ee,M&&M.ref,X,A||M,!A)},k=(M,A,H,Z)=>{if(M==null)n(A.el=l(A.children),H,Z);else{const j=A.el=M.el;A.children!==M.children&&u(j,A.children)}},_=(M,A,H,Z)=>{M==null?n(A.el=c(A.children||""),H,Z):A.el=M.el},$=(M,A,H,Z)=>{[M.el,M.anchor]=y(M.children,A,H,Z,M.el,M.anchor)},S=({el:M,anchor:A},H,Z)=>{let j;for(;M&&M!==A;)j=b(M),n(M,H,Z),M=j;n(A,H,Z)},L=({el:M,anchor:A})=>{let H;for(;M&&M!==A;)H=b(M),a(M),M=H;a(A)},V=(M,A,H,Z,j,X,U,Y,R)=>{U=U||A.type==="svg",M==null?O(A,H,Z,j,X,U,Y,R):B(M,A,j,X,U,Y,R)},O=(M,A,H,Z,j,X,U,Y)=>{let R,z;const{type:ee,props:G,shapeFlag:ae,transition:se,patchFlag:me,dirs:be}=M;if(M.el&&g!==void 0&&me===-1)R=M.el=g(M.el);else{if(R=M.el=s(M.type,X,G&&G.is,G),ae&8?d(R,M.children):ae&16&&I(M.children,R,null,Z,j,X&&ee!=="foreignObject",U,Y),be&&invokeDirectiveHook(M,null,Z,"created"),G){for(const we in G)we!=="value"&&!isReservedProp(we)&&o(R,we,null,G[we],X,M.children,Z,j,q);"value"in G&&o(R,"value",null,G.value),(z=G.onVnodeBeforeMount)&&invokeVNodeHook(z,Z,M)}T(R,M,M.scopeId,U,Z)}be&&invokeDirectiveHook(M,null,Z,"beforeMount");const ve=(!j||j&&!j.pendingBranch)&&se&&!se.persisted;ve&&se.beforeEnter(R),n(R,A,H),((z=G&&G.onVnodeMounted)||ve||be)&&queuePostRenderEffect(()=>{z&&invokeVNodeHook(z,Z,M),ve&&se.enter(R),be&&invokeDirectiveHook(M,null,Z,"mounted")},j)},T=(M,A,H,Z,j)=>{if(H&&x(M,H),Z)for(let X=0;X{for(let z=R;z{const Y=A.el=M.el;let{patchFlag:R,dynamicChildren:z,dirs:ee}=A;R|=M.patchFlag&16;const G=M.props||EMPTY_OBJ,ae=A.props||EMPTY_OBJ;let se;H&&toggleRecurse(H,!1),(se=ae.onVnodeBeforeUpdate)&&invokeVNodeHook(se,H,A,M),ee&&invokeDirectiveHook(A,M,H,"beforeUpdate"),H&&toggleRecurse(H,!0);const me=j&&A.type!=="foreignObject";if(z?C(M.dynamicChildren,z,Y,H,Z,me,X):U||ye(M,A,Y,null,H,Z,me,X,!1),R>0){if(R&16)P(Y,A,G,ae,H,Z,j);else if(R&2&&G.class!==ae.class&&o(Y,"class",null,ae.class,j),R&4&&o(Y,"style",G.style,ae.style,j),R&8){const be=A.dynamicProps;for(let ve=0;ve{se&&invokeVNodeHook(se,H,A,M),ee&&invokeDirectiveHook(A,M,H,"updated")},Z)},C=(M,A,H,Z,j,X,U)=>{for(let Y=0;Y{if(H!==Z){for(const Y in Z){if(isReservedProp(Y))continue;const R=Z[Y],z=H[Y];R!==z&&Y!=="value"&&o(M,Y,z,R,U,A.children,j,X,q)}if(H!==EMPTY_OBJ)for(const Y in H)!isReservedProp(Y)&&!(Y in Z)&&o(M,Y,H[Y],null,U,A.children,j,X,q);"value"in Z&&o(M,"value",H.value,Z.value)}},W=(M,A,H,Z,j,X,U,Y,R)=>{const z=A.el=M?M.el:l(""),ee=A.anchor=M?M.anchor:l("");let{patchFlag:G,dynamicChildren:ae,slotScopeIds:se}=A;se&&(Y=Y?Y.concat(se):se),M==null?(n(z,H,Z),n(ee,H,Z),I(A.children,H,ee,j,X,U,Y,R)):G>0&&G&64&&ae&&M.dynamicChildren?(C(M.dynamicChildren,ae,H,j,X,U,Y),(A.key!=null||j&&A===j.subTree)&&traverseStaticChildren(M,A,!0)):ye(M,A,H,ee,j,X,U,Y,R)},N=(M,A,H,Z,j,X,U,Y,R)=>{A.slotScopeIds=Y,M==null?A.shapeFlag&512?j.ctx.activate(A,H,Z,U,R):ie(A,H,Z,j,X,U,R):ne(M,A,R)},ie=(M,A,H,Z,j,X,U)=>{const Y=M.component=createComponentInstance(M,Z,j);if(isKeepAlive(M)&&(Y.ctx.renderer=he),setupComponent(Y),Y.asyncDep){if(j&&j.registerDep(Y,fe),!M.el){const R=Y.subTree=createVNode(Comment);_(null,R,A,H)}return}fe(Y,M,A,H,j,X,U)},ne=(M,A,H)=>{const Z=A.component=M.component;if(shouldUpdateComponent(M,A,H))if(Z.asyncDep&&!Z.asyncResolved){de(Z,A,H);return}else Z.next=A,invalidateJob(Z.update),Z.update();else A.el=M.el,Z.vnode=A},fe=(M,A,H,Z,j,X,U)=>{const Y=()=>{if(M.isMounted){let{next:ee,bu:G,u:ae,parent:se,vnode:me}=M,be=ee,ve;toggleRecurse(M,!1),ee?(ee.el=me.el,de(M,ee,U)):ee=me,G&&invokeArrayFns(G),(ve=ee.props&&ee.props.onVnodeBeforeUpdate)&&invokeVNodeHook(ve,se,ee,me),toggleRecurse(M,!0);const we=renderComponentRoot(M),Me=M.subTree;M.subTree=we,w(Me,we,m(Me.el),J(Me),M,j,X),ee.el=we.el,be===null&&updateHOCHostEl(M,we.el),ae&&queuePostRenderEffect(ae,j),(ve=ee.props&&ee.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(ve,se,ee,me),j)}else{let ee;const{el:G,props:ae}=A,{bm:se,m:me,parent:be}=M,ve=isAsyncWrapper(A);if(toggleRecurse(M,!1),se&&invokeArrayFns(se),!ve&&(ee=ae&&ae.onVnodeBeforeMount)&&invokeVNodeHook(ee,be,A),toggleRecurse(M,!0),G&&ue){const we=()=>{M.subTree=renderComponentRoot(M),ue(G,M.subTree,M,j,null)};ve?A.type.__asyncLoader().then(()=>!M.isUnmounted&&we()):we()}else{const we=M.subTree=renderComponentRoot(M);w(null,we,H,Z,M,j,X),A.el=we.el}if(me&&queuePostRenderEffect(me,j),!ve&&(ee=ae&&ae.onVnodeMounted)){const we=A;queuePostRenderEffect(()=>invokeVNodeHook(ee,be,we),j)}(A.shapeFlag&256||be&&isAsyncWrapper(be.vnode)&&be.vnode.shapeFlag&256)&&M.a&&queuePostRenderEffect(M.a,j),M.isMounted=!0,A=H=Z=null}},R=M.effect=new ReactiveEffect(Y,()=>queueJob(z),M.scope),z=M.update=()=>R.run();z.id=M.uid,toggleRecurse(M,!0),z()},de=(M,A,H)=>{A.component=M;const Z=M.vnode.props;M.vnode=A,M.next=null,updateProps(M,A.props,Z,H),updateSlots(M,A.children,H),pauseTracking(),flushPreFlushCbs(void 0,M.update),resetTracking()},ye=(M,A,H,Z,j,X,U,Y,R=!1)=>{const z=M&&M.children,ee=M?M.shapeFlag:0,G=A.children,{patchFlag:ae,shapeFlag:se}=A;if(ae>0){if(ae&128){_e(z,G,H,Z,j,X,U,Y,R);return}else if(ae&256){xe(z,G,H,Z,j,X,U,Y,R);return}}se&8?(ee&16&&q(z,j,X),G!==z&&d(H,G)):ee&16?se&16?_e(z,G,H,Z,j,X,U,Y,R):q(z,j,X,!0):(ee&8&&d(H,""),se&16&&I(G,H,Z,j,X,U,Y,R))},xe=(M,A,H,Z,j,X,U,Y,R)=>{M=M||EMPTY_ARR,A=A||EMPTY_ARR;const z=M.length,ee=A.length,G=Math.min(z,ee);let ae;for(ae=0;aeee?q(M,j,X,!0,!1,G):I(A,H,Z,j,X,U,Y,R,G)},_e=(M,A,H,Z,j,X,U,Y,R)=>{let z=0;const ee=A.length;let G=M.length-1,ae=ee-1;for(;z<=G&&z<=ae;){const se=M[z],me=A[z]=R?cloneIfMounted(A[z]):normalizeVNode(A[z]);if(isSameVNodeType(se,me))w(se,me,H,null,j,X,U,Y,R);else break;z++}for(;z<=G&&z<=ae;){const se=M[G],me=A[ae]=R?cloneIfMounted(A[ae]):normalizeVNode(A[ae]);if(isSameVNodeType(se,me))w(se,me,H,null,j,X,U,Y,R);else break;G--,ae--}if(z>G){if(z<=ae){const se=ae+1,me=seae)for(;z<=G;)ke(M[z],j,X,!0),z++;else{const se=z,me=z,be=new Map;for(z=me;z<=ae;z++){const Ce=A[z]=R?cloneIfMounted(A[z]):normalizeVNode(A[z]);Ce.key!=null&&be.set(Ce.key,z)}let ve,we=0;const Me=ae-me+1;let Re=!1,ze=0;const Ae=new Array(Me);for(z=0;z=Me){ke(Ce,j,X,!0);continue}let Se;if(Ce.key!=null)Se=be.get(Ce.key);else for(ve=me;ve<=ae;ve++)if(Ae[ve-me]===0&&isSameVNodeType(Ce,A[ve])){Se=ve;break}Se===void 0?ke(Ce,j,X,!0):(Ae[Se-me]=z+1,Se>=ze?ze=Se:Re=!0,w(Ce,A[Se],H,null,j,X,U,Y,R),we++)}const Ie=Re?getSequence(Ae):EMPTY_ARR;for(ve=Ie.length-1,z=Me-1;z>=0;z--){const Ce=me+z,Se=A[Ce],Le=Ce+1{const{el:X,type:U,transition:Y,children:R,shapeFlag:z}=M;if(z&6){Ee(M.component.subTree,A,H,Z);return}if(z&128){M.suspense.move(A,H,Z);return}if(z&64){U.move(M,A,H,he);return}if(U===Fragment){n(X,A,H);for(let G=0;GY.enter(X),j);else{const{leave:G,delayLeave:ae,afterLeave:se}=Y,me=()=>n(X,A,H),be=()=>{G(X,()=>{me(),se&&se()})};ae?ae(X,me,be):be()}else n(X,A,H)},ke=(M,A,H,Z=!1,j=!1)=>{const{type:X,props:U,ref:Y,children:R,dynamicChildren:z,shapeFlag:ee,patchFlag:G,dirs:ae}=M;if(Y!=null&&setRef(Y,null,H,M,!0),ee&256){A.ctx.deactivate(M);return}const se=ee&1&&ae,me=!isAsyncWrapper(M);let be;if(me&&(be=U&&U.onVnodeBeforeUnmount)&&invokeVNodeHook(be,A,M),ee&6)K(M.component,H,Z);else{if(ee&128){M.suspense.unmount(H,Z);return}se&&invokeDirectiveHook(M,null,A,"beforeUnmount"),ee&64?M.type.remove(M,A,H,j,he,Z):z&&(X!==Fragment||G>0&&G&64)?q(z,A,H,!1,!0):(X===Fragment&&G&384||!j&&ee&16)&&q(R,A,H),Z&&Oe(M)}(me&&(be=U&&U.onVnodeUnmounted)||se)&&queuePostRenderEffect(()=>{be&&invokeVNodeHook(be,A,M),se&&invokeDirectiveHook(M,null,A,"unmounted")},H)},Oe=M=>{const{type:A,el:H,anchor:Z,transition:j}=M;if(A===Fragment){F(H,Z);return}if(A===Static){L(M);return}const X=()=>{a(H),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(M.shapeFlag&1&&j&&!j.persisted){const{leave:U,delayLeave:Y}=j,R=()=>U(H,X);Y?Y(M.el,X,R):R()}else X()},F=(M,A)=>{let H;for(;M!==A;)H=b(M),a(M),M=H;a(A)},K=(M,A,H)=>{const{bum:Z,scope:j,update:X,subTree:U,um:Y}=M;Z&&invokeArrayFns(Z),j.stop(),X&&(X.active=!1,ke(U,M,A,H)),Y&&queuePostRenderEffect(Y,A),queuePostRenderEffect(()=>{M.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},q=(M,A,H,Z=!1,j=!1,X=0)=>{for(let U=X;UM.shapeFlag&6?J(M.component.subTree):M.shapeFlag&128?M.suspense.next():b(M.anchor||M.el),pe=(M,A,H)=>{M==null?A._vnode&&ke(A._vnode,null,null,!0):w(A._vnode||null,M,A,null,null,null,H),flushPostFlushCbs(),A._vnode=M},he={p:w,um:ke,m:Ee,r:Oe,mt:ie,mc:I,pc:ye,pbc:C,n:J,o:e};let ce,ue;return t&&([ce,ue]=t(he)),{render:pe,hydrate:ce,createApp:createAppAPI(pe,ce)}}function toggleRecurse({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function traverseStaticChildren(e,t,r=!1){const n=e.children,a=t.children;if(isArray$2(n)&&isArray$2(a))for(let o=0;o>1,e[r[l]]0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}const isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===""),isTargetSVG=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,resolveTarget=(e,t)=>{const r=e&&e.to;return isString$3(r)?t?t(r):null:r},TeleportImpl={__isTeleport:!0,process(e,t,r,n,a,o,s,l,c,u){const{mc:d,pc:m,pbc:b,o:{insert:x,querySelector:g,createText:y,createComment:w}}=u,k=isTeleportDisabled(t.props);let{shapeFlag:_,children:$,dynamicChildren:S}=t;if(e==null){const L=t.el=y(""),V=t.anchor=y("");x(L,r,n),x(V,r,n);const O=t.target=resolveTarget(t.props,g),T=t.targetAnchor=y("");O&&(x(T,O),s=s||isTargetSVG(O));const I=(B,C)=>{_&16&&d($,B,C,a,o,s,l,c)};k?I(r,V):O&&I(O,T)}else{t.el=e.el;const L=t.anchor=e.anchor,V=t.target=e.target,O=t.targetAnchor=e.targetAnchor,T=isTeleportDisabled(e.props),I=T?r:V,B=T?L:O;if(s=s||isTargetSVG(V),S?(b(e.dynamicChildren,S,I,a,o,s,l),traverseStaticChildren(e,t,!0)):c||m(e,t,I,B,a,o,s,l,!1),k)T||moveTeleport(t,r,L,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const C=t.target=resolveTarget(t.props,g);C&&moveTeleport(t,C,null,u,0)}else T&&moveTeleport(t,V,O,u,1)}},remove(e,t,r,n,{um:a,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:u,targetAnchor:d,target:m,props:b}=e;if(m&&o(d),(s||!isTeleportDisabled(b))&&(o(u),l&16))for(let x=0;x0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),e}function createElementBlock(e,t,r,n,a,o){return setupBlock(createBaseVNode(e,t,r,n,a,o,!0))}function createBlock(e,t,r,n,a){return setupBlock(createVNode(e,t,r,n,a,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}function transformVNodeArgs(e){}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>e!=null?e:null,normalizeRef=({ref:e,ref_key:t,ref_for:r})=>e!=null?isString$3(e)||isRef(e)||isFunction$3(e)?{i:currentRenderingInstance,r:e,k:t,f:!!r}:e:null;function createBaseVNode(e,t=null,r=null,n=0,a=null,o=e===Fragment?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null};return l?(normalizeChildren(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=isString$3(r)?8:16),isBlockTreeEnabled>0&&!s&¤tBlock&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&¤tBlock.push(c),c}const createVNode=_createVNode;function _createVNode(e,t=null,r=null,n=0,a=null,o=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){const l=cloneVNode(e,t,!0);return r&&normalizeChildren(l,r),isBlockTreeEnabled>0&&!o&¤tBlock&&(l.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=l:currentBlock.push(l)),l.patchFlag|=-2,l}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:l,style:c}=t;l&&!isString$3(l)&&(t.class=normalizeClass(l)),isObject$4(c)&&(isProxy(c)&&!isArray$2(c)&&(c=extend$1({},c)),t.style=normalizeStyle(c))}const s=isString$3(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction$3(e)?2:0;return createBaseVNode(e,t,r,n,a,s,o,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend$1({},e):e:null}function cloneVNode(e,t,r=!1){const{props:n,ref:a,patchFlag:o,children:s}=e,l=t?mergeProps(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&normalizeKey(l),ref:t&&t.ref?r&&a?isArray$2(a)?a.concat(normalizeRef(t)):[a,normalizeRef(t)]:normalizeRef(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const r=createVNode(Static,null,e);return r.staticCount=t,r}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray$2(e)?createVNode(Fragment,null,e.slice()):typeof e=="object"?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(isArray$2(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),normalizeChildren(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(InternalObjectKey in t)?t._ctx=currentRenderingInstance:a===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction$3(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),n&64?(r=16,t=[createTextVNode(t)]):r=8);e.children=t,e.shapeFlag|=r}function mergeProps(...e){const t={};for(let r=0;rcurrentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e,e.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(e,t=!1){isInSSRComponentSetup=t;const{props:r,children:n}=e.vnode,a=isStatefulComponent(e);initProps(e,r,a,t),initSlots(e,n);const o=a?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,o}function setupStatefulComponent(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:n}=r;if(n){const a=e.setupContext=n.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const o=callWithErrorHandling(n,e,0,[e.props,a]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(o)){if(o.then(unsetCurrentInstance,unsetCurrentInstance),t)return o.then(s=>{handleSetupResult(e,s,t)}).catch(s=>{handleError(s,e,0)});e.asyncDep=o}else handleSetupResult(e,o,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,r){isFunction$3(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$4(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,r)}let compile,installWithProxy;function registerRuntimeCompiler(e){compile=e,installWithProxy=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile;function finishComponentSetup(e,t,r){const n=e.type;if(!e.render){if(!t&&compile&&!n.render){const a=n.template;if(a){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=n,u=extend$1(extend$1({isCustomElement:o,delimiters:l},s),c);n.render=compile(a,u)}}e.render=n.render||NOOP,installWithProxy&&installWithProxy(e)}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(e){return new Proxy(e.attrs,{get(t,r){return track(e,"get","$attrs"),t[r]}})}function createSetupContext(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=createAttrsProxy(e))},slots:e.slots,emit:e.emit,expose:t}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](e)}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction$3(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,r=!1){let n=getComponentName(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&e&&e.parent){const a=o=>{for(const s in o)if(o[s]===t)return s};n=a(e.components||e.parent.type.components)||a(e.appContext.components)}return n?classify(n):r?"App":"Anonymous"}function isClassComponent(e){return isFunction$3(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function defineProps(){return null}function defineEmits(){return null}function defineExpose(e){}function withDefaults(e,t){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const e=getCurrentInstance();return e.setupContext||(e.setupContext=createSetupContext(e))}function mergeDefaults(e,t){const r=isArray$2(e)?e.reduce((n,a)=>(n[a]={},n),{}):e;for(const n in t){const a=r[n];a?isArray$2(a)||isFunction$3(a)?r[n]={type:a,default:t[n]}:a.default=t[n]:a===null&&(r[n]={default:t[n]})}return r}function createPropsRestProxy(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function withAsyncContext(e){const t=getCurrentInstance();let r=e();return unsetCurrentInstance(),isPromise$1(r)&&(r=r.catch(n=>{throw setCurrentInstance(t),n})),[r,()=>setCurrentInstance(t)]}function h(e,t,r){const n=arguments.length;return n===2?isObject$4(t)&&!isArray$2(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&isVNode(r)&&(r=[r]),createVNode(e,t,r))}const ssrContextKey=Symbol(""),useSSRContext=()=>{{const e=inject(ssrContextKey);return e||warn$1("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function initCustomFormatter(){}function withMemo(e,t,r,n){const a=r[n];if(a&&isMemoSame(a,e))return a;const o=t();return o.memo=e.slice(),r[n]=o}function isMemoSame(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n0&¤tBlock&¤tBlock.push(e),!0}const version$1="3.2.37",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?doc.createElementNS(svgNS,e):doc.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,a,o){const s=r?r.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===o||!(a=a.nextSibling)););else{templateContainer.innerHTML=n?`${e}`:e;const l=templateContainer.content;if(n){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function patchClass(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,r){const n=e.style,a=isString$3(r);if(r&&!a){for(const o in r)setStyle(n,o,r[o]);if(t&&!isString$3(t))for(const o in t)r[o]==null&&setStyle(n,o,"")}else{const o=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=o)}}const importantRE=/\s*!important$/;function setStyle(e,t,r){if(isArray$2(r))r.forEach(n=>setStyle(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=autoPrefix(e,t);importantRE.test(r)?e.setProperty(hyphenate(n),r.replace(importantRE,""),"important"):e[n]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const r=prefixCache[t];if(r)return r;let n=camelize(t);if(n!=="filter"&&n in e)return prefixCache[t]=n;n=capitalize(n);for(let a=0;a{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let cachedNow=0;const p=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p.then(reset),cachedNow=_getNow());function addEventListener(e,t,r,n){e.addEventListener(t,r,n)}function removeEventListener(e,t,r,n){e.removeEventListener(t,r,n)}function patchEvent(e,t,r,n,a=null){const o=e._vei||(e._vei={}),s=o[t];if(n&&s)s.value=n;else{const[l,c]=parseName(t);if(n){const u=o[t]=createInvoker(n,a);addEventListener(e,l,u,c)}else s&&(removeEventListener(e,l,s,c),o[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){t={};let r;for(;r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),t]}function createInvoker(e,t){const r=n=>{const a=n.timeStamp||_getNow();(skipTimestampCheck||a>=r.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(n,r.value),t,5,[n])};return r.value=e,r.attached=getNow(),r}function patchStopImmediatePropagation(e,t){if(isArray$2(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const nativeOnRE=/^on[a-z]/,patchProp=(e,t,r,n,a=!1,o,s,l,c)=>{t==="class"?patchClass(e,n,a):t==="style"?patchStyle(e,r,n):isOn(t)?isModelListener(t)||patchEvent(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(e,t,n,a))?patchDOMProp(e,t,n,o,s,l,c):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),patchAttr(e,t,n,a))};function shouldSetAsProp(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&nativeOnRE.test(t)&&isFunction$3(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nativeOnRE.test(t)&&isString$3(r)?!1:t in e}function defineCustomElement(e,t){const r=defineComponent(e);class n extends VueElement{constructor(o){super(r,o,t)}}return n.def=r,n}const defineSSRCustomElement=e=>defineCustomElement(e,hydrate),BaseClass=typeof HTMLElement!="undefined"?HTMLElement:class{};class VueElement extends BaseClass{constructor(t,r={},n){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n{for(const a of n)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const t=n=>{const{props:a,styles:o}=n,s=!isArray$2(a),l=a?s?Object.keys(a):a:[];let c;if(s)for(const u in this._props){const d=a[u];(d===Number||d&&d.type===Number)&&(this._props[u]=toNumber(this._props[u]),(c||(c=Object.create(null)))[u]=!0)}this._numberProps=c;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of l.map(camelize))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(d){this._setProp(u,d)}});this._applyStyles(o),this._update()},r=this._def.__asyncLoader;r?r().then(t):t(this._def)}_setAttr(t){let r=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(r=toNumber(r)),this._setProp(camelize(t),r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,a=!0){r!==this._props[t]&&(this._props[t]=r,a&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(hyphenate(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hyphenate(t),r+""):r||this.removeAttribute(hyphenate(t))))}_update(){render(this._createVNode(),this.shadowRoot)}_createVNode(){const t=createVNode(this._def,extend$1({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,r.emit=(a,...o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof VueElement){r.parent=n._instance;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function useCssModule(e="$style"){{const t=getCurrentInstance();if(!t)return EMPTY_OBJ;const r=t.type.__cssModules;if(!r)return EMPTY_OBJ;const n=r[e];return n||EMPTY_OBJ}}function useCssVars(e){const t=getCurrentInstance();if(!t)return;const r=()=>setVarsOnVNode(t.subTree,e(t.proxy));watchPostEffect(r),onMounted(()=>{const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>n.disconnect())})}function setVarsOnVNode(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)setVarsOnNode(e.el,t);else if(e.type===Fragment)e.children.forEach(r=>setVarsOnVNode(r,t));else if(e.type===Static){let{el:r,anchor:n}=e;for(;r&&(setVarsOnNode(r,t),r!==n);)r=r.nextSibling}}function setVarsOnNode(e,t){if(e.nodeType===1){const r=e.style;for(const n in t)r.setProperty(`--${n}`,t[n])}}const TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$1({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(e,t=[])=>{isArray$2(e)?e.forEach(r=>r(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray$2(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const P in e)P in DOMTransitionPropsValidators||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:c=o,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,g=normalizeDuration(a),y=g&&g[0],w=g&&g[1],{onBeforeEnter:k,onEnter:_,onEnterCancelled:$,onLeave:S,onLeaveCancelled:L,onBeforeAppear:V=k,onAppear:O=_,onAppearCancelled:T=$}=t,I=(P,W,N)=>{removeTransitionClass(P,W?d:l),removeTransitionClass(P,W?u:s),N&&N()},B=(P,W)=>{P._isLeaving=!1,removeTransitionClass(P,m),removeTransitionClass(P,x),removeTransitionClass(P,b),W&&W()},C=P=>(W,N)=>{const ie=P?O:_,ne=()=>I(W,P,N);callHook(ie,[W,ne]),nextFrame(()=>{removeTransitionClass(W,P?c:o),addTransitionClass(W,P?d:l),hasExplicitCallback(ie)||whenTransitionEnds(W,n,y,ne)})};return extend$1(t,{onBeforeEnter(P){callHook(k,[P]),addTransitionClass(P,o),addTransitionClass(P,s)},onBeforeAppear(P){callHook(V,[P]),addTransitionClass(P,c),addTransitionClass(P,u)},onEnter:C(!1),onAppear:C(!0),onLeave(P,W){P._isLeaving=!0;const N=()=>B(P,W);addTransitionClass(P,m),forceReflow(),addTransitionClass(P,b),nextFrame(()=>{!P._isLeaving||(removeTransitionClass(P,m),addTransitionClass(P,x),hasExplicitCallback(S)||whenTransitionEnds(P,n,w,N))}),callHook(S,[P,N])},onEnterCancelled(P){I(P,!1),callHook($,[P])},onAppearCancelled(P){I(P,!0),callHook(T,[P])},onLeaveCancelled(P){B(P),callHook(L,[P])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,t,r,n){const a=e._endId=++endId,o=()=>{a===e._endId&&n()};if(r)return setTimeout(o,r);const{type:s,timeout:l,propCount:c}=getTransitionInfo(e,t);if(!s)return n();const u=s+"end";let d=0;const m=()=>{e.removeEventListener(u,b),o()},b=x=>{x.target===e&&++d>=c&&m()};setTimeout(()=>{d(r[g]||"").split(", "),a=n(TRANSITION+"Delay"),o=n(TRANSITION+"Duration"),s=getTimeout(a,o),l=n(ANIMATION+"Delay"),c=n(ANIMATION+"Duration"),u=getTimeout(l,c);let d=null,m=0,b=0;t===TRANSITION?s>0&&(d=TRANSITION,m=s,b=o.length):t===ANIMATION?u>0&&(d=ANIMATION,m=u,b=c.length):(m=Math.max(s,u),d=m>0?s>u?TRANSITION:ANIMATION:null,b=d?d===TRANSITION?o.length:c.length:0);const x=d===TRANSITION&&/\b(transform|all)(,|$)/.test(r[TRANSITION+"Property"]);return{type:d,timeout:m,propCount:b,hasTransform:x}}function getTimeout(e,t){for(;e.lengthtoMs(r)+toMs(e[n])))}function toMs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=getCurrentInstance(),n=useTransitionState();let a,o;return onUpdated(()=>{if(!a.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!hasCSSTransform(a[0].el,r.vnode.el,s))return;a.forEach(callPendingCbs),a.forEach(recordPosition);const l=a.filter(applyTranslation);forceReflow(),l.forEach(c=>{const u=c.el,d=u.style;addTransitionClass(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const m=u._moveCb=b=>{b&&b.target!==u||(!b||/transform$/.test(b.propertyName))&&(u.removeEventListener("transitionend",m),u._moveCb=null,removeTransitionClass(u,s))};u.addEventListener("transitionend",m)})}),()=>{const s=toRaw(e),l=resolveTransitionProps(s);let c=s.tag||Fragment;a=o,o=t.default?getTransitionRawChildren(t.default()):[];for(let u=0;u{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=getTransitionInfo(n);return a.removeChild(n),o}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray$2(t)?r=>invokeArrayFns(t,r):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vModelText={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e._assign=getModelAssigner(a);const o=n||a.props&&a.props.type==="number";addEventListener(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;r&&(l=l.trim()),o&&(l=toNumber(l)),e._assign(l)}),r&&addEventListener(e,"change",()=>{e.value=e.value.trim()}),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},o){if(e._assign=getModelAssigner(o),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(a||e.type==="number")&&toNumber(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},vModelCheckbox={deep:!0,created(e,t,r){e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{const n=e._modelValue,a=getValue(e),o=e.checked,s=e._assign;if(isArray$2(n)){const l=looseIndexOf(n,a),c=l!==-1;if(o&&!c)s(n.concat(a));else if(!o&&c){const u=[...n];u.splice(l,1),s(u)}}else if(isSet(n)){const l=new Set(n);o?l.add(a):l.delete(a),s(l)}else s(getCheckboxValue(e,o))})},mounted:setChecked,beforeUpdate(e,t,r){e._assign=getModelAssigner(r),setChecked(e,t,r)}};function setChecked(e,{value:t,oldValue:r},n){e._modelValue=t,isArray$2(t)?e.checked=looseIndexOf(t,n.props.value)>-1:isSet(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=looseEqual(t,getCheckboxValue(e,!0)))}const vModelRadio={created(e,{value:t},r){e.checked=looseEqual(t,r.props.value),e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{e._assign(getValue(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=getModelAssigner(n),t!==r&&(e.checked=looseEqual(t,n.props.value))}},vModelSelect={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const a=isSet(t);addEventListener(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?toNumber(getValue(s)):getValue(s));e._assign(e.multiple?a?new Set(o):o:o[0])}),e._assign=getModelAssigner(n)},mounted(e,{value:t}){setSelected(e,t)},beforeUpdate(e,t,r){e._assign=getModelAssigner(r)},updated(e,{value:t}){setSelected(e,t)}};function setSelected(e,t){const r=e.multiple;if(!(r&&!isArray$2(t)&&!isSet(t))){for(let n=0,a=e.options.length;n-1:o.selected=t.has(s);else if(looseEqual(getValue(o),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function getValue(e){return"_value"in e?e._value:e.value}function getCheckboxValue(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vModelDynamic={created(e,t,r){callModelHook(e,t,r,null,"created")},mounted(e,t,r){callModelHook(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){callModelHook(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){callModelHook(e,t,r,n,"updated")}};function resolveDynamicModel(e,t){switch(e){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(t){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(e,t,r,n,a){const s=resolveDynamicModel(e.tagName,r.props&&r.props.type)[a];s&&s(e,t,r,n)}function initVModelForSSR(){vModelText.getSSRProps=({value:e})=>({value:e}),vModelRadio.getSSRProps=({value:e},t)=>{if(t.props&&looseEqual(t.props.value,e))return{checked:!0}},vModelCheckbox.getSSRProps=({value:e},t)=>{if(isArray$2(e)){if(t.props&&looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vModelDynamic.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=resolveDynamicModel(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>systemModifiers.some(r=>e[`${r}Key`]&&!t.includes(r))},withModifiers=(e,t)=>(r,...n)=>{for(let a=0;ar=>{if(!("key"in r))return;const n=hyphenate(r.key);if(t.some(a=>a===n||keyNames[a]===n))return e(r)},vShow={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),setDisplay(e,!0),n.enter(e)):n.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...e)=>{ensureRenderer().render(...e)},hydrate=(...e)=>{ensureHydrationRenderer().hydrate(...e)},createApp=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=normalizeContainer(n);if(!a)return;const o=t._component;!isFunction$3(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const s=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},t},createSSRApp=(...e)=>{const t=ensureHydrationRenderer().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=normalizeContainer(n);if(a)return r(a,!0,a instanceof SVGElement)},t};function normalizeContainer(e){return isString$3(e)?document.querySelector(e):e}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())};var animate_min=(()=>`@charset "UTF-8";/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT @@ -29,7 +29,7 @@ const p$1=function(){const t=document.createElement("link").relList;if(t&&t.supp * @intlify/runtime v9.1.10 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":e.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber$1(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber$1(e.named.count)||isNumber$1(e.named.n))?isNumber$1(e.named.count)?e.named.count:isNumber$1(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,r=getPluralIndex(e),n=isObject$3(e.pluralRules)&&isString$2(t)&&isFunction$2(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject$3(e.pluralRules)&&isString$2(t)&&isFunction$2(e.pluralRules[t])?pluralDefault:void 0,o=w=>w[n(r,w.length,a)],s=e.list||[],l=w=>s[w],c=e.named||{};isNumber$1(e.pluralIndex)&&normalizeNamed(r,c);const u=w=>c[w];function d(w){const _=isFunction$2(e.messages)?e.messages(w):isObject$3(e.messages)?e.messages[w]:!1;return _||(e.parent?e.parent.message(w):DEFAULT_MESSAGE)}const m=w=>e.modifiers?e.modifiers[w]:DEFAULT_MODIFIER,b=isPlainObject$3(e.processor)&&isFunction$2(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,x=isPlainObject$3(e.processor)&&isFunction$2(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,g=isPlainObject$3(e.processor)&&isString$2(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,y={list:l,named:u,plural:o,linked:(w,_)=>{const E=d(w)(y);return isString$2(_)?m(_)(E):E},message:d,type:g,interpolate:x,normalize:b};return y}/*! + */const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":e.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber$1(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber$1(e.named.count)||isNumber$1(e.named.n))?isNumber$1(e.named.count)?e.named.count:isNumber$1(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,r=getPluralIndex(e),n=isObject$3(e.pluralRules)&&isString$2(t)&&isFunction$2(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject$3(e.pluralRules)&&isString$2(t)&&isFunction$2(e.pluralRules[t])?pluralDefault:void 0,o=w=>w[n(r,w.length,a)],s=e.list||[],l=w=>s[w],c=e.named||{};isNumber$1(e.pluralIndex)&&normalizeNamed(r,c);const u=w=>c[w];function d(w){const k=isFunction$2(e.messages)?e.messages(w):isObject$3(e.messages)?e.messages[w]:!1;return k||(e.parent?e.parent.message(w):DEFAULT_MESSAGE)}const m=w=>e.modifiers?e.modifiers[w]:DEFAULT_MODIFIER,b=isPlainObject$3(e.processor)&&isFunction$2(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,x=isPlainObject$3(e.processor)&&isFunction$2(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,g=isPlainObject$3(e.processor)&&isString$2(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,y={list:l,named:u,plural:o,linked:(w,k)=>{const _=d(w)(y);return isString$2(k)?m(k)(_):_},message:d,type:g,interpolate:x,normalize:b};return y}/*! * @intlify/message-compiler v9.1.10 * (c) 2022 kazuya kawaguchi * Released under the MIT License. @@ -41,31 +41,31 @@ const p$1=function(){const t=document.createElement("link").relList;if(t&&t.supp * @intlify/core-base v9.1.10 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */let devtools=null;function setDevToolsHook(e){devtools=e}function initI18nDevTools(e,t,r){devtools&&devtools.emit(IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:r})}const translateDevTools=createDevToolsHook(IntlifyDevToolsHooks.FunctionTranslate);function createDevToolsHook(e){return t=>devtools&&devtools.emit(e,t)}const VERSION$2="9.1.10",NOT_REOSLVED=-1,MISSING_RESOLVE_VALUE="";function getDefaultLinkedModifiers(){return{upper:e=>isString$2(e)?e.toUpperCase():e,lower:e=>isString$2(e)?e.toLowerCase():e,capitalize:e=>isString$2(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let _compiler,_additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _cid=0;function createCoreContext(e={}){const t=isString$2(e.version)?e.version:VERSION$2,r=isString$2(e.locale)?e.locale:"en-US",n=isArray$1(e.fallbackLocale)||isPlainObject$3(e.fallbackLocale)||isString$2(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=isPlainObject$3(e.messages)?e.messages:{[r]:{}},o=isPlainObject$3(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},s=isPlainObject$3(e.numberFormats)?e.numberFormats:{[r]:{}},l=assign$2({},e.modifiers||{},getDefaultLinkedModifiers()),c=e.pluralRules||{},u=isFunction$2(e.missing)?e.missing:null,d=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,m=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,x=!!e.unresolving,g=isFunction$2(e.postTranslation)?e.postTranslation:null,y=isPlainObject$3(e.processor)?e.processor:null,w=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,E=isFunction$2(e.messageCompiler)?e.messageCompiler:_compiler,z=isFunction$2(e.onWarn)?e.onWarn:warn,R=e,$=isObject$3(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,H=isObject$3(R.__numberFormatters)?R.__numberFormatters:new Map,M=isObject$3(R.__meta)?R.__meta:{};_cid++;const I={version:t,cid:_cid,locale:r,fallbackLocale:n,messages:a,datetimeFormats:o,numberFormats:s,modifiers:l,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:m,fallbackFormat:b,unresolving:x,postTranslation:g,processor:y,warnHtmlMessage:w,escapeParameter:_,messageCompiler:E,onWarn:z,__datetimeFormatters:$,__numberFormatters:H,__meta:M};return __INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(I,t,M),I}function handleMissing(e,t,r,n,a){const{missing:o,onWarn:s}=e;if(o!==null){const l=o(e,r,t,a);return isString$2(l)?l:t}else return t}function getLocaleChain(e,t,r){const n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let a=n.__localeChainCache.get(r);if(!a){a=[];let o=[r];for(;isArray$1(o);)o=appendBlockToChain(a,o,t);const s=isArray$1(t)?t:isPlainObject$3(t)?t.default?t.default:null:t;o=isString$2(s)?[s]:s,isArray$1(o)&&appendBlockToChain(a,o,!1),n.__localeChainCache.set(r,a)}return a}function appendBlockToChain(e,t,r){let n=!0;for(let a=0;a"",isMessageFunction=e=>isFunction$2(e);function translate(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,fallbackLocale:o,messages:s}=e,[l,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,d=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,x=isString$2(c.default)||isBoolean(c.default)?isBoolean(c.default)?l:c.default:r?l:"",g=r||x!=="",y=isString$2(c.locale)?c.locale:e.locale;m&&escapeParams(c);let[w,_,E]=b?[l,y,s[y]||{}]:resolveMessageFormat(e,l,y,o,d,u),z=l;if(!b&&!(isString$2(w)||isMessageFunction(w))&&g&&(w=x,z=w),!b&&(!(isString$2(w)||isMessageFunction(w))||!isString$2(_)))return a?NOT_REOSLVED:l;let R=!1;const $=()=>{R=!0},H=isMessageFunction(w)?w:compileMessageFormat(e,l,_,w,z,$);if(R)return w;const M=getMessageContextOptions(e,_,E,c),I=createMessageContext(M),j=evaluateMessage(e,H,I),N=n?n(j):j;if(__INTLIFY_PROD_DEVTOOLS__){const T={timestamp:Date.now(),key:isString$2(l)?l:isMessageFunction(w)?w.key:"",locale:_||(isMessageFunction(w)?w.locale:""),format:isString$2(w)?w:isMessageFunction(w)?w.source:"",message:N};T.meta=assign$2({},e.__meta,getAdditionalMeta()||{}),translateDevTools(T)}return N}function escapeParams(e){isArray$1(e.list)?e.list=e.list.map(t=>isString$2(t)?escapeHtml(t):t):isObject$3(e.named)&&Object.keys(e.named).forEach(t=>{isString$2(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,r,n,a,o){const{messages:s,onWarn:l}=e,c=getLocaleChain(e,n,r);let u={},d,m=null;const b="translate";for(let x=0;x{throw o&&o(s),s},onCacheKey:s=>generateFormatCacheKey(t,r,s)}}function getMessageContextOptions(e,t,r,n){const{modifiers:a,pluralRules:o}=e,l={locale:t,modifiers:a,pluralRules:o,messages:c=>{const u=resolveValue(r,c);if(isString$2(u)){let d=!1;const b=compileMessageFormat(e,c,t,u,c,()=>{d=!0});return d?NOOP_MESSAGE_FUNCTION:b}else return isMessageFunction(u)?u:NOOP_MESSAGE_FUNCTION}};return e.processor&&(l.processor=e.processor),n.list&&(l.list=n.list),n.named&&(l.named=n.named),isNumber$1(n.plural)&&(l.pluralIndex=n.plural),l}function datetime(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:o}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=parseDateTimeArgs(...t),m=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,x=isString$2(u.locale)?u.locale:e.locale,g=getLocaleChain(e,a,x);if(!isString$2(l)||l==="")return new Intl.DateTimeFormat(x).format(c);let y={},w,_=null;const E="datetime format";for(let $=0;$devtools&&devtools.emit(e,t)}const VERSION$2="9.1.10",NOT_REOSLVED=-1,MISSING_RESOLVE_VALUE="";function getDefaultLinkedModifiers(){return{upper:e=>isString$2(e)?e.toUpperCase():e,lower:e=>isString$2(e)?e.toLowerCase():e,capitalize:e=>isString$2(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let _compiler,_additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _cid=0;function createCoreContext(e={}){const t=isString$2(e.version)?e.version:VERSION$2,r=isString$2(e.locale)?e.locale:"en-US",n=isArray$1(e.fallbackLocale)||isPlainObject$3(e.fallbackLocale)||isString$2(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=isPlainObject$3(e.messages)?e.messages:{[r]:{}},o=isPlainObject$3(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},s=isPlainObject$3(e.numberFormats)?e.numberFormats:{[r]:{}},l=assign$2({},e.modifiers||{},getDefaultLinkedModifiers()),c=e.pluralRules||{},u=isFunction$2(e.missing)?e.missing:null,d=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,m=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,x=!!e.unresolving,g=isFunction$2(e.postTranslation)?e.postTranslation:null,y=isPlainObject$3(e.processor)?e.processor:null,w=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,_=isFunction$2(e.messageCompiler)?e.messageCompiler:_compiler,$=isFunction$2(e.onWarn)?e.onWarn:warn,S=e,L=isObject$3(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,V=isObject$3(S.__numberFormatters)?S.__numberFormatters:new Map,O=isObject$3(S.__meta)?S.__meta:{};_cid++;const T={version:t,cid:_cid,locale:r,fallbackLocale:n,messages:a,datetimeFormats:o,numberFormats:s,modifiers:l,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:m,fallbackFormat:b,unresolving:x,postTranslation:g,processor:y,warnHtmlMessage:w,escapeParameter:k,messageCompiler:_,onWarn:$,__datetimeFormatters:L,__numberFormatters:V,__meta:O};return __INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(T,t,O),T}function handleMissing(e,t,r,n,a){const{missing:o,onWarn:s}=e;if(o!==null){const l=o(e,r,t,a);return isString$2(l)?l:t}else return t}function getLocaleChain(e,t,r){const n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let a=n.__localeChainCache.get(r);if(!a){a=[];let o=[r];for(;isArray$1(o);)o=appendBlockToChain(a,o,t);const s=isArray$1(t)?t:isPlainObject$3(t)?t.default?t.default:null:t;o=isString$2(s)?[s]:s,isArray$1(o)&&appendBlockToChain(a,o,!1),n.__localeChainCache.set(r,a)}return a}function appendBlockToChain(e,t,r){let n=!0;for(let a=0;a"",isMessageFunction=e=>isFunction$2(e);function translate(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,fallbackLocale:o,messages:s}=e,[l,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,d=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,x=isString$2(c.default)||isBoolean(c.default)?isBoolean(c.default)?l:c.default:r?l:"",g=r||x!=="",y=isString$2(c.locale)?c.locale:e.locale;m&&escapeParams(c);let[w,k,_]=b?[l,y,s[y]||{}]:resolveMessageFormat(e,l,y,o,d,u),$=l;if(!b&&!(isString$2(w)||isMessageFunction(w))&&g&&(w=x,$=w),!b&&(!(isString$2(w)||isMessageFunction(w))||!isString$2(k)))return a?NOT_REOSLVED:l;let S=!1;const L=()=>{S=!0},V=isMessageFunction(w)?w:compileMessageFormat(e,l,k,w,$,L);if(S)return w;const O=getMessageContextOptions(e,k,_,c),T=createMessageContext(O),I=evaluateMessage(e,V,T),B=n?n(I):I;if(__INTLIFY_PROD_DEVTOOLS__){const C={timestamp:Date.now(),key:isString$2(l)?l:isMessageFunction(w)?w.key:"",locale:k||(isMessageFunction(w)?w.locale:""),format:isString$2(w)?w:isMessageFunction(w)?w.source:"",message:B};C.meta=assign$2({},e.__meta,getAdditionalMeta()||{}),translateDevTools(C)}return B}function escapeParams(e){isArray$1(e.list)?e.list=e.list.map(t=>isString$2(t)?escapeHtml(t):t):isObject$3(e.named)&&Object.keys(e.named).forEach(t=>{isString$2(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,r,n,a,o){const{messages:s,onWarn:l}=e,c=getLocaleChain(e,n,r);let u={},d,m=null;const b="translate";for(let x=0;x{throw o&&o(s),s},onCacheKey:s=>generateFormatCacheKey(t,r,s)}}function getMessageContextOptions(e,t,r,n){const{modifiers:a,pluralRules:o}=e,l={locale:t,modifiers:a,pluralRules:o,messages:c=>{const u=resolveValue(r,c);if(isString$2(u)){let d=!1;const b=compileMessageFormat(e,c,t,u,c,()=>{d=!0});return d?NOOP_MESSAGE_FUNCTION:b}else return isMessageFunction(u)?u:NOOP_MESSAGE_FUNCTION}};return e.processor&&(l.processor=e.processor),n.list&&(l.list=n.list),n.named&&(l.named=n.named),isNumber$1(n.plural)&&(l.pluralIndex=n.plural),l}function datetime(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:o}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=parseDateTimeArgs(...t),m=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,x=isString$2(u.locale)?u.locale:e.locale,g=getLocaleChain(e,a,x);if(!isString$2(l)||l==="")return new Intl.DateTimeFormat(x).format(c);let y={},w,k=null;const _="datetime format";for(let L=0;Le(r,n,getCurrentInstance()||void 0,a)}function getLocaleMessages(e,t){const{messages:r,__i18n:n}=t,a=isPlainObject$3(r)?r:isArray$1(n)?{}:{[e]:{}};if(isArray$1(n)&&n.forEach(({locale:o,resource:s})=>{o?(a[o]=a[o]||{},deepCopy(s,a[o])):deepCopy(s,a)}),t.flatJson)for(const o in a)hasOwn$1(a,o)&&handleFlatJson(a[o]);return a}const isNotObjectOrIsArray=e=>!isObject$3(e)||isArray$1(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw createI18nError(20);for(const r in e)hasOwn$1(e,r)&&(isNotObjectOrIsArray(e[r])||isNotObjectOrIsArray(t[r])?t[r]=e[r]:deepCopy(e[r],t[r]))}const getMetaInfo=()=>{const e=getCurrentInstance();return e&&e.type[DEVTOOLS_META]?{[DEVTOOLS_META]:e.type[DEVTOOLS_META]}:null};function createComposer(e={}){const{__root:t}=e,r=t===void 0;let n=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const a=ref(t&&n?t.locale.value:isString$2(e.locale)?e.locale:"en-US"),o=ref(t&&n?t.fallbackLocale.value:isString$2(e.fallbackLocale)||isArray$1(e.fallbackLocale)||isPlainObject$3(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),s=ref(getLocaleMessages(a.value,e)),l=ref(isPlainObject$3(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),c=ref(isPlainObject$3(e.numberFormats)?e.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,x=isFunction$2(e.missing)?e.missing:null,g=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,y=isFunction$2(e.postTranslation)?e.postTranslation:null,w=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const E=t?t.modifiers:isPlainObject$3(e.modifiers)?e.modifiers:{};let z=e.pluralRules||t&&t.pluralRules,R;function $(){return createCoreContext({version:VERSION$1,locale:a.value,fallbackLocale:o.value,messages:s.value,datetimeFormats:l.value,numberFormats:c.value,modifiers:E,pluralRules:z,missing:g===null?void 0:g,missingWarn:u,fallbackWarn:d,fallbackFormat:b,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:_,__datetimeFormatters:isPlainObject$3(R)?R.__datetimeFormatters:void 0,__numberFormatters:isPlainObject$3(R)?R.__numberFormatters:void 0,__v_emitter:isPlainObject$3(R)?R.__v_emitter:void 0,__meta:{framework:"vue"}})}R=$(),updateFallbackLocale(R,a.value,o.value);function H(){return[a.value,o.value,s.value,l.value,c.value]}const M=computed({get:()=>a.value,set:O=>{a.value=O,R.locale=a.value}}),I=computed({get:()=>o.value,set:O=>{o.value=O,R.fallbackLocale=o.value,updateFallbackLocale(R,a.value,O)}}),j=computed(()=>s.value),N=computed(()=>l.value),T=computed(()=>c.value);function Y(){return isFunction$2(y)?y:null}function J(O){y=O,R.postTranslation=O}function X(){return x}function ue(O){O!==null&&(g=defineCoreMissingHandler(O)),x=O,R.missing=g}function ae(O,A,ee,K,ne,ie){H();let pe;if(__INTLIFY_PROD_DEVTOOLS__)try{setAdditionalMeta(getMetaInfo()),pe=O(R)}finally{setAdditionalMeta(null)}else pe=O(R);if(isNumber$1(pe)&&pe===NOT_REOSLVED){const[be,ve]=A();return t&&m?K(t):ne(be)}else{if(ie(pe))return pe;throw createI18nError(14)}}function me(...O){return ae(A=>translate(A,...O),()=>parseTranslateArgs(...O),"translate",A=>A.t(...O),A=>A,A=>isString$2(A))}function fe(...O){const[A,ee,K]=O;if(K&&!isObject$3(K))throw createI18nError(15);return me(A,ee,assign$2({resolvedMessage:!0},K||{}))}function ye(...O){return ae(A=>datetime(A,...O),()=>parseDateTimeArgs(...O),"datetime format",A=>A.d(...O),()=>MISSING_RESOLVE_VALUE,A=>isString$2(A))}function xe(...O){return ae(A=>number(A,...O),()=>parseNumberArgs(...O),"number format",A=>A.n(...O),()=>MISSING_RESOLVE_VALUE,A=>isString$2(A))}function _e(O){return O.map(A=>isString$2(A)?createVNode(Text,null,A,0):A)}const ke={normalize:_e,interpolate:O=>O,type:"vnode"};function Oe(...O){return ae(A=>{let ee;const K=A;try{K.processor=ke,ee=translate(K,...O)}finally{K.processor=null}return ee},()=>parseTranslateArgs(...O),"translate",A=>A[TransrateVNodeSymbol](...O),A=>[createVNode(Text,null,A,0)],A=>isArray$1(A))}function F(...O){return ae(A=>number(A,...O),()=>parseNumberArgs(...O),"number format",A=>A[NumberPartsSymbol](...O),()=>[],A=>isString$2(A)||isArray$1(A))}function W(...O){return ae(A=>datetime(A,...O),()=>parseDateTimeArgs(...O),"datetime format",A=>A[DatetimePartsSymbol](...O),()=>[],A=>isString$2(A)||isArray$1(A))}function U(O){z=O,R.pluralRules=z}function Q(O,A){const ee=isString$2(A)?A:a.value,K=le(ee);return resolveValue(K,O)!==null}function de(O){let A=null;const ee=getLocaleChain(R,o.value,a.value);for(let K=0;K{n&&(a.value=O,R.locale=O,updateFallbackLocale(R,a.value,o.value))}),watch(t.fallbackLocale,O=>{n&&(o.value=O,R.fallbackLocale=O,updateFallbackLocale(R,a.value,o.value))})),{id:composerID,locale:M,fallbackLocale:I,get inheritLocale(){return n},set inheritLocale(O){n=O,O&&t&&(a.value=t.locale.value,o.value=t.fallbackLocale.value,updateFallbackLocale(R,a.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:j,datetimeFormats:N,numberFormats:T,get modifiers(){return E},get pluralRules(){return z||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(O){u=O,R.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(O){d=O,R.fallbackWarn=d},get fallbackRoot(){return m},set fallbackRoot(O){m=O},get fallbackFormat(){return b},set fallbackFormat(O){b=O,R.fallbackFormat=b},get warnHtmlMessage(){return w},set warnHtmlMessage(O){w=O,R.warnHtmlMessage=O},get escapeParameter(){return _},set escapeParameter(O){_=O,R.escapeParameter=O},t:me,rt:fe,d:ye,n:xe,te:Q,tm:he,getLocaleMessage:le,setLocaleMessage:ce,mergeLocaleMessage:C,getDateTimeFormat:S,setDateTimeFormat:P,mergeDateTimeFormat:B,getNumberFormat:D,setNumberFormat:q,mergeNumberFormat:V,getPostTranslationHandler:Y,setPostTranslationHandler:J,getMissingHandler:X,setMissingHandler:ue,[TransrateVNodeSymbol]:Oe,[NumberPartsSymbol]:F,[DatetimePartsSymbol]:W,[SetPluralRulesSymbol]:U,[InejctWithOption]:e.__injectWithOption}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},Translation={name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber$1(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:r,attrs:n}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0}),o=Object.keys(r).filter(s=>s!=="_");return()=>{const s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=isString$2(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,o),c=a[TransrateVNodeSymbol](e.keypath,l,s),u=assign$2({},n);return isString$2(e.tag)||isObject$3(e.tag)?h(e.tag,u,c):h(Fragment,u,c)}}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((r,n)=>{const a=e[n];return a&&(r[n]=a()),r},{})}function renderFormatter(e,t,r,n){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let l={};e.locale&&(s.locale=e.locale),isString$2(e.format)?s.key=e.format:isObject$3(e.format)&&(isString$2(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((m,b)=>r.includes(b)?assign$2({},m,{[b]:e.format[b]}):m,{}));const c=n(e.value,s,l);let u=[s.key];isArray$1(c)?u=c.map((m,b)=>{const x=a[m.type];return x?x({[m.type]:m.value,index:b,parts:c}):[m.value]}):isString$2(c)&&(u=[c]);const d=assign$2({},o);return isString$2(e.tag)||isObject$3(e.tag)?h(e.tag,d,u):h(Fragment,d,u)}}const NUMBER_FORMAT_KEYS=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],NumberFormat={name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const r=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_KEYS,(...n)=>r[NumberPartsSymbol](...n))}},DATETIME_FORMAT_KEYS=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],DatetimeFormat={name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const r=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_KEYS,(...n)=>r[DatetimePartsSymbol](...n))}};function getComposer$2(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function vTDirective(e){const t=(r,{instance:n,value:a,modifiers:o})=>{if(!n||!n.$)throw createI18nError(22);const s=getComposer$2(e,n.$),l=parseValue(a);r.textContent=s.t(...makeParams(l))};return{beforeMount:t,beforeUpdate:t}}function parseValue(e){if(isString$2(e))return{path:e};if(isPlainObject$3(e)){if(!("path"in e))throw createI18nError(19,"path");return e}else throw createI18nError(20)}function makeParams(e){const{path:t,locale:r,args:n,choice:a,plural:o}=e,s={},l=n||{};return isString$2(r)&&(s.locale=r),isNumber$1(a)&&(s.plural=a),isNumber$1(o)&&(s.plural=o),[t,l,s]}function apply(e,t,...r){const n=isPlainObject$3(r[0])?r[0]:{},a=!!n.useI18nComponentName;(isBoolean(n.globalInstall)?n.globalInstall:!0)&&(e.component(a?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(t))}function createI18n(e={}){const t=!!e.globalInjection,r=new Map,n=createComposer(e),a=makeSymbol(""),o={get mode(){return"composition"},async install(s,...l){s.__VUE_I18N_SYMBOL__=a,s.provide(s.__VUE_I18N_SYMBOL__,o),t&&injectGlobalFields(s,o.global),apply(s,o,...l)},get global(){return n},__instances:r,__getInstance(s){return r.get(s)||null},__setInstance(s,l){r.set(s,l)},__deleteInstance(s){r.delete(s)}};return o}function useI18n(e={}){const t=getCurrentInstance();if(t==null)throw createI18nError(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(17);const r=inject(t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw createI18nError(22);const n=r.mode==="composition"?r.global:r.global.__composer,a=isEmptyObject(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(a==="global"){let l=isObject$3(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(l=getLocaleMessages(n.locale.value,{messages:l,__i18n:t.type.__i18nGlobal}));const c=Object.keys(l);if(c.length&&c.forEach(u=>{n.mergeLocaleMessage(u,l[u])}),isObject$3(e.datetimeFormats)){const u=Object.keys(e.datetimeFormats);u.length&&u.forEach(d=>{n.mergeDateTimeFormat(d,e.datetimeFormats[d])})}if(isObject$3(e.numberFormats)){const u=Object.keys(e.numberFormats);u.length&&u.forEach(d=>{n.mergeNumberFormat(d,e.numberFormats[d])})}return n}if(a==="parent"){let l=getComposer(r,t,e.__useComponent);return l==null&&(l=n),l}if(r.mode==="legacy")throw createI18nError(18);const o=r;let s=o.__getInstance(t);if(s==null){const l=t.type,c=assign$2({},e);l.__i18n&&(c.__i18n=l.__i18n),n&&(c.__root=n),s=createComposer(c),setupLifeCycle(o,t),o.__setInstance(t,s)}return s}function getComposer(e,t,r=!1){let n=null;const a=t.root;let o=t.parent;for(;o!=null;){const s=e;if(e.mode==="composition")n=s.__getInstance(o);else{const l=s.__getInstance(o);l!=null&&(n=l.__composer),r&&n&&!n[InejctWithOption]&&(n=null)}if(n!=null||a===o)break;o=o.parent}return n}function setupLifeCycle(e,t,r){onMounted(()=>{},t),onUnmounted(()=>{e.__deleteInstance(t)},t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields(e,t){const r=Object.create(null);globalExportProps.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a)throw createI18nError(22);const o=isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,o)}),e.config.globalProperties.$i18n=r,globalExportMethods.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a||!a.value)throw createI18nError(22);Object.defineProperty(e.config.globalProperties,`$${n}`,a)})}initFeatureFlags();if(__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const messages=Object.fromEntries(Object.entries({"../../locales/en.yml":__glob_1_0,"../../locales/zh-CN.yml":__glob_1_1}).map(([e,t])=>{const r=e.endsWith(".yaml");return[e.slice(14,r?-5:-4),t.default]}));var i18n=e=>{const t=createI18n({legacy:!1,locale:"en",messages});e.use(t)},__glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:i18n},Symbol.toStringTag,{value:"Module"})),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mock={exports:{}};(function(module,exports){(function(t,r){module.exports=r()})(commonjsGlobal,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){var n=r(1),a=r(3),o=r(5),s=r(20),l=r(23),c=r(25),u;typeof window!="undefined"&&(u=r(27));/*! + */const VERSION$1="9.1.10";function initFeatureFlags(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}function createI18nError(e,...t){return createCompileError(e,null,void 0)}const DEVTOOLS_META="__INTLIFY_META__",TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts");makeSymbol("__enableEmitter");makeSymbol("__disableEmitter");const SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");let composerID=0;function defineCoreMissingHandler(e){return(t,r,n,a)=>e(r,n,getCurrentInstance()||void 0,a)}function getLocaleMessages(e,t){const{messages:r,__i18n:n}=t,a=isPlainObject$3(r)?r:isArray$1(n)?{}:{[e]:{}};if(isArray$1(n)&&n.forEach(({locale:o,resource:s})=>{o?(a[o]=a[o]||{},deepCopy(s,a[o])):deepCopy(s,a)}),t.flatJson)for(const o in a)hasOwn$1(a,o)&&handleFlatJson(a[o]);return a}const isNotObjectOrIsArray=e=>!isObject$3(e)||isArray$1(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw createI18nError(20);for(const r in e)hasOwn$1(e,r)&&(isNotObjectOrIsArray(e[r])||isNotObjectOrIsArray(t[r])?t[r]=e[r]:deepCopy(e[r],t[r]))}const getMetaInfo=()=>{const e=getCurrentInstance();return e&&e.type[DEVTOOLS_META]?{[DEVTOOLS_META]:e.type[DEVTOOLS_META]}:null};function createComposer(e={}){const{__root:t}=e,r=t===void 0;let n=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const a=ref(t&&n?t.locale.value:isString$2(e.locale)?e.locale:"en-US"),o=ref(t&&n?t.fallbackLocale.value:isString$2(e.fallbackLocale)||isArray$1(e.fallbackLocale)||isPlainObject$3(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),s=ref(getLocaleMessages(a.value,e)),l=ref(isPlainObject$3(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),c=ref(isPlainObject$3(e.numberFormats)?e.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,x=isFunction$2(e.missing)?e.missing:null,g=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,y=isFunction$2(e.postTranslation)?e.postTranslation:null,w=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const _=t?t.modifiers:isPlainObject$3(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,S;function L(){return createCoreContext({version:VERSION$1,locale:a.value,fallbackLocale:o.value,messages:s.value,datetimeFormats:l.value,numberFormats:c.value,modifiers:_,pluralRules:$,missing:g===null?void 0:g,missingWarn:u,fallbackWarn:d,fallbackFormat:b,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:k,__datetimeFormatters:isPlainObject$3(S)?S.__datetimeFormatters:void 0,__numberFormatters:isPlainObject$3(S)?S.__numberFormatters:void 0,__v_emitter:isPlainObject$3(S)?S.__v_emitter:void 0,__meta:{framework:"vue"}})}S=L(),updateFallbackLocale(S,a.value,o.value);function V(){return[a.value,o.value,s.value,l.value,c.value]}const O=computed({get:()=>a.value,set:R=>{a.value=R,S.locale=a.value}}),T=computed({get:()=>o.value,set:R=>{o.value=R,S.fallbackLocale=o.value,updateFallbackLocale(S,a.value,R)}}),I=computed(()=>s.value),B=computed(()=>l.value),C=computed(()=>c.value);function P(){return isFunction$2(y)?y:null}function W(R){y=R,S.postTranslation=R}function N(){return x}function ie(R){R!==null&&(g=defineCoreMissingHandler(R)),x=R,S.missing=g}function ne(R,z,ee,G,ae,se){V();let me;if(__INTLIFY_PROD_DEVTOOLS__)try{setAdditionalMeta(getMetaInfo()),me=R(S)}finally{setAdditionalMeta(null)}else me=R(S);if(isNumber$1(me)&&me===NOT_REOSLVED){const[be,ve]=z();return t&&m?G(t):ae(be)}else{if(se(me))return me;throw createI18nError(14)}}function fe(...R){return ne(z=>translate(z,...R),()=>parseTranslateArgs(...R),"translate",z=>z.t(...R),z=>z,z=>isString$2(z))}function de(...R){const[z,ee,G]=R;if(G&&!isObject$3(G))throw createI18nError(15);return fe(z,ee,assign$2({resolvedMessage:!0},G||{}))}function ye(...R){return ne(z=>datetime(z,...R),()=>parseDateTimeArgs(...R),"datetime format",z=>z.d(...R),()=>MISSING_RESOLVE_VALUE,z=>isString$2(z))}function xe(...R){return ne(z=>number(z,...R),()=>parseNumberArgs(...R),"number format",z=>z.n(...R),()=>MISSING_RESOLVE_VALUE,z=>isString$2(z))}function _e(R){return R.map(z=>isString$2(z)?createVNode(Text,null,z,0):z)}const ke={normalize:_e,interpolate:R=>R,type:"vnode"};function Oe(...R){return ne(z=>{let ee;const G=z;try{G.processor=ke,ee=translate(G,...R)}finally{G.processor=null}return ee},()=>parseTranslateArgs(...R),"translate",z=>z[TransrateVNodeSymbol](...R),z=>[createVNode(Text,null,z,0)],z=>isArray$1(z))}function F(...R){return ne(z=>number(z,...R),()=>parseNumberArgs(...R),"number format",z=>z[NumberPartsSymbol](...R),()=>[],z=>isString$2(z)||isArray$1(z))}function K(...R){return ne(z=>datetime(z,...R),()=>parseDateTimeArgs(...R),"datetime format",z=>z[DatetimePartsSymbol](...R),()=>[],z=>isString$2(z)||isArray$1(z))}function q(R){$=R,S.pluralRules=$}function J(R,z){const ee=isString$2(z)?z:a.value,G=ce(ee);return resolveValue(G,R)!==null}function pe(R){let z=null;const ee=getLocaleChain(S,o.value,a.value);for(let G=0;G{n&&(a.value=R,S.locale=R,updateFallbackLocale(S,a.value,o.value))}),watch(t.fallbackLocale,R=>{n&&(o.value=R,S.fallbackLocale=R,updateFallbackLocale(S,a.value,o.value))})),{id:composerID,locale:O,fallbackLocale:T,get inheritLocale(){return n},set inheritLocale(R){n=R,R&&t&&(a.value=t.locale.value,o.value=t.fallbackLocale.value,updateFallbackLocale(S,a.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:I,datetimeFormats:B,numberFormats:C,get modifiers(){return _},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(R){u=R,S.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(R){d=R,S.fallbackWarn=d},get fallbackRoot(){return m},set fallbackRoot(R){m=R},get fallbackFormat(){return b},set fallbackFormat(R){b=R,S.fallbackFormat=b},get warnHtmlMessage(){return w},set warnHtmlMessage(R){w=R,S.warnHtmlMessage=R},get escapeParameter(){return k},set escapeParameter(R){k=R,S.escapeParameter=R},t:fe,rt:de,d:ye,n:xe,te:J,tm:he,getLocaleMessage:ce,setLocaleMessage:ue,mergeLocaleMessage:M,getDateTimeFormat:A,setDateTimeFormat:H,mergeDateTimeFormat:Z,getNumberFormat:j,setNumberFormat:X,mergeNumberFormat:U,getPostTranslationHandler:P,setPostTranslationHandler:W,getMissingHandler:N,setMissingHandler:ie,[TransrateVNodeSymbol]:Oe,[NumberPartsSymbol]:F,[DatetimePartsSymbol]:K,[SetPluralRulesSymbol]:q,[InejctWithOption]:e.__injectWithOption}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},Translation={name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber$1(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:r,attrs:n}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0}),o=Object.keys(r).filter(s=>s!=="_");return()=>{const s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=isString$2(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,o),c=a[TransrateVNodeSymbol](e.keypath,l,s),u=assign$2({},n);return isString$2(e.tag)||isObject$3(e.tag)?h(e.tag,u,c):h(Fragment,u,c)}}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((r,n)=>{const a=e[n];return a&&(r[n]=a()),r},{})}function renderFormatter(e,t,r,n){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let l={};e.locale&&(s.locale=e.locale),isString$2(e.format)?s.key=e.format:isObject$3(e.format)&&(isString$2(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((m,b)=>r.includes(b)?assign$2({},m,{[b]:e.format[b]}):m,{}));const c=n(e.value,s,l);let u=[s.key];isArray$1(c)?u=c.map((m,b)=>{const x=a[m.type];return x?x({[m.type]:m.value,index:b,parts:c}):[m.value]}):isString$2(c)&&(u=[c]);const d=assign$2({},o);return isString$2(e.tag)||isObject$3(e.tag)?h(e.tag,d,u):h(Fragment,d,u)}}const NUMBER_FORMAT_KEYS=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],NumberFormat={name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const r=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_KEYS,(...n)=>r[NumberPartsSymbol](...n))}},DATETIME_FORMAT_KEYS=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],DatetimeFormat={name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const r=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_KEYS,(...n)=>r[DatetimePartsSymbol](...n))}};function getComposer$2(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function vTDirective(e){const t=(r,{instance:n,value:a,modifiers:o})=>{if(!n||!n.$)throw createI18nError(22);const s=getComposer$2(e,n.$),l=parseValue(a);r.textContent=s.t(...makeParams(l))};return{beforeMount:t,beforeUpdate:t}}function parseValue(e){if(isString$2(e))return{path:e};if(isPlainObject$3(e)){if(!("path"in e))throw createI18nError(19,"path");return e}else throw createI18nError(20)}function makeParams(e){const{path:t,locale:r,args:n,choice:a,plural:o}=e,s={},l=n||{};return isString$2(r)&&(s.locale=r),isNumber$1(a)&&(s.plural=a),isNumber$1(o)&&(s.plural=o),[t,l,s]}function apply(e,t,...r){const n=isPlainObject$3(r[0])?r[0]:{},a=!!n.useI18nComponentName;(isBoolean(n.globalInstall)?n.globalInstall:!0)&&(e.component(a?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(t))}function createI18n(e={}){const t=!!e.globalInjection,r=new Map,n=createComposer(e),a=makeSymbol(""),o={get mode(){return"composition"},async install(s,...l){s.__VUE_I18N_SYMBOL__=a,s.provide(s.__VUE_I18N_SYMBOL__,o),t&&injectGlobalFields(s,o.global),apply(s,o,...l)},get global(){return n},__instances:r,__getInstance(s){return r.get(s)||null},__setInstance(s,l){r.set(s,l)},__deleteInstance(s){r.delete(s)}};return o}function useI18n(e={}){const t=getCurrentInstance();if(t==null)throw createI18nError(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(17);const r=inject(t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw createI18nError(22);const n=r.mode==="composition"?r.global:r.global.__composer,a=isEmptyObject(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(a==="global"){let l=isObject$3(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(l=getLocaleMessages(n.locale.value,{messages:l,__i18n:t.type.__i18nGlobal}));const c=Object.keys(l);if(c.length&&c.forEach(u=>{n.mergeLocaleMessage(u,l[u])}),isObject$3(e.datetimeFormats)){const u=Object.keys(e.datetimeFormats);u.length&&u.forEach(d=>{n.mergeDateTimeFormat(d,e.datetimeFormats[d])})}if(isObject$3(e.numberFormats)){const u=Object.keys(e.numberFormats);u.length&&u.forEach(d=>{n.mergeNumberFormat(d,e.numberFormats[d])})}return n}if(a==="parent"){let l=getComposer(r,t,e.__useComponent);return l==null&&(l=n),l}if(r.mode==="legacy")throw createI18nError(18);const o=r;let s=o.__getInstance(t);if(s==null){const l=t.type,c=assign$2({},e);l.__i18n&&(c.__i18n=l.__i18n),n&&(c.__root=n),s=createComposer(c),setupLifeCycle(o,t),o.__setInstance(t,s)}return s}function getComposer(e,t,r=!1){let n=null;const a=t.root;let o=t.parent;for(;o!=null;){const s=e;if(e.mode==="composition")n=s.__getInstance(o);else{const l=s.__getInstance(o);l!=null&&(n=l.__composer),r&&n&&!n[InejctWithOption]&&(n=null)}if(n!=null||a===o)break;o=o.parent}return n}function setupLifeCycle(e,t,r){onMounted(()=>{},t),onUnmounted(()=>{e.__deleteInstance(t)},t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields(e,t){const r=Object.create(null);globalExportProps.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a)throw createI18nError(22);const o=isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,o)}),e.config.globalProperties.$i18n=r,globalExportMethods.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a||!a.value)throw createI18nError(22);Object.defineProperty(e.config.globalProperties,`$${n}`,a)})}initFeatureFlags();if(__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const messages=Object.fromEntries(Object.entries({"../../locales/en.yml":__glob_1_0,"../../locales/zh-CN.yml":__glob_1_1}).map(([e,t])=>{const r=e.endsWith(".yaml");return[e.slice(14,r?-5:-4),t.default]}));var i18n=e=>{const t=createI18n({legacy:!1,locale:"en",messages});e.use(t)},__glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:i18n},Symbol.toStringTag,{value:"Module"})),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mock={exports:{}};(function(module,exports){(function(t,r){module.exports=r()})(commonjsGlobal,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){var n=r(1),a=r(3),o=r(5),s=r(20),l=r(23),c=r(25),u;typeof window!="undefined"&&(u=r(27));/*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com -*/var d={Handler:n,Random:o,Util:a,XHR:u,RE:s,toJSONSchema:l,valid:c,heredoc:a.heredoc,setup:function(m){return u.setup(m)},_mocked:{}};d.version="1.0.1-beta3",u&&(u.Mock=d),d.mock=function(m,b,x){return arguments.length===1?n.gen(m):(arguments.length===2&&(x=b,b=void 0),u&&(window.XMLHttpRequest=u),d._mocked[m+(b||"")]={rurl:m,rtype:b,template:x},d)},e.exports=d},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(e,t,r){t=t==null?"":t+"",r=r||{},r={path:r.path||[Constant.GUID],templatePath:r.templatePath||[Constant.GUID++],currentContext:r.currentContext,templateCurrentContext:r.templateCurrentContext||e,root:r.root||r.currentContext,templateRoot:r.templateRoot||r.templateCurrentContext||e};var n=Parser.parse(t),a=Util.type(e),o;return Handler[a]?(o=Handler[a]({type:a,template:e,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:n,context:r}),r.root||(r.root=o),o):e},Handler.extend({array:function(e){var t=[],r,n;if(e.template.length===0)return t;if(e.rule.parameters)if(e.rule.min===1&&e.rule.max===void 0)e.context.path.push(e.name),e.context.templatePath.push(e.name),t=Random.pick(Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:t,templateCurrentContext:e.template,root:e.context.root||t,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else if(e.rule.parameters[2])e.template.__order_index=e.template.__order_index||0,e.context.path.push(e.name),e.context.templatePath.push(e.name),t=Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:t,templateCurrentContext:e.template,root:e.context.root||t,templateRoot:e.context.templateRoot||e.template})[e.template.__order_index%e.template.length],e.template.__order_index+=+e.rule.parameters[2],e.context.path.pop(),e.context.templatePath.pop();else for(r=0;r1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(a=t.context.path.slice(0),a.pop(),a=this.normalizePath(a.concat(n)));try{e=n[n.length-1];for(var o=t.context.root,s=t.context.templateRoot,l=1;l1/(r+n)*r?!a:a):Math.random()>=.5},bool:function(r,n,a){return this.boolean(r,n,a)},natural:function(r,n){return r=typeof r!="undefined"?parseInt(r,10):0,n=typeof n!="undefined"?parseInt(n,10):9007199254740992,Math.round(Math.random()*(n-r))+r},integer:function(r,n){return r=typeof r!="undefined"?parseInt(r,10):-9007199254740992,n=typeof n!="undefined"?parseInt(n,10):9007199254740992,Math.round(Math.random()*(n-r))+r},int:function(r,n){return this.integer(r,n)},float:function(r,n,a,o){a=a===void 0?0:a,a=Math.max(Math.min(a,17),0),o=o===void 0?17:o,o=Math.max(Math.min(o,17),0);for(var s=this.integer(r,n)+".",l=0,c=this.natural(a,o);l1&&u--,6*u<1?m=l+(c-l)*6*u:2*u<1?m=c:3*u<2?m=l+(c-l)*(2/3-u)*6:m=l,d[b]=m*255;return d},hsl2hsv:function(n){var a=n[0],o=n[1]/100,s=n[2]/100,l,c;return s*=2,o*=s<=1?s:2-s,c=(s+o)/2,l=2*o/(s+o),[a,l*100,c*100]},hsv2rgb:function(n){var a=n[0]/60,o=n[1]/100,s=n[2]/100,l=Math.floor(a)%6,c=a-Math.floor(a),u=255*s*(1-o),d=255*s*(1-o*c),m=255*s*(1-o*(1-c));switch(s=255*s,l){case 0:return[s,m,u];case 1:return[d,s,u];case 2:return[u,s,m];case 3:return[u,d,s];case 4:return[m,u,s];case 5:return[s,u,d]}},hsv2hsl:function(n){var a=n[0],o=n[1]/100,s=n[2]/100,l,c;return c=(2-o)*s,l=o*s,l/=c<=1?c:2-c,c/=2,[a,l*100,c*100]},rgb2hex:function(r,n,a){return"#"+((256+r<<8|n)<<8|a).toString(16).slice(1)},hex2rgb:function(r){return r="0x"+r.slice(1).replace(r.length>4?r:/./g,"$&$&")|0,[r>>16,r>>8&255,r&255]}}},function(e,t){e.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(e,t,r){var n=r(6),a=r(14);function o(s,l,c,u){return c===void 0?n.natural(s,l):u===void 0?c:n.natural(parseInt(c,10),parseInt(u,10))}e.exports={paragraph:function(s,l){for(var c=o(3,7,s,l),u=[],d=0;d1&&(o=[].slice.call(arguments,0));var s=a.options,l=s.context.templatePath.join("."),c=a.cache[l]=a.cache[l]||{index:0,array:o};return c.array[c.index++%c.array.length]}}},function(e,t){e.exports={first:function(){var r=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(r)},last:function(){var r=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(r)},name:function(r){return this.first()+" "+(r?this.first()+" ":"")+this.last()},cfirst:function(){var r="\u738B \u674E \u5F20 \u5218 \u9648 \u6768 \u8D75 \u9EC4 \u5468 \u5434 \u5F90 \u5B59 \u80E1 \u6731 \u9AD8 \u6797 \u4F55 \u90ED \u9A6C \u7F57 \u6881 \u5B8B \u90D1 \u8C22 \u97E9 \u5510 \u51AF \u4E8E \u8463 \u8427 \u7A0B \u66F9 \u8881 \u9093 \u8BB8 \u5085 \u6C88 \u66FE \u5F6D \u5415 \u82CF \u5362 \u848B \u8521 \u8D3E \u4E01 \u9B4F \u859B \u53F6 \u960E \u4F59 \u6F58 \u675C \u6234 \u590F \u953A \u6C6A \u7530 \u4EFB \u59DC \u8303 \u65B9 \u77F3 \u59DA \u8C2D \u5ED6 \u90B9 \u718A \u91D1 \u9646 \u90DD \u5B54 \u767D \u5D14 \u5EB7 \u6BDB \u90B1 \u79E6 \u6C5F \u53F2 \u987E \u4FAF \u90B5 \u5B5F \u9F99 \u4E07 \u6BB5 \u96F7 \u94B1 \u6C64 \u5C39 \u9ECE \u6613 \u5E38 \u6B66 \u4E54 \u8D3A \u8D56 \u9F9A \u6587".split(" ");return this.pick(r)},clast:function(){var r="\u4F1F \u82B3 \u5A1C \u79C0\u82F1 \u654F \u9759 \u4E3D \u5F3A \u78CA \u519B \u6D0B \u52C7 \u8273 \u6770 \u5A1F \u6D9B \u660E \u8D85 \u79C0\u5170 \u971E \u5E73 \u521A \u6842\u82F1".split(" ");return this.pick(r)},cname:function(){return this.cfirst()+this.clast()}}},function(e,t){e.exports={url:function(r,n){return(r||this.protocol())+"://"+(n||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(r){return this.word()+"."+(r||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn \u4E2D\u56FD \u4E2D\u56FD\u4E92\u8054.\u516C\u53F8 \u4E2D\u56FD\u4E92\u8054.\u7F51\u7EDC tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(r){return this.character("lower")+"."+this.word()+"@"+(r||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(e,t,r){var n=r(18),a=["\u4E1C\u5317","\u534E\u5317","\u534E\u4E1C","\u534E\u4E2D","\u534E\u5357","\u897F\u5357","\u897F\u5317"];e.exports={region:function(){return this.pick(a)},province:function(){return this.pick(n).name},city:function(o){var s=this.pick(n),l=this.pick(s.children);return o?[s.name,l.name].join(" "):l.name},county:function(o){var s=this.pick(n),l=this.pick(s.children),c=this.pick(l.children)||{name:"-"};return o?[s.name,l.name,c.name].join(" "):c.name},zip:function(o){for(var s="",l=0;l<(o||6);l++)s+=this.natural(0,9);return s}}},function(e,t){var r={11e4:"\u5317\u4EAC",110100:"\u5317\u4EAC\u5E02",110101:"\u4E1C\u57CE\u533A",110102:"\u897F\u57CE\u533A",110105:"\u671D\u9633\u533A",110106:"\u4E30\u53F0\u533A",110107:"\u77F3\u666F\u5C71\u533A",110108:"\u6D77\u6DC0\u533A",110109:"\u95E8\u5934\u6C9F\u533A",110111:"\u623F\u5C71\u533A",110112:"\u901A\u5DDE\u533A",110113:"\u987A\u4E49\u533A",110114:"\u660C\u5E73\u533A",110115:"\u5927\u5174\u533A",110116:"\u6000\u67D4\u533A",110117:"\u5E73\u8C37\u533A",110228:"\u5BC6\u4E91\u53BF",110229:"\u5EF6\u5E86\u53BF",110230:"\u5176\u5B83\u533A",12e4:"\u5929\u6D25",120100:"\u5929\u6D25\u5E02",120101:"\u548C\u5E73\u533A",120102:"\u6CB3\u4E1C\u533A",120103:"\u6CB3\u897F\u533A",120104:"\u5357\u5F00\u533A",120105:"\u6CB3\u5317\u533A",120106:"\u7EA2\u6865\u533A",120110:"\u4E1C\u4E3D\u533A",120111:"\u897F\u9752\u533A",120112:"\u6D25\u5357\u533A",120113:"\u5317\u8FB0\u533A",120114:"\u6B66\u6E05\u533A",120115:"\u5B9D\u577B\u533A",120116:"\u6EE8\u6D77\u65B0\u533A",120221:"\u5B81\u6CB3\u53BF",120223:"\u9759\u6D77\u53BF",120225:"\u84DF\u53BF",120226:"\u5176\u5B83\u533A",13e4:"\u6CB3\u5317\u7701",130100:"\u77F3\u5BB6\u5E84\u5E02",130102:"\u957F\u5B89\u533A",130103:"\u6865\u4E1C\u533A",130104:"\u6865\u897F\u533A",130105:"\u65B0\u534E\u533A",130107:"\u4E95\u9649\u77FF\u533A",130108:"\u88D5\u534E\u533A",130121:"\u4E95\u9649\u53BF",130123:"\u6B63\u5B9A\u53BF",130124:"\u683E\u57CE\u53BF",130125:"\u884C\u5510\u53BF",130126:"\u7075\u5BFF\u53BF",130127:"\u9AD8\u9091\u53BF",130128:"\u6DF1\u6CFD\u53BF",130129:"\u8D5E\u7687\u53BF",130130:"\u65E0\u6781\u53BF",130131:"\u5E73\u5C71\u53BF",130132:"\u5143\u6C0F\u53BF",130133:"\u8D75\u53BF",130181:"\u8F9B\u96C6\u5E02",130182:"\u85C1\u57CE\u5E02",130183:"\u664B\u5DDE\u5E02",130184:"\u65B0\u4E50\u5E02",130185:"\u9E7F\u6CC9\u5E02",130186:"\u5176\u5B83\u533A",130200:"\u5510\u5C71\u5E02",130202:"\u8DEF\u5357\u533A",130203:"\u8DEF\u5317\u533A",130204:"\u53E4\u51B6\u533A",130205:"\u5F00\u5E73\u533A",130207:"\u4E30\u5357\u533A",130208:"\u4E30\u6DA6\u533A",130223:"\u6EE6\u53BF",130224:"\u6EE6\u5357\u53BF",130225:"\u4E50\u4EAD\u53BF",130227:"\u8FC1\u897F\u53BF",130229:"\u7389\u7530\u53BF",130230:"\u66F9\u5983\u7538\u533A",130281:"\u9075\u5316\u5E02",130283:"\u8FC1\u5B89\u5E02",130284:"\u5176\u5B83\u533A",130300:"\u79E6\u7687\u5C9B\u5E02",130302:"\u6D77\u6E2F\u533A",130303:"\u5C71\u6D77\u5173\u533A",130304:"\u5317\u6234\u6CB3\u533A",130321:"\u9752\u9F99\u6EE1\u65CF\u81EA\u6CBB\u53BF",130322:"\u660C\u9ECE\u53BF",130323:"\u629A\u5B81\u53BF",130324:"\u5362\u9F99\u53BF",130398:"\u5176\u5B83\u533A",130400:"\u90AF\u90F8\u5E02",130402:"\u90AF\u5C71\u533A",130403:"\u4E1B\u53F0\u533A",130404:"\u590D\u5174\u533A",130406:"\u5CF0\u5CF0\u77FF\u533A",130421:"\u90AF\u90F8\u53BF",130423:"\u4E34\u6F33\u53BF",130424:"\u6210\u5B89\u53BF",130425:"\u5927\u540D\u53BF",130426:"\u6D89\u53BF",130427:"\u78C1\u53BF",130428:"\u80A5\u4E61\u53BF",130429:"\u6C38\u5E74\u53BF",130430:"\u90B1\u53BF",130431:"\u9E21\u6CFD\u53BF",130432:"\u5E7F\u5E73\u53BF",130433:"\u9986\u9676\u53BF",130434:"\u9B4F\u53BF",130435:"\u66F2\u5468\u53BF",130481:"\u6B66\u5B89\u5E02",130482:"\u5176\u5B83\u533A",130500:"\u90A2\u53F0\u5E02",130502:"\u6865\u4E1C\u533A",130503:"\u6865\u897F\u533A",130521:"\u90A2\u53F0\u53BF",130522:"\u4E34\u57CE\u53BF",130523:"\u5185\u4E18\u53BF",130524:"\u67CF\u4E61\u53BF",130525:"\u9686\u5C27\u53BF",130526:"\u4EFB\u53BF",130527:"\u5357\u548C\u53BF",130528:"\u5B81\u664B\u53BF",130529:"\u5DE8\u9E7F\u53BF",130530:"\u65B0\u6CB3\u53BF",130531:"\u5E7F\u5B97\u53BF",130532:"\u5E73\u4E61\u53BF",130533:"\u5A01\u53BF",130534:"\u6E05\u6CB3\u53BF",130535:"\u4E34\u897F\u53BF",130581:"\u5357\u5BAB\u5E02",130582:"\u6C99\u6CB3\u5E02",130583:"\u5176\u5B83\u533A",130600:"\u4FDD\u5B9A\u5E02",130602:"\u65B0\u5E02\u533A",130603:"\u5317\u5E02\u533A",130604:"\u5357\u5E02\u533A",130621:"\u6EE1\u57CE\u53BF",130622:"\u6E05\u82D1\u53BF",130623:"\u6D9E\u6C34\u53BF",130624:"\u961C\u5E73\u53BF",130625:"\u5F90\u6C34\u53BF",130626:"\u5B9A\u5174\u53BF",130627:"\u5510\u53BF",130628:"\u9AD8\u9633\u53BF",130629:"\u5BB9\u57CE\u53BF",130630:"\u6D9E\u6E90\u53BF",130631:"\u671B\u90FD\u53BF",130632:"\u5B89\u65B0\u53BF",130633:"\u6613\u53BF",130634:"\u66F2\u9633\u53BF",130635:"\u8821\u53BF",130636:"\u987A\u5E73\u53BF",130637:"\u535A\u91CE\u53BF",130638:"\u96C4\u53BF",130681:"\u6DBF\u5DDE\u5E02",130682:"\u5B9A\u5DDE\u5E02",130683:"\u5B89\u56FD\u5E02",130684:"\u9AD8\u7891\u5E97\u5E02",130699:"\u5176\u5B83\u533A",130700:"\u5F20\u5BB6\u53E3\u5E02",130702:"\u6865\u4E1C\u533A",130703:"\u6865\u897F\u533A",130705:"\u5BA3\u5316\u533A",130706:"\u4E0B\u82B1\u56ED\u533A",130721:"\u5BA3\u5316\u53BF",130722:"\u5F20\u5317\u53BF",130723:"\u5EB7\u4FDD\u53BF",130724:"\u6CBD\u6E90\u53BF",130725:"\u5C1A\u4E49\u53BF",130726:"\u851A\u53BF",130727:"\u9633\u539F\u53BF",130728:"\u6000\u5B89\u53BF",130729:"\u4E07\u5168\u53BF",130730:"\u6000\u6765\u53BF",130731:"\u6DBF\u9E7F\u53BF",130732:"\u8D64\u57CE\u53BF",130733:"\u5D07\u793C\u53BF",130734:"\u5176\u5B83\u533A",130800:"\u627F\u5FB7\u5E02",130802:"\u53CC\u6865\u533A",130803:"\u53CC\u6EE6\u533A",130804:"\u9E70\u624B\u8425\u5B50\u77FF\u533A",130821:"\u627F\u5FB7\u53BF",130822:"\u5174\u9686\u53BF",130823:"\u5E73\u6CC9\u53BF",130824:"\u6EE6\u5E73\u53BF",130825:"\u9686\u5316\u53BF",130826:"\u4E30\u5B81\u6EE1\u65CF\u81EA\u6CBB\u53BF",130827:"\u5BBD\u57CE\u6EE1\u65CF\u81EA\u6CBB\u53BF",130828:"\u56F4\u573A\u6EE1\u65CF\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",130829:"\u5176\u5B83\u533A",130900:"\u6CA7\u5DDE\u5E02",130902:"\u65B0\u534E\u533A",130903:"\u8FD0\u6CB3\u533A",130921:"\u6CA7\u53BF",130922:"\u9752\u53BF",130923:"\u4E1C\u5149\u53BF",130924:"\u6D77\u5174\u53BF",130925:"\u76D0\u5C71\u53BF",130926:"\u8083\u5B81\u53BF",130927:"\u5357\u76AE\u53BF",130928:"\u5434\u6865\u53BF",130929:"\u732E\u53BF",130930:"\u5B5F\u6751\u56DE\u65CF\u81EA\u6CBB\u53BF",130981:"\u6CCA\u5934\u5E02",130982:"\u4EFB\u4E18\u5E02",130983:"\u9EC4\u9A85\u5E02",130984:"\u6CB3\u95F4\u5E02",130985:"\u5176\u5B83\u533A",131e3:"\u5ECA\u574A\u5E02",131002:"\u5B89\u6B21\u533A",131003:"\u5E7F\u9633\u533A",131022:"\u56FA\u5B89\u53BF",131023:"\u6C38\u6E05\u53BF",131024:"\u9999\u6CB3\u53BF",131025:"\u5927\u57CE\u53BF",131026:"\u6587\u5B89\u53BF",131028:"\u5927\u5382\u56DE\u65CF\u81EA\u6CBB\u53BF",131081:"\u9738\u5DDE\u5E02",131082:"\u4E09\u6CB3\u5E02",131083:"\u5176\u5B83\u533A",131100:"\u8861\u6C34\u5E02",131102:"\u6843\u57CE\u533A",131121:"\u67A3\u5F3A\u53BF",131122:"\u6B66\u9091\u53BF",131123:"\u6B66\u5F3A\u53BF",131124:"\u9976\u9633\u53BF",131125:"\u5B89\u5E73\u53BF",131126:"\u6545\u57CE\u53BF",131127:"\u666F\u53BF",131128:"\u961C\u57CE\u53BF",131181:"\u5180\u5DDE\u5E02",131182:"\u6DF1\u5DDE\u5E02",131183:"\u5176\u5B83\u533A",14e4:"\u5C71\u897F\u7701",140100:"\u592A\u539F\u5E02",140105:"\u5C0F\u5E97\u533A",140106:"\u8FCE\u6CFD\u533A",140107:"\u674F\u82B1\u5CAD\u533A",140108:"\u5C16\u8349\u576A\u533A",140109:"\u4E07\u67CF\u6797\u533A",140110:"\u664B\u6E90\u533A",140121:"\u6E05\u5F90\u53BF",140122:"\u9633\u66F2\u53BF",140123:"\u5A04\u70E6\u53BF",140181:"\u53E4\u4EA4\u5E02",140182:"\u5176\u5B83\u533A",140200:"\u5927\u540C\u5E02",140202:"\u57CE\u533A",140203:"\u77FF\u533A",140211:"\u5357\u90CA\u533A",140212:"\u65B0\u8363\u533A",140221:"\u9633\u9AD8\u53BF",140222:"\u5929\u9547\u53BF",140223:"\u5E7F\u7075\u53BF",140224:"\u7075\u4E18\u53BF",140225:"\u6D51\u6E90\u53BF",140226:"\u5DE6\u4E91\u53BF",140227:"\u5927\u540C\u53BF",140228:"\u5176\u5B83\u533A",140300:"\u9633\u6CC9\u5E02",140302:"\u57CE\u533A",140303:"\u77FF\u533A",140311:"\u90CA\u533A",140321:"\u5E73\u5B9A\u53BF",140322:"\u76C2\u53BF",140323:"\u5176\u5B83\u533A",140400:"\u957F\u6CBB\u5E02",140421:"\u957F\u6CBB\u53BF",140423:"\u8944\u57A3\u53BF",140424:"\u5C6F\u7559\u53BF",140425:"\u5E73\u987A\u53BF",140426:"\u9ECE\u57CE\u53BF",140427:"\u58F6\u5173\u53BF",140428:"\u957F\u5B50\u53BF",140429:"\u6B66\u4E61\u53BF",140430:"\u6C81\u53BF",140431:"\u6C81\u6E90\u53BF",140481:"\u6F5E\u57CE\u5E02",140482:"\u57CE\u533A",140483:"\u90CA\u533A",140485:"\u5176\u5B83\u533A",140500:"\u664B\u57CE\u5E02",140502:"\u57CE\u533A",140521:"\u6C81\u6C34\u53BF",140522:"\u9633\u57CE\u53BF",140524:"\u9675\u5DDD\u53BF",140525:"\u6CFD\u5DDE\u53BF",140581:"\u9AD8\u5E73\u5E02",140582:"\u5176\u5B83\u533A",140600:"\u6714\u5DDE\u5E02",140602:"\u6714\u57CE\u533A",140603:"\u5E73\u9C81\u533A",140621:"\u5C71\u9634\u53BF",140622:"\u5E94\u53BF",140623:"\u53F3\u7389\u53BF",140624:"\u6000\u4EC1\u53BF",140625:"\u5176\u5B83\u533A",140700:"\u664B\u4E2D\u5E02",140702:"\u6986\u6B21\u533A",140721:"\u6986\u793E\u53BF",140722:"\u5DE6\u6743\u53BF",140723:"\u548C\u987A\u53BF",140724:"\u6614\u9633\u53BF",140725:"\u5BFF\u9633\u53BF",140726:"\u592A\u8C37\u53BF",140727:"\u7941\u53BF",140728:"\u5E73\u9065\u53BF",140729:"\u7075\u77F3\u53BF",140781:"\u4ECB\u4F11\u5E02",140782:"\u5176\u5B83\u533A",140800:"\u8FD0\u57CE\u5E02",140802:"\u76D0\u6E56\u533A",140821:"\u4E34\u7317\u53BF",140822:"\u4E07\u8363\u53BF",140823:"\u95FB\u559C\u53BF",140824:"\u7A37\u5C71\u53BF",140825:"\u65B0\u7EDB\u53BF",140826:"\u7EDB\u53BF",140827:"\u57A3\u66F2\u53BF",140828:"\u590F\u53BF",140829:"\u5E73\u9646\u53BF",140830:"\u82AE\u57CE\u53BF",140881:"\u6C38\u6D4E\u5E02",140882:"\u6CB3\u6D25\u5E02",140883:"\u5176\u5B83\u533A",140900:"\u5FFB\u5DDE\u5E02",140902:"\u5FFB\u5E9C\u533A",140921:"\u5B9A\u8944\u53BF",140922:"\u4E94\u53F0\u53BF",140923:"\u4EE3\u53BF",140924:"\u7E41\u5CD9\u53BF",140925:"\u5B81\u6B66\u53BF",140926:"\u9759\u4E50\u53BF",140927:"\u795E\u6C60\u53BF",140928:"\u4E94\u5BE8\u53BF",140929:"\u5CA2\u5C9A\u53BF",140930:"\u6CB3\u66F2\u53BF",140931:"\u4FDD\u5FB7\u53BF",140932:"\u504F\u5173\u53BF",140981:"\u539F\u5E73\u5E02",140982:"\u5176\u5B83\u533A",141e3:"\u4E34\u6C7E\u5E02",141002:"\u5C27\u90FD\u533A",141021:"\u66F2\u6C83\u53BF",141022:"\u7FFC\u57CE\u53BF",141023:"\u8944\u6C7E\u53BF",141024:"\u6D2A\u6D1E\u53BF",141025:"\u53E4\u53BF",141026:"\u5B89\u6CFD\u53BF",141027:"\u6D6E\u5C71\u53BF",141028:"\u5409\u53BF",141029:"\u4E61\u5B81\u53BF",141030:"\u5927\u5B81\u53BF",141031:"\u96B0\u53BF",141032:"\u6C38\u548C\u53BF",141033:"\u84B2\u53BF",141034:"\u6C7E\u897F\u53BF",141081:"\u4FAF\u9A6C\u5E02",141082:"\u970D\u5DDE\u5E02",141083:"\u5176\u5B83\u533A",141100:"\u5415\u6881\u5E02",141102:"\u79BB\u77F3\u533A",141121:"\u6587\u6C34\u53BF",141122:"\u4EA4\u57CE\u53BF",141123:"\u5174\u53BF",141124:"\u4E34\u53BF",141125:"\u67F3\u6797\u53BF",141126:"\u77F3\u697C\u53BF",141127:"\u5C9A\u53BF",141128:"\u65B9\u5C71\u53BF",141129:"\u4E2D\u9633\u53BF",141130:"\u4EA4\u53E3\u53BF",141181:"\u5B5D\u4E49\u5E02",141182:"\u6C7E\u9633\u5E02",141183:"\u5176\u5B83\u533A",15e4:"\u5185\u8499\u53E4\u81EA\u6CBB\u533A",150100:"\u547C\u548C\u6D69\u7279\u5E02",150102:"\u65B0\u57CE\u533A",150103:"\u56DE\u6C11\u533A",150104:"\u7389\u6CC9\u533A",150105:"\u8D5B\u7F55\u533A",150121:"\u571F\u9ED8\u7279\u5DE6\u65D7",150122:"\u6258\u514B\u6258\u53BF",150123:"\u548C\u6797\u683C\u5C14\u53BF",150124:"\u6E05\u6C34\u6CB3\u53BF",150125:"\u6B66\u5DDD\u53BF",150126:"\u5176\u5B83\u533A",150200:"\u5305\u5934\u5E02",150202:"\u4E1C\u6CB3\u533A",150203:"\u6606\u90FD\u4ED1\u533A",150204:"\u9752\u5C71\u533A",150205:"\u77F3\u62D0\u533A",150206:"\u767D\u4E91\u9102\u535A\u77FF\u533A",150207:"\u4E5D\u539F\u533A",150221:"\u571F\u9ED8\u7279\u53F3\u65D7",150222:"\u56FA\u9633\u53BF",150223:"\u8FBE\u5C14\u7F55\u8302\u660E\u5B89\u8054\u5408\u65D7",150224:"\u5176\u5B83\u533A",150300:"\u4E4C\u6D77\u5E02",150302:"\u6D77\u52C3\u6E7E\u533A",150303:"\u6D77\u5357\u533A",150304:"\u4E4C\u8FBE\u533A",150305:"\u5176\u5B83\u533A",150400:"\u8D64\u5CF0\u5E02",150402:"\u7EA2\u5C71\u533A",150403:"\u5143\u5B9D\u5C71\u533A",150404:"\u677E\u5C71\u533A",150421:"\u963F\u9C81\u79D1\u5C14\u6C81\u65D7",150422:"\u5DF4\u6797\u5DE6\u65D7",150423:"\u5DF4\u6797\u53F3\u65D7",150424:"\u6797\u897F\u53BF",150425:"\u514B\u4EC0\u514B\u817E\u65D7",150426:"\u7FC1\u725B\u7279\u65D7",150428:"\u5580\u5587\u6C81\u65D7",150429:"\u5B81\u57CE\u53BF",150430:"\u6556\u6C49\u65D7",150431:"\u5176\u5B83\u533A",150500:"\u901A\u8FBD\u5E02",150502:"\u79D1\u5C14\u6C81\u533A",150521:"\u79D1\u5C14\u6C81\u5DE6\u7FFC\u4E2D\u65D7",150522:"\u79D1\u5C14\u6C81\u5DE6\u7FFC\u540E\u65D7",150523:"\u5F00\u9C81\u53BF",150524:"\u5E93\u4F26\u65D7",150525:"\u5948\u66FC\u65D7",150526:"\u624E\u9C81\u7279\u65D7",150581:"\u970D\u6797\u90ED\u52D2\u5E02",150582:"\u5176\u5B83\u533A",150600:"\u9102\u5C14\u591A\u65AF\u5E02",150602:"\u4E1C\u80DC\u533A",150621:"\u8FBE\u62C9\u7279\u65D7",150622:"\u51C6\u683C\u5C14\u65D7",150623:"\u9102\u6258\u514B\u524D\u65D7",150624:"\u9102\u6258\u514B\u65D7",150625:"\u676D\u9526\u65D7",150626:"\u4E4C\u5BA1\u65D7",150627:"\u4F0A\u91D1\u970D\u6D1B\u65D7",150628:"\u5176\u5B83\u533A",150700:"\u547C\u4F26\u8D1D\u5C14\u5E02",150702:"\u6D77\u62C9\u5C14\u533A",150703:"\u624E\u8D49\u8BFA\u5C14\u533A",150721:"\u963F\u8363\u65D7",150722:"\u83AB\u529B\u8FBE\u74E6\u8FBE\u65A1\u5C14\u65CF\u81EA\u6CBB\u65D7",150723:"\u9102\u4F26\u6625\u81EA\u6CBB\u65D7",150724:"\u9102\u6E29\u514B\u65CF\u81EA\u6CBB\u65D7",150725:"\u9648\u5DF4\u5C14\u864E\u65D7",150726:"\u65B0\u5DF4\u5C14\u864E\u5DE6\u65D7",150727:"\u65B0\u5DF4\u5C14\u864E\u53F3\u65D7",150781:"\u6EE1\u6D32\u91CC\u5E02",150782:"\u7259\u514B\u77F3\u5E02",150783:"\u624E\u5170\u5C6F\u5E02",150784:"\u989D\u5C14\u53E4\u7EB3\u5E02",150785:"\u6839\u6CB3\u5E02",150786:"\u5176\u5B83\u533A",150800:"\u5DF4\u5F66\u6DD6\u5C14\u5E02",150802:"\u4E34\u6CB3\u533A",150821:"\u4E94\u539F\u53BF",150822:"\u78F4\u53E3\u53BF",150823:"\u4E4C\u62C9\u7279\u524D\u65D7",150824:"\u4E4C\u62C9\u7279\u4E2D\u65D7",150825:"\u4E4C\u62C9\u7279\u540E\u65D7",150826:"\u676D\u9526\u540E\u65D7",150827:"\u5176\u5B83\u533A",150900:"\u4E4C\u5170\u5BDF\u5E03\u5E02",150902:"\u96C6\u5B81\u533A",150921:"\u5353\u8D44\u53BF",150922:"\u5316\u5FB7\u53BF",150923:"\u5546\u90FD\u53BF",150924:"\u5174\u548C\u53BF",150925:"\u51C9\u57CE\u53BF",150926:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u524D\u65D7",150927:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u4E2D\u65D7",150928:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u540E\u65D7",150929:"\u56DB\u5B50\u738B\u65D7",150981:"\u4E30\u9547\u5E02",150982:"\u5176\u5B83\u533A",152200:"\u5174\u5B89\u76DF",152201:"\u4E4C\u5170\u6D69\u7279\u5E02",152202:"\u963F\u5C14\u5C71\u5E02",152221:"\u79D1\u5C14\u6C81\u53F3\u7FFC\u524D\u65D7",152222:"\u79D1\u5C14\u6C81\u53F3\u7FFC\u4E2D\u65D7",152223:"\u624E\u8D49\u7279\u65D7",152224:"\u7A81\u6CC9\u53BF",152225:"\u5176\u5B83\u533A",152500:"\u9521\u6797\u90ED\u52D2\u76DF",152501:"\u4E8C\u8FDE\u6D69\u7279\u5E02",152502:"\u9521\u6797\u6D69\u7279\u5E02",152522:"\u963F\u5DF4\u560E\u65D7",152523:"\u82CF\u5C3C\u7279\u5DE6\u65D7",152524:"\u82CF\u5C3C\u7279\u53F3\u65D7",152525:"\u4E1C\u4E4C\u73E0\u7A46\u6C81\u65D7",152526:"\u897F\u4E4C\u73E0\u7A46\u6C81\u65D7",152527:"\u592A\u4EC6\u5BFA\u65D7",152528:"\u9576\u9EC4\u65D7",152529:"\u6B63\u9576\u767D\u65D7",152530:"\u6B63\u84DD\u65D7",152531:"\u591A\u4F26\u53BF",152532:"\u5176\u5B83\u533A",152900:"\u963F\u62C9\u5584\u76DF",152921:"\u963F\u62C9\u5584\u5DE6\u65D7",152922:"\u963F\u62C9\u5584\u53F3\u65D7",152923:"\u989D\u6D4E\u7EB3\u65D7",152924:"\u5176\u5B83\u533A",21e4:"\u8FBD\u5B81\u7701",210100:"\u6C88\u9633\u5E02",210102:"\u548C\u5E73\u533A",210103:"\u6C88\u6CB3\u533A",210104:"\u5927\u4E1C\u533A",210105:"\u7687\u59D1\u533A",210106:"\u94C1\u897F\u533A",210111:"\u82CF\u5BB6\u5C6F\u533A",210112:"\u4E1C\u9675\u533A",210113:"\u65B0\u57CE\u5B50\u533A",210114:"\u4E8E\u6D2A\u533A",210122:"\u8FBD\u4E2D\u53BF",210123:"\u5EB7\u5E73\u53BF",210124:"\u6CD5\u5E93\u53BF",210181:"\u65B0\u6C11\u5E02",210184:"\u6C88\u5317\u65B0\u533A",210185:"\u5176\u5B83\u533A",210200:"\u5927\u8FDE\u5E02",210202:"\u4E2D\u5C71\u533A",210203:"\u897F\u5C97\u533A",210204:"\u6C99\u6CB3\u53E3\u533A",210211:"\u7518\u4E95\u5B50\u533A",210212:"\u65C5\u987A\u53E3\u533A",210213:"\u91D1\u5DDE\u533A",210224:"\u957F\u6D77\u53BF",210281:"\u74E6\u623F\u5E97\u5E02",210282:"\u666E\u5170\u5E97\u5E02",210283:"\u5E84\u6CB3\u5E02",210298:"\u5176\u5B83\u533A",210300:"\u978D\u5C71\u5E02",210302:"\u94C1\u4E1C\u533A",210303:"\u94C1\u897F\u533A",210304:"\u7ACB\u5C71\u533A",210311:"\u5343\u5C71\u533A",210321:"\u53F0\u5B89\u53BF",210323:"\u5CAB\u5CA9\u6EE1\u65CF\u81EA\u6CBB\u53BF",210381:"\u6D77\u57CE\u5E02",210382:"\u5176\u5B83\u533A",210400:"\u629A\u987A\u5E02",210402:"\u65B0\u629A\u533A",210403:"\u4E1C\u6D32\u533A",210404:"\u671B\u82B1\u533A",210411:"\u987A\u57CE\u533A",210421:"\u629A\u987A\u53BF",210422:"\u65B0\u5BBE\u6EE1\u65CF\u81EA\u6CBB\u53BF",210423:"\u6E05\u539F\u6EE1\u65CF\u81EA\u6CBB\u53BF",210424:"\u5176\u5B83\u533A",210500:"\u672C\u6EAA\u5E02",210502:"\u5E73\u5C71\u533A",210503:"\u6EAA\u6E56\u533A",210504:"\u660E\u5C71\u533A",210505:"\u5357\u82AC\u533A",210521:"\u672C\u6EAA\u6EE1\u65CF\u81EA\u6CBB\u53BF",210522:"\u6853\u4EC1\u6EE1\u65CF\u81EA\u6CBB\u53BF",210523:"\u5176\u5B83\u533A",210600:"\u4E39\u4E1C\u5E02",210602:"\u5143\u5B9D\u533A",210603:"\u632F\u5174\u533A",210604:"\u632F\u5B89\u533A",210624:"\u5BBD\u7538\u6EE1\u65CF\u81EA\u6CBB\u53BF",210681:"\u4E1C\u6E2F\u5E02",210682:"\u51E4\u57CE\u5E02",210683:"\u5176\u5B83\u533A",210700:"\u9526\u5DDE\u5E02",210702:"\u53E4\u5854\u533A",210703:"\u51CC\u6CB3\u533A",210711:"\u592A\u548C\u533A",210726:"\u9ED1\u5C71\u53BF",210727:"\u4E49\u53BF",210781:"\u51CC\u6D77\u5E02",210782:"\u5317\u9547\u5E02",210783:"\u5176\u5B83\u533A",210800:"\u8425\u53E3\u5E02",210802:"\u7AD9\u524D\u533A",210803:"\u897F\u5E02\u533A",210804:"\u9C85\u9C7C\u5708\u533A",210811:"\u8001\u8FB9\u533A",210881:"\u76D6\u5DDE\u5E02",210882:"\u5927\u77F3\u6865\u5E02",210883:"\u5176\u5B83\u533A",210900:"\u961C\u65B0\u5E02",210902:"\u6D77\u5DDE\u533A",210903:"\u65B0\u90B1\u533A",210904:"\u592A\u5E73\u533A",210905:"\u6E05\u6CB3\u95E8\u533A",210911:"\u7EC6\u6CB3\u533A",210921:"\u961C\u65B0\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",210922:"\u5F70\u6B66\u53BF",210923:"\u5176\u5B83\u533A",211e3:"\u8FBD\u9633\u5E02",211002:"\u767D\u5854\u533A",211003:"\u6587\u5723\u533A",211004:"\u5B8F\u4F1F\u533A",211005:"\u5F13\u957F\u5CAD\u533A",211011:"\u592A\u5B50\u6CB3\u533A",211021:"\u8FBD\u9633\u53BF",211081:"\u706F\u5854\u5E02",211082:"\u5176\u5B83\u533A",211100:"\u76D8\u9526\u5E02",211102:"\u53CC\u53F0\u5B50\u533A",211103:"\u5174\u9686\u53F0\u533A",211121:"\u5927\u6D3C\u53BF",211122:"\u76D8\u5C71\u53BF",211123:"\u5176\u5B83\u533A",211200:"\u94C1\u5CAD\u5E02",211202:"\u94F6\u5DDE\u533A",211204:"\u6E05\u6CB3\u533A",211221:"\u94C1\u5CAD\u53BF",211223:"\u897F\u4E30\u53BF",211224:"\u660C\u56FE\u53BF",211281:"\u8C03\u5175\u5C71\u5E02",211282:"\u5F00\u539F\u5E02",211283:"\u5176\u5B83\u533A",211300:"\u671D\u9633\u5E02",211302:"\u53CC\u5854\u533A",211303:"\u9F99\u57CE\u533A",211321:"\u671D\u9633\u53BF",211322:"\u5EFA\u5E73\u53BF",211324:"\u5580\u5587\u6C81\u5DE6\u7FFC\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",211381:"\u5317\u7968\u5E02",211382:"\u51CC\u6E90\u5E02",211383:"\u5176\u5B83\u533A",211400:"\u846B\u82A6\u5C9B\u5E02",211402:"\u8FDE\u5C71\u533A",211403:"\u9F99\u6E2F\u533A",211404:"\u5357\u7968\u533A",211421:"\u7EE5\u4E2D\u53BF",211422:"\u5EFA\u660C\u53BF",211481:"\u5174\u57CE\u5E02",211482:"\u5176\u5B83\u533A",22e4:"\u5409\u6797\u7701",220100:"\u957F\u6625\u5E02",220102:"\u5357\u5173\u533A",220103:"\u5BBD\u57CE\u533A",220104:"\u671D\u9633\u533A",220105:"\u4E8C\u9053\u533A",220106:"\u7EFF\u56ED\u533A",220112:"\u53CC\u9633\u533A",220122:"\u519C\u5B89\u53BF",220181:"\u4E5D\u53F0\u5E02",220182:"\u6986\u6811\u5E02",220183:"\u5FB7\u60E0\u5E02",220188:"\u5176\u5B83\u533A",220200:"\u5409\u6797\u5E02",220202:"\u660C\u9091\u533A",220203:"\u9F99\u6F6D\u533A",220204:"\u8239\u8425\u533A",220211:"\u4E30\u6EE1\u533A",220221:"\u6C38\u5409\u53BF",220281:"\u86DF\u6CB3\u5E02",220282:"\u6866\u7538\u5E02",220283:"\u8212\u5170\u5E02",220284:"\u78D0\u77F3\u5E02",220285:"\u5176\u5B83\u533A",220300:"\u56DB\u5E73\u5E02",220302:"\u94C1\u897F\u533A",220303:"\u94C1\u4E1C\u533A",220322:"\u68A8\u6811\u53BF",220323:"\u4F0A\u901A\u6EE1\u65CF\u81EA\u6CBB\u53BF",220381:"\u516C\u4E3B\u5CAD\u5E02",220382:"\u53CC\u8FBD\u5E02",220383:"\u5176\u5B83\u533A",220400:"\u8FBD\u6E90\u5E02",220402:"\u9F99\u5C71\u533A",220403:"\u897F\u5B89\u533A",220421:"\u4E1C\u4E30\u53BF",220422:"\u4E1C\u8FBD\u53BF",220423:"\u5176\u5B83\u533A",220500:"\u901A\u5316\u5E02",220502:"\u4E1C\u660C\u533A",220503:"\u4E8C\u9053\u6C5F\u533A",220521:"\u901A\u5316\u53BF",220523:"\u8F89\u5357\u53BF",220524:"\u67F3\u6CB3\u53BF",220581:"\u6885\u6CB3\u53E3\u5E02",220582:"\u96C6\u5B89\u5E02",220583:"\u5176\u5B83\u533A",220600:"\u767D\u5C71\u5E02",220602:"\u6D51\u6C5F\u533A",220621:"\u629A\u677E\u53BF",220622:"\u9756\u5B87\u53BF",220623:"\u957F\u767D\u671D\u9C9C\u65CF\u81EA\u6CBB\u53BF",220625:"\u6C5F\u6E90\u533A",220681:"\u4E34\u6C5F\u5E02",220682:"\u5176\u5B83\u533A",220700:"\u677E\u539F\u5E02",220702:"\u5B81\u6C5F\u533A",220721:"\u524D\u90ED\u5C14\u7F57\u65AF\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",220722:"\u957F\u5CAD\u53BF",220723:"\u4E7E\u5B89\u53BF",220724:"\u6276\u4F59\u5E02",220725:"\u5176\u5B83\u533A",220800:"\u767D\u57CE\u5E02",220802:"\u6D2E\u5317\u533A",220821:"\u9547\u8D49\u53BF",220822:"\u901A\u6986\u53BF",220881:"\u6D2E\u5357\u5E02",220882:"\u5927\u5B89\u5E02",220883:"\u5176\u5B83\u533A",222400:"\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE",222401:"\u5EF6\u5409\u5E02",222402:"\u56FE\u4EEC\u5E02",222403:"\u6566\u5316\u5E02",222404:"\u73F2\u6625\u5E02",222405:"\u9F99\u4E95\u5E02",222406:"\u548C\u9F99\u5E02",222424:"\u6C6A\u6E05\u53BF",222426:"\u5B89\u56FE\u53BF",222427:"\u5176\u5B83\u533A",23e4:"\u9ED1\u9F99\u6C5F\u7701",230100:"\u54C8\u5C14\u6EE8\u5E02",230102:"\u9053\u91CC\u533A",230103:"\u5357\u5C97\u533A",230104:"\u9053\u5916\u533A",230106:"\u9999\u574A\u533A",230108:"\u5E73\u623F\u533A",230109:"\u677E\u5317\u533A",230111:"\u547C\u5170\u533A",230123:"\u4F9D\u5170\u53BF",230124:"\u65B9\u6B63\u53BF",230125:"\u5BBE\u53BF",230126:"\u5DF4\u5F66\u53BF",230127:"\u6728\u5170\u53BF",230128:"\u901A\u6CB3\u53BF",230129:"\u5EF6\u5BFF\u53BF",230181:"\u963F\u57CE\u533A",230182:"\u53CC\u57CE\u5E02",230183:"\u5C1A\u5FD7\u5E02",230184:"\u4E94\u5E38\u5E02",230186:"\u5176\u5B83\u533A",230200:"\u9F50\u9F50\u54C8\u5C14\u5E02",230202:"\u9F99\u6C99\u533A",230203:"\u5EFA\u534E\u533A",230204:"\u94C1\u950B\u533A",230205:"\u6602\u6602\u6EAA\u533A",230206:"\u5BCC\u62C9\u5C14\u57FA\u533A",230207:"\u78BE\u5B50\u5C71\u533A",230208:"\u6885\u91CC\u65AF\u8FBE\u65A1\u5C14\u65CF\u533A",230221:"\u9F99\u6C5F\u53BF",230223:"\u4F9D\u5B89\u53BF",230224:"\u6CF0\u6765\u53BF",230225:"\u7518\u5357\u53BF",230227:"\u5BCC\u88D5\u53BF",230229:"\u514B\u5C71\u53BF",230230:"\u514B\u4E1C\u53BF",230231:"\u62DC\u6CC9\u53BF",230281:"\u8BB7\u6CB3\u5E02",230282:"\u5176\u5B83\u533A",230300:"\u9E21\u897F\u5E02",230302:"\u9E21\u51A0\u533A",230303:"\u6052\u5C71\u533A",230304:"\u6EF4\u9053\u533A",230305:"\u68A8\u6811\u533A",230306:"\u57CE\u5B50\u6CB3\u533A",230307:"\u9EBB\u5C71\u533A",230321:"\u9E21\u4E1C\u53BF",230381:"\u864E\u6797\u5E02",230382:"\u5BC6\u5C71\u5E02",230383:"\u5176\u5B83\u533A",230400:"\u9E64\u5C97\u5E02",230402:"\u5411\u9633\u533A",230403:"\u5DE5\u519C\u533A",230404:"\u5357\u5C71\u533A",230405:"\u5174\u5B89\u533A",230406:"\u4E1C\u5C71\u533A",230407:"\u5174\u5C71\u533A",230421:"\u841D\u5317\u53BF",230422:"\u7EE5\u6EE8\u53BF",230423:"\u5176\u5B83\u533A",230500:"\u53CC\u9E2D\u5C71\u5E02",230502:"\u5C16\u5C71\u533A",230503:"\u5CAD\u4E1C\u533A",230505:"\u56DB\u65B9\u53F0\u533A",230506:"\u5B9D\u5C71\u533A",230521:"\u96C6\u8D24\u53BF",230522:"\u53CB\u8C0A\u53BF",230523:"\u5B9D\u6E05\u53BF",230524:"\u9976\u6CB3\u53BF",230525:"\u5176\u5B83\u533A",230600:"\u5927\u5E86\u5E02",230602:"\u8428\u5C14\u56FE\u533A",230603:"\u9F99\u51E4\u533A",230604:"\u8BA9\u80E1\u8DEF\u533A",230605:"\u7EA2\u5C97\u533A",230606:"\u5927\u540C\u533A",230621:"\u8087\u5DDE\u53BF",230622:"\u8087\u6E90\u53BF",230623:"\u6797\u7538\u53BF",230624:"\u675C\u5C14\u4F2F\u7279\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",230625:"\u5176\u5B83\u533A",230700:"\u4F0A\u6625\u5E02",230702:"\u4F0A\u6625\u533A",230703:"\u5357\u5C94\u533A",230704:"\u53CB\u597D\u533A",230705:"\u897F\u6797\u533A",230706:"\u7FE0\u5CE6\u533A",230707:"\u65B0\u9752\u533A",230708:"\u7F8E\u6EAA\u533A",230709:"\u91D1\u5C71\u5C6F\u533A",230710:"\u4E94\u8425\u533A",230711:"\u4E4C\u9A6C\u6CB3\u533A",230712:"\u6C64\u65FA\u6CB3\u533A",230713:"\u5E26\u5CAD\u533A",230714:"\u4E4C\u4F0A\u5CAD\u533A",230715:"\u7EA2\u661F\u533A",230716:"\u4E0A\u7518\u5CAD\u533A",230722:"\u5609\u836B\u53BF",230781:"\u94C1\u529B\u5E02",230782:"\u5176\u5B83\u533A",230800:"\u4F73\u6728\u65AF\u5E02",230803:"\u5411\u9633\u533A",230804:"\u524D\u8FDB\u533A",230805:"\u4E1C\u98CE\u533A",230811:"\u90CA\u533A",230822:"\u6866\u5357\u53BF",230826:"\u6866\u5DDD\u53BF",230828:"\u6C64\u539F\u53BF",230833:"\u629A\u8FDC\u53BF",230881:"\u540C\u6C5F\u5E02",230882:"\u5BCC\u9526\u5E02",230883:"\u5176\u5B83\u533A",230900:"\u4E03\u53F0\u6CB3\u5E02",230902:"\u65B0\u5174\u533A",230903:"\u6843\u5C71\u533A",230904:"\u8304\u5B50\u6CB3\u533A",230921:"\u52C3\u5229\u53BF",230922:"\u5176\u5B83\u533A",231e3:"\u7261\u4E39\u6C5F\u5E02",231002:"\u4E1C\u5B89\u533A",231003:"\u9633\u660E\u533A",231004:"\u7231\u6C11\u533A",231005:"\u897F\u5B89\u533A",231024:"\u4E1C\u5B81\u53BF",231025:"\u6797\u53E3\u53BF",231081:"\u7EE5\u82AC\u6CB3\u5E02",231083:"\u6D77\u6797\u5E02",231084:"\u5B81\u5B89\u5E02",231085:"\u7A46\u68F1\u5E02",231086:"\u5176\u5B83\u533A",231100:"\u9ED1\u6CB3\u5E02",231102:"\u7231\u8F89\u533A",231121:"\u5AE9\u6C5F\u53BF",231123:"\u900A\u514B\u53BF",231124:"\u5B59\u5434\u53BF",231181:"\u5317\u5B89\u5E02",231182:"\u4E94\u5927\u8FDE\u6C60\u5E02",231183:"\u5176\u5B83\u533A",231200:"\u7EE5\u5316\u5E02",231202:"\u5317\u6797\u533A",231221:"\u671B\u594E\u53BF",231222:"\u5170\u897F\u53BF",231223:"\u9752\u5188\u53BF",231224:"\u5E86\u5B89\u53BF",231225:"\u660E\u6C34\u53BF",231226:"\u7EE5\u68F1\u53BF",231281:"\u5B89\u8FBE\u5E02",231282:"\u8087\u4E1C\u5E02",231283:"\u6D77\u4F26\u5E02",231284:"\u5176\u5B83\u533A",232700:"\u5927\u5174\u5B89\u5CAD\u5730\u533A",232702:"\u677E\u5CAD\u533A",232703:"\u65B0\u6797\u533A",232704:"\u547C\u4E2D\u533A",232721:"\u547C\u739B\u53BF",232722:"\u5854\u6CB3\u53BF",232723:"\u6F20\u6CB3\u53BF",232724:"\u52A0\u683C\u8FBE\u5947\u533A",232725:"\u5176\u5B83\u533A",31e4:"\u4E0A\u6D77",310100:"\u4E0A\u6D77\u5E02",310101:"\u9EC4\u6D66\u533A",310104:"\u5F90\u6C47\u533A",310105:"\u957F\u5B81\u533A",310106:"\u9759\u5B89\u533A",310107:"\u666E\u9640\u533A",310108:"\u95F8\u5317\u533A",310109:"\u8679\u53E3\u533A",310110:"\u6768\u6D66\u533A",310112:"\u95F5\u884C\u533A",310113:"\u5B9D\u5C71\u533A",310114:"\u5609\u5B9A\u533A",310115:"\u6D66\u4E1C\u65B0\u533A",310116:"\u91D1\u5C71\u533A",310117:"\u677E\u6C5F\u533A",310118:"\u9752\u6D66\u533A",310120:"\u5949\u8D24\u533A",310230:"\u5D07\u660E\u53BF",310231:"\u5176\u5B83\u533A",32e4:"\u6C5F\u82CF\u7701",320100:"\u5357\u4EAC\u5E02",320102:"\u7384\u6B66\u533A",320104:"\u79E6\u6DEE\u533A",320105:"\u5EFA\u90BA\u533A",320106:"\u9F13\u697C\u533A",320111:"\u6D66\u53E3\u533A",320113:"\u6816\u971E\u533A",320114:"\u96E8\u82B1\u53F0\u533A",320115:"\u6C5F\u5B81\u533A",320116:"\u516D\u5408\u533A",320124:"\u6EA7\u6C34\u533A",320125:"\u9AD8\u6DF3\u533A",320126:"\u5176\u5B83\u533A",320200:"\u65E0\u9521\u5E02",320202:"\u5D07\u5B89\u533A",320203:"\u5357\u957F\u533A",320204:"\u5317\u5858\u533A",320205:"\u9521\u5C71\u533A",320206:"\u60E0\u5C71\u533A",320211:"\u6EE8\u6E56\u533A",320281:"\u6C5F\u9634\u5E02",320282:"\u5B9C\u5174\u5E02",320297:"\u5176\u5B83\u533A",320300:"\u5F90\u5DDE\u5E02",320302:"\u9F13\u697C\u533A",320303:"\u4E91\u9F99\u533A",320305:"\u8D3E\u6C6A\u533A",320311:"\u6CC9\u5C71\u533A",320321:"\u4E30\u53BF",320322:"\u6C9B\u53BF",320323:"\u94DC\u5C71\u533A",320324:"\u7762\u5B81\u53BF",320381:"\u65B0\u6C82\u5E02",320382:"\u90B3\u5DDE\u5E02",320383:"\u5176\u5B83\u533A",320400:"\u5E38\u5DDE\u5E02",320402:"\u5929\u5B81\u533A",320404:"\u949F\u697C\u533A",320405:"\u621A\u5885\u5830\u533A",320411:"\u65B0\u5317\u533A",320412:"\u6B66\u8FDB\u533A",320481:"\u6EA7\u9633\u5E02",320482:"\u91D1\u575B\u5E02",320483:"\u5176\u5B83\u533A",320500:"\u82CF\u5DDE\u5E02",320505:"\u864E\u4E18\u533A",320506:"\u5434\u4E2D\u533A",320507:"\u76F8\u57CE\u533A",320508:"\u59D1\u82CF\u533A",320581:"\u5E38\u719F\u5E02",320582:"\u5F20\u5BB6\u6E2F\u5E02",320583:"\u6606\u5C71\u5E02",320584:"\u5434\u6C5F\u533A",320585:"\u592A\u4ED3\u5E02",320596:"\u5176\u5B83\u533A",320600:"\u5357\u901A\u5E02",320602:"\u5D07\u5DDD\u533A",320611:"\u6E2F\u95F8\u533A",320612:"\u901A\u5DDE\u533A",320621:"\u6D77\u5B89\u53BF",320623:"\u5982\u4E1C\u53BF",320681:"\u542F\u4E1C\u5E02",320682:"\u5982\u768B\u5E02",320684:"\u6D77\u95E8\u5E02",320694:"\u5176\u5B83\u533A",320700:"\u8FDE\u4E91\u6E2F\u5E02",320703:"\u8FDE\u4E91\u533A",320705:"\u65B0\u6D66\u533A",320706:"\u6D77\u5DDE\u533A",320721:"\u8D63\u6986\u53BF",320722:"\u4E1C\u6D77\u53BF",320723:"\u704C\u4E91\u53BF",320724:"\u704C\u5357\u53BF",320725:"\u5176\u5B83\u533A",320800:"\u6DEE\u5B89\u5E02",320802:"\u6E05\u6CB3\u533A",320803:"\u6DEE\u5B89\u533A",320804:"\u6DEE\u9634\u533A",320811:"\u6E05\u6D66\u533A",320826:"\u6D9F\u6C34\u53BF",320829:"\u6D2A\u6CFD\u53BF",320830:"\u76F1\u7719\u53BF",320831:"\u91D1\u6E56\u53BF",320832:"\u5176\u5B83\u533A",320900:"\u76D0\u57CE\u5E02",320902:"\u4EAD\u6E56\u533A",320903:"\u76D0\u90FD\u533A",320921:"\u54CD\u6C34\u53BF",320922:"\u6EE8\u6D77\u53BF",320923:"\u961C\u5B81\u53BF",320924:"\u5C04\u9633\u53BF",320925:"\u5EFA\u6E56\u53BF",320981:"\u4E1C\u53F0\u5E02",320982:"\u5927\u4E30\u5E02",320983:"\u5176\u5B83\u533A",321e3:"\u626C\u5DDE\u5E02",321002:"\u5E7F\u9675\u533A",321003:"\u9097\u6C5F\u533A",321023:"\u5B9D\u5E94\u53BF",321081:"\u4EEA\u5F81\u5E02",321084:"\u9AD8\u90AE\u5E02",321088:"\u6C5F\u90FD\u533A",321093:"\u5176\u5B83\u533A",321100:"\u9547\u6C5F\u5E02",321102:"\u4EAC\u53E3\u533A",321111:"\u6DA6\u5DDE\u533A",321112:"\u4E39\u5F92\u533A",321181:"\u4E39\u9633\u5E02",321182:"\u626C\u4E2D\u5E02",321183:"\u53E5\u5BB9\u5E02",321184:"\u5176\u5B83\u533A",321200:"\u6CF0\u5DDE\u5E02",321202:"\u6D77\u9675\u533A",321203:"\u9AD8\u6E2F\u533A",321281:"\u5174\u5316\u5E02",321282:"\u9756\u6C5F\u5E02",321283:"\u6CF0\u5174\u5E02",321284:"\u59DC\u5830\u533A",321285:"\u5176\u5B83\u533A",321300:"\u5BBF\u8FC1\u5E02",321302:"\u5BBF\u57CE\u533A",321311:"\u5BBF\u8C6B\u533A",321322:"\u6CAD\u9633\u53BF",321323:"\u6CD7\u9633\u53BF",321324:"\u6CD7\u6D2A\u53BF",321325:"\u5176\u5B83\u533A",33e4:"\u6D59\u6C5F\u7701",330100:"\u676D\u5DDE\u5E02",330102:"\u4E0A\u57CE\u533A",330103:"\u4E0B\u57CE\u533A",330104:"\u6C5F\u5E72\u533A",330105:"\u62F1\u5885\u533A",330106:"\u897F\u6E56\u533A",330108:"\u6EE8\u6C5F\u533A",330109:"\u8427\u5C71\u533A",330110:"\u4F59\u676D\u533A",330122:"\u6850\u5E90\u53BF",330127:"\u6DF3\u5B89\u53BF",330182:"\u5EFA\u5FB7\u5E02",330183:"\u5BCC\u9633\u5E02",330185:"\u4E34\u5B89\u5E02",330186:"\u5176\u5B83\u533A",330200:"\u5B81\u6CE2\u5E02",330203:"\u6D77\u66D9\u533A",330204:"\u6C5F\u4E1C\u533A",330205:"\u6C5F\u5317\u533A",330206:"\u5317\u4ED1\u533A",330211:"\u9547\u6D77\u533A",330212:"\u911E\u5DDE\u533A",330225:"\u8C61\u5C71\u53BF",330226:"\u5B81\u6D77\u53BF",330281:"\u4F59\u59DA\u5E02",330282:"\u6148\u6EAA\u5E02",330283:"\u5949\u5316\u5E02",330284:"\u5176\u5B83\u533A",330300:"\u6E29\u5DDE\u5E02",330302:"\u9E7F\u57CE\u533A",330303:"\u9F99\u6E7E\u533A",330304:"\u74EF\u6D77\u533A",330322:"\u6D1E\u5934\u53BF",330324:"\u6C38\u5609\u53BF",330326:"\u5E73\u9633\u53BF",330327:"\u82CD\u5357\u53BF",330328:"\u6587\u6210\u53BF",330329:"\u6CF0\u987A\u53BF",330381:"\u745E\u5B89\u5E02",330382:"\u4E50\u6E05\u5E02",330383:"\u5176\u5B83\u533A",330400:"\u5609\u5174\u5E02",330402:"\u5357\u6E56\u533A",330411:"\u79C0\u6D32\u533A",330421:"\u5609\u5584\u53BF",330424:"\u6D77\u76D0\u53BF",330481:"\u6D77\u5B81\u5E02",330482:"\u5E73\u6E56\u5E02",330483:"\u6850\u4E61\u5E02",330484:"\u5176\u5B83\u533A",330500:"\u6E56\u5DDE\u5E02",330502:"\u5434\u5174\u533A",330503:"\u5357\u6D54\u533A",330521:"\u5FB7\u6E05\u53BF",330522:"\u957F\u5174\u53BF",330523:"\u5B89\u5409\u53BF",330524:"\u5176\u5B83\u533A",330600:"\u7ECD\u5174\u5E02",330602:"\u8D8A\u57CE\u533A",330621:"\u7ECD\u5174\u53BF",330624:"\u65B0\u660C\u53BF",330681:"\u8BF8\u66A8\u5E02",330682:"\u4E0A\u865E\u5E02",330683:"\u5D4A\u5DDE\u5E02",330684:"\u5176\u5B83\u533A",330700:"\u91D1\u534E\u5E02",330702:"\u5A7A\u57CE\u533A",330703:"\u91D1\u4E1C\u533A",330723:"\u6B66\u4E49\u53BF",330726:"\u6D66\u6C5F\u53BF",330727:"\u78D0\u5B89\u53BF",330781:"\u5170\u6EAA\u5E02",330782:"\u4E49\u4E4C\u5E02",330783:"\u4E1C\u9633\u5E02",330784:"\u6C38\u5EB7\u5E02",330785:"\u5176\u5B83\u533A",330800:"\u8862\u5DDE\u5E02",330802:"\u67EF\u57CE\u533A",330803:"\u8862\u6C5F\u533A",330822:"\u5E38\u5C71\u53BF",330824:"\u5F00\u5316\u53BF",330825:"\u9F99\u6E38\u53BF",330881:"\u6C5F\u5C71\u5E02",330882:"\u5176\u5B83\u533A",330900:"\u821F\u5C71\u5E02",330902:"\u5B9A\u6D77\u533A",330903:"\u666E\u9640\u533A",330921:"\u5CB1\u5C71\u53BF",330922:"\u5D4A\u6CD7\u53BF",330923:"\u5176\u5B83\u533A",331e3:"\u53F0\u5DDE\u5E02",331002:"\u6912\u6C5F\u533A",331003:"\u9EC4\u5CA9\u533A",331004:"\u8DEF\u6865\u533A",331021:"\u7389\u73AF\u53BF",331022:"\u4E09\u95E8\u53BF",331023:"\u5929\u53F0\u53BF",331024:"\u4ED9\u5C45\u53BF",331081:"\u6E29\u5CAD\u5E02",331082:"\u4E34\u6D77\u5E02",331083:"\u5176\u5B83\u533A",331100:"\u4E3D\u6C34\u5E02",331102:"\u83B2\u90FD\u533A",331121:"\u9752\u7530\u53BF",331122:"\u7F19\u4E91\u53BF",331123:"\u9042\u660C\u53BF",331124:"\u677E\u9633\u53BF",331125:"\u4E91\u548C\u53BF",331126:"\u5E86\u5143\u53BF",331127:"\u666F\u5B81\u7572\u65CF\u81EA\u6CBB\u53BF",331181:"\u9F99\u6CC9\u5E02",331182:"\u5176\u5B83\u533A",34e4:"\u5B89\u5FBD\u7701",340100:"\u5408\u80A5\u5E02",340102:"\u7476\u6D77\u533A",340103:"\u5E90\u9633\u533A",340104:"\u8700\u5C71\u533A",340111:"\u5305\u6CB3\u533A",340121:"\u957F\u4E30\u53BF",340122:"\u80A5\u4E1C\u53BF",340123:"\u80A5\u897F\u53BF",340192:"\u5176\u5B83\u533A",340200:"\u829C\u6E56\u5E02",340202:"\u955C\u6E56\u533A",340203:"\u5F0B\u6C5F\u533A",340207:"\u9E20\u6C5F\u533A",340208:"\u4E09\u5C71\u533A",340221:"\u829C\u6E56\u53BF",340222:"\u7E41\u660C\u53BF",340223:"\u5357\u9675\u53BF",340224:"\u5176\u5B83\u533A",340300:"\u868C\u57E0\u5E02",340302:"\u9F99\u5B50\u6E56\u533A",340303:"\u868C\u5C71\u533A",340304:"\u79B9\u4F1A\u533A",340311:"\u6DEE\u4E0A\u533A",340321:"\u6000\u8FDC\u53BF",340322:"\u4E94\u6CB3\u53BF",340323:"\u56FA\u9547\u53BF",340324:"\u5176\u5B83\u533A",340400:"\u6DEE\u5357\u5E02",340402:"\u5927\u901A\u533A",340403:"\u7530\u5BB6\u5EB5\u533A",340404:"\u8C22\u5BB6\u96C6\u533A",340405:"\u516B\u516C\u5C71\u533A",340406:"\u6F58\u96C6\u533A",340421:"\u51E4\u53F0\u53BF",340422:"\u5176\u5B83\u533A",340500:"\u9A6C\u978D\u5C71\u5E02",340503:"\u82B1\u5C71\u533A",340504:"\u96E8\u5C71\u533A",340506:"\u535A\u671B\u533A",340521:"\u5F53\u6D82\u53BF",340522:"\u5176\u5B83\u533A",340600:"\u6DEE\u5317\u5E02",340602:"\u675C\u96C6\u533A",340603:"\u76F8\u5C71\u533A",340604:"\u70C8\u5C71\u533A",340621:"\u6FC9\u6EAA\u53BF",340622:"\u5176\u5B83\u533A",340700:"\u94DC\u9675\u5E02",340702:"\u94DC\u5B98\u5C71\u533A",340703:"\u72EE\u5B50\u5C71\u533A",340711:"\u90CA\u533A",340721:"\u94DC\u9675\u53BF",340722:"\u5176\u5B83\u533A",340800:"\u5B89\u5E86\u5E02",340802:"\u8FCE\u6C5F\u533A",340803:"\u5927\u89C2\u533A",340811:"\u5B9C\u79C0\u533A",340822:"\u6000\u5B81\u53BF",340823:"\u679E\u9633\u53BF",340824:"\u6F5C\u5C71\u53BF",340825:"\u592A\u6E56\u53BF",340826:"\u5BBF\u677E\u53BF",340827:"\u671B\u6C5F\u53BF",340828:"\u5CB3\u897F\u53BF",340881:"\u6850\u57CE\u5E02",340882:"\u5176\u5B83\u533A",341e3:"\u9EC4\u5C71\u5E02",341002:"\u5C6F\u6EAA\u533A",341003:"\u9EC4\u5C71\u533A",341004:"\u5FBD\u5DDE\u533A",341021:"\u6B59\u53BF",341022:"\u4F11\u5B81\u53BF",341023:"\u9EDF\u53BF",341024:"\u7941\u95E8\u53BF",341025:"\u5176\u5B83\u533A",341100:"\u6EC1\u5DDE\u5E02",341102:"\u7405\u740A\u533A",341103:"\u5357\u8C2F\u533A",341122:"\u6765\u5B89\u53BF",341124:"\u5168\u6912\u53BF",341125:"\u5B9A\u8FDC\u53BF",341126:"\u51E4\u9633\u53BF",341181:"\u5929\u957F\u5E02",341182:"\u660E\u5149\u5E02",341183:"\u5176\u5B83\u533A",341200:"\u961C\u9633\u5E02",341202:"\u988D\u5DDE\u533A",341203:"\u988D\u4E1C\u533A",341204:"\u988D\u6CC9\u533A",341221:"\u4E34\u6CC9\u53BF",341222:"\u592A\u548C\u53BF",341225:"\u961C\u5357\u53BF",341226:"\u988D\u4E0A\u53BF",341282:"\u754C\u9996\u5E02",341283:"\u5176\u5B83\u533A",341300:"\u5BBF\u5DDE\u5E02",341302:"\u57C7\u6865\u533A",341321:"\u7800\u5C71\u53BF",341322:"\u8427\u53BF",341323:"\u7075\u74A7\u53BF",341324:"\u6CD7\u53BF",341325:"\u5176\u5B83\u533A",341400:"\u5DE2\u6E56\u5E02",341421:"\u5E90\u6C5F\u53BF",341422:"\u65E0\u4E3A\u53BF",341423:"\u542B\u5C71\u53BF",341424:"\u548C\u53BF",341500:"\u516D\u5B89\u5E02",341502:"\u91D1\u5B89\u533A",341503:"\u88D5\u5B89\u533A",341521:"\u5BFF\u53BF",341522:"\u970D\u90B1\u53BF",341523:"\u8212\u57CE\u53BF",341524:"\u91D1\u5BE8\u53BF",341525:"\u970D\u5C71\u53BF",341526:"\u5176\u5B83\u533A",341600:"\u4EB3\u5DDE\u5E02",341602:"\u8C2F\u57CE\u533A",341621:"\u6DA1\u9633\u53BF",341622:"\u8499\u57CE\u53BF",341623:"\u5229\u8F9B\u53BF",341624:"\u5176\u5B83\u533A",341700:"\u6C60\u5DDE\u5E02",341702:"\u8D35\u6C60\u533A",341721:"\u4E1C\u81F3\u53BF",341722:"\u77F3\u53F0\u53BF",341723:"\u9752\u9633\u53BF",341724:"\u5176\u5B83\u533A",341800:"\u5BA3\u57CE\u5E02",341802:"\u5BA3\u5DDE\u533A",341821:"\u90CE\u6EAA\u53BF",341822:"\u5E7F\u5FB7\u53BF",341823:"\u6CFE\u53BF",341824:"\u7EE9\u6EAA\u53BF",341825:"\u65CC\u5FB7\u53BF",341881:"\u5B81\u56FD\u5E02",341882:"\u5176\u5B83\u533A",35e4:"\u798F\u5EFA\u7701",350100:"\u798F\u5DDE\u5E02",350102:"\u9F13\u697C\u533A",350103:"\u53F0\u6C5F\u533A",350104:"\u4ED3\u5C71\u533A",350105:"\u9A6C\u5C3E\u533A",350111:"\u664B\u5B89\u533A",350121:"\u95FD\u4FAF\u53BF",350122:"\u8FDE\u6C5F\u53BF",350123:"\u7F57\u6E90\u53BF",350124:"\u95FD\u6E05\u53BF",350125:"\u6C38\u6CF0\u53BF",350128:"\u5E73\u6F6D\u53BF",350181:"\u798F\u6E05\u5E02",350182:"\u957F\u4E50\u5E02",350183:"\u5176\u5B83\u533A",350200:"\u53A6\u95E8\u5E02",350203:"\u601D\u660E\u533A",350205:"\u6D77\u6CA7\u533A",350206:"\u6E56\u91CC\u533A",350211:"\u96C6\u7F8E\u533A",350212:"\u540C\u5B89\u533A",350213:"\u7FD4\u5B89\u533A",350214:"\u5176\u5B83\u533A",350300:"\u8386\u7530\u5E02",350302:"\u57CE\u53A2\u533A",350303:"\u6DB5\u6C5F\u533A",350304:"\u8354\u57CE\u533A",350305:"\u79C0\u5C7F\u533A",350322:"\u4ED9\u6E38\u53BF",350323:"\u5176\u5B83\u533A",350400:"\u4E09\u660E\u5E02",350402:"\u6885\u5217\u533A",350403:"\u4E09\u5143\u533A",350421:"\u660E\u6EAA\u53BF",350423:"\u6E05\u6D41\u53BF",350424:"\u5B81\u5316\u53BF",350425:"\u5927\u7530\u53BF",350426:"\u5C24\u6EAA\u53BF",350427:"\u6C99\u53BF",350428:"\u5C06\u4E50\u53BF",350429:"\u6CF0\u5B81\u53BF",350430:"\u5EFA\u5B81\u53BF",350481:"\u6C38\u5B89\u5E02",350482:"\u5176\u5B83\u533A",350500:"\u6CC9\u5DDE\u5E02",350502:"\u9CA4\u57CE\u533A",350503:"\u4E30\u6CFD\u533A",350504:"\u6D1B\u6C5F\u533A",350505:"\u6CC9\u6E2F\u533A",350521:"\u60E0\u5B89\u53BF",350524:"\u5B89\u6EAA\u53BF",350525:"\u6C38\u6625\u53BF",350526:"\u5FB7\u5316\u53BF",350527:"\u91D1\u95E8\u53BF",350581:"\u77F3\u72EE\u5E02",350582:"\u664B\u6C5F\u5E02",350583:"\u5357\u5B89\u5E02",350584:"\u5176\u5B83\u533A",350600:"\u6F33\u5DDE\u5E02",350602:"\u8297\u57CE\u533A",350603:"\u9F99\u6587\u533A",350622:"\u4E91\u9704\u53BF",350623:"\u6F33\u6D66\u53BF",350624:"\u8BCF\u5B89\u53BF",350625:"\u957F\u6CF0\u53BF",350626:"\u4E1C\u5C71\u53BF",350627:"\u5357\u9756\u53BF",350628:"\u5E73\u548C\u53BF",350629:"\u534E\u5B89\u53BF",350681:"\u9F99\u6D77\u5E02",350682:"\u5176\u5B83\u533A",350700:"\u5357\u5E73\u5E02",350702:"\u5EF6\u5E73\u533A",350721:"\u987A\u660C\u53BF",350722:"\u6D66\u57CE\u53BF",350723:"\u5149\u6CFD\u53BF",350724:"\u677E\u6EAA\u53BF",350725:"\u653F\u548C\u53BF",350781:"\u90B5\u6B66\u5E02",350782:"\u6B66\u5937\u5C71\u5E02",350783:"\u5EFA\u74EF\u5E02",350784:"\u5EFA\u9633\u5E02",350785:"\u5176\u5B83\u533A",350800:"\u9F99\u5CA9\u5E02",350802:"\u65B0\u7F57\u533A",350821:"\u957F\u6C40\u53BF",350822:"\u6C38\u5B9A\u53BF",350823:"\u4E0A\u676D\u53BF",350824:"\u6B66\u5E73\u53BF",350825:"\u8FDE\u57CE\u53BF",350881:"\u6F33\u5E73\u5E02",350882:"\u5176\u5B83\u533A",350900:"\u5B81\u5FB7\u5E02",350902:"\u8549\u57CE\u533A",350921:"\u971E\u6D66\u53BF",350922:"\u53E4\u7530\u53BF",350923:"\u5C4F\u5357\u53BF",350924:"\u5BFF\u5B81\u53BF",350925:"\u5468\u5B81\u53BF",350926:"\u67D8\u8363\u53BF",350981:"\u798F\u5B89\u5E02",350982:"\u798F\u9F0E\u5E02",350983:"\u5176\u5B83\u533A",36e4:"\u6C5F\u897F\u7701",360100:"\u5357\u660C\u5E02",360102:"\u4E1C\u6E56\u533A",360103:"\u897F\u6E56\u533A",360104:"\u9752\u4E91\u8C31\u533A",360105:"\u6E7E\u91CC\u533A",360111:"\u9752\u5C71\u6E56\u533A",360121:"\u5357\u660C\u53BF",360122:"\u65B0\u5EFA\u53BF",360123:"\u5B89\u4E49\u53BF",360124:"\u8FDB\u8D24\u53BF",360128:"\u5176\u5B83\u533A",360200:"\u666F\u5FB7\u9547\u5E02",360202:"\u660C\u6C5F\u533A",360203:"\u73E0\u5C71\u533A",360222:"\u6D6E\u6881\u53BF",360281:"\u4E50\u5E73\u5E02",360282:"\u5176\u5B83\u533A",360300:"\u840D\u4E61\u5E02",360302:"\u5B89\u6E90\u533A",360313:"\u6E58\u4E1C\u533A",360321:"\u83B2\u82B1\u53BF",360322:"\u4E0A\u6817\u53BF",360323:"\u82A6\u6EAA\u53BF",360324:"\u5176\u5B83\u533A",360400:"\u4E5D\u6C5F\u5E02",360402:"\u5E90\u5C71\u533A",360403:"\u6D54\u9633\u533A",360421:"\u4E5D\u6C5F\u53BF",360423:"\u6B66\u5B81\u53BF",360424:"\u4FEE\u6C34\u53BF",360425:"\u6C38\u4FEE\u53BF",360426:"\u5FB7\u5B89\u53BF",360427:"\u661F\u5B50\u53BF",360428:"\u90FD\u660C\u53BF",360429:"\u6E56\u53E3\u53BF",360430:"\u5F6D\u6CFD\u53BF",360481:"\u745E\u660C\u5E02",360482:"\u5176\u5B83\u533A",360483:"\u5171\u9752\u57CE\u5E02",360500:"\u65B0\u4F59\u5E02",360502:"\u6E1D\u6C34\u533A",360521:"\u5206\u5B9C\u53BF",360522:"\u5176\u5B83\u533A",360600:"\u9E70\u6F6D\u5E02",360602:"\u6708\u6E56\u533A",360622:"\u4F59\u6C5F\u53BF",360681:"\u8D35\u6EAA\u5E02",360682:"\u5176\u5B83\u533A",360700:"\u8D63\u5DDE\u5E02",360702:"\u7AE0\u8D21\u533A",360721:"\u8D63\u53BF",360722:"\u4FE1\u4E30\u53BF",360723:"\u5927\u4F59\u53BF",360724:"\u4E0A\u72B9\u53BF",360725:"\u5D07\u4E49\u53BF",360726:"\u5B89\u8FDC\u53BF",360727:"\u9F99\u5357\u53BF",360728:"\u5B9A\u5357\u53BF",360729:"\u5168\u5357\u53BF",360730:"\u5B81\u90FD\u53BF",360731:"\u4E8E\u90FD\u53BF",360732:"\u5174\u56FD\u53BF",360733:"\u4F1A\u660C\u53BF",360734:"\u5BFB\u4E4C\u53BF",360735:"\u77F3\u57CE\u53BF",360781:"\u745E\u91D1\u5E02",360782:"\u5357\u5EB7\u5E02",360783:"\u5176\u5B83\u533A",360800:"\u5409\u5B89\u5E02",360802:"\u5409\u5DDE\u533A",360803:"\u9752\u539F\u533A",360821:"\u5409\u5B89\u53BF",360822:"\u5409\u6C34\u53BF",360823:"\u5CE1\u6C5F\u53BF",360824:"\u65B0\u5E72\u53BF",360825:"\u6C38\u4E30\u53BF",360826:"\u6CF0\u548C\u53BF",360827:"\u9042\u5DDD\u53BF",360828:"\u4E07\u5B89\u53BF",360829:"\u5B89\u798F\u53BF",360830:"\u6C38\u65B0\u53BF",360881:"\u4E95\u5188\u5C71\u5E02",360882:"\u5176\u5B83\u533A",360900:"\u5B9C\u6625\u5E02",360902:"\u8881\u5DDE\u533A",360921:"\u5949\u65B0\u53BF",360922:"\u4E07\u8F7D\u53BF",360923:"\u4E0A\u9AD8\u53BF",360924:"\u5B9C\u4E30\u53BF",360925:"\u9756\u5B89\u53BF",360926:"\u94DC\u9F13\u53BF",360981:"\u4E30\u57CE\u5E02",360982:"\u6A1F\u6811\u5E02",360983:"\u9AD8\u5B89\u5E02",360984:"\u5176\u5B83\u533A",361e3:"\u629A\u5DDE\u5E02",361002:"\u4E34\u5DDD\u533A",361021:"\u5357\u57CE\u53BF",361022:"\u9ECE\u5DDD\u53BF",361023:"\u5357\u4E30\u53BF",361024:"\u5D07\u4EC1\u53BF",361025:"\u4E50\u5B89\u53BF",361026:"\u5B9C\u9EC4\u53BF",361027:"\u91D1\u6EAA\u53BF",361028:"\u8D44\u6EAA\u53BF",361029:"\u4E1C\u4E61\u53BF",361030:"\u5E7F\u660C\u53BF",361031:"\u5176\u5B83\u533A",361100:"\u4E0A\u9976\u5E02",361102:"\u4FE1\u5DDE\u533A",361121:"\u4E0A\u9976\u53BF",361122:"\u5E7F\u4E30\u53BF",361123:"\u7389\u5C71\u53BF",361124:"\u94C5\u5C71\u53BF",361125:"\u6A2A\u5CF0\u53BF",361126:"\u5F0B\u9633\u53BF",361127:"\u4F59\u5E72\u53BF",361128:"\u9131\u9633\u53BF",361129:"\u4E07\u5E74\u53BF",361130:"\u5A7A\u6E90\u53BF",361181:"\u5FB7\u5174\u5E02",361182:"\u5176\u5B83\u533A",37e4:"\u5C71\u4E1C\u7701",370100:"\u6D4E\u5357\u5E02",370102:"\u5386\u4E0B\u533A",370103:"\u5E02\u4E2D\u533A",370104:"\u69D0\u836B\u533A",370105:"\u5929\u6865\u533A",370112:"\u5386\u57CE\u533A",370113:"\u957F\u6E05\u533A",370124:"\u5E73\u9634\u53BF",370125:"\u6D4E\u9633\u53BF",370126:"\u5546\u6CB3\u53BF",370181:"\u7AE0\u4E18\u5E02",370182:"\u5176\u5B83\u533A",370200:"\u9752\u5C9B\u5E02",370202:"\u5E02\u5357\u533A",370203:"\u5E02\u5317\u533A",370211:"\u9EC4\u5C9B\u533A",370212:"\u5D02\u5C71\u533A",370213:"\u674E\u6CA7\u533A",370214:"\u57CE\u9633\u533A",370281:"\u80F6\u5DDE\u5E02",370282:"\u5373\u58A8\u5E02",370283:"\u5E73\u5EA6\u5E02",370285:"\u83B1\u897F\u5E02",370286:"\u5176\u5B83\u533A",370300:"\u6DC4\u535A\u5E02",370302:"\u6DC4\u5DDD\u533A",370303:"\u5F20\u5E97\u533A",370304:"\u535A\u5C71\u533A",370305:"\u4E34\u6DC4\u533A",370306:"\u5468\u6751\u533A",370321:"\u6853\u53F0\u53BF",370322:"\u9AD8\u9752\u53BF",370323:"\u6C82\u6E90\u53BF",370324:"\u5176\u5B83\u533A",370400:"\u67A3\u5E84\u5E02",370402:"\u5E02\u4E2D\u533A",370403:"\u859B\u57CE\u533A",370404:"\u5CC4\u57CE\u533A",370405:"\u53F0\u513F\u5E84\u533A",370406:"\u5C71\u4EAD\u533A",370481:"\u6ED5\u5DDE\u5E02",370482:"\u5176\u5B83\u533A",370500:"\u4E1C\u8425\u5E02",370502:"\u4E1C\u8425\u533A",370503:"\u6CB3\u53E3\u533A",370521:"\u57A6\u5229\u53BF",370522:"\u5229\u6D25\u53BF",370523:"\u5E7F\u9976\u53BF",370591:"\u5176\u5B83\u533A",370600:"\u70DF\u53F0\u5E02",370602:"\u829D\u7F58\u533A",370611:"\u798F\u5C71\u533A",370612:"\u725F\u5E73\u533A",370613:"\u83B1\u5C71\u533A",370634:"\u957F\u5C9B\u53BF",370681:"\u9F99\u53E3\u5E02",370682:"\u83B1\u9633\u5E02",370683:"\u83B1\u5DDE\u5E02",370684:"\u84EC\u83B1\u5E02",370685:"\u62DB\u8FDC\u5E02",370686:"\u6816\u971E\u5E02",370687:"\u6D77\u9633\u5E02",370688:"\u5176\u5B83\u533A",370700:"\u6F4D\u574A\u5E02",370702:"\u6F4D\u57CE\u533A",370703:"\u5BD2\u4EAD\u533A",370704:"\u574A\u5B50\u533A",370705:"\u594E\u6587\u533A",370724:"\u4E34\u6710\u53BF",370725:"\u660C\u4E50\u53BF",370781:"\u9752\u5DDE\u5E02",370782:"\u8BF8\u57CE\u5E02",370783:"\u5BFF\u5149\u5E02",370784:"\u5B89\u4E18\u5E02",370785:"\u9AD8\u5BC6\u5E02",370786:"\u660C\u9091\u5E02",370787:"\u5176\u5B83\u533A",370800:"\u6D4E\u5B81\u5E02",370802:"\u5E02\u4E2D\u533A",370811:"\u4EFB\u57CE\u533A",370826:"\u5FAE\u5C71\u53BF",370827:"\u9C7C\u53F0\u53BF",370828:"\u91D1\u4E61\u53BF",370829:"\u5609\u7965\u53BF",370830:"\u6C76\u4E0A\u53BF",370831:"\u6CD7\u6C34\u53BF",370832:"\u6881\u5C71\u53BF",370881:"\u66F2\u961C\u5E02",370882:"\u5156\u5DDE\u5E02",370883:"\u90B9\u57CE\u5E02",370884:"\u5176\u5B83\u533A",370900:"\u6CF0\u5B89\u5E02",370902:"\u6CF0\u5C71\u533A",370903:"\u5CB1\u5CB3\u533A",370921:"\u5B81\u9633\u53BF",370923:"\u4E1C\u5E73\u53BF",370982:"\u65B0\u6CF0\u5E02",370983:"\u80A5\u57CE\u5E02",370984:"\u5176\u5B83\u533A",371e3:"\u5A01\u6D77\u5E02",371002:"\u73AF\u7FE0\u533A",371081:"\u6587\u767B\u5E02",371082:"\u8363\u6210\u5E02",371083:"\u4E73\u5C71\u5E02",371084:"\u5176\u5B83\u533A",371100:"\u65E5\u7167\u5E02",371102:"\u4E1C\u6E2F\u533A",371103:"\u5C9A\u5C71\u533A",371121:"\u4E94\u83B2\u53BF",371122:"\u8392\u53BF",371123:"\u5176\u5B83\u533A",371200:"\u83B1\u829C\u5E02",371202:"\u83B1\u57CE\u533A",371203:"\u94A2\u57CE\u533A",371204:"\u5176\u5B83\u533A",371300:"\u4E34\u6C82\u5E02",371302:"\u5170\u5C71\u533A",371311:"\u7F57\u5E84\u533A",371312:"\u6CB3\u4E1C\u533A",371321:"\u6C82\u5357\u53BF",371322:"\u90EF\u57CE\u53BF",371323:"\u6C82\u6C34\u53BF",371324:"\u82CD\u5C71\u53BF",371325:"\u8D39\u53BF",371326:"\u5E73\u9091\u53BF",371327:"\u8392\u5357\u53BF",371328:"\u8499\u9634\u53BF",371329:"\u4E34\u6CAD\u53BF",371330:"\u5176\u5B83\u533A",371400:"\u5FB7\u5DDE\u5E02",371402:"\u5FB7\u57CE\u533A",371421:"\u9675\u53BF",371422:"\u5B81\u6D25\u53BF",371423:"\u5E86\u4E91\u53BF",371424:"\u4E34\u9091\u53BF",371425:"\u9F50\u6CB3\u53BF",371426:"\u5E73\u539F\u53BF",371427:"\u590F\u6D25\u53BF",371428:"\u6B66\u57CE\u53BF",371481:"\u4E50\u9675\u5E02",371482:"\u79B9\u57CE\u5E02",371483:"\u5176\u5B83\u533A",371500:"\u804A\u57CE\u5E02",371502:"\u4E1C\u660C\u5E9C\u533A",371521:"\u9633\u8C37\u53BF",371522:"\u8398\u53BF",371523:"\u830C\u5E73\u53BF",371524:"\u4E1C\u963F\u53BF",371525:"\u51A0\u53BF",371526:"\u9AD8\u5510\u53BF",371581:"\u4E34\u6E05\u5E02",371582:"\u5176\u5B83\u533A",371600:"\u6EE8\u5DDE\u5E02",371602:"\u6EE8\u57CE\u533A",371621:"\u60E0\u6C11\u53BF",371622:"\u9633\u4FE1\u53BF",371623:"\u65E0\u68E3\u53BF",371624:"\u6CBE\u5316\u53BF",371625:"\u535A\u5174\u53BF",371626:"\u90B9\u5E73\u53BF",371627:"\u5176\u5B83\u533A",371700:"\u83CF\u6CFD\u5E02",371702:"\u7261\u4E39\u533A",371721:"\u66F9\u53BF",371722:"\u5355\u53BF",371723:"\u6210\u6B66\u53BF",371724:"\u5DE8\u91CE\u53BF",371725:"\u90D3\u57CE\u53BF",371726:"\u9104\u57CE\u53BF",371727:"\u5B9A\u9676\u53BF",371728:"\u4E1C\u660E\u53BF",371729:"\u5176\u5B83\u533A",41e4:"\u6CB3\u5357\u7701",410100:"\u90D1\u5DDE\u5E02",410102:"\u4E2D\u539F\u533A",410103:"\u4E8C\u4E03\u533A",410104:"\u7BA1\u57CE\u56DE\u65CF\u533A",410105:"\u91D1\u6C34\u533A",410106:"\u4E0A\u8857\u533A",410108:"\u60E0\u6D4E\u533A",410122:"\u4E2D\u725F\u53BF",410181:"\u5DE9\u4E49\u5E02",410182:"\u8365\u9633\u5E02",410183:"\u65B0\u5BC6\u5E02",410184:"\u65B0\u90D1\u5E02",410185:"\u767B\u5C01\u5E02",410188:"\u5176\u5B83\u533A",410200:"\u5F00\u5C01\u5E02",410202:"\u9F99\u4EAD\u533A",410203:"\u987A\u6CB3\u56DE\u65CF\u533A",410204:"\u9F13\u697C\u533A",410205:"\u79B9\u738B\u53F0\u533A",410211:"\u91D1\u660E\u533A",410221:"\u675E\u53BF",410222:"\u901A\u8BB8\u53BF",410223:"\u5C09\u6C0F\u53BF",410224:"\u5F00\u5C01\u53BF",410225:"\u5170\u8003\u53BF",410226:"\u5176\u5B83\u533A",410300:"\u6D1B\u9633\u5E02",410302:"\u8001\u57CE\u533A",410303:"\u897F\u5DE5\u533A",410304:"\u700D\u6CB3\u56DE\u65CF\u533A",410305:"\u6DA7\u897F\u533A",410306:"\u5409\u5229\u533A",410307:"\u6D1B\u9F99\u533A",410322:"\u5B5F\u6D25\u53BF",410323:"\u65B0\u5B89\u53BF",410324:"\u683E\u5DDD\u53BF",410325:"\u5D69\u53BF",410326:"\u6C5D\u9633\u53BF",410327:"\u5B9C\u9633\u53BF",410328:"\u6D1B\u5B81\u53BF",410329:"\u4F0A\u5DDD\u53BF",410381:"\u5043\u5E08\u5E02",410400:"\u5E73\u9876\u5C71\u5E02",410402:"\u65B0\u534E\u533A",410403:"\u536B\u4E1C\u533A",410404:"\u77F3\u9F99\u533A",410411:"\u6E5B\u6CB3\u533A",410421:"\u5B9D\u4E30\u53BF",410422:"\u53F6\u53BF",410423:"\u9C81\u5C71\u53BF",410425:"\u90CF\u53BF",410481:"\u821E\u94A2\u5E02",410482:"\u6C5D\u5DDE\u5E02",410483:"\u5176\u5B83\u533A",410500:"\u5B89\u9633\u5E02",410502:"\u6587\u5CF0\u533A",410503:"\u5317\u5173\u533A",410505:"\u6BB7\u90FD\u533A",410506:"\u9F99\u5B89\u533A",410522:"\u5B89\u9633\u53BF",410523:"\u6C64\u9634\u53BF",410526:"\u6ED1\u53BF",410527:"\u5185\u9EC4\u53BF",410581:"\u6797\u5DDE\u5E02",410582:"\u5176\u5B83\u533A",410600:"\u9E64\u58C1\u5E02",410602:"\u9E64\u5C71\u533A",410603:"\u5C71\u57CE\u533A",410611:"\u6DC7\u6EE8\u533A",410621:"\u6D5A\u53BF",410622:"\u6DC7\u53BF",410623:"\u5176\u5B83\u533A",410700:"\u65B0\u4E61\u5E02",410702:"\u7EA2\u65D7\u533A",410703:"\u536B\u6EE8\u533A",410704:"\u51E4\u6CC9\u533A",410711:"\u7267\u91CE\u533A",410721:"\u65B0\u4E61\u53BF",410724:"\u83B7\u5609\u53BF",410725:"\u539F\u9633\u53BF",410726:"\u5EF6\u6D25\u53BF",410727:"\u5C01\u4E18\u53BF",410728:"\u957F\u57A3\u53BF",410781:"\u536B\u8F89\u5E02",410782:"\u8F89\u53BF\u5E02",410783:"\u5176\u5B83\u533A",410800:"\u7126\u4F5C\u5E02",410802:"\u89E3\u653E\u533A",410803:"\u4E2D\u7AD9\u533A",410804:"\u9A6C\u6751\u533A",410811:"\u5C71\u9633\u533A",410821:"\u4FEE\u6B66\u53BF",410822:"\u535A\u7231\u53BF",410823:"\u6B66\u965F\u53BF",410825:"\u6E29\u53BF",410881:"\u6D4E\u6E90\u5E02",410882:"\u6C81\u9633\u5E02",410883:"\u5B5F\u5DDE\u5E02",410884:"\u5176\u5B83\u533A",410900:"\u6FEE\u9633\u5E02",410902:"\u534E\u9F99\u533A",410922:"\u6E05\u4E30\u53BF",410923:"\u5357\u4E50\u53BF",410926:"\u8303\u53BF",410927:"\u53F0\u524D\u53BF",410928:"\u6FEE\u9633\u53BF",410929:"\u5176\u5B83\u533A",411e3:"\u8BB8\u660C\u5E02",411002:"\u9B4F\u90FD\u533A",411023:"\u8BB8\u660C\u53BF",411024:"\u9122\u9675\u53BF",411025:"\u8944\u57CE\u53BF",411081:"\u79B9\u5DDE\u5E02",411082:"\u957F\u845B\u5E02",411083:"\u5176\u5B83\u533A",411100:"\u6F2F\u6CB3\u5E02",411102:"\u6E90\u6C47\u533A",411103:"\u90FE\u57CE\u533A",411104:"\u53EC\u9675\u533A",411121:"\u821E\u9633\u53BF",411122:"\u4E34\u988D\u53BF",411123:"\u5176\u5B83\u533A",411200:"\u4E09\u95E8\u5CE1\u5E02",411202:"\u6E56\u6EE8\u533A",411221:"\u6E11\u6C60\u53BF",411222:"\u9655\u53BF",411224:"\u5362\u6C0F\u53BF",411281:"\u4E49\u9A6C\u5E02",411282:"\u7075\u5B9D\u5E02",411283:"\u5176\u5B83\u533A",411300:"\u5357\u9633\u5E02",411302:"\u5B9B\u57CE\u533A",411303:"\u5367\u9F99\u533A",411321:"\u5357\u53EC\u53BF",411322:"\u65B9\u57CE\u53BF",411323:"\u897F\u5CE1\u53BF",411324:"\u9547\u5E73\u53BF",411325:"\u5185\u4E61\u53BF",411326:"\u6DC5\u5DDD\u53BF",411327:"\u793E\u65D7\u53BF",411328:"\u5510\u6CB3\u53BF",411329:"\u65B0\u91CE\u53BF",411330:"\u6850\u67CF\u53BF",411381:"\u9093\u5DDE\u5E02",411382:"\u5176\u5B83\u533A",411400:"\u5546\u4E18\u5E02",411402:"\u6881\u56ED\u533A",411403:"\u7762\u9633\u533A",411421:"\u6C11\u6743\u53BF",411422:"\u7762\u53BF",411423:"\u5B81\u9675\u53BF",411424:"\u67D8\u57CE\u53BF",411425:"\u865E\u57CE\u53BF",411426:"\u590F\u9091\u53BF",411481:"\u6C38\u57CE\u5E02",411482:"\u5176\u5B83\u533A",411500:"\u4FE1\u9633\u5E02",411502:"\u6D49\u6CB3\u533A",411503:"\u5E73\u6865\u533A",411521:"\u7F57\u5C71\u53BF",411522:"\u5149\u5C71\u53BF",411523:"\u65B0\u53BF",411524:"\u5546\u57CE\u53BF",411525:"\u56FA\u59CB\u53BF",411526:"\u6F62\u5DDD\u53BF",411527:"\u6DEE\u6EE8\u53BF",411528:"\u606F\u53BF",411529:"\u5176\u5B83\u533A",411600:"\u5468\u53E3\u5E02",411602:"\u5DDD\u6C47\u533A",411621:"\u6276\u6C9F\u53BF",411622:"\u897F\u534E\u53BF",411623:"\u5546\u6C34\u53BF",411624:"\u6C88\u4E18\u53BF",411625:"\u90F8\u57CE\u53BF",411626:"\u6DEE\u9633\u53BF",411627:"\u592A\u5EB7\u53BF",411628:"\u9E7F\u9091\u53BF",411681:"\u9879\u57CE\u5E02",411682:"\u5176\u5B83\u533A",411700:"\u9A7B\u9A6C\u5E97\u5E02",411702:"\u9A7F\u57CE\u533A",411721:"\u897F\u5E73\u53BF",411722:"\u4E0A\u8521\u53BF",411723:"\u5E73\u8206\u53BF",411724:"\u6B63\u9633\u53BF",411725:"\u786E\u5C71\u53BF",411726:"\u6CCC\u9633\u53BF",411727:"\u6C5D\u5357\u53BF",411728:"\u9042\u5E73\u53BF",411729:"\u65B0\u8521\u53BF",411730:"\u5176\u5B83\u533A",42e4:"\u6E56\u5317\u7701",420100:"\u6B66\u6C49\u5E02",420102:"\u6C5F\u5CB8\u533A",420103:"\u6C5F\u6C49\u533A",420104:"\u785A\u53E3\u533A",420105:"\u6C49\u9633\u533A",420106:"\u6B66\u660C\u533A",420107:"\u9752\u5C71\u533A",420111:"\u6D2A\u5C71\u533A",420112:"\u4E1C\u897F\u6E56\u533A",420113:"\u6C49\u5357\u533A",420114:"\u8521\u7538\u533A",420115:"\u6C5F\u590F\u533A",420116:"\u9EC4\u9642\u533A",420117:"\u65B0\u6D32\u533A",420118:"\u5176\u5B83\u533A",420200:"\u9EC4\u77F3\u5E02",420202:"\u9EC4\u77F3\u6E2F\u533A",420203:"\u897F\u585E\u5C71\u533A",420204:"\u4E0B\u9646\u533A",420205:"\u94C1\u5C71\u533A",420222:"\u9633\u65B0\u53BF",420281:"\u5927\u51B6\u5E02",420282:"\u5176\u5B83\u533A",420300:"\u5341\u5830\u5E02",420302:"\u8305\u7BAD\u533A",420303:"\u5F20\u6E7E\u533A",420321:"\u90E7\u53BF",420322:"\u90E7\u897F\u53BF",420323:"\u7AF9\u5C71\u53BF",420324:"\u7AF9\u6EAA\u53BF",420325:"\u623F\u53BF",420381:"\u4E39\u6C5F\u53E3\u5E02",420383:"\u5176\u5B83\u533A",420500:"\u5B9C\u660C\u5E02",420502:"\u897F\u9675\u533A",420503:"\u4F0D\u5BB6\u5C97\u533A",420504:"\u70B9\u519B\u533A",420505:"\u7307\u4EAD\u533A",420506:"\u5937\u9675\u533A",420525:"\u8FDC\u5B89\u53BF",420526:"\u5174\u5C71\u53BF",420527:"\u79ED\u5F52\u53BF",420528:"\u957F\u9633\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",420529:"\u4E94\u5CF0\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",420581:"\u5B9C\u90FD\u5E02",420582:"\u5F53\u9633\u5E02",420583:"\u679D\u6C5F\u5E02",420584:"\u5176\u5B83\u533A",420600:"\u8944\u9633\u5E02",420602:"\u8944\u57CE\u533A",420606:"\u6A0A\u57CE\u533A",420607:"\u8944\u5DDE\u533A",420624:"\u5357\u6F33\u53BF",420625:"\u8C37\u57CE\u53BF",420626:"\u4FDD\u5EB7\u53BF",420682:"\u8001\u6CB3\u53E3\u5E02",420683:"\u67A3\u9633\u5E02",420684:"\u5B9C\u57CE\u5E02",420685:"\u5176\u5B83\u533A",420700:"\u9102\u5DDE\u5E02",420702:"\u6881\u5B50\u6E56\u533A",420703:"\u534E\u5BB9\u533A",420704:"\u9102\u57CE\u533A",420705:"\u5176\u5B83\u533A",420800:"\u8346\u95E8\u5E02",420802:"\u4E1C\u5B9D\u533A",420804:"\u6387\u5200\u533A",420821:"\u4EAC\u5C71\u53BF",420822:"\u6C99\u6D0B\u53BF",420881:"\u949F\u7965\u5E02",420882:"\u5176\u5B83\u533A",420900:"\u5B5D\u611F\u5E02",420902:"\u5B5D\u5357\u533A",420921:"\u5B5D\u660C\u53BF",420922:"\u5927\u609F\u53BF",420923:"\u4E91\u68A6\u53BF",420981:"\u5E94\u57CE\u5E02",420982:"\u5B89\u9646\u5E02",420984:"\u6C49\u5DDD\u5E02",420985:"\u5176\u5B83\u533A",421e3:"\u8346\u5DDE\u5E02",421002:"\u6C99\u5E02\u533A",421003:"\u8346\u5DDE\u533A",421022:"\u516C\u5B89\u53BF",421023:"\u76D1\u5229\u53BF",421024:"\u6C5F\u9675\u53BF",421081:"\u77F3\u9996\u5E02",421083:"\u6D2A\u6E56\u5E02",421087:"\u677E\u6ECB\u5E02",421088:"\u5176\u5B83\u533A",421100:"\u9EC4\u5188\u5E02",421102:"\u9EC4\u5DDE\u533A",421121:"\u56E2\u98CE\u53BF",421122:"\u7EA2\u5B89\u53BF",421123:"\u7F57\u7530\u53BF",421124:"\u82F1\u5C71\u53BF",421125:"\u6D60\u6C34\u53BF",421126:"\u8572\u6625\u53BF",421127:"\u9EC4\u6885\u53BF",421181:"\u9EBB\u57CE\u5E02",421182:"\u6B66\u7A74\u5E02",421183:"\u5176\u5B83\u533A",421200:"\u54B8\u5B81\u5E02",421202:"\u54B8\u5B89\u533A",421221:"\u5609\u9C7C\u53BF",421222:"\u901A\u57CE\u53BF",421223:"\u5D07\u9633\u53BF",421224:"\u901A\u5C71\u53BF",421281:"\u8D64\u58C1\u5E02",421283:"\u5176\u5B83\u533A",421300:"\u968F\u5DDE\u5E02",421302:"\u66FE\u90FD\u533A",421321:"\u968F\u53BF",421381:"\u5E7F\u6C34\u5E02",421382:"\u5176\u5B83\u533A",422800:"\u6069\u65BD\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",422801:"\u6069\u65BD\u5E02",422802:"\u5229\u5DDD\u5E02",422822:"\u5EFA\u59CB\u53BF",422823:"\u5DF4\u4E1C\u53BF",422825:"\u5BA3\u6069\u53BF",422826:"\u54B8\u4E30\u53BF",422827:"\u6765\u51E4\u53BF",422828:"\u9E64\u5CF0\u53BF",422829:"\u5176\u5B83\u533A",429004:"\u4ED9\u6843\u5E02",429005:"\u6F5C\u6C5F\u5E02",429006:"\u5929\u95E8\u5E02",429021:"\u795E\u519C\u67B6\u6797\u533A",43e4:"\u6E56\u5357\u7701",430100:"\u957F\u6C99\u5E02",430102:"\u8299\u84C9\u533A",430103:"\u5929\u5FC3\u533A",430104:"\u5CB3\u9E93\u533A",430105:"\u5F00\u798F\u533A",430111:"\u96E8\u82B1\u533A",430121:"\u957F\u6C99\u53BF",430122:"\u671B\u57CE\u533A",430124:"\u5B81\u4E61\u53BF",430181:"\u6D4F\u9633\u5E02",430182:"\u5176\u5B83\u533A",430200:"\u682A\u6D32\u5E02",430202:"\u8377\u5858\u533A",430203:"\u82A6\u6DDE\u533A",430204:"\u77F3\u5CF0\u533A",430211:"\u5929\u5143\u533A",430221:"\u682A\u6D32\u53BF",430223:"\u6538\u53BF",430224:"\u8336\u9675\u53BF",430225:"\u708E\u9675\u53BF",430281:"\u91B4\u9675\u5E02",430282:"\u5176\u5B83\u533A",430300:"\u6E58\u6F6D\u5E02",430302:"\u96E8\u6E56\u533A",430304:"\u5CB3\u5858\u533A",430321:"\u6E58\u6F6D\u53BF",430381:"\u6E58\u4E61\u5E02",430382:"\u97F6\u5C71\u5E02",430383:"\u5176\u5B83\u533A",430400:"\u8861\u9633\u5E02",430405:"\u73E0\u6656\u533A",430406:"\u96C1\u5CF0\u533A",430407:"\u77F3\u9F13\u533A",430408:"\u84B8\u6E58\u533A",430412:"\u5357\u5CB3\u533A",430421:"\u8861\u9633\u53BF",430422:"\u8861\u5357\u53BF",430423:"\u8861\u5C71\u53BF",430424:"\u8861\u4E1C\u53BF",430426:"\u7941\u4E1C\u53BF",430481:"\u8012\u9633\u5E02",430482:"\u5E38\u5B81\u5E02",430483:"\u5176\u5B83\u533A",430500:"\u90B5\u9633\u5E02",430502:"\u53CC\u6E05\u533A",430503:"\u5927\u7965\u533A",430511:"\u5317\u5854\u533A",430521:"\u90B5\u4E1C\u53BF",430522:"\u65B0\u90B5\u53BF",430523:"\u90B5\u9633\u53BF",430524:"\u9686\u56DE\u53BF",430525:"\u6D1E\u53E3\u53BF",430527:"\u7EE5\u5B81\u53BF",430528:"\u65B0\u5B81\u53BF",430529:"\u57CE\u6B65\u82D7\u65CF\u81EA\u6CBB\u53BF",430581:"\u6B66\u5188\u5E02",430582:"\u5176\u5B83\u533A",430600:"\u5CB3\u9633\u5E02",430602:"\u5CB3\u9633\u697C\u533A",430603:"\u4E91\u6EAA\u533A",430611:"\u541B\u5C71\u533A",430621:"\u5CB3\u9633\u53BF",430623:"\u534E\u5BB9\u53BF",430624:"\u6E58\u9634\u53BF",430626:"\u5E73\u6C5F\u53BF",430681:"\u6C68\u7F57\u5E02",430682:"\u4E34\u6E58\u5E02",430683:"\u5176\u5B83\u533A",430700:"\u5E38\u5FB7\u5E02",430702:"\u6B66\u9675\u533A",430703:"\u9F0E\u57CE\u533A",430721:"\u5B89\u4E61\u53BF",430722:"\u6C49\u5BFF\u53BF",430723:"\u6FA7\u53BF",430724:"\u4E34\u6FA7\u53BF",430725:"\u6843\u6E90\u53BF",430726:"\u77F3\u95E8\u53BF",430781:"\u6D25\u5E02\u5E02",430782:"\u5176\u5B83\u533A",430800:"\u5F20\u5BB6\u754C\u5E02",430802:"\u6C38\u5B9A\u533A",430811:"\u6B66\u9675\u6E90\u533A",430821:"\u6148\u5229\u53BF",430822:"\u6851\u690D\u53BF",430823:"\u5176\u5B83\u533A",430900:"\u76CA\u9633\u5E02",430902:"\u8D44\u9633\u533A",430903:"\u8D6B\u5C71\u533A",430921:"\u5357\u53BF",430922:"\u6843\u6C5F\u53BF",430923:"\u5B89\u5316\u53BF",430981:"\u6C85\u6C5F\u5E02",430982:"\u5176\u5B83\u533A",431e3:"\u90F4\u5DDE\u5E02",431002:"\u5317\u6E56\u533A",431003:"\u82CF\u4ED9\u533A",431021:"\u6842\u9633\u53BF",431022:"\u5B9C\u7AE0\u53BF",431023:"\u6C38\u5174\u53BF",431024:"\u5609\u79BE\u53BF",431025:"\u4E34\u6B66\u53BF",431026:"\u6C5D\u57CE\u53BF",431027:"\u6842\u4E1C\u53BF",431028:"\u5B89\u4EC1\u53BF",431081:"\u8D44\u5174\u5E02",431082:"\u5176\u5B83\u533A",431100:"\u6C38\u5DDE\u5E02",431102:"\u96F6\u9675\u533A",431103:"\u51B7\u6C34\u6EE9\u533A",431121:"\u7941\u9633\u53BF",431122:"\u4E1C\u5B89\u53BF",431123:"\u53CC\u724C\u53BF",431124:"\u9053\u53BF",431125:"\u6C5F\u6C38\u53BF",431126:"\u5B81\u8FDC\u53BF",431127:"\u84DD\u5C71\u53BF",431128:"\u65B0\u7530\u53BF",431129:"\u6C5F\u534E\u7476\u65CF\u81EA\u6CBB\u53BF",431130:"\u5176\u5B83\u533A",431200:"\u6000\u5316\u5E02",431202:"\u9E64\u57CE\u533A",431221:"\u4E2D\u65B9\u53BF",431222:"\u6C85\u9675\u53BF",431223:"\u8FB0\u6EAA\u53BF",431224:"\u6E86\u6D66\u53BF",431225:"\u4F1A\u540C\u53BF",431226:"\u9EBB\u9633\u82D7\u65CF\u81EA\u6CBB\u53BF",431227:"\u65B0\u6643\u4F97\u65CF\u81EA\u6CBB\u53BF",431228:"\u82B7\u6C5F\u4F97\u65CF\u81EA\u6CBB\u53BF",431229:"\u9756\u5DDE\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u53BF",431230:"\u901A\u9053\u4F97\u65CF\u81EA\u6CBB\u53BF",431281:"\u6D2A\u6C5F\u5E02",431282:"\u5176\u5B83\u533A",431300:"\u5A04\u5E95\u5E02",431302:"\u5A04\u661F\u533A",431321:"\u53CC\u5CF0\u53BF",431322:"\u65B0\u5316\u53BF",431381:"\u51B7\u6C34\u6C5F\u5E02",431382:"\u6D9F\u6E90\u5E02",431383:"\u5176\u5B83\u533A",433100:"\u6E58\u897F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",433101:"\u5409\u9996\u5E02",433122:"\u6CF8\u6EAA\u53BF",433123:"\u51E4\u51F0\u53BF",433124:"\u82B1\u57A3\u53BF",433125:"\u4FDD\u9756\u53BF",433126:"\u53E4\u4E08\u53BF",433127:"\u6C38\u987A\u53BF",433130:"\u9F99\u5C71\u53BF",433131:"\u5176\u5B83\u533A",44e4:"\u5E7F\u4E1C\u7701",440100:"\u5E7F\u5DDE\u5E02",440103:"\u8354\u6E7E\u533A",440104:"\u8D8A\u79C0\u533A",440105:"\u6D77\u73E0\u533A",440106:"\u5929\u6CB3\u533A",440111:"\u767D\u4E91\u533A",440112:"\u9EC4\u57D4\u533A",440113:"\u756A\u79BA\u533A",440114:"\u82B1\u90FD\u533A",440115:"\u5357\u6C99\u533A",440116:"\u841D\u5C97\u533A",440183:"\u589E\u57CE\u5E02",440184:"\u4ECE\u5316\u5E02",440189:"\u5176\u5B83\u533A",440200:"\u97F6\u5173\u5E02",440203:"\u6B66\u6C5F\u533A",440204:"\u6D48\u6C5F\u533A",440205:"\u66F2\u6C5F\u533A",440222:"\u59CB\u5174\u53BF",440224:"\u4EC1\u5316\u53BF",440229:"\u7FC1\u6E90\u53BF",440232:"\u4E73\u6E90\u7476\u65CF\u81EA\u6CBB\u53BF",440233:"\u65B0\u4E30\u53BF",440281:"\u4E50\u660C\u5E02",440282:"\u5357\u96C4\u5E02",440283:"\u5176\u5B83\u533A",440300:"\u6DF1\u5733\u5E02",440303:"\u7F57\u6E56\u533A",440304:"\u798F\u7530\u533A",440305:"\u5357\u5C71\u533A",440306:"\u5B9D\u5B89\u533A",440307:"\u9F99\u5C97\u533A",440308:"\u76D0\u7530\u533A",440309:"\u5176\u5B83\u533A",440320:"\u5149\u660E\u65B0\u533A",440321:"\u576A\u5C71\u65B0\u533A",440322:"\u5927\u9E4F\u65B0\u533A",440323:"\u9F99\u534E\u65B0\u533A",440400:"\u73E0\u6D77\u5E02",440402:"\u9999\u6D32\u533A",440403:"\u6597\u95E8\u533A",440404:"\u91D1\u6E7E\u533A",440488:"\u5176\u5B83\u533A",440500:"\u6C55\u5934\u5E02",440507:"\u9F99\u6E56\u533A",440511:"\u91D1\u5E73\u533A",440512:"\u6FE0\u6C5F\u533A",440513:"\u6F6E\u9633\u533A",440514:"\u6F6E\u5357\u533A",440515:"\u6F84\u6D77\u533A",440523:"\u5357\u6FB3\u53BF",440524:"\u5176\u5B83\u533A",440600:"\u4F5B\u5C71\u5E02",440604:"\u7985\u57CE\u533A",440605:"\u5357\u6D77\u533A",440606:"\u987A\u5FB7\u533A",440607:"\u4E09\u6C34\u533A",440608:"\u9AD8\u660E\u533A",440609:"\u5176\u5B83\u533A",440700:"\u6C5F\u95E8\u5E02",440703:"\u84EC\u6C5F\u533A",440704:"\u6C5F\u6D77\u533A",440705:"\u65B0\u4F1A\u533A",440781:"\u53F0\u5C71\u5E02",440783:"\u5F00\u5E73\u5E02",440784:"\u9E64\u5C71\u5E02",440785:"\u6069\u5E73\u5E02",440786:"\u5176\u5B83\u533A",440800:"\u6E5B\u6C5F\u5E02",440802:"\u8D64\u574E\u533A",440803:"\u971E\u5C71\u533A",440804:"\u5761\u5934\u533A",440811:"\u9EBB\u7AE0\u533A",440823:"\u9042\u6EAA\u53BF",440825:"\u5F90\u95FB\u53BF",440881:"\u5EC9\u6C5F\u5E02",440882:"\u96F7\u5DDE\u5E02",440883:"\u5434\u5DDD\u5E02",440884:"\u5176\u5B83\u533A",440900:"\u8302\u540D\u5E02",440902:"\u8302\u5357\u533A",440903:"\u8302\u6E2F\u533A",440923:"\u7535\u767D\u53BF",440981:"\u9AD8\u5DDE\u5E02",440982:"\u5316\u5DDE\u5E02",440983:"\u4FE1\u5B9C\u5E02",440984:"\u5176\u5B83\u533A",441200:"\u8087\u5E86\u5E02",441202:"\u7AEF\u5DDE\u533A",441203:"\u9F0E\u6E56\u533A",441223:"\u5E7F\u5B81\u53BF",441224:"\u6000\u96C6\u53BF",441225:"\u5C01\u5F00\u53BF",441226:"\u5FB7\u5E86\u53BF",441283:"\u9AD8\u8981\u5E02",441284:"\u56DB\u4F1A\u5E02",441285:"\u5176\u5B83\u533A",441300:"\u60E0\u5DDE\u5E02",441302:"\u60E0\u57CE\u533A",441303:"\u60E0\u9633\u533A",441322:"\u535A\u7F57\u53BF",441323:"\u60E0\u4E1C\u53BF",441324:"\u9F99\u95E8\u53BF",441325:"\u5176\u5B83\u533A",441400:"\u6885\u5DDE\u5E02",441402:"\u6885\u6C5F\u533A",441421:"\u6885\u53BF",441422:"\u5927\u57D4\u53BF",441423:"\u4E30\u987A\u53BF",441424:"\u4E94\u534E\u53BF",441426:"\u5E73\u8FDC\u53BF",441427:"\u8549\u5CAD\u53BF",441481:"\u5174\u5B81\u5E02",441482:"\u5176\u5B83\u533A",441500:"\u6C55\u5C3E\u5E02",441502:"\u57CE\u533A",441521:"\u6D77\u4E30\u53BF",441523:"\u9646\u6CB3\u53BF",441581:"\u9646\u4E30\u5E02",441582:"\u5176\u5B83\u533A",441600:"\u6CB3\u6E90\u5E02",441602:"\u6E90\u57CE\u533A",441621:"\u7D2B\u91D1\u53BF",441622:"\u9F99\u5DDD\u53BF",441623:"\u8FDE\u5E73\u53BF",441624:"\u548C\u5E73\u53BF",441625:"\u4E1C\u6E90\u53BF",441626:"\u5176\u5B83\u533A",441700:"\u9633\u6C5F\u5E02",441702:"\u6C5F\u57CE\u533A",441721:"\u9633\u897F\u53BF",441723:"\u9633\u4E1C\u53BF",441781:"\u9633\u6625\u5E02",441782:"\u5176\u5B83\u533A",441800:"\u6E05\u8FDC\u5E02",441802:"\u6E05\u57CE\u533A",441821:"\u4F5B\u5188\u53BF",441823:"\u9633\u5C71\u53BF",441825:"\u8FDE\u5C71\u58EE\u65CF\u7476\u65CF\u81EA\u6CBB\u53BF",441826:"\u8FDE\u5357\u7476\u65CF\u81EA\u6CBB\u53BF",441827:"\u6E05\u65B0\u533A",441881:"\u82F1\u5FB7\u5E02",441882:"\u8FDE\u5DDE\u5E02",441883:"\u5176\u5B83\u533A",441900:"\u4E1C\u839E\u5E02",442e3:"\u4E2D\u5C71\u5E02",442101:"\u4E1C\u6C99\u7FA4\u5C9B",445100:"\u6F6E\u5DDE\u5E02",445102:"\u6E58\u6865\u533A",445121:"\u6F6E\u5B89\u533A",445122:"\u9976\u5E73\u53BF",445186:"\u5176\u5B83\u533A",445200:"\u63ED\u9633\u5E02",445202:"\u6995\u57CE\u533A",445221:"\u63ED\u4E1C\u533A",445222:"\u63ED\u897F\u53BF",445224:"\u60E0\u6765\u53BF",445281:"\u666E\u5B81\u5E02",445285:"\u5176\u5B83\u533A",445300:"\u4E91\u6D6E\u5E02",445302:"\u4E91\u57CE\u533A",445321:"\u65B0\u5174\u53BF",445322:"\u90C1\u5357\u53BF",445323:"\u4E91\u5B89\u53BF",445381:"\u7F57\u5B9A\u5E02",445382:"\u5176\u5B83\u533A",45e4:"\u5E7F\u897F\u58EE\u65CF\u81EA\u6CBB\u533A",450100:"\u5357\u5B81\u5E02",450102:"\u5174\u5B81\u533A",450103:"\u9752\u79C0\u533A",450105:"\u6C5F\u5357\u533A",450107:"\u897F\u4E61\u5858\u533A",450108:"\u826F\u5E86\u533A",450109:"\u9095\u5B81\u533A",450122:"\u6B66\u9E23\u53BF",450123:"\u9686\u5B89\u53BF",450124:"\u9A6C\u5C71\u53BF",450125:"\u4E0A\u6797\u53BF",450126:"\u5BBE\u9633\u53BF",450127:"\u6A2A\u53BF",450128:"\u5176\u5B83\u533A",450200:"\u67F3\u5DDE\u5E02",450202:"\u57CE\u4E2D\u533A",450203:"\u9C7C\u5CF0\u533A",450204:"\u67F3\u5357\u533A",450205:"\u67F3\u5317\u533A",450221:"\u67F3\u6C5F\u53BF",450222:"\u67F3\u57CE\u53BF",450223:"\u9E7F\u5BE8\u53BF",450224:"\u878D\u5B89\u53BF",450225:"\u878D\u6C34\u82D7\u65CF\u81EA\u6CBB\u53BF",450226:"\u4E09\u6C5F\u4F97\u65CF\u81EA\u6CBB\u53BF",450227:"\u5176\u5B83\u533A",450300:"\u6842\u6797\u5E02",450302:"\u79C0\u5CF0\u533A",450303:"\u53E0\u5F69\u533A",450304:"\u8C61\u5C71\u533A",450305:"\u4E03\u661F\u533A",450311:"\u96C1\u5C71\u533A",450321:"\u9633\u6714\u53BF",450322:"\u4E34\u6842\u533A",450323:"\u7075\u5DDD\u53BF",450324:"\u5168\u5DDE\u53BF",450325:"\u5174\u5B89\u53BF",450326:"\u6C38\u798F\u53BF",450327:"\u704C\u9633\u53BF",450328:"\u9F99\u80DC\u5404\u65CF\u81EA\u6CBB\u53BF",450329:"\u8D44\u6E90\u53BF",450330:"\u5E73\u4E50\u53BF",450331:"\u8354\u6D66\u53BF",450332:"\u606D\u57CE\u7476\u65CF\u81EA\u6CBB\u53BF",450333:"\u5176\u5B83\u533A",450400:"\u68A7\u5DDE\u5E02",450403:"\u4E07\u79C0\u533A",450405:"\u957F\u6D32\u533A",450406:"\u9F99\u5729\u533A",450421:"\u82CD\u68A7\u53BF",450422:"\u85E4\u53BF",450423:"\u8499\u5C71\u53BF",450481:"\u5C91\u6EAA\u5E02",450482:"\u5176\u5B83\u533A",450500:"\u5317\u6D77\u5E02",450502:"\u6D77\u57CE\u533A",450503:"\u94F6\u6D77\u533A",450512:"\u94C1\u5C71\u6E2F\u533A",450521:"\u5408\u6D66\u53BF",450522:"\u5176\u5B83\u533A",450600:"\u9632\u57CE\u6E2F\u5E02",450602:"\u6E2F\u53E3\u533A",450603:"\u9632\u57CE\u533A",450621:"\u4E0A\u601D\u53BF",450681:"\u4E1C\u5174\u5E02",450682:"\u5176\u5B83\u533A",450700:"\u94A6\u5DDE\u5E02",450702:"\u94A6\u5357\u533A",450703:"\u94A6\u5317\u533A",450721:"\u7075\u5C71\u53BF",450722:"\u6D66\u5317\u53BF",450723:"\u5176\u5B83\u533A",450800:"\u8D35\u6E2F\u5E02",450802:"\u6E2F\u5317\u533A",450803:"\u6E2F\u5357\u533A",450804:"\u8983\u5858\u533A",450821:"\u5E73\u5357\u53BF",450881:"\u6842\u5E73\u5E02",450882:"\u5176\u5B83\u533A",450900:"\u7389\u6797\u5E02",450902:"\u7389\u5DDE\u533A",450903:"\u798F\u7EF5\u533A",450921:"\u5BB9\u53BF",450922:"\u9646\u5DDD\u53BF",450923:"\u535A\u767D\u53BF",450924:"\u5174\u4E1A\u53BF",450981:"\u5317\u6D41\u5E02",450982:"\u5176\u5B83\u533A",451e3:"\u767E\u8272\u5E02",451002:"\u53F3\u6C5F\u533A",451021:"\u7530\u9633\u53BF",451022:"\u7530\u4E1C\u53BF",451023:"\u5E73\u679C\u53BF",451024:"\u5FB7\u4FDD\u53BF",451025:"\u9756\u897F\u53BF",451026:"\u90A3\u5761\u53BF",451027:"\u51CC\u4E91\u53BF",451028:"\u4E50\u4E1A\u53BF",451029:"\u7530\u6797\u53BF",451030:"\u897F\u6797\u53BF",451031:"\u9686\u6797\u5404\u65CF\u81EA\u6CBB\u53BF",451032:"\u5176\u5B83\u533A",451100:"\u8D3A\u5DDE\u5E02",451102:"\u516B\u6B65\u533A",451119:"\u5E73\u6842\u7BA1\u7406\u533A",451121:"\u662D\u5E73\u53BF",451122:"\u949F\u5C71\u53BF",451123:"\u5BCC\u5DDD\u7476\u65CF\u81EA\u6CBB\u53BF",451124:"\u5176\u5B83\u533A",451200:"\u6CB3\u6C60\u5E02",451202:"\u91D1\u57CE\u6C5F\u533A",451221:"\u5357\u4E39\u53BF",451222:"\u5929\u5CE8\u53BF",451223:"\u51E4\u5C71\u53BF",451224:"\u4E1C\u5170\u53BF",451225:"\u7F57\u57CE\u4EEB\u4F6C\u65CF\u81EA\u6CBB\u53BF",451226:"\u73AF\u6C5F\u6BDB\u5357\u65CF\u81EA\u6CBB\u53BF",451227:"\u5DF4\u9A6C\u7476\u65CF\u81EA\u6CBB\u53BF",451228:"\u90FD\u5B89\u7476\u65CF\u81EA\u6CBB\u53BF",451229:"\u5927\u5316\u7476\u65CF\u81EA\u6CBB\u53BF",451281:"\u5B9C\u5DDE\u5E02",451282:"\u5176\u5B83\u533A",451300:"\u6765\u5BBE\u5E02",451302:"\u5174\u5BBE\u533A",451321:"\u5FFB\u57CE\u53BF",451322:"\u8C61\u5DDE\u53BF",451323:"\u6B66\u5BA3\u53BF",451324:"\u91D1\u79C0\u7476\u65CF\u81EA\u6CBB\u53BF",451381:"\u5408\u5C71\u5E02",451382:"\u5176\u5B83\u533A",451400:"\u5D07\u5DE6\u5E02",451402:"\u6C5F\u5DDE\u533A",451421:"\u6276\u7EE5\u53BF",451422:"\u5B81\u660E\u53BF",451423:"\u9F99\u5DDE\u53BF",451424:"\u5927\u65B0\u53BF",451425:"\u5929\u7B49\u53BF",451481:"\u51ED\u7965\u5E02",451482:"\u5176\u5B83\u533A",46e4:"\u6D77\u5357\u7701",460100:"\u6D77\u53E3\u5E02",460105:"\u79C0\u82F1\u533A",460106:"\u9F99\u534E\u533A",460107:"\u743C\u5C71\u533A",460108:"\u7F8E\u5170\u533A",460109:"\u5176\u5B83\u533A",460200:"\u4E09\u4E9A\u5E02",460300:"\u4E09\u6C99\u5E02",460321:"\u897F\u6C99\u7FA4\u5C9B",460322:"\u5357\u6C99\u7FA4\u5C9B",460323:"\u4E2D\u6C99\u7FA4\u5C9B\u7684\u5C9B\u7901\u53CA\u5176\u6D77\u57DF",469001:"\u4E94\u6307\u5C71\u5E02",469002:"\u743C\u6D77\u5E02",469003:"\u510B\u5DDE\u5E02",469005:"\u6587\u660C\u5E02",469006:"\u4E07\u5B81\u5E02",469007:"\u4E1C\u65B9\u5E02",469025:"\u5B9A\u5B89\u53BF",469026:"\u5C6F\u660C\u53BF",469027:"\u6F84\u8FC8\u53BF",469028:"\u4E34\u9AD8\u53BF",469030:"\u767D\u6C99\u9ECE\u65CF\u81EA\u6CBB\u53BF",469031:"\u660C\u6C5F\u9ECE\u65CF\u81EA\u6CBB\u53BF",469033:"\u4E50\u4E1C\u9ECE\u65CF\u81EA\u6CBB\u53BF",469034:"\u9675\u6C34\u9ECE\u65CF\u81EA\u6CBB\u53BF",469035:"\u4FDD\u4EAD\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",469036:"\u743C\u4E2D\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",471005:"\u5176\u5B83\u533A",5e5:"\u91CD\u5E86",500100:"\u91CD\u5E86\u5E02",500101:"\u4E07\u5DDE\u533A",500102:"\u6DAA\u9675\u533A",500103:"\u6E1D\u4E2D\u533A",500104:"\u5927\u6E21\u53E3\u533A",500105:"\u6C5F\u5317\u533A",500106:"\u6C99\u576A\u575D\u533A",500107:"\u4E5D\u9F99\u5761\u533A",500108:"\u5357\u5CB8\u533A",500109:"\u5317\u789A\u533A",500110:"\u4E07\u76DB\u533A",500111:"\u53CC\u6865\u533A",500112:"\u6E1D\u5317\u533A",500113:"\u5DF4\u5357\u533A",500114:"\u9ED4\u6C5F\u533A",500115:"\u957F\u5BFF\u533A",500222:"\u7DA6\u6C5F\u533A",500223:"\u6F7C\u5357\u53BF",500224:"\u94DC\u6881\u53BF",500225:"\u5927\u8DB3\u533A",500226:"\u8363\u660C\u53BF",500227:"\u74A7\u5C71\u53BF",500228:"\u6881\u5E73\u53BF",500229:"\u57CE\u53E3\u53BF",500230:"\u4E30\u90FD\u53BF",500231:"\u57AB\u6C5F\u53BF",500232:"\u6B66\u9686\u53BF",500233:"\u5FE0\u53BF",500234:"\u5F00\u53BF",500235:"\u4E91\u9633\u53BF",500236:"\u5949\u8282\u53BF",500237:"\u5DEB\u5C71\u53BF",500238:"\u5DEB\u6EAA\u53BF",500240:"\u77F3\u67F1\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",500241:"\u79C0\u5C71\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",500242:"\u9149\u9633\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",500243:"\u5F6D\u6C34\u82D7\u65CF\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",500381:"\u6C5F\u6D25\u533A",500382:"\u5408\u5DDD\u533A",500383:"\u6C38\u5DDD\u533A",500384:"\u5357\u5DDD\u533A",500385:"\u5176\u5B83\u533A",51e4:"\u56DB\u5DDD\u7701",510100:"\u6210\u90FD\u5E02",510104:"\u9526\u6C5F\u533A",510105:"\u9752\u7F8A\u533A",510106:"\u91D1\u725B\u533A",510107:"\u6B66\u4FAF\u533A",510108:"\u6210\u534E\u533A",510112:"\u9F99\u6CC9\u9A7F\u533A",510113:"\u9752\u767D\u6C5F\u533A",510114:"\u65B0\u90FD\u533A",510115:"\u6E29\u6C5F\u533A",510121:"\u91D1\u5802\u53BF",510122:"\u53CC\u6D41\u53BF",510124:"\u90EB\u53BF",510129:"\u5927\u9091\u53BF",510131:"\u84B2\u6C5F\u53BF",510132:"\u65B0\u6D25\u53BF",510181:"\u90FD\u6C5F\u5830\u5E02",510182:"\u5F6D\u5DDE\u5E02",510183:"\u909B\u5D03\u5E02",510184:"\u5D07\u5DDE\u5E02",510185:"\u5176\u5B83\u533A",510300:"\u81EA\u8D21\u5E02",510302:"\u81EA\u6D41\u4E95\u533A",510303:"\u8D21\u4E95\u533A",510304:"\u5927\u5B89\u533A",510311:"\u6CBF\u6EE9\u533A",510321:"\u8363\u53BF",510322:"\u5BCC\u987A\u53BF",510323:"\u5176\u5B83\u533A",510400:"\u6500\u679D\u82B1\u5E02",510402:"\u4E1C\u533A",510403:"\u897F\u533A",510411:"\u4EC1\u548C\u533A",510421:"\u7C73\u6613\u53BF",510422:"\u76D0\u8FB9\u53BF",510423:"\u5176\u5B83\u533A",510500:"\u6CF8\u5DDE\u5E02",510502:"\u6C5F\u9633\u533A",510503:"\u7EB3\u6EAA\u533A",510504:"\u9F99\u9A6C\u6F6D\u533A",510521:"\u6CF8\u53BF",510522:"\u5408\u6C5F\u53BF",510524:"\u53D9\u6C38\u53BF",510525:"\u53E4\u853A\u53BF",510526:"\u5176\u5B83\u533A",510600:"\u5FB7\u9633\u5E02",510603:"\u65CC\u9633\u533A",510623:"\u4E2D\u6C5F\u53BF",510626:"\u7F57\u6C5F\u53BF",510681:"\u5E7F\u6C49\u5E02",510682:"\u4EC0\u90A1\u5E02",510683:"\u7EF5\u7AF9\u5E02",510684:"\u5176\u5B83\u533A",510700:"\u7EF5\u9633\u5E02",510703:"\u6DAA\u57CE\u533A",510704:"\u6E38\u4ED9\u533A",510722:"\u4E09\u53F0\u53BF",510723:"\u76D0\u4EAD\u53BF",510724:"\u5B89\u53BF",510725:"\u6893\u6F7C\u53BF",510726:"\u5317\u5DDD\u7F8C\u65CF\u81EA\u6CBB\u53BF",510727:"\u5E73\u6B66\u53BF",510781:"\u6C5F\u6CB9\u5E02",510782:"\u5176\u5B83\u533A",510800:"\u5E7F\u5143\u5E02",510802:"\u5229\u5DDE\u533A",510811:"\u662D\u5316\u533A",510812:"\u671D\u5929\u533A",510821:"\u65FA\u82CD\u53BF",510822:"\u9752\u5DDD\u53BF",510823:"\u5251\u9601\u53BF",510824:"\u82CD\u6EAA\u53BF",510825:"\u5176\u5B83\u533A",510900:"\u9042\u5B81\u5E02",510903:"\u8239\u5C71\u533A",510904:"\u5B89\u5C45\u533A",510921:"\u84EC\u6EAA\u53BF",510922:"\u5C04\u6D2A\u53BF",510923:"\u5927\u82F1\u53BF",510924:"\u5176\u5B83\u533A",511e3:"\u5185\u6C5F\u5E02",511002:"\u5E02\u4E2D\u533A",511011:"\u4E1C\u5174\u533A",511024:"\u5A01\u8FDC\u53BF",511025:"\u8D44\u4E2D\u53BF",511028:"\u9686\u660C\u53BF",511029:"\u5176\u5B83\u533A",511100:"\u4E50\u5C71\u5E02",511102:"\u5E02\u4E2D\u533A",511111:"\u6C99\u6E7E\u533A",511112:"\u4E94\u901A\u6865\u533A",511113:"\u91D1\u53E3\u6CB3\u533A",511123:"\u728D\u4E3A\u53BF",511124:"\u4E95\u7814\u53BF",511126:"\u5939\u6C5F\u53BF",511129:"\u6C90\u5DDD\u53BF",511132:"\u5CE8\u8FB9\u5F5D\u65CF\u81EA\u6CBB\u53BF",511133:"\u9A6C\u8FB9\u5F5D\u65CF\u81EA\u6CBB\u53BF",511181:"\u5CE8\u7709\u5C71\u5E02",511182:"\u5176\u5B83\u533A",511300:"\u5357\u5145\u5E02",511302:"\u987A\u5E86\u533A",511303:"\u9AD8\u576A\u533A",511304:"\u5609\u9675\u533A",511321:"\u5357\u90E8\u53BF",511322:"\u8425\u5C71\u53BF",511323:"\u84EC\u5B89\u53BF",511324:"\u4EEA\u9647\u53BF",511325:"\u897F\u5145\u53BF",511381:"\u9606\u4E2D\u5E02",511382:"\u5176\u5B83\u533A",511400:"\u7709\u5C71\u5E02",511402:"\u4E1C\u5761\u533A",511421:"\u4EC1\u5BFF\u53BF",511422:"\u5F6D\u5C71\u53BF",511423:"\u6D2A\u96C5\u53BF",511424:"\u4E39\u68F1\u53BF",511425:"\u9752\u795E\u53BF",511426:"\u5176\u5B83\u533A",511500:"\u5B9C\u5BBE\u5E02",511502:"\u7FE0\u5C4F\u533A",511521:"\u5B9C\u5BBE\u53BF",511522:"\u5357\u6EAA\u533A",511523:"\u6C5F\u5B89\u53BF",511524:"\u957F\u5B81\u53BF",511525:"\u9AD8\u53BF",511526:"\u73D9\u53BF",511527:"\u7B60\u8FDE\u53BF",511528:"\u5174\u6587\u53BF",511529:"\u5C4F\u5C71\u53BF",511530:"\u5176\u5B83\u533A",511600:"\u5E7F\u5B89\u5E02",511602:"\u5E7F\u5B89\u533A",511603:"\u524D\u950B\u533A",511621:"\u5CB3\u6C60\u53BF",511622:"\u6B66\u80DC\u53BF",511623:"\u90BB\u6C34\u53BF",511681:"\u534E\u84E5\u5E02",511683:"\u5176\u5B83\u533A",511700:"\u8FBE\u5DDE\u5E02",511702:"\u901A\u5DDD\u533A",511721:"\u8FBE\u5DDD\u533A",511722:"\u5BA3\u6C49\u53BF",511723:"\u5F00\u6C5F\u53BF",511724:"\u5927\u7AF9\u53BF",511725:"\u6E20\u53BF",511781:"\u4E07\u6E90\u5E02",511782:"\u5176\u5B83\u533A",511800:"\u96C5\u5B89\u5E02",511802:"\u96E8\u57CE\u533A",511821:"\u540D\u5C71\u533A",511822:"\u8365\u7ECF\u53BF",511823:"\u6C49\u6E90\u53BF",511824:"\u77F3\u68C9\u53BF",511825:"\u5929\u5168\u53BF",511826:"\u82A6\u5C71\u53BF",511827:"\u5B9D\u5174\u53BF",511828:"\u5176\u5B83\u533A",511900:"\u5DF4\u4E2D\u5E02",511902:"\u5DF4\u5DDE\u533A",511903:"\u6069\u9633\u533A",511921:"\u901A\u6C5F\u53BF",511922:"\u5357\u6C5F\u53BF",511923:"\u5E73\u660C\u53BF",511924:"\u5176\u5B83\u533A",512e3:"\u8D44\u9633\u5E02",512002:"\u96C1\u6C5F\u533A",512021:"\u5B89\u5CB3\u53BF",512022:"\u4E50\u81F3\u53BF",512081:"\u7B80\u9633\u5E02",512082:"\u5176\u5B83\u533A",513200:"\u963F\u575D\u85CF\u65CF\u7F8C\u65CF\u81EA\u6CBB\u5DDE",513221:"\u6C76\u5DDD\u53BF",513222:"\u7406\u53BF",513223:"\u8302\u53BF",513224:"\u677E\u6F58\u53BF",513225:"\u4E5D\u5BE8\u6C9F\u53BF",513226:"\u91D1\u5DDD\u53BF",513227:"\u5C0F\u91D1\u53BF",513228:"\u9ED1\u6C34\u53BF",513229:"\u9A6C\u5C14\u5EB7\u53BF",513230:"\u58E4\u5858\u53BF",513231:"\u963F\u575D\u53BF",513232:"\u82E5\u5C14\u76D6\u53BF",513233:"\u7EA2\u539F\u53BF",513234:"\u5176\u5B83\u533A",513300:"\u7518\u5B5C\u85CF\u65CF\u81EA\u6CBB\u5DDE",513321:"\u5EB7\u5B9A\u53BF",513322:"\u6CF8\u5B9A\u53BF",513323:"\u4E39\u5DF4\u53BF",513324:"\u4E5D\u9F99\u53BF",513325:"\u96C5\u6C5F\u53BF",513326:"\u9053\u5B5A\u53BF",513327:"\u7089\u970D\u53BF",513328:"\u7518\u5B5C\u53BF",513329:"\u65B0\u9F99\u53BF",513330:"\u5FB7\u683C\u53BF",513331:"\u767D\u7389\u53BF",513332:"\u77F3\u6E20\u53BF",513333:"\u8272\u8FBE\u53BF",513334:"\u7406\u5858\u53BF",513335:"\u5DF4\u5858\u53BF",513336:"\u4E61\u57CE\u53BF",513337:"\u7A3B\u57CE\u53BF",513338:"\u5F97\u8363\u53BF",513339:"\u5176\u5B83\u533A",513400:"\u51C9\u5C71\u5F5D\u65CF\u81EA\u6CBB\u5DDE",513401:"\u897F\u660C\u5E02",513422:"\u6728\u91CC\u85CF\u65CF\u81EA\u6CBB\u53BF",513423:"\u76D0\u6E90\u53BF",513424:"\u5FB7\u660C\u53BF",513425:"\u4F1A\u7406\u53BF",513426:"\u4F1A\u4E1C\u53BF",513427:"\u5B81\u5357\u53BF",513428:"\u666E\u683C\u53BF",513429:"\u5E03\u62D6\u53BF",513430:"\u91D1\u9633\u53BF",513431:"\u662D\u89C9\u53BF",513432:"\u559C\u5FB7\u53BF",513433:"\u5195\u5B81\u53BF",513434:"\u8D8A\u897F\u53BF",513435:"\u7518\u6D1B\u53BF",513436:"\u7F8E\u59D1\u53BF",513437:"\u96F7\u6CE2\u53BF",513438:"\u5176\u5B83\u533A",52e4:"\u8D35\u5DDE\u7701",520100:"\u8D35\u9633\u5E02",520102:"\u5357\u660E\u533A",520103:"\u4E91\u5CA9\u533A",520111:"\u82B1\u6EAA\u533A",520112:"\u4E4C\u5F53\u533A",520113:"\u767D\u4E91\u533A",520121:"\u5F00\u9633\u53BF",520122:"\u606F\u70FD\u53BF",520123:"\u4FEE\u6587\u53BF",520151:"\u89C2\u5C71\u6E56\u533A",520181:"\u6E05\u9547\u5E02",520182:"\u5176\u5B83\u533A",520200:"\u516D\u76D8\u6C34\u5E02",520201:"\u949F\u5C71\u533A",520203:"\u516D\u679D\u7279\u533A",520221:"\u6C34\u57CE\u53BF",520222:"\u76D8\u53BF",520223:"\u5176\u5B83\u533A",520300:"\u9075\u4E49\u5E02",520302:"\u7EA2\u82B1\u5C97\u533A",520303:"\u6C47\u5DDD\u533A",520321:"\u9075\u4E49\u53BF",520322:"\u6850\u6893\u53BF",520323:"\u7EE5\u9633\u53BF",520324:"\u6B63\u5B89\u53BF",520325:"\u9053\u771F\u4EE1\u4F6C\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520326:"\u52A1\u5DDD\u4EE1\u4F6C\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520327:"\u51E4\u5188\u53BF",520328:"\u6E44\u6F6D\u53BF",520329:"\u4F59\u5E86\u53BF",520330:"\u4E60\u6C34\u53BF",520381:"\u8D64\u6C34\u5E02",520382:"\u4EC1\u6000\u5E02",520383:"\u5176\u5B83\u533A",520400:"\u5B89\u987A\u5E02",520402:"\u897F\u79C0\u533A",520421:"\u5E73\u575D\u53BF",520422:"\u666E\u5B9A\u53BF",520423:"\u9547\u5B81\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520424:"\u5173\u5CAD\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520425:"\u7D2B\u4E91\u82D7\u65CF\u5E03\u4F9D\u65CF\u81EA\u6CBB\u53BF",520426:"\u5176\u5B83\u533A",522200:"\u94DC\u4EC1\u5E02",522201:"\u78A7\u6C5F\u533A",522222:"\u6C5F\u53E3\u53BF",522223:"\u7389\u5C4F\u4F97\u65CF\u81EA\u6CBB\u53BF",522224:"\u77F3\u9621\u53BF",522225:"\u601D\u5357\u53BF",522226:"\u5370\u6C5F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",522227:"\u5FB7\u6C5F\u53BF",522228:"\u6CBF\u6CB3\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",522229:"\u677E\u6843\u82D7\u65CF\u81EA\u6CBB\u53BF",522230:"\u4E07\u5C71\u533A",522231:"\u5176\u5B83\u533A",522300:"\u9ED4\u897F\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",522301:"\u5174\u4E49\u5E02",522322:"\u5174\u4EC1\u53BF",522323:"\u666E\u5B89\u53BF",522324:"\u6674\u9686\u53BF",522325:"\u8D1E\u4E30\u53BF",522326:"\u671B\u8C1F\u53BF",522327:"\u518C\u4EA8\u53BF",522328:"\u5B89\u9F99\u53BF",522329:"\u5176\u5B83\u533A",522400:"\u6BD5\u8282\u5E02",522401:"\u4E03\u661F\u5173\u533A",522422:"\u5927\u65B9\u53BF",522423:"\u9ED4\u897F\u53BF",522424:"\u91D1\u6C99\u53BF",522425:"\u7EC7\u91D1\u53BF",522426:"\u7EB3\u96CD\u53BF",522427:"\u5A01\u5B81\u5F5D\u65CF\u56DE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",522428:"\u8D6B\u7AE0\u53BF",522429:"\u5176\u5B83\u533A",522600:"\u9ED4\u4E1C\u5357\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u5DDE",522601:"\u51EF\u91CC\u5E02",522622:"\u9EC4\u5E73\u53BF",522623:"\u65BD\u79C9\u53BF",522624:"\u4E09\u7A57\u53BF",522625:"\u9547\u8FDC\u53BF",522626:"\u5C91\u5DE9\u53BF",522627:"\u5929\u67F1\u53BF",522628:"\u9526\u5C4F\u53BF",522629:"\u5251\u6CB3\u53BF",522630:"\u53F0\u6C5F\u53BF",522631:"\u9ECE\u5E73\u53BF",522632:"\u6995\u6C5F\u53BF",522633:"\u4ECE\u6C5F\u53BF",522634:"\u96F7\u5C71\u53BF",522635:"\u9EBB\u6C5F\u53BF",522636:"\u4E39\u5BE8\u53BF",522637:"\u5176\u5B83\u533A",522700:"\u9ED4\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",522701:"\u90FD\u5300\u5E02",522702:"\u798F\u6CC9\u5E02",522722:"\u8354\u6CE2\u53BF",522723:"\u8D35\u5B9A\u53BF",522725:"\u74EE\u5B89\u53BF",522726:"\u72EC\u5C71\u53BF",522727:"\u5E73\u5858\u53BF",522728:"\u7F57\u7538\u53BF",522729:"\u957F\u987A\u53BF",522730:"\u9F99\u91CC\u53BF",522731:"\u60E0\u6C34\u53BF",522732:"\u4E09\u90FD\u6C34\u65CF\u81EA\u6CBB\u53BF",522733:"\u5176\u5B83\u533A",53e4:"\u4E91\u5357\u7701",530100:"\u6606\u660E\u5E02",530102:"\u4E94\u534E\u533A",530103:"\u76D8\u9F99\u533A",530111:"\u5B98\u6E21\u533A",530112:"\u897F\u5C71\u533A",530113:"\u4E1C\u5DDD\u533A",530121:"\u5448\u8D21\u533A",530122:"\u664B\u5B81\u53BF",530124:"\u5BCC\u6C11\u53BF",530125:"\u5B9C\u826F\u53BF",530126:"\u77F3\u6797\u5F5D\u65CF\u81EA\u6CBB\u53BF",530127:"\u5D69\u660E\u53BF",530128:"\u7984\u529D\u5F5D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",530129:"\u5BFB\u7538\u56DE\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530181:"\u5B89\u5B81\u5E02",530182:"\u5176\u5B83\u533A",530300:"\u66F2\u9756\u5E02",530302:"\u9E92\u9E9F\u533A",530321:"\u9A6C\u9F99\u53BF",530322:"\u9646\u826F\u53BF",530323:"\u5E08\u5B97\u53BF",530324:"\u7F57\u5E73\u53BF",530325:"\u5BCC\u6E90\u53BF",530326:"\u4F1A\u6CFD\u53BF",530328:"\u6CBE\u76CA\u53BF",530381:"\u5BA3\u5A01\u5E02",530382:"\u5176\u5B83\u533A",530400:"\u7389\u6EAA\u5E02",530402:"\u7EA2\u5854\u533A",530421:"\u6C5F\u5DDD\u53BF",530422:"\u6F84\u6C5F\u53BF",530423:"\u901A\u6D77\u53BF",530424:"\u534E\u5B81\u53BF",530425:"\u6613\u95E8\u53BF",530426:"\u5CE8\u5C71\u5F5D\u65CF\u81EA\u6CBB\u53BF",530427:"\u65B0\u5E73\u5F5D\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530428:"\u5143\u6C5F\u54C8\u5C3C\u65CF\u5F5D\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530429:"\u5176\u5B83\u533A",530500:"\u4FDD\u5C71\u5E02",530502:"\u9686\u9633\u533A",530521:"\u65BD\u7538\u53BF",530522:"\u817E\u51B2\u53BF",530523:"\u9F99\u9675\u53BF",530524:"\u660C\u5B81\u53BF",530525:"\u5176\u5B83\u533A",530600:"\u662D\u901A\u5E02",530602:"\u662D\u9633\u533A",530621:"\u9C81\u7538\u53BF",530622:"\u5DE7\u5BB6\u53BF",530623:"\u76D0\u6D25\u53BF",530624:"\u5927\u5173\u53BF",530625:"\u6C38\u5584\u53BF",530626:"\u7EE5\u6C5F\u53BF",530627:"\u9547\u96C4\u53BF",530628:"\u5F5D\u826F\u53BF",530629:"\u5A01\u4FE1\u53BF",530630:"\u6C34\u5BCC\u53BF",530631:"\u5176\u5B83\u533A",530700:"\u4E3D\u6C5F\u5E02",530702:"\u53E4\u57CE\u533A",530721:"\u7389\u9F99\u7EB3\u897F\u65CF\u81EA\u6CBB\u53BF",530722:"\u6C38\u80DC\u53BF",530723:"\u534E\u576A\u53BF",530724:"\u5B81\u8497\u5F5D\u65CF\u81EA\u6CBB\u53BF",530725:"\u5176\u5B83\u533A",530800:"\u666E\u6D31\u5E02",530802:"\u601D\u8305\u533A",530821:"\u5B81\u6D31\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530822:"\u58A8\u6C5F\u54C8\u5C3C\u65CF\u81EA\u6CBB\u53BF",530823:"\u666F\u4E1C\u5F5D\u65CF\u81EA\u6CBB\u53BF",530824:"\u666F\u8C37\u50A3\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530825:"\u9547\u6C85\u5F5D\u65CF\u54C8\u5C3C\u65CF\u62C9\u795C\u65CF\u81EA\u6CBB\u53BF",530826:"\u6C5F\u57CE\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530827:"\u5B5F\u8FDE\u50A3\u65CF\u62C9\u795C\u65CF\u4F64\u65CF\u81EA\u6CBB\u53BF",530828:"\u6F9C\u6CA7\u62C9\u795C\u65CF\u81EA\u6CBB\u53BF",530829:"\u897F\u76DF\u4F64\u65CF\u81EA\u6CBB\u53BF",530830:"\u5176\u5B83\u533A",530900:"\u4E34\u6CA7\u5E02",530902:"\u4E34\u7FD4\u533A",530921:"\u51E4\u5E86\u53BF",530922:"\u4E91\u53BF",530923:"\u6C38\u5FB7\u53BF",530924:"\u9547\u5EB7\u53BF",530925:"\u53CC\u6C5F\u62C9\u795C\u65CF\u4F64\u65CF\u5E03\u6717\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530926:"\u803F\u9A6C\u50A3\u65CF\u4F64\u65CF\u81EA\u6CBB\u53BF",530927:"\u6CA7\u6E90\u4F64\u65CF\u81EA\u6CBB\u53BF",530928:"\u5176\u5B83\u533A",532300:"\u695A\u96C4\u5F5D\u65CF\u81EA\u6CBB\u5DDE",532301:"\u695A\u96C4\u5E02",532322:"\u53CC\u67CF\u53BF",532323:"\u725F\u5B9A\u53BF",532324:"\u5357\u534E\u53BF",532325:"\u59DA\u5B89\u53BF",532326:"\u5927\u59DA\u53BF",532327:"\u6C38\u4EC1\u53BF",532328:"\u5143\u8C0B\u53BF",532329:"\u6B66\u5B9A\u53BF",532331:"\u7984\u4E30\u53BF",532332:"\u5176\u5B83\u533A",532500:"\u7EA2\u6CB3\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u5DDE",532501:"\u4E2A\u65E7\u5E02",532502:"\u5F00\u8FDC\u5E02",532522:"\u8499\u81EA\u5E02",532523:"\u5C4F\u8FB9\u82D7\u65CF\u81EA\u6CBB\u53BF",532524:"\u5EFA\u6C34\u53BF",532525:"\u77F3\u5C4F\u53BF",532526:"\u5F25\u52D2\u5E02",532527:"\u6CF8\u897F\u53BF",532528:"\u5143\u9633\u53BF",532529:"\u7EA2\u6CB3\u53BF",532530:"\u91D1\u5E73\u82D7\u65CF\u7476\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",532531:"\u7EFF\u6625\u53BF",532532:"\u6CB3\u53E3\u7476\u65CF\u81EA\u6CBB\u53BF",532533:"\u5176\u5B83\u533A",532600:"\u6587\u5C71\u58EE\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",532621:"\u6587\u5C71\u5E02",532622:"\u781A\u5C71\u53BF",532623:"\u897F\u7574\u53BF",532624:"\u9EBB\u6817\u5761\u53BF",532625:"\u9A6C\u5173\u53BF",532626:"\u4E18\u5317\u53BF",532627:"\u5E7F\u5357\u53BF",532628:"\u5BCC\u5B81\u53BF",532629:"\u5176\u5B83\u533A",532800:"\u897F\u53CC\u7248\u7EB3\u50A3\u65CF\u81EA\u6CBB\u5DDE",532801:"\u666F\u6D2A\u5E02",532822:"\u52D0\u6D77\u53BF",532823:"\u52D0\u814A\u53BF",532824:"\u5176\u5B83\u533A",532900:"\u5927\u7406\u767D\u65CF\u81EA\u6CBB\u5DDE",532901:"\u5927\u7406\u5E02",532922:"\u6F3E\u6FDE\u5F5D\u65CF\u81EA\u6CBB\u53BF",532923:"\u7965\u4E91\u53BF",532924:"\u5BBE\u5DDD\u53BF",532925:"\u5F25\u6E21\u53BF",532926:"\u5357\u6DA7\u5F5D\u65CF\u81EA\u6CBB\u53BF",532927:"\u5DCD\u5C71\u5F5D\u65CF\u56DE\u65CF\u81EA\u6CBB\u53BF",532928:"\u6C38\u5E73\u53BF",532929:"\u4E91\u9F99\u53BF",532930:"\u6D31\u6E90\u53BF",532931:"\u5251\u5DDD\u53BF",532932:"\u9E64\u5E86\u53BF",532933:"\u5176\u5B83\u533A",533100:"\u5FB7\u5B8F\u50A3\u65CF\u666F\u9887\u65CF\u81EA\u6CBB\u5DDE",533102:"\u745E\u4E3D\u5E02",533103:"\u8292\u5E02",533122:"\u6881\u6CB3\u53BF",533123:"\u76C8\u6C5F\u53BF",533124:"\u9647\u5DDD\u53BF",533125:"\u5176\u5B83\u533A",533300:"\u6012\u6C5F\u5088\u50F3\u65CF\u81EA\u6CBB\u5DDE",533321:"\u6CF8\u6C34\u53BF",533323:"\u798F\u8D21\u53BF",533324:"\u8D21\u5C71\u72EC\u9F99\u65CF\u6012\u65CF\u81EA\u6CBB\u53BF",533325:"\u5170\u576A\u767D\u65CF\u666E\u7C73\u65CF\u81EA\u6CBB\u53BF",533326:"\u5176\u5B83\u533A",533400:"\u8FEA\u5E86\u85CF\u65CF\u81EA\u6CBB\u5DDE",533421:"\u9999\u683C\u91CC\u62C9\u53BF",533422:"\u5FB7\u94A6\u53BF",533423:"\u7EF4\u897F\u5088\u50F3\u65CF\u81EA\u6CBB\u53BF",533424:"\u5176\u5B83\u533A",54e4:"\u897F\u85CF\u81EA\u6CBB\u533A",540100:"\u62C9\u8428\u5E02",540102:"\u57CE\u5173\u533A",540121:"\u6797\u5468\u53BF",540122:"\u5F53\u96C4\u53BF",540123:"\u5C3C\u6728\u53BF",540124:"\u66F2\u6C34\u53BF",540125:"\u5806\u9F99\u5FB7\u5E86\u53BF",540126:"\u8FBE\u5B5C\u53BF",540127:"\u58A8\u7AF9\u5DE5\u5361\u53BF",540128:"\u5176\u5B83\u533A",542100:"\u660C\u90FD\u5730\u533A",542121:"\u660C\u90FD\u53BF",542122:"\u6C5F\u8FBE\u53BF",542123:"\u8D21\u89C9\u53BF",542124:"\u7C7B\u4E4C\u9F50\u53BF",542125:"\u4E01\u9752\u53BF",542126:"\u5BDF\u96C5\u53BF",542127:"\u516B\u5BBF\u53BF",542128:"\u5DE6\u8D21\u53BF",542129:"\u8292\u5EB7\u53BF",542132:"\u6D1B\u9686\u53BF",542133:"\u8FB9\u575D\u53BF",542134:"\u5176\u5B83\u533A",542200:"\u5C71\u5357\u5730\u533A",542221:"\u4E43\u4E1C\u53BF",542222:"\u624E\u56CA\u53BF",542223:"\u8D21\u560E\u53BF",542224:"\u6851\u65E5\u53BF",542225:"\u743C\u7ED3\u53BF",542226:"\u66F2\u677E\u53BF",542227:"\u63AA\u7F8E\u53BF",542228:"\u6D1B\u624E\u53BF",542229:"\u52A0\u67E5\u53BF",542231:"\u9686\u5B50\u53BF",542232:"\u9519\u90A3\u53BF",542233:"\u6D6A\u5361\u5B50\u53BF",542234:"\u5176\u5B83\u533A",542300:"\u65E5\u5580\u5219\u5730\u533A",542301:"\u65E5\u5580\u5219\u5E02",542322:"\u5357\u6728\u6797\u53BF",542323:"\u6C5F\u5B5C\u53BF",542324:"\u5B9A\u65E5\u53BF",542325:"\u8428\u8FE6\u53BF",542326:"\u62C9\u5B5C\u53BF",542327:"\u6602\u4EC1\u53BF",542328:"\u8C22\u901A\u95E8\u53BF",542329:"\u767D\u6717\u53BF",542330:"\u4EC1\u5E03\u53BF",542331:"\u5EB7\u9A6C\u53BF",542332:"\u5B9A\u7ED3\u53BF",542333:"\u4EF2\u5DF4\u53BF",542334:"\u4E9A\u4E1C\u53BF",542335:"\u5409\u9686\u53BF",542336:"\u8042\u62C9\u6728\u53BF",542337:"\u8428\u560E\u53BF",542338:"\u5C97\u5DF4\u53BF",542339:"\u5176\u5B83\u533A",542400:"\u90A3\u66F2\u5730\u533A",542421:"\u90A3\u66F2\u53BF",542422:"\u5609\u9ECE\u53BF",542423:"\u6BD4\u5982\u53BF",542424:"\u8042\u8363\u53BF",542425:"\u5B89\u591A\u53BF",542426:"\u7533\u624E\u53BF",542427:"\u7D22\u53BF",542428:"\u73ED\u6208\u53BF",542429:"\u5DF4\u9752\u53BF",542430:"\u5C3C\u739B\u53BF",542431:"\u5176\u5B83\u533A",542432:"\u53CC\u6E56\u53BF",542500:"\u963F\u91CC\u5730\u533A",542521:"\u666E\u5170\u53BF",542522:"\u672D\u8FBE\u53BF",542523:"\u5676\u5C14\u53BF",542524:"\u65E5\u571F\u53BF",542525:"\u9769\u5409\u53BF",542526:"\u6539\u5219\u53BF",542527:"\u63AA\u52E4\u53BF",542528:"\u5176\u5B83\u533A",542600:"\u6797\u829D\u5730\u533A",542621:"\u6797\u829D\u53BF",542622:"\u5DE5\u5E03\u6C5F\u8FBE\u53BF",542623:"\u7C73\u6797\u53BF",542624:"\u58A8\u8131\u53BF",542625:"\u6CE2\u5BC6\u53BF",542626:"\u5BDF\u9685\u53BF",542627:"\u6717\u53BF",542628:"\u5176\u5B83\u533A",61e4:"\u9655\u897F\u7701",610100:"\u897F\u5B89\u5E02",610102:"\u65B0\u57CE\u533A",610103:"\u7891\u6797\u533A",610104:"\u83B2\u6E56\u533A",610111:"\u705E\u6865\u533A",610112:"\u672A\u592E\u533A",610113:"\u96C1\u5854\u533A",610114:"\u960E\u826F\u533A",610115:"\u4E34\u6F7C\u533A",610116:"\u957F\u5B89\u533A",610122:"\u84DD\u7530\u53BF",610124:"\u5468\u81F3\u53BF",610125:"\u6237\u53BF",610126:"\u9AD8\u9675\u53BF",610127:"\u5176\u5B83\u533A",610200:"\u94DC\u5DDD\u5E02",610202:"\u738B\u76CA\u533A",610203:"\u5370\u53F0\u533A",610204:"\u8000\u5DDE\u533A",610222:"\u5B9C\u541B\u53BF",610223:"\u5176\u5B83\u533A",610300:"\u5B9D\u9E21\u5E02",610302:"\u6E2D\u6EE8\u533A",610303:"\u91D1\u53F0\u533A",610304:"\u9648\u4ED3\u533A",610322:"\u51E4\u7FD4\u53BF",610323:"\u5C90\u5C71\u53BF",610324:"\u6276\u98CE\u53BF",610326:"\u7709\u53BF",610327:"\u9647\u53BF",610328:"\u5343\u9633\u53BF",610329:"\u9E9F\u6E38\u53BF",610330:"\u51E4\u53BF",610331:"\u592A\u767D\u53BF",610332:"\u5176\u5B83\u533A",610400:"\u54B8\u9633\u5E02",610402:"\u79E6\u90FD\u533A",610403:"\u6768\u9675\u533A",610404:"\u6E2D\u57CE\u533A",610422:"\u4E09\u539F\u53BF",610423:"\u6CFE\u9633\u53BF",610424:"\u4E7E\u53BF",610425:"\u793C\u6CC9\u53BF",610426:"\u6C38\u5BFF\u53BF",610427:"\u5F6C\u53BF",610428:"\u957F\u6B66\u53BF",610429:"\u65EC\u9091\u53BF",610430:"\u6DF3\u5316\u53BF",610431:"\u6B66\u529F\u53BF",610481:"\u5174\u5E73\u5E02",610482:"\u5176\u5B83\u533A",610500:"\u6E2D\u5357\u5E02",610502:"\u4E34\u6E2D\u533A",610521:"\u534E\u53BF",610522:"\u6F7C\u5173\u53BF",610523:"\u5927\u8354\u53BF",610524:"\u5408\u9633\u53BF",610525:"\u6F84\u57CE\u53BF",610526:"\u84B2\u57CE\u53BF",610527:"\u767D\u6C34\u53BF",610528:"\u5BCC\u5E73\u53BF",610581:"\u97E9\u57CE\u5E02",610582:"\u534E\u9634\u5E02",610583:"\u5176\u5B83\u533A",610600:"\u5EF6\u5B89\u5E02",610602:"\u5B9D\u5854\u533A",610621:"\u5EF6\u957F\u53BF",610622:"\u5EF6\u5DDD\u53BF",610623:"\u5B50\u957F\u53BF",610624:"\u5B89\u585E\u53BF",610625:"\u5FD7\u4E39\u53BF",610626:"\u5434\u8D77\u53BF",610627:"\u7518\u6CC9\u53BF",610628:"\u5BCC\u53BF",610629:"\u6D1B\u5DDD\u53BF",610630:"\u5B9C\u5DDD\u53BF",610631:"\u9EC4\u9F99\u53BF",610632:"\u9EC4\u9675\u53BF",610633:"\u5176\u5B83\u533A",610700:"\u6C49\u4E2D\u5E02",610702:"\u6C49\u53F0\u533A",610721:"\u5357\u90D1\u53BF",610722:"\u57CE\u56FA\u53BF",610723:"\u6D0B\u53BF",610724:"\u897F\u4E61\u53BF",610725:"\u52C9\u53BF",610726:"\u5B81\u5F3A\u53BF",610727:"\u7565\u9633\u53BF",610728:"\u9547\u5DF4\u53BF",610729:"\u7559\u575D\u53BF",610730:"\u4F5B\u576A\u53BF",610731:"\u5176\u5B83\u533A",610800:"\u6986\u6797\u5E02",610802:"\u6986\u9633\u533A",610821:"\u795E\u6728\u53BF",610822:"\u5E9C\u8C37\u53BF",610823:"\u6A2A\u5C71\u53BF",610824:"\u9756\u8FB9\u53BF",610825:"\u5B9A\u8FB9\u53BF",610826:"\u7EE5\u5FB7\u53BF",610827:"\u7C73\u8102\u53BF",610828:"\u4F73\u53BF",610829:"\u5434\u5821\u53BF",610830:"\u6E05\u6DA7\u53BF",610831:"\u5B50\u6D32\u53BF",610832:"\u5176\u5B83\u533A",610900:"\u5B89\u5EB7\u5E02",610902:"\u6C49\u6EE8\u533A",610921:"\u6C49\u9634\u53BF",610922:"\u77F3\u6CC9\u53BF",610923:"\u5B81\u9655\u53BF",610924:"\u7D2B\u9633\u53BF",610925:"\u5C9A\u768B\u53BF",610926:"\u5E73\u5229\u53BF",610927:"\u9547\u576A\u53BF",610928:"\u65EC\u9633\u53BF",610929:"\u767D\u6CB3\u53BF",610930:"\u5176\u5B83\u533A",611e3:"\u5546\u6D1B\u5E02",611002:"\u5546\u5DDE\u533A",611021:"\u6D1B\u5357\u53BF",611022:"\u4E39\u51E4\u53BF",611023:"\u5546\u5357\u53BF",611024:"\u5C71\u9633\u53BF",611025:"\u9547\u5B89\u53BF",611026:"\u67DE\u6C34\u53BF",611027:"\u5176\u5B83\u533A",62e4:"\u7518\u8083\u7701",620100:"\u5170\u5DDE\u5E02",620102:"\u57CE\u5173\u533A",620103:"\u4E03\u91CC\u6CB3\u533A",620104:"\u897F\u56FA\u533A",620105:"\u5B89\u5B81\u533A",620111:"\u7EA2\u53E4\u533A",620121:"\u6C38\u767B\u53BF",620122:"\u768B\u5170\u53BF",620123:"\u6986\u4E2D\u53BF",620124:"\u5176\u5B83\u533A",620200:"\u5609\u5CEA\u5173\u5E02",620300:"\u91D1\u660C\u5E02",620302:"\u91D1\u5DDD\u533A",620321:"\u6C38\u660C\u53BF",620322:"\u5176\u5B83\u533A",620400:"\u767D\u94F6\u5E02",620402:"\u767D\u94F6\u533A",620403:"\u5E73\u5DDD\u533A",620421:"\u9756\u8FDC\u53BF",620422:"\u4F1A\u5B81\u53BF",620423:"\u666F\u6CF0\u53BF",620424:"\u5176\u5B83\u533A",620500:"\u5929\u6C34\u5E02",620502:"\u79E6\u5DDE\u533A",620503:"\u9EA6\u79EF\u533A",620521:"\u6E05\u6C34\u53BF",620522:"\u79E6\u5B89\u53BF",620523:"\u7518\u8C37\u53BF",620524:"\u6B66\u5C71\u53BF",620525:"\u5F20\u5BB6\u5DDD\u56DE\u65CF\u81EA\u6CBB\u53BF",620526:"\u5176\u5B83\u533A",620600:"\u6B66\u5A01\u5E02",620602:"\u51C9\u5DDE\u533A",620621:"\u6C11\u52E4\u53BF",620622:"\u53E4\u6D6A\u53BF",620623:"\u5929\u795D\u85CF\u65CF\u81EA\u6CBB\u53BF",620624:"\u5176\u5B83\u533A",620700:"\u5F20\u6396\u5E02",620702:"\u7518\u5DDE\u533A",620721:"\u8083\u5357\u88D5\u56FA\u65CF\u81EA\u6CBB\u53BF",620722:"\u6C11\u4E50\u53BF",620723:"\u4E34\u6CFD\u53BF",620724:"\u9AD8\u53F0\u53BF",620725:"\u5C71\u4E39\u53BF",620726:"\u5176\u5B83\u533A",620800:"\u5E73\u51C9\u5E02",620802:"\u5D06\u5CD2\u533A",620821:"\u6CFE\u5DDD\u53BF",620822:"\u7075\u53F0\u53BF",620823:"\u5D07\u4FE1\u53BF",620824:"\u534E\u4EAD\u53BF",620825:"\u5E84\u6D6A\u53BF",620826:"\u9759\u5B81\u53BF",620827:"\u5176\u5B83\u533A",620900:"\u9152\u6CC9\u5E02",620902:"\u8083\u5DDE\u533A",620921:"\u91D1\u5854\u53BF",620922:"\u74DC\u5DDE\u53BF",620923:"\u8083\u5317\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",620924:"\u963F\u514B\u585E\u54C8\u8428\u514B\u65CF\u81EA\u6CBB\u53BF",620981:"\u7389\u95E8\u5E02",620982:"\u6566\u714C\u5E02",620983:"\u5176\u5B83\u533A",621e3:"\u5E86\u9633\u5E02",621002:"\u897F\u5CF0\u533A",621021:"\u5E86\u57CE\u53BF",621022:"\u73AF\u53BF",621023:"\u534E\u6C60\u53BF",621024:"\u5408\u6C34\u53BF",621025:"\u6B63\u5B81\u53BF",621026:"\u5B81\u53BF",621027:"\u9547\u539F\u53BF",621028:"\u5176\u5B83\u533A",621100:"\u5B9A\u897F\u5E02",621102:"\u5B89\u5B9A\u533A",621121:"\u901A\u6E2D\u53BF",621122:"\u9647\u897F\u53BF",621123:"\u6E2D\u6E90\u53BF",621124:"\u4E34\u6D2E\u53BF",621125:"\u6F33\u53BF",621126:"\u5CB7\u53BF",621127:"\u5176\u5B83\u533A",621200:"\u9647\u5357\u5E02",621202:"\u6B66\u90FD\u533A",621221:"\u6210\u53BF",621222:"\u6587\u53BF",621223:"\u5B95\u660C\u53BF",621224:"\u5EB7\u53BF",621225:"\u897F\u548C\u53BF",621226:"\u793C\u53BF",621227:"\u5FBD\u53BF",621228:"\u4E24\u5F53\u53BF",621229:"\u5176\u5B83\u533A",622900:"\u4E34\u590F\u56DE\u65CF\u81EA\u6CBB\u5DDE",622901:"\u4E34\u590F\u5E02",622921:"\u4E34\u590F\u53BF",622922:"\u5EB7\u4E50\u53BF",622923:"\u6C38\u9756\u53BF",622924:"\u5E7F\u6CB3\u53BF",622925:"\u548C\u653F\u53BF",622926:"\u4E1C\u4E61\u65CF\u81EA\u6CBB\u53BF",622927:"\u79EF\u77F3\u5C71\u4FDD\u5B89\u65CF\u4E1C\u4E61\u65CF\u6492\u62C9\u65CF\u81EA\u6CBB\u53BF",622928:"\u5176\u5B83\u533A",623e3:"\u7518\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",623001:"\u5408\u4F5C\u5E02",623021:"\u4E34\u6F6D\u53BF",623022:"\u5353\u5C3C\u53BF",623023:"\u821F\u66F2\u53BF",623024:"\u8FED\u90E8\u53BF",623025:"\u739B\u66F2\u53BF",623026:"\u788C\u66F2\u53BF",623027:"\u590F\u6CB3\u53BF",623028:"\u5176\u5B83\u533A",63e4:"\u9752\u6D77\u7701",630100:"\u897F\u5B81\u5E02",630102:"\u57CE\u4E1C\u533A",630103:"\u57CE\u4E2D\u533A",630104:"\u57CE\u897F\u533A",630105:"\u57CE\u5317\u533A",630121:"\u5927\u901A\u56DE\u65CF\u571F\u65CF\u81EA\u6CBB\u53BF",630122:"\u6E5F\u4E2D\u53BF",630123:"\u6E5F\u6E90\u53BF",630124:"\u5176\u5B83\u533A",632100:"\u6D77\u4E1C\u5E02",632121:"\u5E73\u5B89\u53BF",632122:"\u6C11\u548C\u56DE\u65CF\u571F\u65CF\u81EA\u6CBB\u53BF",632123:"\u4E50\u90FD\u533A",632126:"\u4E92\u52A9\u571F\u65CF\u81EA\u6CBB\u53BF",632127:"\u5316\u9686\u56DE\u65CF\u81EA\u6CBB\u53BF",632128:"\u5FAA\u5316\u6492\u62C9\u65CF\u81EA\u6CBB\u53BF",632129:"\u5176\u5B83\u533A",632200:"\u6D77\u5317\u85CF\u65CF\u81EA\u6CBB\u5DDE",632221:"\u95E8\u6E90\u56DE\u65CF\u81EA\u6CBB\u53BF",632222:"\u7941\u8FDE\u53BF",632223:"\u6D77\u664F\u53BF",632224:"\u521A\u5BDF\u53BF",632225:"\u5176\u5B83\u533A",632300:"\u9EC4\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",632321:"\u540C\u4EC1\u53BF",632322:"\u5C16\u624E\u53BF",632323:"\u6CFD\u5E93\u53BF",632324:"\u6CB3\u5357\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",632325:"\u5176\u5B83\u533A",632500:"\u6D77\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",632521:"\u5171\u548C\u53BF",632522:"\u540C\u5FB7\u53BF",632523:"\u8D35\u5FB7\u53BF",632524:"\u5174\u6D77\u53BF",632525:"\u8D35\u5357\u53BF",632526:"\u5176\u5B83\u533A",632600:"\u679C\u6D1B\u85CF\u65CF\u81EA\u6CBB\u5DDE",632621:"\u739B\u6C81\u53BF",632622:"\u73ED\u739B\u53BF",632623:"\u7518\u5FB7\u53BF",632624:"\u8FBE\u65E5\u53BF",632625:"\u4E45\u6CBB\u53BF",632626:"\u739B\u591A\u53BF",632627:"\u5176\u5B83\u533A",632700:"\u7389\u6811\u85CF\u65CF\u81EA\u6CBB\u5DDE",632721:"\u7389\u6811\u5E02",632722:"\u6742\u591A\u53BF",632723:"\u79F0\u591A\u53BF",632724:"\u6CBB\u591A\u53BF",632725:"\u56CA\u8C26\u53BF",632726:"\u66F2\u9EBB\u83B1\u53BF",632727:"\u5176\u5B83\u533A",632800:"\u6D77\u897F\u8499\u53E4\u65CF\u85CF\u65CF\u81EA\u6CBB\u5DDE",632801:"\u683C\u5C14\u6728\u5E02",632802:"\u5FB7\u4EE4\u54C8\u5E02",632821:"\u4E4C\u5170\u53BF",632822:"\u90FD\u5170\u53BF",632823:"\u5929\u5CFB\u53BF",632824:"\u5176\u5B83\u533A",64e4:"\u5B81\u590F\u56DE\u65CF\u81EA\u6CBB\u533A",640100:"\u94F6\u5DDD\u5E02",640104:"\u5174\u5E86\u533A",640105:"\u897F\u590F\u533A",640106:"\u91D1\u51E4\u533A",640121:"\u6C38\u5B81\u53BF",640122:"\u8D3A\u5170\u53BF",640181:"\u7075\u6B66\u5E02",640182:"\u5176\u5B83\u533A",640200:"\u77F3\u5634\u5C71\u5E02",640202:"\u5927\u6B66\u53E3\u533A",640205:"\u60E0\u519C\u533A",640221:"\u5E73\u7F57\u53BF",640222:"\u5176\u5B83\u533A",640300:"\u5434\u5FE0\u5E02",640302:"\u5229\u901A\u533A",640303:"\u7EA2\u5BFA\u5821\u533A",640323:"\u76D0\u6C60\u53BF",640324:"\u540C\u5FC3\u53BF",640381:"\u9752\u94DC\u5CE1\u5E02",640382:"\u5176\u5B83\u533A",640400:"\u56FA\u539F\u5E02",640402:"\u539F\u5DDE\u533A",640422:"\u897F\u5409\u53BF",640423:"\u9686\u5FB7\u53BF",640424:"\u6CFE\u6E90\u53BF",640425:"\u5F6D\u9633\u53BF",640426:"\u5176\u5B83\u533A",640500:"\u4E2D\u536B\u5E02",640502:"\u6C99\u5761\u5934\u533A",640521:"\u4E2D\u5B81\u53BF",640522:"\u6D77\u539F\u53BF",640523:"\u5176\u5B83\u533A",65e4:"\u65B0\u7586\u7EF4\u543E\u5C14\u81EA\u6CBB\u533A",650100:"\u4E4C\u9C81\u6728\u9F50\u5E02",650102:"\u5929\u5C71\u533A",650103:"\u6C99\u4F9D\u5DF4\u514B\u533A",650104:"\u65B0\u5E02\u533A",650105:"\u6C34\u78E8\u6C9F\u533A",650106:"\u5934\u5C6F\u6CB3\u533A",650107:"\u8FBE\u5742\u57CE\u533A",650109:"\u7C73\u4E1C\u533A",650121:"\u4E4C\u9C81\u6728\u9F50\u53BF",650122:"\u5176\u5B83\u533A",650200:"\u514B\u62C9\u739B\u4F9D\u5E02",650202:"\u72EC\u5C71\u5B50\u533A",650203:"\u514B\u62C9\u739B\u4F9D\u533A",650204:"\u767D\u78B1\u6EE9\u533A",650205:"\u4E4C\u5C14\u79BE\u533A",650206:"\u5176\u5B83\u533A",652100:"\u5410\u9C81\u756A\u5730\u533A",652101:"\u5410\u9C81\u756A\u5E02",652122:"\u912F\u5584\u53BF",652123:"\u6258\u514B\u900A\u53BF",652124:"\u5176\u5B83\u533A",652200:"\u54C8\u5BC6\u5730\u533A",652201:"\u54C8\u5BC6\u5E02",652222:"\u5DF4\u91CC\u5764\u54C8\u8428\u514B\u81EA\u6CBB\u53BF",652223:"\u4F0A\u543E\u53BF",652224:"\u5176\u5B83\u533A",652300:"\u660C\u5409\u56DE\u65CF\u81EA\u6CBB\u5DDE",652301:"\u660C\u5409\u5E02",652302:"\u961C\u5EB7\u5E02",652323:"\u547C\u56FE\u58C1\u53BF",652324:"\u739B\u7EB3\u65AF\u53BF",652325:"\u5947\u53F0\u53BF",652327:"\u5409\u6728\u8428\u5C14\u53BF",652328:"\u6728\u5792\u54C8\u8428\u514B\u81EA\u6CBB\u53BF",652329:"\u5176\u5B83\u533A",652700:"\u535A\u5C14\u5854\u62C9\u8499\u53E4\u81EA\u6CBB\u5DDE",652701:"\u535A\u4E50\u5E02",652702:"\u963F\u62C9\u5C71\u53E3\u5E02",652722:"\u7CBE\u6CB3\u53BF",652723:"\u6E29\u6CC9\u53BF",652724:"\u5176\u5B83\u533A",652800:"\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE",652801:"\u5E93\u5C14\u52D2\u5E02",652822:"\u8F6E\u53F0\u53BF",652823:"\u5C09\u7281\u53BF",652824:"\u82E5\u7F8C\u53BF",652825:"\u4E14\u672B\u53BF",652826:"\u7109\u8006\u56DE\u65CF\u81EA\u6CBB\u53BF",652827:"\u548C\u9759\u53BF",652828:"\u548C\u7855\u53BF",652829:"\u535A\u6E56\u53BF",652830:"\u5176\u5B83\u533A",652900:"\u963F\u514B\u82CF\u5730\u533A",652901:"\u963F\u514B\u82CF\u5E02",652922:"\u6E29\u5BBF\u53BF",652923:"\u5E93\u8F66\u53BF",652924:"\u6C99\u96C5\u53BF",652925:"\u65B0\u548C\u53BF",652926:"\u62DC\u57CE\u53BF",652927:"\u4E4C\u4EC0\u53BF",652928:"\u963F\u74E6\u63D0\u53BF",652929:"\u67EF\u576A\u53BF",652930:"\u5176\u5B83\u533A",653e3:"\u514B\u5B5C\u52D2\u82CF\u67EF\u5C14\u514B\u5B5C\u81EA\u6CBB\u5DDE",653001:"\u963F\u56FE\u4EC0\u5E02",653022:"\u963F\u514B\u9676\u53BF",653023:"\u963F\u5408\u5947\u53BF",653024:"\u4E4C\u6070\u53BF",653025:"\u5176\u5B83\u533A",653100:"\u5580\u4EC0\u5730\u533A",653101:"\u5580\u4EC0\u5E02",653121:"\u758F\u9644\u53BF",653122:"\u758F\u52D2\u53BF",653123:"\u82F1\u5409\u6C99\u53BF",653124:"\u6CFD\u666E\u53BF",653125:"\u838E\u8F66\u53BF",653126:"\u53F6\u57CE\u53BF",653127:"\u9EA6\u76D6\u63D0\u53BF",653128:"\u5CB3\u666E\u6E56\u53BF",653129:"\u4F3D\u5E08\u53BF",653130:"\u5DF4\u695A\u53BF",653131:"\u5854\u4EC0\u5E93\u5C14\u5E72\u5854\u5409\u514B\u81EA\u6CBB\u53BF",653132:"\u5176\u5B83\u533A",653200:"\u548C\u7530\u5730\u533A",653201:"\u548C\u7530\u5E02",653221:"\u548C\u7530\u53BF",653222:"\u58A8\u7389\u53BF",653223:"\u76AE\u5C71\u53BF",653224:"\u6D1B\u6D66\u53BF",653225:"\u7B56\u52D2\u53BF",653226:"\u4E8E\u7530\u53BF",653227:"\u6C11\u4E30\u53BF",653228:"\u5176\u5B83\u533A",654e3:"\u4F0A\u7281\u54C8\u8428\u514B\u81EA\u6CBB\u5DDE",654002:"\u4F0A\u5B81\u5E02",654003:"\u594E\u5C6F\u5E02",654021:"\u4F0A\u5B81\u53BF",654022:"\u5BDF\u5E03\u67E5\u5C14\u9521\u4F2F\u81EA\u6CBB\u53BF",654023:"\u970D\u57CE\u53BF",654024:"\u5DE9\u7559\u53BF",654025:"\u65B0\u6E90\u53BF",654026:"\u662D\u82CF\u53BF",654027:"\u7279\u514B\u65AF\u53BF",654028:"\u5C3C\u52D2\u514B\u53BF",654029:"\u5176\u5B83\u533A",654200:"\u5854\u57CE\u5730\u533A",654201:"\u5854\u57CE\u5E02",654202:"\u4E4C\u82CF\u5E02",654221:"\u989D\u654F\u53BF",654223:"\u6C99\u6E7E\u53BF",654224:"\u6258\u91CC\u53BF",654225:"\u88D5\u6C11\u53BF",654226:"\u548C\u5E03\u514B\u8D5B\u5C14\u8499\u53E4\u81EA\u6CBB\u53BF",654227:"\u5176\u5B83\u533A",654300:"\u963F\u52D2\u6CF0\u5730\u533A",654301:"\u963F\u52D2\u6CF0\u5E02",654321:"\u5E03\u5C14\u6D25\u53BF",654322:"\u5BCC\u8574\u53BF",654323:"\u798F\u6D77\u53BF",654324:"\u54C8\u5DF4\u6CB3\u53BF",654325:"\u9752\u6CB3\u53BF",654326:"\u5409\u6728\u4E43\u53BF",654327:"\u5176\u5B83\u533A",659001:"\u77F3\u6CB3\u5B50\u5E02",659002:"\u963F\u62C9\u5C14\u5E02",659003:"\u56FE\u6728\u8212\u514B\u5E02",659004:"\u4E94\u5BB6\u6E20\u5E02",71e4:"\u53F0\u6E7E",710100:"\u53F0\u5317\u5E02",710101:"\u4E2D\u6B63\u533A",710102:"\u5927\u540C\u533A",710103:"\u4E2D\u5C71\u533A",710104:"\u677E\u5C71\u533A",710105:"\u5927\u5B89\u533A",710106:"\u4E07\u534E\u533A",710107:"\u4FE1\u4E49\u533A",710108:"\u58EB\u6797\u533A",710109:"\u5317\u6295\u533A",710110:"\u5185\u6E56\u533A",710111:"\u5357\u6E2F\u533A",710112:"\u6587\u5C71\u533A",710113:"\u5176\u5B83\u533A",710200:"\u9AD8\u96C4\u5E02",710201:"\u65B0\u5174\u533A",710202:"\u524D\u91D1\u533A",710203:"\u82A9\u96C5\u533A",710204:"\u76D0\u57D5\u533A",710205:"\u9F13\u5C71\u533A",710206:"\u65D7\u6D25\u533A",710207:"\u524D\u9547\u533A",710208:"\u4E09\u6C11\u533A",710209:"\u5DE6\u8425\u533A",710210:"\u6960\u6893\u533A",710211:"\u5C0F\u6E2F\u533A",710212:"\u5176\u5B83\u533A",710241:"\u82D3\u96C5\u533A",710242:"\u4EC1\u6B66\u533A",710243:"\u5927\u793E\u533A",710244:"\u5188\u5C71\u533A",710245:"\u8DEF\u7AF9\u533A",710246:"\u963F\u83B2\u533A",710247:"\u7530\u5BEE\u533A",710248:"\u71D5\u5DE2\u533A",710249:"\u6865\u5934\u533A",710250:"\u6893\u5B98\u533A",710251:"\u5F25\u9640\u533A",710252:"\u6C38\u5B89\u533A",710253:"\u6E56\u5185\u533A",710254:"\u51E4\u5C71\u533A",710255:"\u5927\u5BEE\u533A",710256:"\u6797\u56ED\u533A",710257:"\u9E1F\u677E\u533A",710258:"\u5927\u6811\u533A",710259:"\u65D7\u5C71\u533A",710260:"\u7F8E\u6D53\u533A",710261:"\u516D\u9F9F\u533A",710262:"\u5185\u95E8\u533A",710263:"\u6749\u6797\u533A",710264:"\u7532\u4ED9\u533A",710265:"\u6843\u6E90\u533A",710266:"\u90A3\u739B\u590F\u533A",710267:"\u8302\u6797\u533A",710268:"\u8304\u8423\u533A",710300:"\u53F0\u5357\u5E02",710301:"\u4E2D\u897F\u533A",710302:"\u4E1C\u533A",710303:"\u5357\u533A",710304:"\u5317\u533A",710305:"\u5B89\u5E73\u533A",710306:"\u5B89\u5357\u533A",710307:"\u5176\u5B83\u533A",710339:"\u6C38\u5EB7\u533A",710340:"\u5F52\u4EC1\u533A",710341:"\u65B0\u5316\u533A",710342:"\u5DE6\u9547\u533A",710343:"\u7389\u4E95\u533A",710344:"\u6960\u897F\u533A",710345:"\u5357\u5316\u533A",710346:"\u4EC1\u5FB7\u533A",710347:"\u5173\u5E99\u533A",710348:"\u9F99\u5D0E\u533A",710349:"\u5B98\u7530\u533A",710350:"\u9EBB\u8C46\u533A",710351:"\u4F73\u91CC\u533A",710352:"\u897F\u6E2F\u533A",710353:"\u4E03\u80A1\u533A",710354:"\u5C06\u519B\u533A",710355:"\u5B66\u7532\u533A",710356:"\u5317\u95E8\u533A",710357:"\u65B0\u8425\u533A",710358:"\u540E\u58C1\u533A",710359:"\u767D\u6CB3\u533A",710360:"\u4E1C\u5C71\u533A",710361:"\u516D\u7532\u533A",710362:"\u4E0B\u8425\u533A",710363:"\u67F3\u8425\u533A",710364:"\u76D0\u6C34\u533A",710365:"\u5584\u5316\u533A",710366:"\u5927\u5185\u533A",710367:"\u5C71\u4E0A\u533A",710368:"\u65B0\u5E02\u533A",710369:"\u5B89\u5B9A\u533A",710400:"\u53F0\u4E2D\u5E02",710401:"\u4E2D\u533A",710402:"\u4E1C\u533A",710403:"\u5357\u533A",710404:"\u897F\u533A",710405:"\u5317\u533A",710406:"\u5317\u5C6F\u533A",710407:"\u897F\u5C6F\u533A",710408:"\u5357\u5C6F\u533A",710409:"\u5176\u5B83\u533A",710431:"\u592A\u5E73\u533A",710432:"\u5927\u91CC\u533A",710433:"\u96FE\u5CF0\u533A",710434:"\u4E4C\u65E5\u533A",710435:"\u4E30\u539F\u533A",710436:"\u540E\u91CC\u533A",710437:"\u77F3\u5188\u533A",710438:"\u4E1C\u52BF\u533A",710439:"\u548C\u5E73\u533A",710440:"\u65B0\u793E\u533A",710441:"\u6F6D\u5B50\u533A",710442:"\u5927\u96C5\u533A",710443:"\u795E\u5188\u533A",710444:"\u5927\u809A\u533A",710445:"\u6C99\u9E7F\u533A",710446:"\u9F99\u4E95\u533A",710447:"\u68A7\u6816\u533A",710448:"\u6E05\u6C34\u533A",710449:"\u5927\u7532\u533A",710450:"\u5916\u57D4\u533A",710451:"\u5927\u5B89\u533A",710500:"\u91D1\u95E8\u53BF",710507:"\u91D1\u6C99\u9547",710508:"\u91D1\u6E56\u9547",710509:"\u91D1\u5B81\u4E61",710510:"\u91D1\u57CE\u9547",710511:"\u70C8\u5C7F\u4E61",710512:"\u4E4C\u5775\u4E61",710600:"\u5357\u6295\u53BF",710614:"\u5357\u6295\u5E02",710615:"\u4E2D\u5BEE\u4E61",710616:"\u8349\u5C6F\u9547",710617:"\u56FD\u59D3\u4E61",710618:"\u57D4\u91CC\u9547",710619:"\u4EC1\u7231\u4E61",710620:"\u540D\u95F4\u4E61",710621:"\u96C6\u96C6\u9547",710622:"\u6C34\u91CC\u4E61",710623:"\u9C7C\u6C60\u4E61",710624:"\u4FE1\u4E49\u4E61",710625:"\u7AF9\u5C71\u9547",710626:"\u9E7F\u8C37\u4E61",710700:"\u57FA\u9686\u5E02",710701:"\u4EC1\u7231\u533A",710702:"\u4FE1\u4E49\u533A",710703:"\u4E2D\u6B63\u533A",710704:"\u4E2D\u5C71\u533A",710705:"\u5B89\u4E50\u533A",710706:"\u6696\u6696\u533A",710707:"\u4E03\u5835\u533A",710708:"\u5176\u5B83\u533A",710800:"\u65B0\u7AF9\u5E02",710801:"\u4E1C\u533A",710802:"\u5317\u533A",710803:"\u9999\u5C71\u533A",710804:"\u5176\u5B83\u533A",710900:"\u5609\u4E49\u5E02",710901:"\u4E1C\u533A",710902:"\u897F\u533A",710903:"\u5176\u5B83\u533A",711100:"\u65B0\u5317\u5E02",711130:"\u4E07\u91CC\u533A",711131:"\u91D1\u5C71\u533A",711132:"\u677F\u6865\u533A",711133:"\u6C50\u6B62\u533A",711134:"\u6DF1\u5751\u533A",711135:"\u77F3\u7887\u533A",711136:"\u745E\u82B3\u533A",711137:"\u5E73\u6EAA\u533A",711138:"\u53CC\u6EAA\u533A",711139:"\u8D21\u5BEE\u533A",711140:"\u65B0\u5E97\u533A",711141:"\u576A\u6797\u533A",711142:"\u4E4C\u6765\u533A",711143:"\u6C38\u548C\u533A",711144:"\u4E2D\u548C\u533A",711145:"\u571F\u57CE\u533A",711146:"\u4E09\u5CE1\u533A",711147:"\u6811\u6797\u533A",711148:"\u83BA\u6B4C\u533A",711149:"\u4E09\u91CD\u533A",711150:"\u65B0\u5E84\u533A",711151:"\u6CF0\u5C71\u533A",711152:"\u6797\u53E3\u533A",711153:"\u82A6\u6D32\u533A",711154:"\u4E94\u80A1\u533A",711155:"\u516B\u91CC\u533A",711156:"\u6DE1\u6C34\u533A",711157:"\u4E09\u829D\u533A",711158:"\u77F3\u95E8\u533A",711200:"\u5B9C\u5170\u53BF",711214:"\u5B9C\u5170\u5E02",711215:"\u5934\u57CE\u9547",711216:"\u7901\u6EAA\u4E61",711217:"\u58EE\u56F4\u4E61",711218:"\u5458\u5C71\u4E61",711219:"\u7F57\u4E1C\u9547",711220:"\u4E09\u661F\u4E61",711221:"\u5927\u540C\u4E61",711222:"\u4E94\u7ED3\u4E61",711223:"\u51AC\u5C71\u4E61",711224:"\u82CF\u6FB3\u9547",711225:"\u5357\u6FB3\u4E61",711226:"\u9493\u9C7C\u53F0",711300:"\u65B0\u7AF9\u53BF",711314:"\u7AF9\u5317\u5E02",711315:"\u6E56\u53E3\u4E61",711316:"\u65B0\u4E30\u4E61",711317:"\u65B0\u57D4\u9547",711318:"\u5173\u897F\u9547",711319:"\u828E\u6797\u4E61",711320:"\u5B9D\u5C71\u4E61",711321:"\u7AF9\u4E1C\u9547",711322:"\u4E94\u5CF0\u4E61",711323:"\u6A2A\u5C71\u4E61",711324:"\u5C16\u77F3\u4E61",711325:"\u5317\u57D4\u4E61",711326:"\u5CE8\u7709\u4E61",711400:"\u6843\u56ED\u53BF",711414:"\u4E2D\u575C\u5E02",711415:"\u5E73\u9547\u5E02",711416:"\u9F99\u6F6D\u4E61",711417:"\u6768\u6885\u5E02",711418:"\u65B0\u5C4B\u4E61",711419:"\u89C2\u97F3\u4E61",711420:"\u6843\u56ED\u5E02",711421:"\u9F9F\u5C71\u4E61",711422:"\u516B\u5FB7\u5E02",711423:"\u5927\u6EAA\u9547",711424:"\u590D\u5174\u4E61",711425:"\u5927\u56ED\u4E61",711426:"\u82A6\u7AF9\u4E61",711500:"\u82D7\u6817\u53BF",711519:"\u7AF9\u5357\u9547",711520:"\u5934\u4EFD\u9547",711521:"\u4E09\u6E7E\u4E61",711522:"\u5357\u5E84\u4E61",711523:"\u72EE\u6F6D\u4E61",711524:"\u540E\u9F99\u9547",711525:"\u901A\u9704\u9547",711526:"\u82D1\u91CC\u9547",711527:"\u82D7\u6817\u5E02",711528:"\u9020\u6865\u4E61",711529:"\u5934\u5C4B\u4E61",711530:"\u516C\u9986\u4E61",711531:"\u5927\u6E56\u4E61",711532:"\u6CF0\u5B89\u4E61",711533:"\u94DC\u9523\u4E61",711534:"\u4E09\u4E49\u4E61",711535:"\u897F\u6E56\u4E61",711536:"\u5353\u5170\u9547",711700:"\u5F70\u5316\u53BF",711727:"\u5F70\u5316\u5E02",711728:"\u82AC\u56ED\u4E61",711729:"\u82B1\u575B\u4E61",711730:"\u79C0\u6C34\u4E61",711731:"\u9E7F\u6E2F\u9547",711732:"\u798F\u5174\u4E61",711733:"\u7EBF\u897F\u4E61",711734:"\u548C\u7F8E\u9547",711735:"\u4F38\u6E2F\u4E61",711736:"\u5458\u6797\u9547",711737:"\u793E\u5934\u4E61",711738:"\u6C38\u9756\u4E61",711739:"\u57D4\u5FC3\u4E61",711740:"\u6EAA\u6E56\u9547",711741:"\u5927\u6751\u4E61",711742:"\u57D4\u76D0\u4E61",711743:"\u7530\u4E2D\u9547",711744:"\u5317\u6597\u9547",711745:"\u7530\u5C3E\u4E61",711746:"\u57E4\u5934\u4E61",711747:"\u6EAA\u5DDE\u4E61",711748:"\u7AF9\u5858\u4E61",711749:"\u4E8C\u6797\u9547",711750:"\u5927\u57CE\u4E61",711751:"\u82B3\u82D1\u4E61",711752:"\u4E8C\u6C34\u4E61",711900:"\u5609\u4E49\u53BF",711919:"\u756A\u8DEF\u4E61",711920:"\u6885\u5C71\u4E61",711921:"\u7AF9\u5D0E\u4E61",711922:"\u963F\u91CC\u5C71\u4E61",711923:"\u4E2D\u57D4\u4E61",711924:"\u5927\u57D4\u4E61",711925:"\u6C34\u4E0A\u4E61",711926:"\u9E7F\u8349\u4E61",711927:"\u592A\u4FDD\u5E02",711928:"\u6734\u5B50\u5E02",711929:"\u4E1C\u77F3\u4E61",711930:"\u516D\u811A\u4E61",711931:"\u65B0\u6E2F\u4E61",711932:"\u6C11\u96C4\u4E61",711933:"\u5927\u6797\u9547",711934:"\u6EAA\u53E3\u4E61",711935:"\u4E49\u7AF9\u4E61",711936:"\u5E03\u888B\u9547",712100:"\u4E91\u6797\u53BF",712121:"\u6597\u5357\u9547",712122:"\u5927\u57E4\u4E61",712123:"\u864E\u5C3E\u9547",712124:"\u571F\u5E93\u9547",712125:"\u8912\u5FE0\u4E61",712126:"\u4E1C\u52BF\u4E61",712127:"\u53F0\u897F\u4E61",712128:"\u4ED1\u80CC\u4E61",712129:"\u9EA6\u5BEE\u4E61",712130:"\u6597\u516D\u5E02",712131:"\u6797\u5185\u4E61",712132:"\u53E4\u5751\u4E61",712133:"\u83BF\u6850\u4E61",712134:"\u897F\u87BA\u9547",712135:"\u4E8C\u4ED1\u4E61",712136:"\u5317\u6E2F\u9547",712137:"\u6C34\u6797\u4E61",712138:"\u53E3\u6E56\u4E61",712139:"\u56DB\u6E56\u4E61",712140:"\u5143\u957F\u4E61",712400:"\u5C4F\u4E1C\u53BF",712434:"\u5C4F\u4E1C\u5E02",712435:"\u4E09\u5730\u95E8\u4E61",712436:"\u96FE\u53F0\u4E61",712437:"\u739B\u5BB6\u4E61",712438:"\u4E5D\u5982\u4E61",712439:"\u91CC\u6E2F\u4E61",712440:"\u9AD8\u6811\u4E61",712441:"\u76D0\u57D4\u4E61",712442:"\u957F\u6CBB\u4E61",712443:"\u9E9F\u6D1B\u4E61",712444:"\u7AF9\u7530\u4E61",712445:"\u5185\u57D4\u4E61",712446:"\u4E07\u4E39\u4E61",712447:"\u6F6E\u5DDE\u9547",712448:"\u6CF0\u6B66\u4E61",712449:"\u6765\u4E49\u4E61",712450:"\u4E07\u5CE6\u4E61",712451:"\u5D01\u9876\u4E61",712452:"\u65B0\u57E4\u4E61",712453:"\u5357\u5DDE\u4E61",712454:"\u6797\u8FB9\u4E61",712455:"\u4E1C\u6E2F\u9547",712456:"\u7409\u7403\u4E61",712457:"\u4F73\u51AC\u4E61",712458:"\u65B0\u56ED\u4E61",712459:"\u678B\u5BEE\u4E61",712460:"\u678B\u5C71\u4E61",712461:"\u6625\u65E5\u4E61",712462:"\u72EE\u5B50\u4E61",712463:"\u8F66\u57CE\u4E61",712464:"\u7261\u4E39\u4E61",712465:"\u6052\u6625\u9547",712466:"\u6EE1\u5DDE\u4E61",712500:"\u53F0\u4E1C\u53BF",712517:"\u53F0\u4E1C\u5E02",712518:"\u7EFF\u5C9B\u4E61",712519:"\u5170\u5C7F\u4E61",712520:"\u5EF6\u5E73\u4E61",712521:"\u5351\u5357\u4E61",712522:"\u9E7F\u91CE\u4E61",712523:"\u5173\u5C71\u9547",712524:"\u6D77\u7AEF\u4E61",712525:"\u6C60\u4E0A\u4E61",712526:"\u4E1C\u6CB3\u4E61",712527:"\u6210\u529F\u9547",712528:"\u957F\u6EE8\u4E61",712529:"\u91D1\u5CF0\u4E61",712530:"\u5927\u6B66\u4E61",712531:"\u8FBE\u4EC1\u4E61",712532:"\u592A\u9EBB\u91CC\u4E61",712600:"\u82B1\u83B2\u53BF",712615:"\u82B1\u83B2\u5E02",712616:"\u65B0\u57CE\u4E61",712617:"\u592A\u9C81\u9601",712618:"\u79C0\u6797\u4E61",712619:"\u5409\u5B89\u4E61",712620:"\u5BFF\u4E30\u4E61",712621:"\u51E4\u6797\u9547",712622:"\u5149\u590D\u4E61",712623:"\u4E30\u6EE8\u4E61",712624:"\u745E\u7A57\u4E61",712625:"\u4E07\u8363\u4E61",712626:"\u7389\u91CC\u9547",712627:"\u5353\u6EAA\u4E61",712628:"\u5BCC\u91CC\u4E61",712700:"\u6F8E\u6E56\u53BF",712707:"\u9A6C\u516C\u5E02",712708:"\u897F\u5C7F\u4E61",712709:"\u671B\u5B89\u4E61",712710:"\u4E03\u7F8E\u4E61",712711:"\u767D\u6C99\u4E61",712712:"\u6E56\u897F\u4E61",712800:"\u8FDE\u6C5F\u53BF",712805:"\u5357\u7AFF\u4E61",712806:"\u5317\u7AFF\u4E61",712807:"\u8392\u5149\u4E61",712808:"\u4E1C\u5F15\u4E61",81e4:"\u9999\u6E2F\u7279\u522B\u884C\u653F\u533A",810100:"\u9999\u6E2F\u5C9B",810101:"\u4E2D\u897F\u533A",810102:"\u6E7E\u4ED4",810103:"\u4E1C\u533A",810104:"\u5357\u533A",810200:"\u4E5D\u9F99",810201:"\u4E5D\u9F99\u57CE\u533A",810202:"\u6CB9\u5C16\u65FA\u533A",810203:"\u6DF1\u6C34\u57D7\u533A",810204:"\u9EC4\u5927\u4ED9\u533A",810205:"\u89C2\u5858\u533A",810300:"\u65B0\u754C",810301:"\u5317\u533A",810302:"\u5927\u57D4\u533A",810303:"\u6C99\u7530\u533A",810304:"\u897F\u8D21\u533A",810305:"\u5143\u6717\u533A",810306:"\u5C6F\u95E8\u533A",810307:"\u8343\u6E7E\u533A",810308:"\u8475\u9752\u533A",810309:"\u79BB\u5C9B\u533A",82e4:"\u6FB3\u95E8\u7279\u522B\u884C\u653F\u533A",820100:"\u6FB3\u95E8\u534A\u5C9B",820200:"\u79BB\u5C9B",99e4:"\u6D77\u5916",990100:"\u6D77\u5916"};function n(o){for(var s={},l=0,c;lze;ze++)$e=M.charAt(ze),$e===` -`?(L.seenCR||L.line++,L.column=1,L.seenCR=!1):$e==="\r"||$e==="\u2028"||$e==="\u2029"?(L.line++,L.column=1,L.seenCR=!0):(L.column++,L.seenCR=!1)}return Pe!==f&&(Pe>f&&(Pe=0,We={line:1,column:1,seenCR:!1}),v(We,Pe,f),Pe=f),We}function T(f){Ze>k||(k>Ze&&(Ze=k,je=[]),je.push(f))}function Y(f){var v=0;for(f.sort();vk?(L=M.charAt(k),k++):(L=null,G===0&&T(S1)),L!==null?(se=f,v=d2(L),v===null&&(k=f),f=v):(k=f,f=oe)):(k=f,f=oe),f}function Le(){var f,v,L;return f=k,M.charCodeAt(k)===92?(v=A1,k++):(v=null,G===0&&T(z1)),v!==null?(p2.test(M.charAt(k))?(L=M.charAt(k),k++):(L=null,G===0&&T(m2)),L!==null?(se=f,v=h2(L),v===null&&(k=f),f=v):(k=f,f=oe)):(k=f,f=oe),f}function Ke(){var f,v,L,te;if(f=k,M.substr(k,2)===Be?(v=Be,k+=2):(v=null,G===0&&T(T1)),v!==null){if(L=[],I1.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(F1)),te!==null)for(;te!==null;)L.push(te),I1.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(F1));else L=oe;L!==null?(se=f,v=g2(L),v===null&&(k=f),f=v):(k=f,f=oe)}else k=f,f=oe;return f}function Ge(){var f,v,L,te;if(f=k,M.substr(k,2)===P1?(v=P1,k+=2):(v=null,G===0&&T(b2)),v!==null){if(L=[],De.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(Ve)),te!==null)for(;te!==null;)L.push(te),De.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(Ve));else L=oe;L!==null?(se=f,v=v2(L),v===null&&(k=f),f=v):(k=f,f=oe)}else k=f,f=oe;return f}function Je(){var f,v,L,te;if(f=k,M.substr(k,2)===$1?(v=$1,k+=2):(v=null,G===0&&T(y2)),v!==null){if(L=[],De.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(Ve)),te!==null)for(;te!==null;)L.push(te),De.test(M.charAt(k))?(te=M.charAt(k),k++):(te=null,G===0&&T(Ve));else L=oe;L!==null?(se=f,v=w2(L),v===null&&(k=f),f=v):(k=f,f=oe)}else k=f,f=oe;return f}function Qe(){var f,v;return f=k,M.substr(k,2)===Be?(v=Be,k+=2):(v=null,G===0&&T(T1)),v!==null&&(se=f,v=x2()),v===null&&(k=f),f=v,f}function e1(){var f,v,L;return f=k,M.charCodeAt(k)===92?(v=A1,k++):(v=null,G===0&&T(z1)),v!==null?(M.length>k?(L=M.charAt(k),k++):(L=null,G===0&&T(S1)),L!==null?(se=f,v=Xe(L),v===null&&(k=f),f=v):(k=f,f=oe)):(k=f,f=oe),f}var Ue,He=arguments.length>1?arguments[1]:{},t1={regexp:J},r1=J,oe=null,Te="",L1="|",H1='"|"',N1=function(f,v){return v?new n(f,v[1]):f},B1=function(f,v,L){return new a([f].concat(v).concat([L]))},n1="^",a1='"^"',D1=function(){return new r("start")},V1="$",Z1='"$"',j1=function(){return new r("end")},U1=function(f,v){return new l(f,v)},Y1="Quantifier",q1=function(f,v){return v&&(f.greedy=!1),f},Ye="{",qe='"{"',X1=",",W1='","',o1="}",i1='"}"',K1=function(f,v){return new c(f,v)},s1=",}",G1='",}"',J1=function(f){return new c(f,1/0)},Q1=function(f){return new c(f,f)},et="+",tt='"+"',rt=function(){return new c(1,1/0)},nt="*",at='"*"',ot=function(){return new c(0,1/0)},l1="?",c1='"?"',it=function(){return new c(0,1)},u1=/^[0-9]/,f1="[0-9]",st=function(f){return+f.join("")},lt="(",ct='"("',ut=")",ft='")"',dt=function(f){return f},pt=function(f){return new s(f)},d1="?:",mt='"?:"',ht=function(f){return new o("non-capture-group",f)},p1="?=",gt='"?="',bt=function(f){return new o("positive-lookahead",f)},m1="?!",vt='"?!"',yt=function(f){return new o("negative-lookahead",f)},wt="CharacterSet",xt="[",kt='"["',_t="]",Et='"]"',Ct=function(f,v){return new u(!!f,v)},Rt="CharacterRange",Mt="-",Ot='"-"',St=function(f,v){return new d(f,v)},At="Character",zt=/^[^\\\]]/,Tt="[^\\\\\\]]",Xe=function(f){return new m(f)},It=".",Ft='"."',Pt=function(){return new r("any-character")},$t="Literal",Lt=/^[^|\\\/.[()?+*$\^]/,Ht="[^|\\\\\\/.[()?+*$\\^]",Ne="\\b",h1='"\\\\b"',Nt=function(){return new r("backspace")},Bt=function(){return new r("word-boundary")},g1="\\B",Dt='"\\\\B"',Vt=function(){return new r("non-word-boundary")},b1="\\d",Zt='"\\\\d"',jt=function(){return new r("digit")},v1="\\D",Ut='"\\\\D"',Yt=function(){return new r("non-digit")},y1="\\f",qt='"\\\\f"',Xt=function(){return new r("form-feed")},w1="\\n",Wt='"\\\\n"',Kt=function(){return new r("line-feed")},x1="\\r",Gt='"\\\\r"',Jt=function(){return new r("carriage-return")},k1="\\s",Qt='"\\\\s"',e2=function(){return new r("white-space")},_1="\\S",t2='"\\\\S"',r2=function(){return new r("non-white-space")},E1="\\t",n2='"\\\\t"',a2=function(){return new r("tab")},C1="\\v",o2='"\\\\v"',i2=function(){return new r("vertical-tab")},R1="\\w",s2='"\\\\w"',l2=function(){return new r("word")},M1="\\W",c2='"\\\\W"',u2=function(){return new r("non-word")},O1="\\c",f2='"\\\\c"',S1="any character",d2=function(f){return new w(f)},A1="\\",z1='"\\\\"',p2=/^[1-9]/,m2="[1-9]",h2=function(f){return new y(f)},Be="\\0",T1='"\\\\0"',I1=/^[0-7]/,F1="[0-7]",g2=function(f){return new g(f.join(""))},P1="\\x",b2='"\\\\x"',De=/^[0-9a-fA-F]/,Ve="[0-9a-fA-F]",v2=function(f){return new x(f.join(""))},$1="\\u",y2='"\\\\u"',w2=function(f){return new b(f.join(""))},x2=function(){return new r("null-character")},k=0,se=0,Pe=0,We={line:1,column:1,seenCR:!1},Ze=0,je=[],G=0;if("startRule"in He){if(!(He.startRule in t1))throw new Error(`Can't start parsing from rule "`+He.startRule+'".');r1=t1[He.startRule]}if(r.offset=j,r.text=I,Ue=r1(),Ue!==null&&k===M.length)return Ue;throw Y(je),se=Math.max(k,Ze),new $(je,seb)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is greater than",message:g};return y.message=c.message(y),x.push(y),!1},lessThan:function(u,d,m,b,x,g){if(m=b)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is greater than or equal to",message:g};return y.message=c.message(y),x.push(y),!1},lessThanOrEqualTo:function(u,d,m,b,x,g){if(m<=b)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is less than or equal to",message:g};return y.message=c.message(y),x.push(y),!1}};s.Diff=l,s.Assert=c,e.exports=s},function(e,t,r){e.exports=r(28)},function(e,t,r){var n=r(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(g,y,w,_){var E=document.createEvent("CustomEvent");return E.initCustomEvent(g,y,w,_),E}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o="readystatechange loadstart progress abort error load timeout loadend".split(" "),s="timeout withCredentials".split(" "),l="readyState responseURL status statusText responseType response responseText responseXML".split(" "),c={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function u(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}u._settings={timeout:"10-100"},u.setup=function(x){return n.extend(u._settings,x),u._settings},n.extend(u,a),n.extend(u.prototype,a),u.prototype.mock=!0,u.prototype.match=!1,n.extend(u.prototype,{open:function(x,g,y,w,_){var E=this;n.extend(this.custom,{method:x,url:g,async:typeof y=="boolean"?y:!0,username:w,password:_,options:{url:g,type:x}}),this.custom.timeout=function(I){if(typeof I=="number")return I;if(typeof I=="string"&&!~I.indexOf("-"))return parseInt(I,10);if(typeof I=="string"&&~I.indexOf("-")){var j=I.split("-"),N=parseInt(j[0],10),T=parseInt(j[1],10);return Math.round(Math.random()*(T-N))+N}}(u._settings.timeout);var z=m(this.custom.options);function R(I){for(var j=0;j{if(n=`${base}${n}`,n in seen)return;seen[n]=!0;const a=n.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${o}`))return;const s=document.createElement("link");if(s.rel=a?"stylesheet":scriptRel,a||(s.as="script",s.crossOrigin=""),s.href=n,document.head.appendChild(s),a)return new Promise((l,c)=>{s.addEventListener("load",l),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},__pages_import_0__=()=>__vitePreload(()=>import("./401.d29fe3f1.js"),["assets/401.d29fe3f1.js","assets/401.f292e8e2.css","assets/401.3f3777af.js","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_1__=()=>__vitePreload(()=>import("./403.5a6e26c4.js"),["assets/403.5a6e26c4.js","assets/401.f292e8e2.css","assets/401.3f3777af.js","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_2__=()=>__vitePreload(()=>import("./404.e2363b53.js"),["assets/404.e2363b53.js","assets/404.b443a636.css","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_3__=()=>__vitePreload(()=>import("./about.50dcf407.js"),[]),__pages_import_4__=()=>__vitePreload(()=>import("./login.0b908c08.js"),["assets/login.0b908c08.js","assets/login.f7a1fc17.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/request.3708b2c4.js","assets/isEqual.fe8e5f6f.js","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/link.0fb91bad.js","assets/link.f7c436ab.css","assets/image-viewer.65ed4853.js","assets/image-viewer.856a8939.css","assets/index.1e624cbf.js","assets/debounce.32892d61.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/scroll.cbf731df.js","assets/zfile-basic.74fe23dd.js","assets/login.e9105da0.js","assets/install.3dbc19b3.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/BadgeCheckIcon.09c2c42b.js"]),__pages_import_5__=()=>__vitePreload(()=>import("./site-setting.e81161ad.js"),["assets/site-setting.e81161ad.js","assets/site-setting.45584336.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/admin-setting.158855e4.js","assets/request.3708b2c4.js","assets/route-block.9b0645f8.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/event.3ec63147.js","assets/focus-trap.58847c97.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/BadgeCheckIcon.09c2c42b.js","assets/directive.e250a256.js"]),__pages_import_6__=()=>__vitePreload(()=>import("./storage-list.39c47c97.js"),["assets/storage-list.39c47c97.js","assets/storage-list.33b9c5a5.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/icon.cca102d8.css","assets/popover.74dd4546.css","assets/input.c3618236.css","assets/401.3f3777af.js","assets/zfile-basic.74fe23dd.js","assets/zfile-horizontal.8a0fa4a8.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/table-column.0ede6c12.js","assets/table-column.58e8e9a6.css","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/index.24f1077d.js","assets/request.3708b2c4.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/debounce.32892d61.js","assets/event.776e7e11.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/index.1e624cbf.js","assets/tooltip.f118fcb0.js","assets/dropdown-item.448534e1.js","assets/dropdown-item.32357c71.css","assets/dropdown.d5503246.js","assets/refs.4597d917.js","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/storage-list.66a3eccf.js","assets/admin-storage.260bbac1.js","assets/sortable.esm.a99254e8.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/validator.6f3b33db.js","assets/route-block.9b0645f8.js","assets/index.3eb5cbdf.js","assets/index.e168d154.js","assets/directive.e250a256.js"]),__pages_import_7__=()=>__vitePreload(()=>import("./update-password.668901e0.js"),["assets/update-password.668901e0.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/admin-setting.158855e4.js","assets/request.3708b2c4.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.09c2c42b.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/directive.e250a256.js"]),__pages_import_8__=()=>__vitePreload(()=>import("./view-setting.2b05bf6c.js"),["assets/view-setting.2b05bf6c.js","assets/view-setting.5cb31b70.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/event.776e7e11.js","assets/radio.427cda7a.js","assets/radio.3ebff4f2.css","assets/index.4ab44dc8.js","assets/admin-setting.158855e4.js","assets/common.0f75f163.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.09c2c42b.js","assets/directive.e250a256.js"]),__pages_import_9__=()=>__vitePreload(()=>import("./index.6cd9e943.js"),["assets/index.6cd9e943.js","assets/index.467dedf2.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/request.3708b2c4.js","assets/isEqual.fe8e5f6f.js","assets/zfile-basic.74fe23dd.js","assets/install.3dbc19b3.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/BadgeCheckIcon.09c2c42b.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js"]),__pages_import_10__=()=>__vitePreload(()=>import("./basic-setting.06f7761c.js"),["assets/basic-setting.06f7761c.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.427cda7a.js","assets/radio.3ebff4f2.css","assets/event.776e7e11.js","assets/index.4ab44dc8.js","assets/request.3708b2c4.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/useLinkSetting.49293b3b.js","assets/admin-setting.158855e4.js","assets/directive.e250a256.js"]),__pages_import_11__=()=>__vitePreload(()=>import("./index.a4c8baa8.js"),["assets/index.a4c8baa8.js","assets/index.3c72444b.css","assets/input.c3618236.css","assets/popover.74dd4546.css","assets/button.cca160de.css","assets/loading.dd11abc3.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/dialog.04a5229a.js","assets/dialog.731d01ef.css","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.1e624cbf.js","assets/focus-trap.58847c97.js","assets/refs.4597d917.js","assets/table-column.0ede6c12.js","assets/table-column.58e8e9a6.css","assets/zh-cn.4ccaa6e9.js","assets/zh-cn.3cfc5143.css","assets/request.3708b2c4.js","assets/dayjs.min.79223755.js","assets/index.4ab44dc8.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/event.3ec63147.js","assets/index.24f1077d.js","assets/index.7fa0be7b.js","assets/debounce.32892d61.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/isEqual.fe8e5f6f.js","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/index.3eb5cbdf.js","assets/validator.6f3b33db.js","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/tooltip.f118fcb0.js","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/basic-setting.06f7761c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.427cda7a.js","assets/radio.3ebff4f2.css","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/useLinkSetting.49293b3b.js","assets/admin-setting.158855e4.js","assets/directive.e250a256.js","assets/admin-storage.260bbac1.js","assets/route-block.9b0645f8.js","assets/index.11692625.js"]),__pages_import_12__=()=>__vitePreload(()=>import("./log.1de7f45f.js"),["assets/log.1de7f45f.js","assets/log.bbc48b3b.css","assets/input.c3618236.css","assets/popover.74dd4546.css","assets/button.cca160de.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/table-column.0ede6c12.js","assets/table-column.58e8e9a6.css","assets/zh-cn.4ccaa6e9.js","assets/zh-cn.3cfc5143.css","assets/request.3708b2c4.js","assets/dayjs.min.79223755.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.1e624cbf.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/index.24f1077d.js","assets/index.7fa0be7b.js","assets/debounce.32892d61.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/isEqual.fe8e5f6f.js","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/index.3eb5cbdf.js","assets/scroll.cbf731df.js","assets/validator.6f3b33db.js","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/tooltip.f118fcb0.js","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/useLinkSetting.49293b3b.js","assets/admin-setting.158855e4.js","assets/admin-storage.260bbac1.js","assets/route-block.9b0645f8.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/index.11692625.js","assets/index.0f572ca8.js"]),__pages_import_13__=()=>__vitePreload(()=>import("./setting.6f3ba85b.js"),["assets/setting.6f3ba85b.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/basic-setting.06f7761c.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.427cda7a.js","assets/radio.3ebff4f2.css","assets/event.776e7e11.js","assets/index.4ab44dc8.js","assets/request.3708b2c4.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/useLinkSetting.49293b3b.js","assets/admin-setting.158855e4.js","assets/directive.e250a256.js","assets/route-block.9b0645f8.js"]),__pages_import_14__=()=>__vitePreload(()=>import("./index.0b21af12.js"),["assets/index.0b21af12.js","assets/index.1f8079a9.css","assets/loading.dd11abc3.css","assets/input.c3618236.css","assets/button.cca160de.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/image-viewer.65ed4853.js","assets/image-viewer.856a8939.css","assets/index.1e624cbf.js","assets/debounce.32892d61.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/scroll.cbf731df.js","assets/radio.427cda7a.js","assets/radio.3ebff4f2.css","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/admin-setting.158855e4.js","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/index.11692625.js","assets/index.0f572ca8.js","assets/route-block.9b0645f8.js","assets/directive.e250a256.js"]),__pages_import_15__=()=>__vitePreload(()=>import("./index.13892a7e.js"),["assets/index.13892a7e.js","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/index.24f1077d.js","assets/request.3708b2c4.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/debounce.32892d61.js","assets/event.776e7e11.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/index.1e624cbf.js","assets/tooltip.f118fcb0.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/admin-storage.260bbac1.js","assets/storage-list.66a3eccf.js","assets/sortable.esm.a99254e8.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js"]),__pages_import_16__=()=>__vitePreload(()=>import("./_storageId_.3eb531f0.js"),["assets/_storageId_.3eb531f0.js","assets/button.cca160de.css","assets/popover.74dd4546.css","assets/input.c3618236.css","assets/index.8485884c.js","assets/index.d10d6412.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/link.0fb91bad.js","assets/link.f7c436ab.css","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/event.776e7e11.js","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/index.4ab44dc8.js","assets/index.24f1077d.js","assets/index.3eb5cbdf.js","assets/index.1e624cbf.js","assets/scroll.cbf731df.js","assets/isEqual.fe8e5f6f.js","assets/debounce.32892d61.js","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/admin-storage.260bbac1.js","assets/route-block.9b0645f8.js","assets/index.e168d154.js","assets/dropdown.d5503246.js","assets/BadgeCheckIcon.09c2c42b.js","assets/index.11692625.js","assets/index.0f572ca8.js"]),__pages_import_17__=()=>__vitePreload(()=>import("./index.8485884c.js"),["assets/index.8485884c.js","assets/index.d10d6412.css","assets/button.cca160de.css","assets/popover.74dd4546.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/link.0fb91bad.js","assets/link.f7c436ab.css","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/event.776e7e11.js","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/index.4ab44dc8.js","assets/index.24f1077d.js","assets/index.3eb5cbdf.js","assets/index.1e624cbf.js","assets/scroll.cbf731df.js","assets/isEqual.fe8e5f6f.js","assets/debounce.32892d61.js","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/admin-storage.260bbac1.js","assets/route-block.9b0645f8.js","assets/index.e168d154.js","assets/dropdown.d5503246.js","assets/BadgeCheckIcon.09c2c42b.js","assets/index.11692625.js","assets/index.0f572ca8.js"]),__pages_import_18__=()=>__vitePreload(()=>import("./_storageId_.03a5b211.js"),["assets/_storageId_.03a5b211.js","assets/_storageId_.11ae694b.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/request.3708b2c4.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/index.24f1077d.js","assets/index.3eb5cbdf.js","assets/index.1e624cbf.js","assets/scroll.cbf731df.js","assets/isEqual.fe8e5f6f.js","assets/debounce.32892d61.js","assets/validator.6f3b33db.js","assets/tooltip.f118fcb0.js","assets/alert.36ada7cc.js","assets/alert.220a30c1.css","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/admin-storage.260bbac1.js","assets/common.9723c890.js","assets/index.11692625.js","assets/index.0f572ca8.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.09c2c42b.js","assets/directive.e250a256.js"]),__pages_import_19__=()=>__vitePreload(()=>import("./_storageId_.e6e69340.js"),["assets/_storageId_.e6e69340.js","assets/_storageId_.21797378.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/alert.36ada7cc.js","assets/alert.220a30c1.css","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/admin-storage.260bbac1.js","assets/common.9723c890.js","assets/sortable.esm.a99254e8.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/validator.6f3b33db.js","assets/index.1e624cbf.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.09c2c42b.js","assets/directive.e250a256.js"]),__pages_import_20__=()=>__vitePreload(()=>import("./_storageId_.03f24b2e.js"),["assets/_storageId_.03f24b2e.js","assets/_storageId_.e28774f9.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/request.3708b2c4.js","assets/index.4ab44dc8.js","assets/event.776e7e11.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/index.24f1077d.js","assets/index.3eb5cbdf.js","assets/index.1e624cbf.js","assets/scroll.cbf731df.js","assets/isEqual.fe8e5f6f.js","assets/debounce.32892d61.js","assets/validator.6f3b33db.js","assets/tooltip.f118fcb0.js","assets/alert.36ada7cc.js","assets/alert.220a30c1.css","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.7a4b4758.js","assets/ZFormItem.e3c3668e.css","assets/index.c92ded65.js","assets/admin-storage.260bbac1.js","assets/common.9723c890.js","assets/sortable.esm.a99254e8.js","assets/index.11692625.js","assets/index.0f572ca8.js","assets/readme-editor-dialog.a4ecf68a.js","assets/dialog.04a5229a.js","assets/dialog.731d01ef.css","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/refs.4597d917.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.09c2c42b.js","assets/directive.e250a256.js"]),__pages_import_21__=()=>__vitePreload(()=>import("./readme-editor-dialog.a4ecf68a.js"),["assets/readme-editor-dialog.a4ecf68a.js","assets/button.cca160de.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/dialog.04a5229a.js","assets/dialog.731d01ef.css","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.1e624cbf.js","assets/focus-trap.58847c97.js","assets/refs.4597d917.js"]),routes$1=[{name:"401",path:"/401",component:__pages_import_0__,props:!0,meta:{layout:"notFound"}},{name:"403",path:"/403",component:__pages_import_1__,props:!0,meta:{layout:"notFound"}},{name:"404",path:"/404",component:__pages_import_2__,props:!0,meta:{layout:"notFound"}},{name:"about",path:"/about",component:__pages_import_3__,props:!0},{name:"login",path:"/login",component:__pages_import_4__,props:!0},{name:"admin-site-setting",path:"/admin/site-setting",component:__pages_import_5__,props:!0,meta:{layout:"admin",name:"\u57FA\u672C\u8BBE\u7F6E"}},{name:"admin-storage-list",path:"/admin/storage-list",component:__pages_import_6__,props:!0,meta:{layout:"admin",name:"\u5B58\u50A8\u6E90\u7BA1\u7406"}},{name:"admin-update-password",path:"/admin/update-password",component:__pages_import_7__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u7BA1\u7406"}},{name:"admin-view-setting",path:"/admin/view-setting",component:__pages_import_8__,props:!0,meta:{layout:"admin",name:"\u663E\u793A\u8BBE\u7F6E"}},{name:"install",path:"/install",component:__pages_import_9__,props:!0},{name:"admin-download-link-basic-setting",path:"/admin/download-link/basic-setting",component:__pages_import_10__,props:!0},{name:"admin-download-link",path:"/admin/download-link",component:__pages_import_11__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u7BA1\u7406"}},{name:"admin-download-link-log",path:"/admin/download-link/log",component:__pages_import_12__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u65E5\u5FD7"}},{name:"admin-download-link-setting",path:"/admin/download-link/setting",component:__pages_import_13__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u8BBE\u7F6E"}},{name:"admin-security-setting",path:"/admin/security-setting",component:__pages_import_14__,props:!0,meta:{layout:"admin",name:"\u57FA\u672C\u8BBE\u7F6E"}},{name:"admin-storage-cache",path:"/admin/storage-cache",component:__pages_import_15__,props:!0},{name:"admin-storage-edit-storageId",path:"/admin/storage-edit/:storageId",component:__pages_import_16__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-edit",path:"/admin/storage-edit",component:__pages_import_17__,props:!0,meta:{layout:"admin",name:"\u65B0\u589E\u5B58\u50A8\u6E90"}},{name:"admin-storage-filter-storageId",path:"/admin/storage-filter/:storageId",component:__pages_import_18__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-password-storageId",path:"/admin/storage-password/:storageId",component:__pages_import_19__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-readme-storageId",path:"/admin/storage-readme/:storageId",component:__pages_import_20__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-readme-readme-editor-dialog",path:"/admin/storage-readme/readme-editor-dialog",component:__pages_import_21__,props:!0}],setupLayouts=e=>{const t={};return Object.entries({"/src/layouts/admin.vue":()=>__vitePreload(()=>import("./admin.3a9a6939.js"),["assets/admin.3a9a6939.js","assets/admin.9c417d7f.css","assets/button.cca160de.css","assets/icon.cca102d8.css","assets/popover.74dd4546.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/dropdown-item.448534e1.js","assets/dropdown-item.32357c71.css","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/index.24f1077d.js","assets/dropdown.d5503246.js","assets/index.1e624cbf.js","assets/refs.4597d917.js","assets/link.0fb91bad.js","assets/link.f7c436ab.css","assets/zfile-basic.74fe23dd.js","assets/zfile-horizontal.8a0fa4a8.js","assets/admin-setting.158855e4.js","assets/login.e9105da0.js","assets/dayjs.min.79223755.js","assets/common.0f75f163.js","assets/index.e168d154.js","assets/MenuIcon.aa2f9509.js"]),"/src/layouts/default.vue":()=>__vitePreload(()=>import("./default.6e40c15c.js"),["assets/default.6e40c15c.js","assets/plugin-vue_export-helper.21dcd24c.js"]),"/src/layouts/file.vue":()=>__vitePreload(()=>import("./file.1d5fdc69.js"),["assets/file.1d5fdc69.js","assets/file.9e059b07.css","assets/input.c3618236.css","assets/button.cca160de.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/switch.2393edfd.js","assets/switch.de8121aa.css","assets/validator.6f3b33db.js","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/SvgIcon.c7a5ac24.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/select.ff52a9e1.js","assets/select.00495d75.css","assets/index.4ab44dc8.js","assets/index.24f1077d.js","assets/index.3eb5cbdf.js","assets/index.1e624cbf.js","assets/isEqual.fe8e5f6f.js","assets/debounce.32892d61.js","assets/useFileUpload.b18c246f.js","assets/common.0f75f163.js","assets/index.11692625.js","assets/directive.e250a256.js","assets/index.7fa0be7b.js","assets/dropdown-item.448534e1.js","assets/dropdown-item.32357c71.css","assets/dropdown.d5503246.js","assets/refs.4597d917.js","assets/MenuIcon.aa2f9509.js"]),"/src/layouts/notFound.vue":()=>__vitePreload(()=>import("./notFound.f776ca6e.js"),["assets/notFound.f776ca6e.js","assets/plugin-vue_export-helper.21dcd24c.js"])}).forEach(([n,a])=>{let o=n.replace("/src/layouts/","").replace(".vue","");t[o]=a}),e.map(n=>{var a;return{path:n.path,component:t[((a=n.meta)==null?void 0:a.layout)||"default"],children:[{...n,path:""}],meta:{isLayout:!0}}})};/*! +*/var d={Handler:n,Random:o,Util:a,XHR:u,RE:s,toJSONSchema:l,valid:c,heredoc:a.heredoc,setup:function(m){return u.setup(m)},_mocked:{}};d.version="1.0.1-beta3",u&&(u.Mock=d),d.mock=function(m,b,x){return arguments.length===1?n.gen(m):(arguments.length===2&&(x=b,b=void 0),u&&(window.XMLHttpRequest=u),d._mocked[m+(b||"")]={rurl:m,rtype:b,template:x},d)},e.exports=d},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(e,t,r){t=t==null?"":t+"",r=r||{},r={path:r.path||[Constant.GUID],templatePath:r.templatePath||[Constant.GUID++],currentContext:r.currentContext,templateCurrentContext:r.templateCurrentContext||e,root:r.root||r.currentContext,templateRoot:r.templateRoot||r.templateCurrentContext||e};var n=Parser.parse(t),a=Util.type(e),o;return Handler[a]?(o=Handler[a]({type:a,template:e,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:n,context:r}),r.root||(r.root=o),o):e},Handler.extend({array:function(e){var t=[],r,n;if(e.template.length===0)return t;if(e.rule.parameters)if(e.rule.min===1&&e.rule.max===void 0)e.context.path.push(e.name),e.context.templatePath.push(e.name),t=Random.pick(Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:t,templateCurrentContext:e.template,root:e.context.root||t,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else if(e.rule.parameters[2])e.template.__order_index=e.template.__order_index||0,e.context.path.push(e.name),e.context.templatePath.push(e.name),t=Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:t,templateCurrentContext:e.template,root:e.context.root||t,templateRoot:e.context.templateRoot||e.template})[e.template.__order_index%e.template.length],e.template.__order_index+=+e.rule.parameters[2],e.context.path.pop(),e.context.templatePath.pop();else for(r=0;r1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(a=t.context.path.slice(0),a.pop(),a=this.normalizePath(a.concat(n)));try{e=n[n.length-1];for(var o=t.context.root,s=t.context.templateRoot,l=1;l1/(r+n)*r?!a:a):Math.random()>=.5},bool:function(r,n,a){return this.boolean(r,n,a)},natural:function(r,n){return r=typeof r!="undefined"?parseInt(r,10):0,n=typeof n!="undefined"?parseInt(n,10):9007199254740992,Math.round(Math.random()*(n-r))+r},integer:function(r,n){return r=typeof r!="undefined"?parseInt(r,10):-9007199254740992,n=typeof n!="undefined"?parseInt(n,10):9007199254740992,Math.round(Math.random()*(n-r))+r},int:function(r,n){return this.integer(r,n)},float:function(r,n,a,o){a=a===void 0?0:a,a=Math.max(Math.min(a,17),0),o=o===void 0?17:o,o=Math.max(Math.min(o,17),0);for(var s=this.integer(r,n)+".",l=0,c=this.natural(a,o);l1&&u--,6*u<1?m=l+(c-l)*6*u:2*u<1?m=c:3*u<2?m=l+(c-l)*(2/3-u)*6:m=l,d[b]=m*255;return d},hsl2hsv:function(n){var a=n[0],o=n[1]/100,s=n[2]/100,l,c;return s*=2,o*=s<=1?s:2-s,c=(s+o)/2,l=2*o/(s+o),[a,l*100,c*100]},hsv2rgb:function(n){var a=n[0]/60,o=n[1]/100,s=n[2]/100,l=Math.floor(a)%6,c=a-Math.floor(a),u=255*s*(1-o),d=255*s*(1-o*c),m=255*s*(1-o*(1-c));switch(s=255*s,l){case 0:return[s,m,u];case 1:return[d,s,u];case 2:return[u,s,m];case 3:return[u,d,s];case 4:return[m,u,s];case 5:return[s,u,d]}},hsv2hsl:function(n){var a=n[0],o=n[1]/100,s=n[2]/100,l,c;return c=(2-o)*s,l=o*s,l/=c<=1?c:2-c,c/=2,[a,l*100,c*100]},rgb2hex:function(r,n,a){return"#"+((256+r<<8|n)<<8|a).toString(16).slice(1)},hex2rgb:function(r){return r="0x"+r.slice(1).replace(r.length>4?r:/./g,"$&$&")|0,[r>>16,r>>8&255,r&255]}}},function(e,t){e.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(e,t,r){var n=r(6),a=r(14);function o(s,l,c,u){return c===void 0?n.natural(s,l):u===void 0?c:n.natural(parseInt(c,10),parseInt(u,10))}e.exports={paragraph:function(s,l){for(var c=o(3,7,s,l),u=[],d=0;d1&&(o=[].slice.call(arguments,0));var s=a.options,l=s.context.templatePath.join("."),c=a.cache[l]=a.cache[l]||{index:0,array:o};return c.array[c.index++%c.array.length]}}},function(e,t){e.exports={first:function(){var r=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(r)},last:function(){var r=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(r)},name:function(r){return this.first()+" "+(r?this.first()+" ":"")+this.last()},cfirst:function(){var r="\u738B \u674E \u5F20 \u5218 \u9648 \u6768 \u8D75 \u9EC4 \u5468 \u5434 \u5F90 \u5B59 \u80E1 \u6731 \u9AD8 \u6797 \u4F55 \u90ED \u9A6C \u7F57 \u6881 \u5B8B \u90D1 \u8C22 \u97E9 \u5510 \u51AF \u4E8E \u8463 \u8427 \u7A0B \u66F9 \u8881 \u9093 \u8BB8 \u5085 \u6C88 \u66FE \u5F6D \u5415 \u82CF \u5362 \u848B \u8521 \u8D3E \u4E01 \u9B4F \u859B \u53F6 \u960E \u4F59 \u6F58 \u675C \u6234 \u590F \u953A \u6C6A \u7530 \u4EFB \u59DC \u8303 \u65B9 \u77F3 \u59DA \u8C2D \u5ED6 \u90B9 \u718A \u91D1 \u9646 \u90DD \u5B54 \u767D \u5D14 \u5EB7 \u6BDB \u90B1 \u79E6 \u6C5F \u53F2 \u987E \u4FAF \u90B5 \u5B5F \u9F99 \u4E07 \u6BB5 \u96F7 \u94B1 \u6C64 \u5C39 \u9ECE \u6613 \u5E38 \u6B66 \u4E54 \u8D3A \u8D56 \u9F9A \u6587".split(" ");return this.pick(r)},clast:function(){var r="\u4F1F \u82B3 \u5A1C \u79C0\u82F1 \u654F \u9759 \u4E3D \u5F3A \u78CA \u519B \u6D0B \u52C7 \u8273 \u6770 \u5A1F \u6D9B \u660E \u8D85 \u79C0\u5170 \u971E \u5E73 \u521A \u6842\u82F1".split(" ");return this.pick(r)},cname:function(){return this.cfirst()+this.clast()}}},function(e,t){e.exports={url:function(r,n){return(r||this.protocol())+"://"+(n||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(r){return this.word()+"."+(r||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn \u4E2D\u56FD \u4E2D\u56FD\u4E92\u8054.\u516C\u53F8 \u4E2D\u56FD\u4E92\u8054.\u7F51\u7EDC tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(r){return this.character("lower")+"."+this.word()+"@"+(r||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(e,t,r){var n=r(18),a=["\u4E1C\u5317","\u534E\u5317","\u534E\u4E1C","\u534E\u4E2D","\u534E\u5357","\u897F\u5357","\u897F\u5317"];e.exports={region:function(){return this.pick(a)},province:function(){return this.pick(n).name},city:function(o){var s=this.pick(n),l=this.pick(s.children);return o?[s.name,l.name].join(" "):l.name},county:function(o){var s=this.pick(n),l=this.pick(s.children),c=this.pick(l.children)||{name:"-"};return o?[s.name,l.name,c.name].join(" "):c.name},zip:function(o){for(var s="",l=0;l<(o||6);l++)s+=this.natural(0,9);return s}}},function(e,t){var r={11e4:"\u5317\u4EAC",110100:"\u5317\u4EAC\u5E02",110101:"\u4E1C\u57CE\u533A",110102:"\u897F\u57CE\u533A",110105:"\u671D\u9633\u533A",110106:"\u4E30\u53F0\u533A",110107:"\u77F3\u666F\u5C71\u533A",110108:"\u6D77\u6DC0\u533A",110109:"\u95E8\u5934\u6C9F\u533A",110111:"\u623F\u5C71\u533A",110112:"\u901A\u5DDE\u533A",110113:"\u987A\u4E49\u533A",110114:"\u660C\u5E73\u533A",110115:"\u5927\u5174\u533A",110116:"\u6000\u67D4\u533A",110117:"\u5E73\u8C37\u533A",110228:"\u5BC6\u4E91\u53BF",110229:"\u5EF6\u5E86\u53BF",110230:"\u5176\u5B83\u533A",12e4:"\u5929\u6D25",120100:"\u5929\u6D25\u5E02",120101:"\u548C\u5E73\u533A",120102:"\u6CB3\u4E1C\u533A",120103:"\u6CB3\u897F\u533A",120104:"\u5357\u5F00\u533A",120105:"\u6CB3\u5317\u533A",120106:"\u7EA2\u6865\u533A",120110:"\u4E1C\u4E3D\u533A",120111:"\u897F\u9752\u533A",120112:"\u6D25\u5357\u533A",120113:"\u5317\u8FB0\u533A",120114:"\u6B66\u6E05\u533A",120115:"\u5B9D\u577B\u533A",120116:"\u6EE8\u6D77\u65B0\u533A",120221:"\u5B81\u6CB3\u53BF",120223:"\u9759\u6D77\u53BF",120225:"\u84DF\u53BF",120226:"\u5176\u5B83\u533A",13e4:"\u6CB3\u5317\u7701",130100:"\u77F3\u5BB6\u5E84\u5E02",130102:"\u957F\u5B89\u533A",130103:"\u6865\u4E1C\u533A",130104:"\u6865\u897F\u533A",130105:"\u65B0\u534E\u533A",130107:"\u4E95\u9649\u77FF\u533A",130108:"\u88D5\u534E\u533A",130121:"\u4E95\u9649\u53BF",130123:"\u6B63\u5B9A\u53BF",130124:"\u683E\u57CE\u53BF",130125:"\u884C\u5510\u53BF",130126:"\u7075\u5BFF\u53BF",130127:"\u9AD8\u9091\u53BF",130128:"\u6DF1\u6CFD\u53BF",130129:"\u8D5E\u7687\u53BF",130130:"\u65E0\u6781\u53BF",130131:"\u5E73\u5C71\u53BF",130132:"\u5143\u6C0F\u53BF",130133:"\u8D75\u53BF",130181:"\u8F9B\u96C6\u5E02",130182:"\u85C1\u57CE\u5E02",130183:"\u664B\u5DDE\u5E02",130184:"\u65B0\u4E50\u5E02",130185:"\u9E7F\u6CC9\u5E02",130186:"\u5176\u5B83\u533A",130200:"\u5510\u5C71\u5E02",130202:"\u8DEF\u5357\u533A",130203:"\u8DEF\u5317\u533A",130204:"\u53E4\u51B6\u533A",130205:"\u5F00\u5E73\u533A",130207:"\u4E30\u5357\u533A",130208:"\u4E30\u6DA6\u533A",130223:"\u6EE6\u53BF",130224:"\u6EE6\u5357\u53BF",130225:"\u4E50\u4EAD\u53BF",130227:"\u8FC1\u897F\u53BF",130229:"\u7389\u7530\u53BF",130230:"\u66F9\u5983\u7538\u533A",130281:"\u9075\u5316\u5E02",130283:"\u8FC1\u5B89\u5E02",130284:"\u5176\u5B83\u533A",130300:"\u79E6\u7687\u5C9B\u5E02",130302:"\u6D77\u6E2F\u533A",130303:"\u5C71\u6D77\u5173\u533A",130304:"\u5317\u6234\u6CB3\u533A",130321:"\u9752\u9F99\u6EE1\u65CF\u81EA\u6CBB\u53BF",130322:"\u660C\u9ECE\u53BF",130323:"\u629A\u5B81\u53BF",130324:"\u5362\u9F99\u53BF",130398:"\u5176\u5B83\u533A",130400:"\u90AF\u90F8\u5E02",130402:"\u90AF\u5C71\u533A",130403:"\u4E1B\u53F0\u533A",130404:"\u590D\u5174\u533A",130406:"\u5CF0\u5CF0\u77FF\u533A",130421:"\u90AF\u90F8\u53BF",130423:"\u4E34\u6F33\u53BF",130424:"\u6210\u5B89\u53BF",130425:"\u5927\u540D\u53BF",130426:"\u6D89\u53BF",130427:"\u78C1\u53BF",130428:"\u80A5\u4E61\u53BF",130429:"\u6C38\u5E74\u53BF",130430:"\u90B1\u53BF",130431:"\u9E21\u6CFD\u53BF",130432:"\u5E7F\u5E73\u53BF",130433:"\u9986\u9676\u53BF",130434:"\u9B4F\u53BF",130435:"\u66F2\u5468\u53BF",130481:"\u6B66\u5B89\u5E02",130482:"\u5176\u5B83\u533A",130500:"\u90A2\u53F0\u5E02",130502:"\u6865\u4E1C\u533A",130503:"\u6865\u897F\u533A",130521:"\u90A2\u53F0\u53BF",130522:"\u4E34\u57CE\u53BF",130523:"\u5185\u4E18\u53BF",130524:"\u67CF\u4E61\u53BF",130525:"\u9686\u5C27\u53BF",130526:"\u4EFB\u53BF",130527:"\u5357\u548C\u53BF",130528:"\u5B81\u664B\u53BF",130529:"\u5DE8\u9E7F\u53BF",130530:"\u65B0\u6CB3\u53BF",130531:"\u5E7F\u5B97\u53BF",130532:"\u5E73\u4E61\u53BF",130533:"\u5A01\u53BF",130534:"\u6E05\u6CB3\u53BF",130535:"\u4E34\u897F\u53BF",130581:"\u5357\u5BAB\u5E02",130582:"\u6C99\u6CB3\u5E02",130583:"\u5176\u5B83\u533A",130600:"\u4FDD\u5B9A\u5E02",130602:"\u65B0\u5E02\u533A",130603:"\u5317\u5E02\u533A",130604:"\u5357\u5E02\u533A",130621:"\u6EE1\u57CE\u53BF",130622:"\u6E05\u82D1\u53BF",130623:"\u6D9E\u6C34\u53BF",130624:"\u961C\u5E73\u53BF",130625:"\u5F90\u6C34\u53BF",130626:"\u5B9A\u5174\u53BF",130627:"\u5510\u53BF",130628:"\u9AD8\u9633\u53BF",130629:"\u5BB9\u57CE\u53BF",130630:"\u6D9E\u6E90\u53BF",130631:"\u671B\u90FD\u53BF",130632:"\u5B89\u65B0\u53BF",130633:"\u6613\u53BF",130634:"\u66F2\u9633\u53BF",130635:"\u8821\u53BF",130636:"\u987A\u5E73\u53BF",130637:"\u535A\u91CE\u53BF",130638:"\u96C4\u53BF",130681:"\u6DBF\u5DDE\u5E02",130682:"\u5B9A\u5DDE\u5E02",130683:"\u5B89\u56FD\u5E02",130684:"\u9AD8\u7891\u5E97\u5E02",130699:"\u5176\u5B83\u533A",130700:"\u5F20\u5BB6\u53E3\u5E02",130702:"\u6865\u4E1C\u533A",130703:"\u6865\u897F\u533A",130705:"\u5BA3\u5316\u533A",130706:"\u4E0B\u82B1\u56ED\u533A",130721:"\u5BA3\u5316\u53BF",130722:"\u5F20\u5317\u53BF",130723:"\u5EB7\u4FDD\u53BF",130724:"\u6CBD\u6E90\u53BF",130725:"\u5C1A\u4E49\u53BF",130726:"\u851A\u53BF",130727:"\u9633\u539F\u53BF",130728:"\u6000\u5B89\u53BF",130729:"\u4E07\u5168\u53BF",130730:"\u6000\u6765\u53BF",130731:"\u6DBF\u9E7F\u53BF",130732:"\u8D64\u57CE\u53BF",130733:"\u5D07\u793C\u53BF",130734:"\u5176\u5B83\u533A",130800:"\u627F\u5FB7\u5E02",130802:"\u53CC\u6865\u533A",130803:"\u53CC\u6EE6\u533A",130804:"\u9E70\u624B\u8425\u5B50\u77FF\u533A",130821:"\u627F\u5FB7\u53BF",130822:"\u5174\u9686\u53BF",130823:"\u5E73\u6CC9\u53BF",130824:"\u6EE6\u5E73\u53BF",130825:"\u9686\u5316\u53BF",130826:"\u4E30\u5B81\u6EE1\u65CF\u81EA\u6CBB\u53BF",130827:"\u5BBD\u57CE\u6EE1\u65CF\u81EA\u6CBB\u53BF",130828:"\u56F4\u573A\u6EE1\u65CF\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",130829:"\u5176\u5B83\u533A",130900:"\u6CA7\u5DDE\u5E02",130902:"\u65B0\u534E\u533A",130903:"\u8FD0\u6CB3\u533A",130921:"\u6CA7\u53BF",130922:"\u9752\u53BF",130923:"\u4E1C\u5149\u53BF",130924:"\u6D77\u5174\u53BF",130925:"\u76D0\u5C71\u53BF",130926:"\u8083\u5B81\u53BF",130927:"\u5357\u76AE\u53BF",130928:"\u5434\u6865\u53BF",130929:"\u732E\u53BF",130930:"\u5B5F\u6751\u56DE\u65CF\u81EA\u6CBB\u53BF",130981:"\u6CCA\u5934\u5E02",130982:"\u4EFB\u4E18\u5E02",130983:"\u9EC4\u9A85\u5E02",130984:"\u6CB3\u95F4\u5E02",130985:"\u5176\u5B83\u533A",131e3:"\u5ECA\u574A\u5E02",131002:"\u5B89\u6B21\u533A",131003:"\u5E7F\u9633\u533A",131022:"\u56FA\u5B89\u53BF",131023:"\u6C38\u6E05\u53BF",131024:"\u9999\u6CB3\u53BF",131025:"\u5927\u57CE\u53BF",131026:"\u6587\u5B89\u53BF",131028:"\u5927\u5382\u56DE\u65CF\u81EA\u6CBB\u53BF",131081:"\u9738\u5DDE\u5E02",131082:"\u4E09\u6CB3\u5E02",131083:"\u5176\u5B83\u533A",131100:"\u8861\u6C34\u5E02",131102:"\u6843\u57CE\u533A",131121:"\u67A3\u5F3A\u53BF",131122:"\u6B66\u9091\u53BF",131123:"\u6B66\u5F3A\u53BF",131124:"\u9976\u9633\u53BF",131125:"\u5B89\u5E73\u53BF",131126:"\u6545\u57CE\u53BF",131127:"\u666F\u53BF",131128:"\u961C\u57CE\u53BF",131181:"\u5180\u5DDE\u5E02",131182:"\u6DF1\u5DDE\u5E02",131183:"\u5176\u5B83\u533A",14e4:"\u5C71\u897F\u7701",140100:"\u592A\u539F\u5E02",140105:"\u5C0F\u5E97\u533A",140106:"\u8FCE\u6CFD\u533A",140107:"\u674F\u82B1\u5CAD\u533A",140108:"\u5C16\u8349\u576A\u533A",140109:"\u4E07\u67CF\u6797\u533A",140110:"\u664B\u6E90\u533A",140121:"\u6E05\u5F90\u53BF",140122:"\u9633\u66F2\u53BF",140123:"\u5A04\u70E6\u53BF",140181:"\u53E4\u4EA4\u5E02",140182:"\u5176\u5B83\u533A",140200:"\u5927\u540C\u5E02",140202:"\u57CE\u533A",140203:"\u77FF\u533A",140211:"\u5357\u90CA\u533A",140212:"\u65B0\u8363\u533A",140221:"\u9633\u9AD8\u53BF",140222:"\u5929\u9547\u53BF",140223:"\u5E7F\u7075\u53BF",140224:"\u7075\u4E18\u53BF",140225:"\u6D51\u6E90\u53BF",140226:"\u5DE6\u4E91\u53BF",140227:"\u5927\u540C\u53BF",140228:"\u5176\u5B83\u533A",140300:"\u9633\u6CC9\u5E02",140302:"\u57CE\u533A",140303:"\u77FF\u533A",140311:"\u90CA\u533A",140321:"\u5E73\u5B9A\u53BF",140322:"\u76C2\u53BF",140323:"\u5176\u5B83\u533A",140400:"\u957F\u6CBB\u5E02",140421:"\u957F\u6CBB\u53BF",140423:"\u8944\u57A3\u53BF",140424:"\u5C6F\u7559\u53BF",140425:"\u5E73\u987A\u53BF",140426:"\u9ECE\u57CE\u53BF",140427:"\u58F6\u5173\u53BF",140428:"\u957F\u5B50\u53BF",140429:"\u6B66\u4E61\u53BF",140430:"\u6C81\u53BF",140431:"\u6C81\u6E90\u53BF",140481:"\u6F5E\u57CE\u5E02",140482:"\u57CE\u533A",140483:"\u90CA\u533A",140485:"\u5176\u5B83\u533A",140500:"\u664B\u57CE\u5E02",140502:"\u57CE\u533A",140521:"\u6C81\u6C34\u53BF",140522:"\u9633\u57CE\u53BF",140524:"\u9675\u5DDD\u53BF",140525:"\u6CFD\u5DDE\u53BF",140581:"\u9AD8\u5E73\u5E02",140582:"\u5176\u5B83\u533A",140600:"\u6714\u5DDE\u5E02",140602:"\u6714\u57CE\u533A",140603:"\u5E73\u9C81\u533A",140621:"\u5C71\u9634\u53BF",140622:"\u5E94\u53BF",140623:"\u53F3\u7389\u53BF",140624:"\u6000\u4EC1\u53BF",140625:"\u5176\u5B83\u533A",140700:"\u664B\u4E2D\u5E02",140702:"\u6986\u6B21\u533A",140721:"\u6986\u793E\u53BF",140722:"\u5DE6\u6743\u53BF",140723:"\u548C\u987A\u53BF",140724:"\u6614\u9633\u53BF",140725:"\u5BFF\u9633\u53BF",140726:"\u592A\u8C37\u53BF",140727:"\u7941\u53BF",140728:"\u5E73\u9065\u53BF",140729:"\u7075\u77F3\u53BF",140781:"\u4ECB\u4F11\u5E02",140782:"\u5176\u5B83\u533A",140800:"\u8FD0\u57CE\u5E02",140802:"\u76D0\u6E56\u533A",140821:"\u4E34\u7317\u53BF",140822:"\u4E07\u8363\u53BF",140823:"\u95FB\u559C\u53BF",140824:"\u7A37\u5C71\u53BF",140825:"\u65B0\u7EDB\u53BF",140826:"\u7EDB\u53BF",140827:"\u57A3\u66F2\u53BF",140828:"\u590F\u53BF",140829:"\u5E73\u9646\u53BF",140830:"\u82AE\u57CE\u53BF",140881:"\u6C38\u6D4E\u5E02",140882:"\u6CB3\u6D25\u5E02",140883:"\u5176\u5B83\u533A",140900:"\u5FFB\u5DDE\u5E02",140902:"\u5FFB\u5E9C\u533A",140921:"\u5B9A\u8944\u53BF",140922:"\u4E94\u53F0\u53BF",140923:"\u4EE3\u53BF",140924:"\u7E41\u5CD9\u53BF",140925:"\u5B81\u6B66\u53BF",140926:"\u9759\u4E50\u53BF",140927:"\u795E\u6C60\u53BF",140928:"\u4E94\u5BE8\u53BF",140929:"\u5CA2\u5C9A\u53BF",140930:"\u6CB3\u66F2\u53BF",140931:"\u4FDD\u5FB7\u53BF",140932:"\u504F\u5173\u53BF",140981:"\u539F\u5E73\u5E02",140982:"\u5176\u5B83\u533A",141e3:"\u4E34\u6C7E\u5E02",141002:"\u5C27\u90FD\u533A",141021:"\u66F2\u6C83\u53BF",141022:"\u7FFC\u57CE\u53BF",141023:"\u8944\u6C7E\u53BF",141024:"\u6D2A\u6D1E\u53BF",141025:"\u53E4\u53BF",141026:"\u5B89\u6CFD\u53BF",141027:"\u6D6E\u5C71\u53BF",141028:"\u5409\u53BF",141029:"\u4E61\u5B81\u53BF",141030:"\u5927\u5B81\u53BF",141031:"\u96B0\u53BF",141032:"\u6C38\u548C\u53BF",141033:"\u84B2\u53BF",141034:"\u6C7E\u897F\u53BF",141081:"\u4FAF\u9A6C\u5E02",141082:"\u970D\u5DDE\u5E02",141083:"\u5176\u5B83\u533A",141100:"\u5415\u6881\u5E02",141102:"\u79BB\u77F3\u533A",141121:"\u6587\u6C34\u53BF",141122:"\u4EA4\u57CE\u53BF",141123:"\u5174\u53BF",141124:"\u4E34\u53BF",141125:"\u67F3\u6797\u53BF",141126:"\u77F3\u697C\u53BF",141127:"\u5C9A\u53BF",141128:"\u65B9\u5C71\u53BF",141129:"\u4E2D\u9633\u53BF",141130:"\u4EA4\u53E3\u53BF",141181:"\u5B5D\u4E49\u5E02",141182:"\u6C7E\u9633\u5E02",141183:"\u5176\u5B83\u533A",15e4:"\u5185\u8499\u53E4\u81EA\u6CBB\u533A",150100:"\u547C\u548C\u6D69\u7279\u5E02",150102:"\u65B0\u57CE\u533A",150103:"\u56DE\u6C11\u533A",150104:"\u7389\u6CC9\u533A",150105:"\u8D5B\u7F55\u533A",150121:"\u571F\u9ED8\u7279\u5DE6\u65D7",150122:"\u6258\u514B\u6258\u53BF",150123:"\u548C\u6797\u683C\u5C14\u53BF",150124:"\u6E05\u6C34\u6CB3\u53BF",150125:"\u6B66\u5DDD\u53BF",150126:"\u5176\u5B83\u533A",150200:"\u5305\u5934\u5E02",150202:"\u4E1C\u6CB3\u533A",150203:"\u6606\u90FD\u4ED1\u533A",150204:"\u9752\u5C71\u533A",150205:"\u77F3\u62D0\u533A",150206:"\u767D\u4E91\u9102\u535A\u77FF\u533A",150207:"\u4E5D\u539F\u533A",150221:"\u571F\u9ED8\u7279\u53F3\u65D7",150222:"\u56FA\u9633\u53BF",150223:"\u8FBE\u5C14\u7F55\u8302\u660E\u5B89\u8054\u5408\u65D7",150224:"\u5176\u5B83\u533A",150300:"\u4E4C\u6D77\u5E02",150302:"\u6D77\u52C3\u6E7E\u533A",150303:"\u6D77\u5357\u533A",150304:"\u4E4C\u8FBE\u533A",150305:"\u5176\u5B83\u533A",150400:"\u8D64\u5CF0\u5E02",150402:"\u7EA2\u5C71\u533A",150403:"\u5143\u5B9D\u5C71\u533A",150404:"\u677E\u5C71\u533A",150421:"\u963F\u9C81\u79D1\u5C14\u6C81\u65D7",150422:"\u5DF4\u6797\u5DE6\u65D7",150423:"\u5DF4\u6797\u53F3\u65D7",150424:"\u6797\u897F\u53BF",150425:"\u514B\u4EC0\u514B\u817E\u65D7",150426:"\u7FC1\u725B\u7279\u65D7",150428:"\u5580\u5587\u6C81\u65D7",150429:"\u5B81\u57CE\u53BF",150430:"\u6556\u6C49\u65D7",150431:"\u5176\u5B83\u533A",150500:"\u901A\u8FBD\u5E02",150502:"\u79D1\u5C14\u6C81\u533A",150521:"\u79D1\u5C14\u6C81\u5DE6\u7FFC\u4E2D\u65D7",150522:"\u79D1\u5C14\u6C81\u5DE6\u7FFC\u540E\u65D7",150523:"\u5F00\u9C81\u53BF",150524:"\u5E93\u4F26\u65D7",150525:"\u5948\u66FC\u65D7",150526:"\u624E\u9C81\u7279\u65D7",150581:"\u970D\u6797\u90ED\u52D2\u5E02",150582:"\u5176\u5B83\u533A",150600:"\u9102\u5C14\u591A\u65AF\u5E02",150602:"\u4E1C\u80DC\u533A",150621:"\u8FBE\u62C9\u7279\u65D7",150622:"\u51C6\u683C\u5C14\u65D7",150623:"\u9102\u6258\u514B\u524D\u65D7",150624:"\u9102\u6258\u514B\u65D7",150625:"\u676D\u9526\u65D7",150626:"\u4E4C\u5BA1\u65D7",150627:"\u4F0A\u91D1\u970D\u6D1B\u65D7",150628:"\u5176\u5B83\u533A",150700:"\u547C\u4F26\u8D1D\u5C14\u5E02",150702:"\u6D77\u62C9\u5C14\u533A",150703:"\u624E\u8D49\u8BFA\u5C14\u533A",150721:"\u963F\u8363\u65D7",150722:"\u83AB\u529B\u8FBE\u74E6\u8FBE\u65A1\u5C14\u65CF\u81EA\u6CBB\u65D7",150723:"\u9102\u4F26\u6625\u81EA\u6CBB\u65D7",150724:"\u9102\u6E29\u514B\u65CF\u81EA\u6CBB\u65D7",150725:"\u9648\u5DF4\u5C14\u864E\u65D7",150726:"\u65B0\u5DF4\u5C14\u864E\u5DE6\u65D7",150727:"\u65B0\u5DF4\u5C14\u864E\u53F3\u65D7",150781:"\u6EE1\u6D32\u91CC\u5E02",150782:"\u7259\u514B\u77F3\u5E02",150783:"\u624E\u5170\u5C6F\u5E02",150784:"\u989D\u5C14\u53E4\u7EB3\u5E02",150785:"\u6839\u6CB3\u5E02",150786:"\u5176\u5B83\u533A",150800:"\u5DF4\u5F66\u6DD6\u5C14\u5E02",150802:"\u4E34\u6CB3\u533A",150821:"\u4E94\u539F\u53BF",150822:"\u78F4\u53E3\u53BF",150823:"\u4E4C\u62C9\u7279\u524D\u65D7",150824:"\u4E4C\u62C9\u7279\u4E2D\u65D7",150825:"\u4E4C\u62C9\u7279\u540E\u65D7",150826:"\u676D\u9526\u540E\u65D7",150827:"\u5176\u5B83\u533A",150900:"\u4E4C\u5170\u5BDF\u5E03\u5E02",150902:"\u96C6\u5B81\u533A",150921:"\u5353\u8D44\u53BF",150922:"\u5316\u5FB7\u53BF",150923:"\u5546\u90FD\u53BF",150924:"\u5174\u548C\u53BF",150925:"\u51C9\u57CE\u53BF",150926:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u524D\u65D7",150927:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u4E2D\u65D7",150928:"\u5BDF\u54C8\u5C14\u53F3\u7FFC\u540E\u65D7",150929:"\u56DB\u5B50\u738B\u65D7",150981:"\u4E30\u9547\u5E02",150982:"\u5176\u5B83\u533A",152200:"\u5174\u5B89\u76DF",152201:"\u4E4C\u5170\u6D69\u7279\u5E02",152202:"\u963F\u5C14\u5C71\u5E02",152221:"\u79D1\u5C14\u6C81\u53F3\u7FFC\u524D\u65D7",152222:"\u79D1\u5C14\u6C81\u53F3\u7FFC\u4E2D\u65D7",152223:"\u624E\u8D49\u7279\u65D7",152224:"\u7A81\u6CC9\u53BF",152225:"\u5176\u5B83\u533A",152500:"\u9521\u6797\u90ED\u52D2\u76DF",152501:"\u4E8C\u8FDE\u6D69\u7279\u5E02",152502:"\u9521\u6797\u6D69\u7279\u5E02",152522:"\u963F\u5DF4\u560E\u65D7",152523:"\u82CF\u5C3C\u7279\u5DE6\u65D7",152524:"\u82CF\u5C3C\u7279\u53F3\u65D7",152525:"\u4E1C\u4E4C\u73E0\u7A46\u6C81\u65D7",152526:"\u897F\u4E4C\u73E0\u7A46\u6C81\u65D7",152527:"\u592A\u4EC6\u5BFA\u65D7",152528:"\u9576\u9EC4\u65D7",152529:"\u6B63\u9576\u767D\u65D7",152530:"\u6B63\u84DD\u65D7",152531:"\u591A\u4F26\u53BF",152532:"\u5176\u5B83\u533A",152900:"\u963F\u62C9\u5584\u76DF",152921:"\u963F\u62C9\u5584\u5DE6\u65D7",152922:"\u963F\u62C9\u5584\u53F3\u65D7",152923:"\u989D\u6D4E\u7EB3\u65D7",152924:"\u5176\u5B83\u533A",21e4:"\u8FBD\u5B81\u7701",210100:"\u6C88\u9633\u5E02",210102:"\u548C\u5E73\u533A",210103:"\u6C88\u6CB3\u533A",210104:"\u5927\u4E1C\u533A",210105:"\u7687\u59D1\u533A",210106:"\u94C1\u897F\u533A",210111:"\u82CF\u5BB6\u5C6F\u533A",210112:"\u4E1C\u9675\u533A",210113:"\u65B0\u57CE\u5B50\u533A",210114:"\u4E8E\u6D2A\u533A",210122:"\u8FBD\u4E2D\u53BF",210123:"\u5EB7\u5E73\u53BF",210124:"\u6CD5\u5E93\u53BF",210181:"\u65B0\u6C11\u5E02",210184:"\u6C88\u5317\u65B0\u533A",210185:"\u5176\u5B83\u533A",210200:"\u5927\u8FDE\u5E02",210202:"\u4E2D\u5C71\u533A",210203:"\u897F\u5C97\u533A",210204:"\u6C99\u6CB3\u53E3\u533A",210211:"\u7518\u4E95\u5B50\u533A",210212:"\u65C5\u987A\u53E3\u533A",210213:"\u91D1\u5DDE\u533A",210224:"\u957F\u6D77\u53BF",210281:"\u74E6\u623F\u5E97\u5E02",210282:"\u666E\u5170\u5E97\u5E02",210283:"\u5E84\u6CB3\u5E02",210298:"\u5176\u5B83\u533A",210300:"\u978D\u5C71\u5E02",210302:"\u94C1\u4E1C\u533A",210303:"\u94C1\u897F\u533A",210304:"\u7ACB\u5C71\u533A",210311:"\u5343\u5C71\u533A",210321:"\u53F0\u5B89\u53BF",210323:"\u5CAB\u5CA9\u6EE1\u65CF\u81EA\u6CBB\u53BF",210381:"\u6D77\u57CE\u5E02",210382:"\u5176\u5B83\u533A",210400:"\u629A\u987A\u5E02",210402:"\u65B0\u629A\u533A",210403:"\u4E1C\u6D32\u533A",210404:"\u671B\u82B1\u533A",210411:"\u987A\u57CE\u533A",210421:"\u629A\u987A\u53BF",210422:"\u65B0\u5BBE\u6EE1\u65CF\u81EA\u6CBB\u53BF",210423:"\u6E05\u539F\u6EE1\u65CF\u81EA\u6CBB\u53BF",210424:"\u5176\u5B83\u533A",210500:"\u672C\u6EAA\u5E02",210502:"\u5E73\u5C71\u533A",210503:"\u6EAA\u6E56\u533A",210504:"\u660E\u5C71\u533A",210505:"\u5357\u82AC\u533A",210521:"\u672C\u6EAA\u6EE1\u65CF\u81EA\u6CBB\u53BF",210522:"\u6853\u4EC1\u6EE1\u65CF\u81EA\u6CBB\u53BF",210523:"\u5176\u5B83\u533A",210600:"\u4E39\u4E1C\u5E02",210602:"\u5143\u5B9D\u533A",210603:"\u632F\u5174\u533A",210604:"\u632F\u5B89\u533A",210624:"\u5BBD\u7538\u6EE1\u65CF\u81EA\u6CBB\u53BF",210681:"\u4E1C\u6E2F\u5E02",210682:"\u51E4\u57CE\u5E02",210683:"\u5176\u5B83\u533A",210700:"\u9526\u5DDE\u5E02",210702:"\u53E4\u5854\u533A",210703:"\u51CC\u6CB3\u533A",210711:"\u592A\u548C\u533A",210726:"\u9ED1\u5C71\u53BF",210727:"\u4E49\u53BF",210781:"\u51CC\u6D77\u5E02",210782:"\u5317\u9547\u5E02",210783:"\u5176\u5B83\u533A",210800:"\u8425\u53E3\u5E02",210802:"\u7AD9\u524D\u533A",210803:"\u897F\u5E02\u533A",210804:"\u9C85\u9C7C\u5708\u533A",210811:"\u8001\u8FB9\u533A",210881:"\u76D6\u5DDE\u5E02",210882:"\u5927\u77F3\u6865\u5E02",210883:"\u5176\u5B83\u533A",210900:"\u961C\u65B0\u5E02",210902:"\u6D77\u5DDE\u533A",210903:"\u65B0\u90B1\u533A",210904:"\u592A\u5E73\u533A",210905:"\u6E05\u6CB3\u95E8\u533A",210911:"\u7EC6\u6CB3\u533A",210921:"\u961C\u65B0\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",210922:"\u5F70\u6B66\u53BF",210923:"\u5176\u5B83\u533A",211e3:"\u8FBD\u9633\u5E02",211002:"\u767D\u5854\u533A",211003:"\u6587\u5723\u533A",211004:"\u5B8F\u4F1F\u533A",211005:"\u5F13\u957F\u5CAD\u533A",211011:"\u592A\u5B50\u6CB3\u533A",211021:"\u8FBD\u9633\u53BF",211081:"\u706F\u5854\u5E02",211082:"\u5176\u5B83\u533A",211100:"\u76D8\u9526\u5E02",211102:"\u53CC\u53F0\u5B50\u533A",211103:"\u5174\u9686\u53F0\u533A",211121:"\u5927\u6D3C\u53BF",211122:"\u76D8\u5C71\u53BF",211123:"\u5176\u5B83\u533A",211200:"\u94C1\u5CAD\u5E02",211202:"\u94F6\u5DDE\u533A",211204:"\u6E05\u6CB3\u533A",211221:"\u94C1\u5CAD\u53BF",211223:"\u897F\u4E30\u53BF",211224:"\u660C\u56FE\u53BF",211281:"\u8C03\u5175\u5C71\u5E02",211282:"\u5F00\u539F\u5E02",211283:"\u5176\u5B83\u533A",211300:"\u671D\u9633\u5E02",211302:"\u53CC\u5854\u533A",211303:"\u9F99\u57CE\u533A",211321:"\u671D\u9633\u53BF",211322:"\u5EFA\u5E73\u53BF",211324:"\u5580\u5587\u6C81\u5DE6\u7FFC\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",211381:"\u5317\u7968\u5E02",211382:"\u51CC\u6E90\u5E02",211383:"\u5176\u5B83\u533A",211400:"\u846B\u82A6\u5C9B\u5E02",211402:"\u8FDE\u5C71\u533A",211403:"\u9F99\u6E2F\u533A",211404:"\u5357\u7968\u533A",211421:"\u7EE5\u4E2D\u53BF",211422:"\u5EFA\u660C\u53BF",211481:"\u5174\u57CE\u5E02",211482:"\u5176\u5B83\u533A",22e4:"\u5409\u6797\u7701",220100:"\u957F\u6625\u5E02",220102:"\u5357\u5173\u533A",220103:"\u5BBD\u57CE\u533A",220104:"\u671D\u9633\u533A",220105:"\u4E8C\u9053\u533A",220106:"\u7EFF\u56ED\u533A",220112:"\u53CC\u9633\u533A",220122:"\u519C\u5B89\u53BF",220181:"\u4E5D\u53F0\u5E02",220182:"\u6986\u6811\u5E02",220183:"\u5FB7\u60E0\u5E02",220188:"\u5176\u5B83\u533A",220200:"\u5409\u6797\u5E02",220202:"\u660C\u9091\u533A",220203:"\u9F99\u6F6D\u533A",220204:"\u8239\u8425\u533A",220211:"\u4E30\u6EE1\u533A",220221:"\u6C38\u5409\u53BF",220281:"\u86DF\u6CB3\u5E02",220282:"\u6866\u7538\u5E02",220283:"\u8212\u5170\u5E02",220284:"\u78D0\u77F3\u5E02",220285:"\u5176\u5B83\u533A",220300:"\u56DB\u5E73\u5E02",220302:"\u94C1\u897F\u533A",220303:"\u94C1\u4E1C\u533A",220322:"\u68A8\u6811\u53BF",220323:"\u4F0A\u901A\u6EE1\u65CF\u81EA\u6CBB\u53BF",220381:"\u516C\u4E3B\u5CAD\u5E02",220382:"\u53CC\u8FBD\u5E02",220383:"\u5176\u5B83\u533A",220400:"\u8FBD\u6E90\u5E02",220402:"\u9F99\u5C71\u533A",220403:"\u897F\u5B89\u533A",220421:"\u4E1C\u4E30\u53BF",220422:"\u4E1C\u8FBD\u53BF",220423:"\u5176\u5B83\u533A",220500:"\u901A\u5316\u5E02",220502:"\u4E1C\u660C\u533A",220503:"\u4E8C\u9053\u6C5F\u533A",220521:"\u901A\u5316\u53BF",220523:"\u8F89\u5357\u53BF",220524:"\u67F3\u6CB3\u53BF",220581:"\u6885\u6CB3\u53E3\u5E02",220582:"\u96C6\u5B89\u5E02",220583:"\u5176\u5B83\u533A",220600:"\u767D\u5C71\u5E02",220602:"\u6D51\u6C5F\u533A",220621:"\u629A\u677E\u53BF",220622:"\u9756\u5B87\u53BF",220623:"\u957F\u767D\u671D\u9C9C\u65CF\u81EA\u6CBB\u53BF",220625:"\u6C5F\u6E90\u533A",220681:"\u4E34\u6C5F\u5E02",220682:"\u5176\u5B83\u533A",220700:"\u677E\u539F\u5E02",220702:"\u5B81\u6C5F\u533A",220721:"\u524D\u90ED\u5C14\u7F57\u65AF\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",220722:"\u957F\u5CAD\u53BF",220723:"\u4E7E\u5B89\u53BF",220724:"\u6276\u4F59\u5E02",220725:"\u5176\u5B83\u533A",220800:"\u767D\u57CE\u5E02",220802:"\u6D2E\u5317\u533A",220821:"\u9547\u8D49\u53BF",220822:"\u901A\u6986\u53BF",220881:"\u6D2E\u5357\u5E02",220882:"\u5927\u5B89\u5E02",220883:"\u5176\u5B83\u533A",222400:"\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE",222401:"\u5EF6\u5409\u5E02",222402:"\u56FE\u4EEC\u5E02",222403:"\u6566\u5316\u5E02",222404:"\u73F2\u6625\u5E02",222405:"\u9F99\u4E95\u5E02",222406:"\u548C\u9F99\u5E02",222424:"\u6C6A\u6E05\u53BF",222426:"\u5B89\u56FE\u53BF",222427:"\u5176\u5B83\u533A",23e4:"\u9ED1\u9F99\u6C5F\u7701",230100:"\u54C8\u5C14\u6EE8\u5E02",230102:"\u9053\u91CC\u533A",230103:"\u5357\u5C97\u533A",230104:"\u9053\u5916\u533A",230106:"\u9999\u574A\u533A",230108:"\u5E73\u623F\u533A",230109:"\u677E\u5317\u533A",230111:"\u547C\u5170\u533A",230123:"\u4F9D\u5170\u53BF",230124:"\u65B9\u6B63\u53BF",230125:"\u5BBE\u53BF",230126:"\u5DF4\u5F66\u53BF",230127:"\u6728\u5170\u53BF",230128:"\u901A\u6CB3\u53BF",230129:"\u5EF6\u5BFF\u53BF",230181:"\u963F\u57CE\u533A",230182:"\u53CC\u57CE\u5E02",230183:"\u5C1A\u5FD7\u5E02",230184:"\u4E94\u5E38\u5E02",230186:"\u5176\u5B83\u533A",230200:"\u9F50\u9F50\u54C8\u5C14\u5E02",230202:"\u9F99\u6C99\u533A",230203:"\u5EFA\u534E\u533A",230204:"\u94C1\u950B\u533A",230205:"\u6602\u6602\u6EAA\u533A",230206:"\u5BCC\u62C9\u5C14\u57FA\u533A",230207:"\u78BE\u5B50\u5C71\u533A",230208:"\u6885\u91CC\u65AF\u8FBE\u65A1\u5C14\u65CF\u533A",230221:"\u9F99\u6C5F\u53BF",230223:"\u4F9D\u5B89\u53BF",230224:"\u6CF0\u6765\u53BF",230225:"\u7518\u5357\u53BF",230227:"\u5BCC\u88D5\u53BF",230229:"\u514B\u5C71\u53BF",230230:"\u514B\u4E1C\u53BF",230231:"\u62DC\u6CC9\u53BF",230281:"\u8BB7\u6CB3\u5E02",230282:"\u5176\u5B83\u533A",230300:"\u9E21\u897F\u5E02",230302:"\u9E21\u51A0\u533A",230303:"\u6052\u5C71\u533A",230304:"\u6EF4\u9053\u533A",230305:"\u68A8\u6811\u533A",230306:"\u57CE\u5B50\u6CB3\u533A",230307:"\u9EBB\u5C71\u533A",230321:"\u9E21\u4E1C\u53BF",230381:"\u864E\u6797\u5E02",230382:"\u5BC6\u5C71\u5E02",230383:"\u5176\u5B83\u533A",230400:"\u9E64\u5C97\u5E02",230402:"\u5411\u9633\u533A",230403:"\u5DE5\u519C\u533A",230404:"\u5357\u5C71\u533A",230405:"\u5174\u5B89\u533A",230406:"\u4E1C\u5C71\u533A",230407:"\u5174\u5C71\u533A",230421:"\u841D\u5317\u53BF",230422:"\u7EE5\u6EE8\u53BF",230423:"\u5176\u5B83\u533A",230500:"\u53CC\u9E2D\u5C71\u5E02",230502:"\u5C16\u5C71\u533A",230503:"\u5CAD\u4E1C\u533A",230505:"\u56DB\u65B9\u53F0\u533A",230506:"\u5B9D\u5C71\u533A",230521:"\u96C6\u8D24\u53BF",230522:"\u53CB\u8C0A\u53BF",230523:"\u5B9D\u6E05\u53BF",230524:"\u9976\u6CB3\u53BF",230525:"\u5176\u5B83\u533A",230600:"\u5927\u5E86\u5E02",230602:"\u8428\u5C14\u56FE\u533A",230603:"\u9F99\u51E4\u533A",230604:"\u8BA9\u80E1\u8DEF\u533A",230605:"\u7EA2\u5C97\u533A",230606:"\u5927\u540C\u533A",230621:"\u8087\u5DDE\u53BF",230622:"\u8087\u6E90\u53BF",230623:"\u6797\u7538\u53BF",230624:"\u675C\u5C14\u4F2F\u7279\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",230625:"\u5176\u5B83\u533A",230700:"\u4F0A\u6625\u5E02",230702:"\u4F0A\u6625\u533A",230703:"\u5357\u5C94\u533A",230704:"\u53CB\u597D\u533A",230705:"\u897F\u6797\u533A",230706:"\u7FE0\u5CE6\u533A",230707:"\u65B0\u9752\u533A",230708:"\u7F8E\u6EAA\u533A",230709:"\u91D1\u5C71\u5C6F\u533A",230710:"\u4E94\u8425\u533A",230711:"\u4E4C\u9A6C\u6CB3\u533A",230712:"\u6C64\u65FA\u6CB3\u533A",230713:"\u5E26\u5CAD\u533A",230714:"\u4E4C\u4F0A\u5CAD\u533A",230715:"\u7EA2\u661F\u533A",230716:"\u4E0A\u7518\u5CAD\u533A",230722:"\u5609\u836B\u53BF",230781:"\u94C1\u529B\u5E02",230782:"\u5176\u5B83\u533A",230800:"\u4F73\u6728\u65AF\u5E02",230803:"\u5411\u9633\u533A",230804:"\u524D\u8FDB\u533A",230805:"\u4E1C\u98CE\u533A",230811:"\u90CA\u533A",230822:"\u6866\u5357\u53BF",230826:"\u6866\u5DDD\u53BF",230828:"\u6C64\u539F\u53BF",230833:"\u629A\u8FDC\u53BF",230881:"\u540C\u6C5F\u5E02",230882:"\u5BCC\u9526\u5E02",230883:"\u5176\u5B83\u533A",230900:"\u4E03\u53F0\u6CB3\u5E02",230902:"\u65B0\u5174\u533A",230903:"\u6843\u5C71\u533A",230904:"\u8304\u5B50\u6CB3\u533A",230921:"\u52C3\u5229\u53BF",230922:"\u5176\u5B83\u533A",231e3:"\u7261\u4E39\u6C5F\u5E02",231002:"\u4E1C\u5B89\u533A",231003:"\u9633\u660E\u533A",231004:"\u7231\u6C11\u533A",231005:"\u897F\u5B89\u533A",231024:"\u4E1C\u5B81\u53BF",231025:"\u6797\u53E3\u53BF",231081:"\u7EE5\u82AC\u6CB3\u5E02",231083:"\u6D77\u6797\u5E02",231084:"\u5B81\u5B89\u5E02",231085:"\u7A46\u68F1\u5E02",231086:"\u5176\u5B83\u533A",231100:"\u9ED1\u6CB3\u5E02",231102:"\u7231\u8F89\u533A",231121:"\u5AE9\u6C5F\u53BF",231123:"\u900A\u514B\u53BF",231124:"\u5B59\u5434\u53BF",231181:"\u5317\u5B89\u5E02",231182:"\u4E94\u5927\u8FDE\u6C60\u5E02",231183:"\u5176\u5B83\u533A",231200:"\u7EE5\u5316\u5E02",231202:"\u5317\u6797\u533A",231221:"\u671B\u594E\u53BF",231222:"\u5170\u897F\u53BF",231223:"\u9752\u5188\u53BF",231224:"\u5E86\u5B89\u53BF",231225:"\u660E\u6C34\u53BF",231226:"\u7EE5\u68F1\u53BF",231281:"\u5B89\u8FBE\u5E02",231282:"\u8087\u4E1C\u5E02",231283:"\u6D77\u4F26\u5E02",231284:"\u5176\u5B83\u533A",232700:"\u5927\u5174\u5B89\u5CAD\u5730\u533A",232702:"\u677E\u5CAD\u533A",232703:"\u65B0\u6797\u533A",232704:"\u547C\u4E2D\u533A",232721:"\u547C\u739B\u53BF",232722:"\u5854\u6CB3\u53BF",232723:"\u6F20\u6CB3\u53BF",232724:"\u52A0\u683C\u8FBE\u5947\u533A",232725:"\u5176\u5B83\u533A",31e4:"\u4E0A\u6D77",310100:"\u4E0A\u6D77\u5E02",310101:"\u9EC4\u6D66\u533A",310104:"\u5F90\u6C47\u533A",310105:"\u957F\u5B81\u533A",310106:"\u9759\u5B89\u533A",310107:"\u666E\u9640\u533A",310108:"\u95F8\u5317\u533A",310109:"\u8679\u53E3\u533A",310110:"\u6768\u6D66\u533A",310112:"\u95F5\u884C\u533A",310113:"\u5B9D\u5C71\u533A",310114:"\u5609\u5B9A\u533A",310115:"\u6D66\u4E1C\u65B0\u533A",310116:"\u91D1\u5C71\u533A",310117:"\u677E\u6C5F\u533A",310118:"\u9752\u6D66\u533A",310120:"\u5949\u8D24\u533A",310230:"\u5D07\u660E\u53BF",310231:"\u5176\u5B83\u533A",32e4:"\u6C5F\u82CF\u7701",320100:"\u5357\u4EAC\u5E02",320102:"\u7384\u6B66\u533A",320104:"\u79E6\u6DEE\u533A",320105:"\u5EFA\u90BA\u533A",320106:"\u9F13\u697C\u533A",320111:"\u6D66\u53E3\u533A",320113:"\u6816\u971E\u533A",320114:"\u96E8\u82B1\u53F0\u533A",320115:"\u6C5F\u5B81\u533A",320116:"\u516D\u5408\u533A",320124:"\u6EA7\u6C34\u533A",320125:"\u9AD8\u6DF3\u533A",320126:"\u5176\u5B83\u533A",320200:"\u65E0\u9521\u5E02",320202:"\u5D07\u5B89\u533A",320203:"\u5357\u957F\u533A",320204:"\u5317\u5858\u533A",320205:"\u9521\u5C71\u533A",320206:"\u60E0\u5C71\u533A",320211:"\u6EE8\u6E56\u533A",320281:"\u6C5F\u9634\u5E02",320282:"\u5B9C\u5174\u5E02",320297:"\u5176\u5B83\u533A",320300:"\u5F90\u5DDE\u5E02",320302:"\u9F13\u697C\u533A",320303:"\u4E91\u9F99\u533A",320305:"\u8D3E\u6C6A\u533A",320311:"\u6CC9\u5C71\u533A",320321:"\u4E30\u53BF",320322:"\u6C9B\u53BF",320323:"\u94DC\u5C71\u533A",320324:"\u7762\u5B81\u53BF",320381:"\u65B0\u6C82\u5E02",320382:"\u90B3\u5DDE\u5E02",320383:"\u5176\u5B83\u533A",320400:"\u5E38\u5DDE\u5E02",320402:"\u5929\u5B81\u533A",320404:"\u949F\u697C\u533A",320405:"\u621A\u5885\u5830\u533A",320411:"\u65B0\u5317\u533A",320412:"\u6B66\u8FDB\u533A",320481:"\u6EA7\u9633\u5E02",320482:"\u91D1\u575B\u5E02",320483:"\u5176\u5B83\u533A",320500:"\u82CF\u5DDE\u5E02",320505:"\u864E\u4E18\u533A",320506:"\u5434\u4E2D\u533A",320507:"\u76F8\u57CE\u533A",320508:"\u59D1\u82CF\u533A",320581:"\u5E38\u719F\u5E02",320582:"\u5F20\u5BB6\u6E2F\u5E02",320583:"\u6606\u5C71\u5E02",320584:"\u5434\u6C5F\u533A",320585:"\u592A\u4ED3\u5E02",320596:"\u5176\u5B83\u533A",320600:"\u5357\u901A\u5E02",320602:"\u5D07\u5DDD\u533A",320611:"\u6E2F\u95F8\u533A",320612:"\u901A\u5DDE\u533A",320621:"\u6D77\u5B89\u53BF",320623:"\u5982\u4E1C\u53BF",320681:"\u542F\u4E1C\u5E02",320682:"\u5982\u768B\u5E02",320684:"\u6D77\u95E8\u5E02",320694:"\u5176\u5B83\u533A",320700:"\u8FDE\u4E91\u6E2F\u5E02",320703:"\u8FDE\u4E91\u533A",320705:"\u65B0\u6D66\u533A",320706:"\u6D77\u5DDE\u533A",320721:"\u8D63\u6986\u53BF",320722:"\u4E1C\u6D77\u53BF",320723:"\u704C\u4E91\u53BF",320724:"\u704C\u5357\u53BF",320725:"\u5176\u5B83\u533A",320800:"\u6DEE\u5B89\u5E02",320802:"\u6E05\u6CB3\u533A",320803:"\u6DEE\u5B89\u533A",320804:"\u6DEE\u9634\u533A",320811:"\u6E05\u6D66\u533A",320826:"\u6D9F\u6C34\u53BF",320829:"\u6D2A\u6CFD\u53BF",320830:"\u76F1\u7719\u53BF",320831:"\u91D1\u6E56\u53BF",320832:"\u5176\u5B83\u533A",320900:"\u76D0\u57CE\u5E02",320902:"\u4EAD\u6E56\u533A",320903:"\u76D0\u90FD\u533A",320921:"\u54CD\u6C34\u53BF",320922:"\u6EE8\u6D77\u53BF",320923:"\u961C\u5B81\u53BF",320924:"\u5C04\u9633\u53BF",320925:"\u5EFA\u6E56\u53BF",320981:"\u4E1C\u53F0\u5E02",320982:"\u5927\u4E30\u5E02",320983:"\u5176\u5B83\u533A",321e3:"\u626C\u5DDE\u5E02",321002:"\u5E7F\u9675\u533A",321003:"\u9097\u6C5F\u533A",321023:"\u5B9D\u5E94\u53BF",321081:"\u4EEA\u5F81\u5E02",321084:"\u9AD8\u90AE\u5E02",321088:"\u6C5F\u90FD\u533A",321093:"\u5176\u5B83\u533A",321100:"\u9547\u6C5F\u5E02",321102:"\u4EAC\u53E3\u533A",321111:"\u6DA6\u5DDE\u533A",321112:"\u4E39\u5F92\u533A",321181:"\u4E39\u9633\u5E02",321182:"\u626C\u4E2D\u5E02",321183:"\u53E5\u5BB9\u5E02",321184:"\u5176\u5B83\u533A",321200:"\u6CF0\u5DDE\u5E02",321202:"\u6D77\u9675\u533A",321203:"\u9AD8\u6E2F\u533A",321281:"\u5174\u5316\u5E02",321282:"\u9756\u6C5F\u5E02",321283:"\u6CF0\u5174\u5E02",321284:"\u59DC\u5830\u533A",321285:"\u5176\u5B83\u533A",321300:"\u5BBF\u8FC1\u5E02",321302:"\u5BBF\u57CE\u533A",321311:"\u5BBF\u8C6B\u533A",321322:"\u6CAD\u9633\u53BF",321323:"\u6CD7\u9633\u53BF",321324:"\u6CD7\u6D2A\u53BF",321325:"\u5176\u5B83\u533A",33e4:"\u6D59\u6C5F\u7701",330100:"\u676D\u5DDE\u5E02",330102:"\u4E0A\u57CE\u533A",330103:"\u4E0B\u57CE\u533A",330104:"\u6C5F\u5E72\u533A",330105:"\u62F1\u5885\u533A",330106:"\u897F\u6E56\u533A",330108:"\u6EE8\u6C5F\u533A",330109:"\u8427\u5C71\u533A",330110:"\u4F59\u676D\u533A",330122:"\u6850\u5E90\u53BF",330127:"\u6DF3\u5B89\u53BF",330182:"\u5EFA\u5FB7\u5E02",330183:"\u5BCC\u9633\u5E02",330185:"\u4E34\u5B89\u5E02",330186:"\u5176\u5B83\u533A",330200:"\u5B81\u6CE2\u5E02",330203:"\u6D77\u66D9\u533A",330204:"\u6C5F\u4E1C\u533A",330205:"\u6C5F\u5317\u533A",330206:"\u5317\u4ED1\u533A",330211:"\u9547\u6D77\u533A",330212:"\u911E\u5DDE\u533A",330225:"\u8C61\u5C71\u53BF",330226:"\u5B81\u6D77\u53BF",330281:"\u4F59\u59DA\u5E02",330282:"\u6148\u6EAA\u5E02",330283:"\u5949\u5316\u5E02",330284:"\u5176\u5B83\u533A",330300:"\u6E29\u5DDE\u5E02",330302:"\u9E7F\u57CE\u533A",330303:"\u9F99\u6E7E\u533A",330304:"\u74EF\u6D77\u533A",330322:"\u6D1E\u5934\u53BF",330324:"\u6C38\u5609\u53BF",330326:"\u5E73\u9633\u53BF",330327:"\u82CD\u5357\u53BF",330328:"\u6587\u6210\u53BF",330329:"\u6CF0\u987A\u53BF",330381:"\u745E\u5B89\u5E02",330382:"\u4E50\u6E05\u5E02",330383:"\u5176\u5B83\u533A",330400:"\u5609\u5174\u5E02",330402:"\u5357\u6E56\u533A",330411:"\u79C0\u6D32\u533A",330421:"\u5609\u5584\u53BF",330424:"\u6D77\u76D0\u53BF",330481:"\u6D77\u5B81\u5E02",330482:"\u5E73\u6E56\u5E02",330483:"\u6850\u4E61\u5E02",330484:"\u5176\u5B83\u533A",330500:"\u6E56\u5DDE\u5E02",330502:"\u5434\u5174\u533A",330503:"\u5357\u6D54\u533A",330521:"\u5FB7\u6E05\u53BF",330522:"\u957F\u5174\u53BF",330523:"\u5B89\u5409\u53BF",330524:"\u5176\u5B83\u533A",330600:"\u7ECD\u5174\u5E02",330602:"\u8D8A\u57CE\u533A",330621:"\u7ECD\u5174\u53BF",330624:"\u65B0\u660C\u53BF",330681:"\u8BF8\u66A8\u5E02",330682:"\u4E0A\u865E\u5E02",330683:"\u5D4A\u5DDE\u5E02",330684:"\u5176\u5B83\u533A",330700:"\u91D1\u534E\u5E02",330702:"\u5A7A\u57CE\u533A",330703:"\u91D1\u4E1C\u533A",330723:"\u6B66\u4E49\u53BF",330726:"\u6D66\u6C5F\u53BF",330727:"\u78D0\u5B89\u53BF",330781:"\u5170\u6EAA\u5E02",330782:"\u4E49\u4E4C\u5E02",330783:"\u4E1C\u9633\u5E02",330784:"\u6C38\u5EB7\u5E02",330785:"\u5176\u5B83\u533A",330800:"\u8862\u5DDE\u5E02",330802:"\u67EF\u57CE\u533A",330803:"\u8862\u6C5F\u533A",330822:"\u5E38\u5C71\u53BF",330824:"\u5F00\u5316\u53BF",330825:"\u9F99\u6E38\u53BF",330881:"\u6C5F\u5C71\u5E02",330882:"\u5176\u5B83\u533A",330900:"\u821F\u5C71\u5E02",330902:"\u5B9A\u6D77\u533A",330903:"\u666E\u9640\u533A",330921:"\u5CB1\u5C71\u53BF",330922:"\u5D4A\u6CD7\u53BF",330923:"\u5176\u5B83\u533A",331e3:"\u53F0\u5DDE\u5E02",331002:"\u6912\u6C5F\u533A",331003:"\u9EC4\u5CA9\u533A",331004:"\u8DEF\u6865\u533A",331021:"\u7389\u73AF\u53BF",331022:"\u4E09\u95E8\u53BF",331023:"\u5929\u53F0\u53BF",331024:"\u4ED9\u5C45\u53BF",331081:"\u6E29\u5CAD\u5E02",331082:"\u4E34\u6D77\u5E02",331083:"\u5176\u5B83\u533A",331100:"\u4E3D\u6C34\u5E02",331102:"\u83B2\u90FD\u533A",331121:"\u9752\u7530\u53BF",331122:"\u7F19\u4E91\u53BF",331123:"\u9042\u660C\u53BF",331124:"\u677E\u9633\u53BF",331125:"\u4E91\u548C\u53BF",331126:"\u5E86\u5143\u53BF",331127:"\u666F\u5B81\u7572\u65CF\u81EA\u6CBB\u53BF",331181:"\u9F99\u6CC9\u5E02",331182:"\u5176\u5B83\u533A",34e4:"\u5B89\u5FBD\u7701",340100:"\u5408\u80A5\u5E02",340102:"\u7476\u6D77\u533A",340103:"\u5E90\u9633\u533A",340104:"\u8700\u5C71\u533A",340111:"\u5305\u6CB3\u533A",340121:"\u957F\u4E30\u53BF",340122:"\u80A5\u4E1C\u53BF",340123:"\u80A5\u897F\u53BF",340192:"\u5176\u5B83\u533A",340200:"\u829C\u6E56\u5E02",340202:"\u955C\u6E56\u533A",340203:"\u5F0B\u6C5F\u533A",340207:"\u9E20\u6C5F\u533A",340208:"\u4E09\u5C71\u533A",340221:"\u829C\u6E56\u53BF",340222:"\u7E41\u660C\u53BF",340223:"\u5357\u9675\u53BF",340224:"\u5176\u5B83\u533A",340300:"\u868C\u57E0\u5E02",340302:"\u9F99\u5B50\u6E56\u533A",340303:"\u868C\u5C71\u533A",340304:"\u79B9\u4F1A\u533A",340311:"\u6DEE\u4E0A\u533A",340321:"\u6000\u8FDC\u53BF",340322:"\u4E94\u6CB3\u53BF",340323:"\u56FA\u9547\u53BF",340324:"\u5176\u5B83\u533A",340400:"\u6DEE\u5357\u5E02",340402:"\u5927\u901A\u533A",340403:"\u7530\u5BB6\u5EB5\u533A",340404:"\u8C22\u5BB6\u96C6\u533A",340405:"\u516B\u516C\u5C71\u533A",340406:"\u6F58\u96C6\u533A",340421:"\u51E4\u53F0\u53BF",340422:"\u5176\u5B83\u533A",340500:"\u9A6C\u978D\u5C71\u5E02",340503:"\u82B1\u5C71\u533A",340504:"\u96E8\u5C71\u533A",340506:"\u535A\u671B\u533A",340521:"\u5F53\u6D82\u53BF",340522:"\u5176\u5B83\u533A",340600:"\u6DEE\u5317\u5E02",340602:"\u675C\u96C6\u533A",340603:"\u76F8\u5C71\u533A",340604:"\u70C8\u5C71\u533A",340621:"\u6FC9\u6EAA\u53BF",340622:"\u5176\u5B83\u533A",340700:"\u94DC\u9675\u5E02",340702:"\u94DC\u5B98\u5C71\u533A",340703:"\u72EE\u5B50\u5C71\u533A",340711:"\u90CA\u533A",340721:"\u94DC\u9675\u53BF",340722:"\u5176\u5B83\u533A",340800:"\u5B89\u5E86\u5E02",340802:"\u8FCE\u6C5F\u533A",340803:"\u5927\u89C2\u533A",340811:"\u5B9C\u79C0\u533A",340822:"\u6000\u5B81\u53BF",340823:"\u679E\u9633\u53BF",340824:"\u6F5C\u5C71\u53BF",340825:"\u592A\u6E56\u53BF",340826:"\u5BBF\u677E\u53BF",340827:"\u671B\u6C5F\u53BF",340828:"\u5CB3\u897F\u53BF",340881:"\u6850\u57CE\u5E02",340882:"\u5176\u5B83\u533A",341e3:"\u9EC4\u5C71\u5E02",341002:"\u5C6F\u6EAA\u533A",341003:"\u9EC4\u5C71\u533A",341004:"\u5FBD\u5DDE\u533A",341021:"\u6B59\u53BF",341022:"\u4F11\u5B81\u53BF",341023:"\u9EDF\u53BF",341024:"\u7941\u95E8\u53BF",341025:"\u5176\u5B83\u533A",341100:"\u6EC1\u5DDE\u5E02",341102:"\u7405\u740A\u533A",341103:"\u5357\u8C2F\u533A",341122:"\u6765\u5B89\u53BF",341124:"\u5168\u6912\u53BF",341125:"\u5B9A\u8FDC\u53BF",341126:"\u51E4\u9633\u53BF",341181:"\u5929\u957F\u5E02",341182:"\u660E\u5149\u5E02",341183:"\u5176\u5B83\u533A",341200:"\u961C\u9633\u5E02",341202:"\u988D\u5DDE\u533A",341203:"\u988D\u4E1C\u533A",341204:"\u988D\u6CC9\u533A",341221:"\u4E34\u6CC9\u53BF",341222:"\u592A\u548C\u53BF",341225:"\u961C\u5357\u53BF",341226:"\u988D\u4E0A\u53BF",341282:"\u754C\u9996\u5E02",341283:"\u5176\u5B83\u533A",341300:"\u5BBF\u5DDE\u5E02",341302:"\u57C7\u6865\u533A",341321:"\u7800\u5C71\u53BF",341322:"\u8427\u53BF",341323:"\u7075\u74A7\u53BF",341324:"\u6CD7\u53BF",341325:"\u5176\u5B83\u533A",341400:"\u5DE2\u6E56\u5E02",341421:"\u5E90\u6C5F\u53BF",341422:"\u65E0\u4E3A\u53BF",341423:"\u542B\u5C71\u53BF",341424:"\u548C\u53BF",341500:"\u516D\u5B89\u5E02",341502:"\u91D1\u5B89\u533A",341503:"\u88D5\u5B89\u533A",341521:"\u5BFF\u53BF",341522:"\u970D\u90B1\u53BF",341523:"\u8212\u57CE\u53BF",341524:"\u91D1\u5BE8\u53BF",341525:"\u970D\u5C71\u53BF",341526:"\u5176\u5B83\u533A",341600:"\u4EB3\u5DDE\u5E02",341602:"\u8C2F\u57CE\u533A",341621:"\u6DA1\u9633\u53BF",341622:"\u8499\u57CE\u53BF",341623:"\u5229\u8F9B\u53BF",341624:"\u5176\u5B83\u533A",341700:"\u6C60\u5DDE\u5E02",341702:"\u8D35\u6C60\u533A",341721:"\u4E1C\u81F3\u53BF",341722:"\u77F3\u53F0\u53BF",341723:"\u9752\u9633\u53BF",341724:"\u5176\u5B83\u533A",341800:"\u5BA3\u57CE\u5E02",341802:"\u5BA3\u5DDE\u533A",341821:"\u90CE\u6EAA\u53BF",341822:"\u5E7F\u5FB7\u53BF",341823:"\u6CFE\u53BF",341824:"\u7EE9\u6EAA\u53BF",341825:"\u65CC\u5FB7\u53BF",341881:"\u5B81\u56FD\u5E02",341882:"\u5176\u5B83\u533A",35e4:"\u798F\u5EFA\u7701",350100:"\u798F\u5DDE\u5E02",350102:"\u9F13\u697C\u533A",350103:"\u53F0\u6C5F\u533A",350104:"\u4ED3\u5C71\u533A",350105:"\u9A6C\u5C3E\u533A",350111:"\u664B\u5B89\u533A",350121:"\u95FD\u4FAF\u53BF",350122:"\u8FDE\u6C5F\u53BF",350123:"\u7F57\u6E90\u53BF",350124:"\u95FD\u6E05\u53BF",350125:"\u6C38\u6CF0\u53BF",350128:"\u5E73\u6F6D\u53BF",350181:"\u798F\u6E05\u5E02",350182:"\u957F\u4E50\u5E02",350183:"\u5176\u5B83\u533A",350200:"\u53A6\u95E8\u5E02",350203:"\u601D\u660E\u533A",350205:"\u6D77\u6CA7\u533A",350206:"\u6E56\u91CC\u533A",350211:"\u96C6\u7F8E\u533A",350212:"\u540C\u5B89\u533A",350213:"\u7FD4\u5B89\u533A",350214:"\u5176\u5B83\u533A",350300:"\u8386\u7530\u5E02",350302:"\u57CE\u53A2\u533A",350303:"\u6DB5\u6C5F\u533A",350304:"\u8354\u57CE\u533A",350305:"\u79C0\u5C7F\u533A",350322:"\u4ED9\u6E38\u53BF",350323:"\u5176\u5B83\u533A",350400:"\u4E09\u660E\u5E02",350402:"\u6885\u5217\u533A",350403:"\u4E09\u5143\u533A",350421:"\u660E\u6EAA\u53BF",350423:"\u6E05\u6D41\u53BF",350424:"\u5B81\u5316\u53BF",350425:"\u5927\u7530\u53BF",350426:"\u5C24\u6EAA\u53BF",350427:"\u6C99\u53BF",350428:"\u5C06\u4E50\u53BF",350429:"\u6CF0\u5B81\u53BF",350430:"\u5EFA\u5B81\u53BF",350481:"\u6C38\u5B89\u5E02",350482:"\u5176\u5B83\u533A",350500:"\u6CC9\u5DDE\u5E02",350502:"\u9CA4\u57CE\u533A",350503:"\u4E30\u6CFD\u533A",350504:"\u6D1B\u6C5F\u533A",350505:"\u6CC9\u6E2F\u533A",350521:"\u60E0\u5B89\u53BF",350524:"\u5B89\u6EAA\u53BF",350525:"\u6C38\u6625\u53BF",350526:"\u5FB7\u5316\u53BF",350527:"\u91D1\u95E8\u53BF",350581:"\u77F3\u72EE\u5E02",350582:"\u664B\u6C5F\u5E02",350583:"\u5357\u5B89\u5E02",350584:"\u5176\u5B83\u533A",350600:"\u6F33\u5DDE\u5E02",350602:"\u8297\u57CE\u533A",350603:"\u9F99\u6587\u533A",350622:"\u4E91\u9704\u53BF",350623:"\u6F33\u6D66\u53BF",350624:"\u8BCF\u5B89\u53BF",350625:"\u957F\u6CF0\u53BF",350626:"\u4E1C\u5C71\u53BF",350627:"\u5357\u9756\u53BF",350628:"\u5E73\u548C\u53BF",350629:"\u534E\u5B89\u53BF",350681:"\u9F99\u6D77\u5E02",350682:"\u5176\u5B83\u533A",350700:"\u5357\u5E73\u5E02",350702:"\u5EF6\u5E73\u533A",350721:"\u987A\u660C\u53BF",350722:"\u6D66\u57CE\u53BF",350723:"\u5149\u6CFD\u53BF",350724:"\u677E\u6EAA\u53BF",350725:"\u653F\u548C\u53BF",350781:"\u90B5\u6B66\u5E02",350782:"\u6B66\u5937\u5C71\u5E02",350783:"\u5EFA\u74EF\u5E02",350784:"\u5EFA\u9633\u5E02",350785:"\u5176\u5B83\u533A",350800:"\u9F99\u5CA9\u5E02",350802:"\u65B0\u7F57\u533A",350821:"\u957F\u6C40\u53BF",350822:"\u6C38\u5B9A\u53BF",350823:"\u4E0A\u676D\u53BF",350824:"\u6B66\u5E73\u53BF",350825:"\u8FDE\u57CE\u53BF",350881:"\u6F33\u5E73\u5E02",350882:"\u5176\u5B83\u533A",350900:"\u5B81\u5FB7\u5E02",350902:"\u8549\u57CE\u533A",350921:"\u971E\u6D66\u53BF",350922:"\u53E4\u7530\u53BF",350923:"\u5C4F\u5357\u53BF",350924:"\u5BFF\u5B81\u53BF",350925:"\u5468\u5B81\u53BF",350926:"\u67D8\u8363\u53BF",350981:"\u798F\u5B89\u5E02",350982:"\u798F\u9F0E\u5E02",350983:"\u5176\u5B83\u533A",36e4:"\u6C5F\u897F\u7701",360100:"\u5357\u660C\u5E02",360102:"\u4E1C\u6E56\u533A",360103:"\u897F\u6E56\u533A",360104:"\u9752\u4E91\u8C31\u533A",360105:"\u6E7E\u91CC\u533A",360111:"\u9752\u5C71\u6E56\u533A",360121:"\u5357\u660C\u53BF",360122:"\u65B0\u5EFA\u53BF",360123:"\u5B89\u4E49\u53BF",360124:"\u8FDB\u8D24\u53BF",360128:"\u5176\u5B83\u533A",360200:"\u666F\u5FB7\u9547\u5E02",360202:"\u660C\u6C5F\u533A",360203:"\u73E0\u5C71\u533A",360222:"\u6D6E\u6881\u53BF",360281:"\u4E50\u5E73\u5E02",360282:"\u5176\u5B83\u533A",360300:"\u840D\u4E61\u5E02",360302:"\u5B89\u6E90\u533A",360313:"\u6E58\u4E1C\u533A",360321:"\u83B2\u82B1\u53BF",360322:"\u4E0A\u6817\u53BF",360323:"\u82A6\u6EAA\u53BF",360324:"\u5176\u5B83\u533A",360400:"\u4E5D\u6C5F\u5E02",360402:"\u5E90\u5C71\u533A",360403:"\u6D54\u9633\u533A",360421:"\u4E5D\u6C5F\u53BF",360423:"\u6B66\u5B81\u53BF",360424:"\u4FEE\u6C34\u53BF",360425:"\u6C38\u4FEE\u53BF",360426:"\u5FB7\u5B89\u53BF",360427:"\u661F\u5B50\u53BF",360428:"\u90FD\u660C\u53BF",360429:"\u6E56\u53E3\u53BF",360430:"\u5F6D\u6CFD\u53BF",360481:"\u745E\u660C\u5E02",360482:"\u5176\u5B83\u533A",360483:"\u5171\u9752\u57CE\u5E02",360500:"\u65B0\u4F59\u5E02",360502:"\u6E1D\u6C34\u533A",360521:"\u5206\u5B9C\u53BF",360522:"\u5176\u5B83\u533A",360600:"\u9E70\u6F6D\u5E02",360602:"\u6708\u6E56\u533A",360622:"\u4F59\u6C5F\u53BF",360681:"\u8D35\u6EAA\u5E02",360682:"\u5176\u5B83\u533A",360700:"\u8D63\u5DDE\u5E02",360702:"\u7AE0\u8D21\u533A",360721:"\u8D63\u53BF",360722:"\u4FE1\u4E30\u53BF",360723:"\u5927\u4F59\u53BF",360724:"\u4E0A\u72B9\u53BF",360725:"\u5D07\u4E49\u53BF",360726:"\u5B89\u8FDC\u53BF",360727:"\u9F99\u5357\u53BF",360728:"\u5B9A\u5357\u53BF",360729:"\u5168\u5357\u53BF",360730:"\u5B81\u90FD\u53BF",360731:"\u4E8E\u90FD\u53BF",360732:"\u5174\u56FD\u53BF",360733:"\u4F1A\u660C\u53BF",360734:"\u5BFB\u4E4C\u53BF",360735:"\u77F3\u57CE\u53BF",360781:"\u745E\u91D1\u5E02",360782:"\u5357\u5EB7\u5E02",360783:"\u5176\u5B83\u533A",360800:"\u5409\u5B89\u5E02",360802:"\u5409\u5DDE\u533A",360803:"\u9752\u539F\u533A",360821:"\u5409\u5B89\u53BF",360822:"\u5409\u6C34\u53BF",360823:"\u5CE1\u6C5F\u53BF",360824:"\u65B0\u5E72\u53BF",360825:"\u6C38\u4E30\u53BF",360826:"\u6CF0\u548C\u53BF",360827:"\u9042\u5DDD\u53BF",360828:"\u4E07\u5B89\u53BF",360829:"\u5B89\u798F\u53BF",360830:"\u6C38\u65B0\u53BF",360881:"\u4E95\u5188\u5C71\u5E02",360882:"\u5176\u5B83\u533A",360900:"\u5B9C\u6625\u5E02",360902:"\u8881\u5DDE\u533A",360921:"\u5949\u65B0\u53BF",360922:"\u4E07\u8F7D\u53BF",360923:"\u4E0A\u9AD8\u53BF",360924:"\u5B9C\u4E30\u53BF",360925:"\u9756\u5B89\u53BF",360926:"\u94DC\u9F13\u53BF",360981:"\u4E30\u57CE\u5E02",360982:"\u6A1F\u6811\u5E02",360983:"\u9AD8\u5B89\u5E02",360984:"\u5176\u5B83\u533A",361e3:"\u629A\u5DDE\u5E02",361002:"\u4E34\u5DDD\u533A",361021:"\u5357\u57CE\u53BF",361022:"\u9ECE\u5DDD\u53BF",361023:"\u5357\u4E30\u53BF",361024:"\u5D07\u4EC1\u53BF",361025:"\u4E50\u5B89\u53BF",361026:"\u5B9C\u9EC4\u53BF",361027:"\u91D1\u6EAA\u53BF",361028:"\u8D44\u6EAA\u53BF",361029:"\u4E1C\u4E61\u53BF",361030:"\u5E7F\u660C\u53BF",361031:"\u5176\u5B83\u533A",361100:"\u4E0A\u9976\u5E02",361102:"\u4FE1\u5DDE\u533A",361121:"\u4E0A\u9976\u53BF",361122:"\u5E7F\u4E30\u53BF",361123:"\u7389\u5C71\u53BF",361124:"\u94C5\u5C71\u53BF",361125:"\u6A2A\u5CF0\u53BF",361126:"\u5F0B\u9633\u53BF",361127:"\u4F59\u5E72\u53BF",361128:"\u9131\u9633\u53BF",361129:"\u4E07\u5E74\u53BF",361130:"\u5A7A\u6E90\u53BF",361181:"\u5FB7\u5174\u5E02",361182:"\u5176\u5B83\u533A",37e4:"\u5C71\u4E1C\u7701",370100:"\u6D4E\u5357\u5E02",370102:"\u5386\u4E0B\u533A",370103:"\u5E02\u4E2D\u533A",370104:"\u69D0\u836B\u533A",370105:"\u5929\u6865\u533A",370112:"\u5386\u57CE\u533A",370113:"\u957F\u6E05\u533A",370124:"\u5E73\u9634\u53BF",370125:"\u6D4E\u9633\u53BF",370126:"\u5546\u6CB3\u53BF",370181:"\u7AE0\u4E18\u5E02",370182:"\u5176\u5B83\u533A",370200:"\u9752\u5C9B\u5E02",370202:"\u5E02\u5357\u533A",370203:"\u5E02\u5317\u533A",370211:"\u9EC4\u5C9B\u533A",370212:"\u5D02\u5C71\u533A",370213:"\u674E\u6CA7\u533A",370214:"\u57CE\u9633\u533A",370281:"\u80F6\u5DDE\u5E02",370282:"\u5373\u58A8\u5E02",370283:"\u5E73\u5EA6\u5E02",370285:"\u83B1\u897F\u5E02",370286:"\u5176\u5B83\u533A",370300:"\u6DC4\u535A\u5E02",370302:"\u6DC4\u5DDD\u533A",370303:"\u5F20\u5E97\u533A",370304:"\u535A\u5C71\u533A",370305:"\u4E34\u6DC4\u533A",370306:"\u5468\u6751\u533A",370321:"\u6853\u53F0\u53BF",370322:"\u9AD8\u9752\u53BF",370323:"\u6C82\u6E90\u53BF",370324:"\u5176\u5B83\u533A",370400:"\u67A3\u5E84\u5E02",370402:"\u5E02\u4E2D\u533A",370403:"\u859B\u57CE\u533A",370404:"\u5CC4\u57CE\u533A",370405:"\u53F0\u513F\u5E84\u533A",370406:"\u5C71\u4EAD\u533A",370481:"\u6ED5\u5DDE\u5E02",370482:"\u5176\u5B83\u533A",370500:"\u4E1C\u8425\u5E02",370502:"\u4E1C\u8425\u533A",370503:"\u6CB3\u53E3\u533A",370521:"\u57A6\u5229\u53BF",370522:"\u5229\u6D25\u53BF",370523:"\u5E7F\u9976\u53BF",370591:"\u5176\u5B83\u533A",370600:"\u70DF\u53F0\u5E02",370602:"\u829D\u7F58\u533A",370611:"\u798F\u5C71\u533A",370612:"\u725F\u5E73\u533A",370613:"\u83B1\u5C71\u533A",370634:"\u957F\u5C9B\u53BF",370681:"\u9F99\u53E3\u5E02",370682:"\u83B1\u9633\u5E02",370683:"\u83B1\u5DDE\u5E02",370684:"\u84EC\u83B1\u5E02",370685:"\u62DB\u8FDC\u5E02",370686:"\u6816\u971E\u5E02",370687:"\u6D77\u9633\u5E02",370688:"\u5176\u5B83\u533A",370700:"\u6F4D\u574A\u5E02",370702:"\u6F4D\u57CE\u533A",370703:"\u5BD2\u4EAD\u533A",370704:"\u574A\u5B50\u533A",370705:"\u594E\u6587\u533A",370724:"\u4E34\u6710\u53BF",370725:"\u660C\u4E50\u53BF",370781:"\u9752\u5DDE\u5E02",370782:"\u8BF8\u57CE\u5E02",370783:"\u5BFF\u5149\u5E02",370784:"\u5B89\u4E18\u5E02",370785:"\u9AD8\u5BC6\u5E02",370786:"\u660C\u9091\u5E02",370787:"\u5176\u5B83\u533A",370800:"\u6D4E\u5B81\u5E02",370802:"\u5E02\u4E2D\u533A",370811:"\u4EFB\u57CE\u533A",370826:"\u5FAE\u5C71\u53BF",370827:"\u9C7C\u53F0\u53BF",370828:"\u91D1\u4E61\u53BF",370829:"\u5609\u7965\u53BF",370830:"\u6C76\u4E0A\u53BF",370831:"\u6CD7\u6C34\u53BF",370832:"\u6881\u5C71\u53BF",370881:"\u66F2\u961C\u5E02",370882:"\u5156\u5DDE\u5E02",370883:"\u90B9\u57CE\u5E02",370884:"\u5176\u5B83\u533A",370900:"\u6CF0\u5B89\u5E02",370902:"\u6CF0\u5C71\u533A",370903:"\u5CB1\u5CB3\u533A",370921:"\u5B81\u9633\u53BF",370923:"\u4E1C\u5E73\u53BF",370982:"\u65B0\u6CF0\u5E02",370983:"\u80A5\u57CE\u5E02",370984:"\u5176\u5B83\u533A",371e3:"\u5A01\u6D77\u5E02",371002:"\u73AF\u7FE0\u533A",371081:"\u6587\u767B\u5E02",371082:"\u8363\u6210\u5E02",371083:"\u4E73\u5C71\u5E02",371084:"\u5176\u5B83\u533A",371100:"\u65E5\u7167\u5E02",371102:"\u4E1C\u6E2F\u533A",371103:"\u5C9A\u5C71\u533A",371121:"\u4E94\u83B2\u53BF",371122:"\u8392\u53BF",371123:"\u5176\u5B83\u533A",371200:"\u83B1\u829C\u5E02",371202:"\u83B1\u57CE\u533A",371203:"\u94A2\u57CE\u533A",371204:"\u5176\u5B83\u533A",371300:"\u4E34\u6C82\u5E02",371302:"\u5170\u5C71\u533A",371311:"\u7F57\u5E84\u533A",371312:"\u6CB3\u4E1C\u533A",371321:"\u6C82\u5357\u53BF",371322:"\u90EF\u57CE\u53BF",371323:"\u6C82\u6C34\u53BF",371324:"\u82CD\u5C71\u53BF",371325:"\u8D39\u53BF",371326:"\u5E73\u9091\u53BF",371327:"\u8392\u5357\u53BF",371328:"\u8499\u9634\u53BF",371329:"\u4E34\u6CAD\u53BF",371330:"\u5176\u5B83\u533A",371400:"\u5FB7\u5DDE\u5E02",371402:"\u5FB7\u57CE\u533A",371421:"\u9675\u53BF",371422:"\u5B81\u6D25\u53BF",371423:"\u5E86\u4E91\u53BF",371424:"\u4E34\u9091\u53BF",371425:"\u9F50\u6CB3\u53BF",371426:"\u5E73\u539F\u53BF",371427:"\u590F\u6D25\u53BF",371428:"\u6B66\u57CE\u53BF",371481:"\u4E50\u9675\u5E02",371482:"\u79B9\u57CE\u5E02",371483:"\u5176\u5B83\u533A",371500:"\u804A\u57CE\u5E02",371502:"\u4E1C\u660C\u5E9C\u533A",371521:"\u9633\u8C37\u53BF",371522:"\u8398\u53BF",371523:"\u830C\u5E73\u53BF",371524:"\u4E1C\u963F\u53BF",371525:"\u51A0\u53BF",371526:"\u9AD8\u5510\u53BF",371581:"\u4E34\u6E05\u5E02",371582:"\u5176\u5B83\u533A",371600:"\u6EE8\u5DDE\u5E02",371602:"\u6EE8\u57CE\u533A",371621:"\u60E0\u6C11\u53BF",371622:"\u9633\u4FE1\u53BF",371623:"\u65E0\u68E3\u53BF",371624:"\u6CBE\u5316\u53BF",371625:"\u535A\u5174\u53BF",371626:"\u90B9\u5E73\u53BF",371627:"\u5176\u5B83\u533A",371700:"\u83CF\u6CFD\u5E02",371702:"\u7261\u4E39\u533A",371721:"\u66F9\u53BF",371722:"\u5355\u53BF",371723:"\u6210\u6B66\u53BF",371724:"\u5DE8\u91CE\u53BF",371725:"\u90D3\u57CE\u53BF",371726:"\u9104\u57CE\u53BF",371727:"\u5B9A\u9676\u53BF",371728:"\u4E1C\u660E\u53BF",371729:"\u5176\u5B83\u533A",41e4:"\u6CB3\u5357\u7701",410100:"\u90D1\u5DDE\u5E02",410102:"\u4E2D\u539F\u533A",410103:"\u4E8C\u4E03\u533A",410104:"\u7BA1\u57CE\u56DE\u65CF\u533A",410105:"\u91D1\u6C34\u533A",410106:"\u4E0A\u8857\u533A",410108:"\u60E0\u6D4E\u533A",410122:"\u4E2D\u725F\u53BF",410181:"\u5DE9\u4E49\u5E02",410182:"\u8365\u9633\u5E02",410183:"\u65B0\u5BC6\u5E02",410184:"\u65B0\u90D1\u5E02",410185:"\u767B\u5C01\u5E02",410188:"\u5176\u5B83\u533A",410200:"\u5F00\u5C01\u5E02",410202:"\u9F99\u4EAD\u533A",410203:"\u987A\u6CB3\u56DE\u65CF\u533A",410204:"\u9F13\u697C\u533A",410205:"\u79B9\u738B\u53F0\u533A",410211:"\u91D1\u660E\u533A",410221:"\u675E\u53BF",410222:"\u901A\u8BB8\u53BF",410223:"\u5C09\u6C0F\u53BF",410224:"\u5F00\u5C01\u53BF",410225:"\u5170\u8003\u53BF",410226:"\u5176\u5B83\u533A",410300:"\u6D1B\u9633\u5E02",410302:"\u8001\u57CE\u533A",410303:"\u897F\u5DE5\u533A",410304:"\u700D\u6CB3\u56DE\u65CF\u533A",410305:"\u6DA7\u897F\u533A",410306:"\u5409\u5229\u533A",410307:"\u6D1B\u9F99\u533A",410322:"\u5B5F\u6D25\u53BF",410323:"\u65B0\u5B89\u53BF",410324:"\u683E\u5DDD\u53BF",410325:"\u5D69\u53BF",410326:"\u6C5D\u9633\u53BF",410327:"\u5B9C\u9633\u53BF",410328:"\u6D1B\u5B81\u53BF",410329:"\u4F0A\u5DDD\u53BF",410381:"\u5043\u5E08\u5E02",410400:"\u5E73\u9876\u5C71\u5E02",410402:"\u65B0\u534E\u533A",410403:"\u536B\u4E1C\u533A",410404:"\u77F3\u9F99\u533A",410411:"\u6E5B\u6CB3\u533A",410421:"\u5B9D\u4E30\u53BF",410422:"\u53F6\u53BF",410423:"\u9C81\u5C71\u53BF",410425:"\u90CF\u53BF",410481:"\u821E\u94A2\u5E02",410482:"\u6C5D\u5DDE\u5E02",410483:"\u5176\u5B83\u533A",410500:"\u5B89\u9633\u5E02",410502:"\u6587\u5CF0\u533A",410503:"\u5317\u5173\u533A",410505:"\u6BB7\u90FD\u533A",410506:"\u9F99\u5B89\u533A",410522:"\u5B89\u9633\u53BF",410523:"\u6C64\u9634\u53BF",410526:"\u6ED1\u53BF",410527:"\u5185\u9EC4\u53BF",410581:"\u6797\u5DDE\u5E02",410582:"\u5176\u5B83\u533A",410600:"\u9E64\u58C1\u5E02",410602:"\u9E64\u5C71\u533A",410603:"\u5C71\u57CE\u533A",410611:"\u6DC7\u6EE8\u533A",410621:"\u6D5A\u53BF",410622:"\u6DC7\u53BF",410623:"\u5176\u5B83\u533A",410700:"\u65B0\u4E61\u5E02",410702:"\u7EA2\u65D7\u533A",410703:"\u536B\u6EE8\u533A",410704:"\u51E4\u6CC9\u533A",410711:"\u7267\u91CE\u533A",410721:"\u65B0\u4E61\u53BF",410724:"\u83B7\u5609\u53BF",410725:"\u539F\u9633\u53BF",410726:"\u5EF6\u6D25\u53BF",410727:"\u5C01\u4E18\u53BF",410728:"\u957F\u57A3\u53BF",410781:"\u536B\u8F89\u5E02",410782:"\u8F89\u53BF\u5E02",410783:"\u5176\u5B83\u533A",410800:"\u7126\u4F5C\u5E02",410802:"\u89E3\u653E\u533A",410803:"\u4E2D\u7AD9\u533A",410804:"\u9A6C\u6751\u533A",410811:"\u5C71\u9633\u533A",410821:"\u4FEE\u6B66\u53BF",410822:"\u535A\u7231\u53BF",410823:"\u6B66\u965F\u53BF",410825:"\u6E29\u53BF",410881:"\u6D4E\u6E90\u5E02",410882:"\u6C81\u9633\u5E02",410883:"\u5B5F\u5DDE\u5E02",410884:"\u5176\u5B83\u533A",410900:"\u6FEE\u9633\u5E02",410902:"\u534E\u9F99\u533A",410922:"\u6E05\u4E30\u53BF",410923:"\u5357\u4E50\u53BF",410926:"\u8303\u53BF",410927:"\u53F0\u524D\u53BF",410928:"\u6FEE\u9633\u53BF",410929:"\u5176\u5B83\u533A",411e3:"\u8BB8\u660C\u5E02",411002:"\u9B4F\u90FD\u533A",411023:"\u8BB8\u660C\u53BF",411024:"\u9122\u9675\u53BF",411025:"\u8944\u57CE\u53BF",411081:"\u79B9\u5DDE\u5E02",411082:"\u957F\u845B\u5E02",411083:"\u5176\u5B83\u533A",411100:"\u6F2F\u6CB3\u5E02",411102:"\u6E90\u6C47\u533A",411103:"\u90FE\u57CE\u533A",411104:"\u53EC\u9675\u533A",411121:"\u821E\u9633\u53BF",411122:"\u4E34\u988D\u53BF",411123:"\u5176\u5B83\u533A",411200:"\u4E09\u95E8\u5CE1\u5E02",411202:"\u6E56\u6EE8\u533A",411221:"\u6E11\u6C60\u53BF",411222:"\u9655\u53BF",411224:"\u5362\u6C0F\u53BF",411281:"\u4E49\u9A6C\u5E02",411282:"\u7075\u5B9D\u5E02",411283:"\u5176\u5B83\u533A",411300:"\u5357\u9633\u5E02",411302:"\u5B9B\u57CE\u533A",411303:"\u5367\u9F99\u533A",411321:"\u5357\u53EC\u53BF",411322:"\u65B9\u57CE\u53BF",411323:"\u897F\u5CE1\u53BF",411324:"\u9547\u5E73\u53BF",411325:"\u5185\u4E61\u53BF",411326:"\u6DC5\u5DDD\u53BF",411327:"\u793E\u65D7\u53BF",411328:"\u5510\u6CB3\u53BF",411329:"\u65B0\u91CE\u53BF",411330:"\u6850\u67CF\u53BF",411381:"\u9093\u5DDE\u5E02",411382:"\u5176\u5B83\u533A",411400:"\u5546\u4E18\u5E02",411402:"\u6881\u56ED\u533A",411403:"\u7762\u9633\u533A",411421:"\u6C11\u6743\u53BF",411422:"\u7762\u53BF",411423:"\u5B81\u9675\u53BF",411424:"\u67D8\u57CE\u53BF",411425:"\u865E\u57CE\u53BF",411426:"\u590F\u9091\u53BF",411481:"\u6C38\u57CE\u5E02",411482:"\u5176\u5B83\u533A",411500:"\u4FE1\u9633\u5E02",411502:"\u6D49\u6CB3\u533A",411503:"\u5E73\u6865\u533A",411521:"\u7F57\u5C71\u53BF",411522:"\u5149\u5C71\u53BF",411523:"\u65B0\u53BF",411524:"\u5546\u57CE\u53BF",411525:"\u56FA\u59CB\u53BF",411526:"\u6F62\u5DDD\u53BF",411527:"\u6DEE\u6EE8\u53BF",411528:"\u606F\u53BF",411529:"\u5176\u5B83\u533A",411600:"\u5468\u53E3\u5E02",411602:"\u5DDD\u6C47\u533A",411621:"\u6276\u6C9F\u53BF",411622:"\u897F\u534E\u53BF",411623:"\u5546\u6C34\u53BF",411624:"\u6C88\u4E18\u53BF",411625:"\u90F8\u57CE\u53BF",411626:"\u6DEE\u9633\u53BF",411627:"\u592A\u5EB7\u53BF",411628:"\u9E7F\u9091\u53BF",411681:"\u9879\u57CE\u5E02",411682:"\u5176\u5B83\u533A",411700:"\u9A7B\u9A6C\u5E97\u5E02",411702:"\u9A7F\u57CE\u533A",411721:"\u897F\u5E73\u53BF",411722:"\u4E0A\u8521\u53BF",411723:"\u5E73\u8206\u53BF",411724:"\u6B63\u9633\u53BF",411725:"\u786E\u5C71\u53BF",411726:"\u6CCC\u9633\u53BF",411727:"\u6C5D\u5357\u53BF",411728:"\u9042\u5E73\u53BF",411729:"\u65B0\u8521\u53BF",411730:"\u5176\u5B83\u533A",42e4:"\u6E56\u5317\u7701",420100:"\u6B66\u6C49\u5E02",420102:"\u6C5F\u5CB8\u533A",420103:"\u6C5F\u6C49\u533A",420104:"\u785A\u53E3\u533A",420105:"\u6C49\u9633\u533A",420106:"\u6B66\u660C\u533A",420107:"\u9752\u5C71\u533A",420111:"\u6D2A\u5C71\u533A",420112:"\u4E1C\u897F\u6E56\u533A",420113:"\u6C49\u5357\u533A",420114:"\u8521\u7538\u533A",420115:"\u6C5F\u590F\u533A",420116:"\u9EC4\u9642\u533A",420117:"\u65B0\u6D32\u533A",420118:"\u5176\u5B83\u533A",420200:"\u9EC4\u77F3\u5E02",420202:"\u9EC4\u77F3\u6E2F\u533A",420203:"\u897F\u585E\u5C71\u533A",420204:"\u4E0B\u9646\u533A",420205:"\u94C1\u5C71\u533A",420222:"\u9633\u65B0\u53BF",420281:"\u5927\u51B6\u5E02",420282:"\u5176\u5B83\u533A",420300:"\u5341\u5830\u5E02",420302:"\u8305\u7BAD\u533A",420303:"\u5F20\u6E7E\u533A",420321:"\u90E7\u53BF",420322:"\u90E7\u897F\u53BF",420323:"\u7AF9\u5C71\u53BF",420324:"\u7AF9\u6EAA\u53BF",420325:"\u623F\u53BF",420381:"\u4E39\u6C5F\u53E3\u5E02",420383:"\u5176\u5B83\u533A",420500:"\u5B9C\u660C\u5E02",420502:"\u897F\u9675\u533A",420503:"\u4F0D\u5BB6\u5C97\u533A",420504:"\u70B9\u519B\u533A",420505:"\u7307\u4EAD\u533A",420506:"\u5937\u9675\u533A",420525:"\u8FDC\u5B89\u53BF",420526:"\u5174\u5C71\u53BF",420527:"\u79ED\u5F52\u53BF",420528:"\u957F\u9633\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",420529:"\u4E94\u5CF0\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",420581:"\u5B9C\u90FD\u5E02",420582:"\u5F53\u9633\u5E02",420583:"\u679D\u6C5F\u5E02",420584:"\u5176\u5B83\u533A",420600:"\u8944\u9633\u5E02",420602:"\u8944\u57CE\u533A",420606:"\u6A0A\u57CE\u533A",420607:"\u8944\u5DDE\u533A",420624:"\u5357\u6F33\u53BF",420625:"\u8C37\u57CE\u53BF",420626:"\u4FDD\u5EB7\u53BF",420682:"\u8001\u6CB3\u53E3\u5E02",420683:"\u67A3\u9633\u5E02",420684:"\u5B9C\u57CE\u5E02",420685:"\u5176\u5B83\u533A",420700:"\u9102\u5DDE\u5E02",420702:"\u6881\u5B50\u6E56\u533A",420703:"\u534E\u5BB9\u533A",420704:"\u9102\u57CE\u533A",420705:"\u5176\u5B83\u533A",420800:"\u8346\u95E8\u5E02",420802:"\u4E1C\u5B9D\u533A",420804:"\u6387\u5200\u533A",420821:"\u4EAC\u5C71\u53BF",420822:"\u6C99\u6D0B\u53BF",420881:"\u949F\u7965\u5E02",420882:"\u5176\u5B83\u533A",420900:"\u5B5D\u611F\u5E02",420902:"\u5B5D\u5357\u533A",420921:"\u5B5D\u660C\u53BF",420922:"\u5927\u609F\u53BF",420923:"\u4E91\u68A6\u53BF",420981:"\u5E94\u57CE\u5E02",420982:"\u5B89\u9646\u5E02",420984:"\u6C49\u5DDD\u5E02",420985:"\u5176\u5B83\u533A",421e3:"\u8346\u5DDE\u5E02",421002:"\u6C99\u5E02\u533A",421003:"\u8346\u5DDE\u533A",421022:"\u516C\u5B89\u53BF",421023:"\u76D1\u5229\u53BF",421024:"\u6C5F\u9675\u53BF",421081:"\u77F3\u9996\u5E02",421083:"\u6D2A\u6E56\u5E02",421087:"\u677E\u6ECB\u5E02",421088:"\u5176\u5B83\u533A",421100:"\u9EC4\u5188\u5E02",421102:"\u9EC4\u5DDE\u533A",421121:"\u56E2\u98CE\u53BF",421122:"\u7EA2\u5B89\u53BF",421123:"\u7F57\u7530\u53BF",421124:"\u82F1\u5C71\u53BF",421125:"\u6D60\u6C34\u53BF",421126:"\u8572\u6625\u53BF",421127:"\u9EC4\u6885\u53BF",421181:"\u9EBB\u57CE\u5E02",421182:"\u6B66\u7A74\u5E02",421183:"\u5176\u5B83\u533A",421200:"\u54B8\u5B81\u5E02",421202:"\u54B8\u5B89\u533A",421221:"\u5609\u9C7C\u53BF",421222:"\u901A\u57CE\u53BF",421223:"\u5D07\u9633\u53BF",421224:"\u901A\u5C71\u53BF",421281:"\u8D64\u58C1\u5E02",421283:"\u5176\u5B83\u533A",421300:"\u968F\u5DDE\u5E02",421302:"\u66FE\u90FD\u533A",421321:"\u968F\u53BF",421381:"\u5E7F\u6C34\u5E02",421382:"\u5176\u5B83\u533A",422800:"\u6069\u65BD\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",422801:"\u6069\u65BD\u5E02",422802:"\u5229\u5DDD\u5E02",422822:"\u5EFA\u59CB\u53BF",422823:"\u5DF4\u4E1C\u53BF",422825:"\u5BA3\u6069\u53BF",422826:"\u54B8\u4E30\u53BF",422827:"\u6765\u51E4\u53BF",422828:"\u9E64\u5CF0\u53BF",422829:"\u5176\u5B83\u533A",429004:"\u4ED9\u6843\u5E02",429005:"\u6F5C\u6C5F\u5E02",429006:"\u5929\u95E8\u5E02",429021:"\u795E\u519C\u67B6\u6797\u533A",43e4:"\u6E56\u5357\u7701",430100:"\u957F\u6C99\u5E02",430102:"\u8299\u84C9\u533A",430103:"\u5929\u5FC3\u533A",430104:"\u5CB3\u9E93\u533A",430105:"\u5F00\u798F\u533A",430111:"\u96E8\u82B1\u533A",430121:"\u957F\u6C99\u53BF",430122:"\u671B\u57CE\u533A",430124:"\u5B81\u4E61\u53BF",430181:"\u6D4F\u9633\u5E02",430182:"\u5176\u5B83\u533A",430200:"\u682A\u6D32\u5E02",430202:"\u8377\u5858\u533A",430203:"\u82A6\u6DDE\u533A",430204:"\u77F3\u5CF0\u533A",430211:"\u5929\u5143\u533A",430221:"\u682A\u6D32\u53BF",430223:"\u6538\u53BF",430224:"\u8336\u9675\u53BF",430225:"\u708E\u9675\u53BF",430281:"\u91B4\u9675\u5E02",430282:"\u5176\u5B83\u533A",430300:"\u6E58\u6F6D\u5E02",430302:"\u96E8\u6E56\u533A",430304:"\u5CB3\u5858\u533A",430321:"\u6E58\u6F6D\u53BF",430381:"\u6E58\u4E61\u5E02",430382:"\u97F6\u5C71\u5E02",430383:"\u5176\u5B83\u533A",430400:"\u8861\u9633\u5E02",430405:"\u73E0\u6656\u533A",430406:"\u96C1\u5CF0\u533A",430407:"\u77F3\u9F13\u533A",430408:"\u84B8\u6E58\u533A",430412:"\u5357\u5CB3\u533A",430421:"\u8861\u9633\u53BF",430422:"\u8861\u5357\u53BF",430423:"\u8861\u5C71\u53BF",430424:"\u8861\u4E1C\u53BF",430426:"\u7941\u4E1C\u53BF",430481:"\u8012\u9633\u5E02",430482:"\u5E38\u5B81\u5E02",430483:"\u5176\u5B83\u533A",430500:"\u90B5\u9633\u5E02",430502:"\u53CC\u6E05\u533A",430503:"\u5927\u7965\u533A",430511:"\u5317\u5854\u533A",430521:"\u90B5\u4E1C\u53BF",430522:"\u65B0\u90B5\u53BF",430523:"\u90B5\u9633\u53BF",430524:"\u9686\u56DE\u53BF",430525:"\u6D1E\u53E3\u53BF",430527:"\u7EE5\u5B81\u53BF",430528:"\u65B0\u5B81\u53BF",430529:"\u57CE\u6B65\u82D7\u65CF\u81EA\u6CBB\u53BF",430581:"\u6B66\u5188\u5E02",430582:"\u5176\u5B83\u533A",430600:"\u5CB3\u9633\u5E02",430602:"\u5CB3\u9633\u697C\u533A",430603:"\u4E91\u6EAA\u533A",430611:"\u541B\u5C71\u533A",430621:"\u5CB3\u9633\u53BF",430623:"\u534E\u5BB9\u53BF",430624:"\u6E58\u9634\u53BF",430626:"\u5E73\u6C5F\u53BF",430681:"\u6C68\u7F57\u5E02",430682:"\u4E34\u6E58\u5E02",430683:"\u5176\u5B83\u533A",430700:"\u5E38\u5FB7\u5E02",430702:"\u6B66\u9675\u533A",430703:"\u9F0E\u57CE\u533A",430721:"\u5B89\u4E61\u53BF",430722:"\u6C49\u5BFF\u53BF",430723:"\u6FA7\u53BF",430724:"\u4E34\u6FA7\u53BF",430725:"\u6843\u6E90\u53BF",430726:"\u77F3\u95E8\u53BF",430781:"\u6D25\u5E02\u5E02",430782:"\u5176\u5B83\u533A",430800:"\u5F20\u5BB6\u754C\u5E02",430802:"\u6C38\u5B9A\u533A",430811:"\u6B66\u9675\u6E90\u533A",430821:"\u6148\u5229\u53BF",430822:"\u6851\u690D\u53BF",430823:"\u5176\u5B83\u533A",430900:"\u76CA\u9633\u5E02",430902:"\u8D44\u9633\u533A",430903:"\u8D6B\u5C71\u533A",430921:"\u5357\u53BF",430922:"\u6843\u6C5F\u53BF",430923:"\u5B89\u5316\u53BF",430981:"\u6C85\u6C5F\u5E02",430982:"\u5176\u5B83\u533A",431e3:"\u90F4\u5DDE\u5E02",431002:"\u5317\u6E56\u533A",431003:"\u82CF\u4ED9\u533A",431021:"\u6842\u9633\u53BF",431022:"\u5B9C\u7AE0\u53BF",431023:"\u6C38\u5174\u53BF",431024:"\u5609\u79BE\u53BF",431025:"\u4E34\u6B66\u53BF",431026:"\u6C5D\u57CE\u53BF",431027:"\u6842\u4E1C\u53BF",431028:"\u5B89\u4EC1\u53BF",431081:"\u8D44\u5174\u5E02",431082:"\u5176\u5B83\u533A",431100:"\u6C38\u5DDE\u5E02",431102:"\u96F6\u9675\u533A",431103:"\u51B7\u6C34\u6EE9\u533A",431121:"\u7941\u9633\u53BF",431122:"\u4E1C\u5B89\u53BF",431123:"\u53CC\u724C\u53BF",431124:"\u9053\u53BF",431125:"\u6C5F\u6C38\u53BF",431126:"\u5B81\u8FDC\u53BF",431127:"\u84DD\u5C71\u53BF",431128:"\u65B0\u7530\u53BF",431129:"\u6C5F\u534E\u7476\u65CF\u81EA\u6CBB\u53BF",431130:"\u5176\u5B83\u533A",431200:"\u6000\u5316\u5E02",431202:"\u9E64\u57CE\u533A",431221:"\u4E2D\u65B9\u53BF",431222:"\u6C85\u9675\u53BF",431223:"\u8FB0\u6EAA\u53BF",431224:"\u6E86\u6D66\u53BF",431225:"\u4F1A\u540C\u53BF",431226:"\u9EBB\u9633\u82D7\u65CF\u81EA\u6CBB\u53BF",431227:"\u65B0\u6643\u4F97\u65CF\u81EA\u6CBB\u53BF",431228:"\u82B7\u6C5F\u4F97\u65CF\u81EA\u6CBB\u53BF",431229:"\u9756\u5DDE\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u53BF",431230:"\u901A\u9053\u4F97\u65CF\u81EA\u6CBB\u53BF",431281:"\u6D2A\u6C5F\u5E02",431282:"\u5176\u5B83\u533A",431300:"\u5A04\u5E95\u5E02",431302:"\u5A04\u661F\u533A",431321:"\u53CC\u5CF0\u53BF",431322:"\u65B0\u5316\u53BF",431381:"\u51B7\u6C34\u6C5F\u5E02",431382:"\u6D9F\u6E90\u5E02",431383:"\u5176\u5B83\u533A",433100:"\u6E58\u897F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",433101:"\u5409\u9996\u5E02",433122:"\u6CF8\u6EAA\u53BF",433123:"\u51E4\u51F0\u53BF",433124:"\u82B1\u57A3\u53BF",433125:"\u4FDD\u9756\u53BF",433126:"\u53E4\u4E08\u53BF",433127:"\u6C38\u987A\u53BF",433130:"\u9F99\u5C71\u53BF",433131:"\u5176\u5B83\u533A",44e4:"\u5E7F\u4E1C\u7701",440100:"\u5E7F\u5DDE\u5E02",440103:"\u8354\u6E7E\u533A",440104:"\u8D8A\u79C0\u533A",440105:"\u6D77\u73E0\u533A",440106:"\u5929\u6CB3\u533A",440111:"\u767D\u4E91\u533A",440112:"\u9EC4\u57D4\u533A",440113:"\u756A\u79BA\u533A",440114:"\u82B1\u90FD\u533A",440115:"\u5357\u6C99\u533A",440116:"\u841D\u5C97\u533A",440183:"\u589E\u57CE\u5E02",440184:"\u4ECE\u5316\u5E02",440189:"\u5176\u5B83\u533A",440200:"\u97F6\u5173\u5E02",440203:"\u6B66\u6C5F\u533A",440204:"\u6D48\u6C5F\u533A",440205:"\u66F2\u6C5F\u533A",440222:"\u59CB\u5174\u53BF",440224:"\u4EC1\u5316\u53BF",440229:"\u7FC1\u6E90\u53BF",440232:"\u4E73\u6E90\u7476\u65CF\u81EA\u6CBB\u53BF",440233:"\u65B0\u4E30\u53BF",440281:"\u4E50\u660C\u5E02",440282:"\u5357\u96C4\u5E02",440283:"\u5176\u5B83\u533A",440300:"\u6DF1\u5733\u5E02",440303:"\u7F57\u6E56\u533A",440304:"\u798F\u7530\u533A",440305:"\u5357\u5C71\u533A",440306:"\u5B9D\u5B89\u533A",440307:"\u9F99\u5C97\u533A",440308:"\u76D0\u7530\u533A",440309:"\u5176\u5B83\u533A",440320:"\u5149\u660E\u65B0\u533A",440321:"\u576A\u5C71\u65B0\u533A",440322:"\u5927\u9E4F\u65B0\u533A",440323:"\u9F99\u534E\u65B0\u533A",440400:"\u73E0\u6D77\u5E02",440402:"\u9999\u6D32\u533A",440403:"\u6597\u95E8\u533A",440404:"\u91D1\u6E7E\u533A",440488:"\u5176\u5B83\u533A",440500:"\u6C55\u5934\u5E02",440507:"\u9F99\u6E56\u533A",440511:"\u91D1\u5E73\u533A",440512:"\u6FE0\u6C5F\u533A",440513:"\u6F6E\u9633\u533A",440514:"\u6F6E\u5357\u533A",440515:"\u6F84\u6D77\u533A",440523:"\u5357\u6FB3\u53BF",440524:"\u5176\u5B83\u533A",440600:"\u4F5B\u5C71\u5E02",440604:"\u7985\u57CE\u533A",440605:"\u5357\u6D77\u533A",440606:"\u987A\u5FB7\u533A",440607:"\u4E09\u6C34\u533A",440608:"\u9AD8\u660E\u533A",440609:"\u5176\u5B83\u533A",440700:"\u6C5F\u95E8\u5E02",440703:"\u84EC\u6C5F\u533A",440704:"\u6C5F\u6D77\u533A",440705:"\u65B0\u4F1A\u533A",440781:"\u53F0\u5C71\u5E02",440783:"\u5F00\u5E73\u5E02",440784:"\u9E64\u5C71\u5E02",440785:"\u6069\u5E73\u5E02",440786:"\u5176\u5B83\u533A",440800:"\u6E5B\u6C5F\u5E02",440802:"\u8D64\u574E\u533A",440803:"\u971E\u5C71\u533A",440804:"\u5761\u5934\u533A",440811:"\u9EBB\u7AE0\u533A",440823:"\u9042\u6EAA\u53BF",440825:"\u5F90\u95FB\u53BF",440881:"\u5EC9\u6C5F\u5E02",440882:"\u96F7\u5DDE\u5E02",440883:"\u5434\u5DDD\u5E02",440884:"\u5176\u5B83\u533A",440900:"\u8302\u540D\u5E02",440902:"\u8302\u5357\u533A",440903:"\u8302\u6E2F\u533A",440923:"\u7535\u767D\u53BF",440981:"\u9AD8\u5DDE\u5E02",440982:"\u5316\u5DDE\u5E02",440983:"\u4FE1\u5B9C\u5E02",440984:"\u5176\u5B83\u533A",441200:"\u8087\u5E86\u5E02",441202:"\u7AEF\u5DDE\u533A",441203:"\u9F0E\u6E56\u533A",441223:"\u5E7F\u5B81\u53BF",441224:"\u6000\u96C6\u53BF",441225:"\u5C01\u5F00\u53BF",441226:"\u5FB7\u5E86\u53BF",441283:"\u9AD8\u8981\u5E02",441284:"\u56DB\u4F1A\u5E02",441285:"\u5176\u5B83\u533A",441300:"\u60E0\u5DDE\u5E02",441302:"\u60E0\u57CE\u533A",441303:"\u60E0\u9633\u533A",441322:"\u535A\u7F57\u53BF",441323:"\u60E0\u4E1C\u53BF",441324:"\u9F99\u95E8\u53BF",441325:"\u5176\u5B83\u533A",441400:"\u6885\u5DDE\u5E02",441402:"\u6885\u6C5F\u533A",441421:"\u6885\u53BF",441422:"\u5927\u57D4\u53BF",441423:"\u4E30\u987A\u53BF",441424:"\u4E94\u534E\u53BF",441426:"\u5E73\u8FDC\u53BF",441427:"\u8549\u5CAD\u53BF",441481:"\u5174\u5B81\u5E02",441482:"\u5176\u5B83\u533A",441500:"\u6C55\u5C3E\u5E02",441502:"\u57CE\u533A",441521:"\u6D77\u4E30\u53BF",441523:"\u9646\u6CB3\u53BF",441581:"\u9646\u4E30\u5E02",441582:"\u5176\u5B83\u533A",441600:"\u6CB3\u6E90\u5E02",441602:"\u6E90\u57CE\u533A",441621:"\u7D2B\u91D1\u53BF",441622:"\u9F99\u5DDD\u53BF",441623:"\u8FDE\u5E73\u53BF",441624:"\u548C\u5E73\u53BF",441625:"\u4E1C\u6E90\u53BF",441626:"\u5176\u5B83\u533A",441700:"\u9633\u6C5F\u5E02",441702:"\u6C5F\u57CE\u533A",441721:"\u9633\u897F\u53BF",441723:"\u9633\u4E1C\u53BF",441781:"\u9633\u6625\u5E02",441782:"\u5176\u5B83\u533A",441800:"\u6E05\u8FDC\u5E02",441802:"\u6E05\u57CE\u533A",441821:"\u4F5B\u5188\u53BF",441823:"\u9633\u5C71\u53BF",441825:"\u8FDE\u5C71\u58EE\u65CF\u7476\u65CF\u81EA\u6CBB\u53BF",441826:"\u8FDE\u5357\u7476\u65CF\u81EA\u6CBB\u53BF",441827:"\u6E05\u65B0\u533A",441881:"\u82F1\u5FB7\u5E02",441882:"\u8FDE\u5DDE\u5E02",441883:"\u5176\u5B83\u533A",441900:"\u4E1C\u839E\u5E02",442e3:"\u4E2D\u5C71\u5E02",442101:"\u4E1C\u6C99\u7FA4\u5C9B",445100:"\u6F6E\u5DDE\u5E02",445102:"\u6E58\u6865\u533A",445121:"\u6F6E\u5B89\u533A",445122:"\u9976\u5E73\u53BF",445186:"\u5176\u5B83\u533A",445200:"\u63ED\u9633\u5E02",445202:"\u6995\u57CE\u533A",445221:"\u63ED\u4E1C\u533A",445222:"\u63ED\u897F\u53BF",445224:"\u60E0\u6765\u53BF",445281:"\u666E\u5B81\u5E02",445285:"\u5176\u5B83\u533A",445300:"\u4E91\u6D6E\u5E02",445302:"\u4E91\u57CE\u533A",445321:"\u65B0\u5174\u53BF",445322:"\u90C1\u5357\u53BF",445323:"\u4E91\u5B89\u53BF",445381:"\u7F57\u5B9A\u5E02",445382:"\u5176\u5B83\u533A",45e4:"\u5E7F\u897F\u58EE\u65CF\u81EA\u6CBB\u533A",450100:"\u5357\u5B81\u5E02",450102:"\u5174\u5B81\u533A",450103:"\u9752\u79C0\u533A",450105:"\u6C5F\u5357\u533A",450107:"\u897F\u4E61\u5858\u533A",450108:"\u826F\u5E86\u533A",450109:"\u9095\u5B81\u533A",450122:"\u6B66\u9E23\u53BF",450123:"\u9686\u5B89\u53BF",450124:"\u9A6C\u5C71\u53BF",450125:"\u4E0A\u6797\u53BF",450126:"\u5BBE\u9633\u53BF",450127:"\u6A2A\u53BF",450128:"\u5176\u5B83\u533A",450200:"\u67F3\u5DDE\u5E02",450202:"\u57CE\u4E2D\u533A",450203:"\u9C7C\u5CF0\u533A",450204:"\u67F3\u5357\u533A",450205:"\u67F3\u5317\u533A",450221:"\u67F3\u6C5F\u53BF",450222:"\u67F3\u57CE\u53BF",450223:"\u9E7F\u5BE8\u53BF",450224:"\u878D\u5B89\u53BF",450225:"\u878D\u6C34\u82D7\u65CF\u81EA\u6CBB\u53BF",450226:"\u4E09\u6C5F\u4F97\u65CF\u81EA\u6CBB\u53BF",450227:"\u5176\u5B83\u533A",450300:"\u6842\u6797\u5E02",450302:"\u79C0\u5CF0\u533A",450303:"\u53E0\u5F69\u533A",450304:"\u8C61\u5C71\u533A",450305:"\u4E03\u661F\u533A",450311:"\u96C1\u5C71\u533A",450321:"\u9633\u6714\u53BF",450322:"\u4E34\u6842\u533A",450323:"\u7075\u5DDD\u53BF",450324:"\u5168\u5DDE\u53BF",450325:"\u5174\u5B89\u53BF",450326:"\u6C38\u798F\u53BF",450327:"\u704C\u9633\u53BF",450328:"\u9F99\u80DC\u5404\u65CF\u81EA\u6CBB\u53BF",450329:"\u8D44\u6E90\u53BF",450330:"\u5E73\u4E50\u53BF",450331:"\u8354\u6D66\u53BF",450332:"\u606D\u57CE\u7476\u65CF\u81EA\u6CBB\u53BF",450333:"\u5176\u5B83\u533A",450400:"\u68A7\u5DDE\u5E02",450403:"\u4E07\u79C0\u533A",450405:"\u957F\u6D32\u533A",450406:"\u9F99\u5729\u533A",450421:"\u82CD\u68A7\u53BF",450422:"\u85E4\u53BF",450423:"\u8499\u5C71\u53BF",450481:"\u5C91\u6EAA\u5E02",450482:"\u5176\u5B83\u533A",450500:"\u5317\u6D77\u5E02",450502:"\u6D77\u57CE\u533A",450503:"\u94F6\u6D77\u533A",450512:"\u94C1\u5C71\u6E2F\u533A",450521:"\u5408\u6D66\u53BF",450522:"\u5176\u5B83\u533A",450600:"\u9632\u57CE\u6E2F\u5E02",450602:"\u6E2F\u53E3\u533A",450603:"\u9632\u57CE\u533A",450621:"\u4E0A\u601D\u53BF",450681:"\u4E1C\u5174\u5E02",450682:"\u5176\u5B83\u533A",450700:"\u94A6\u5DDE\u5E02",450702:"\u94A6\u5357\u533A",450703:"\u94A6\u5317\u533A",450721:"\u7075\u5C71\u53BF",450722:"\u6D66\u5317\u53BF",450723:"\u5176\u5B83\u533A",450800:"\u8D35\u6E2F\u5E02",450802:"\u6E2F\u5317\u533A",450803:"\u6E2F\u5357\u533A",450804:"\u8983\u5858\u533A",450821:"\u5E73\u5357\u53BF",450881:"\u6842\u5E73\u5E02",450882:"\u5176\u5B83\u533A",450900:"\u7389\u6797\u5E02",450902:"\u7389\u5DDE\u533A",450903:"\u798F\u7EF5\u533A",450921:"\u5BB9\u53BF",450922:"\u9646\u5DDD\u53BF",450923:"\u535A\u767D\u53BF",450924:"\u5174\u4E1A\u53BF",450981:"\u5317\u6D41\u5E02",450982:"\u5176\u5B83\u533A",451e3:"\u767E\u8272\u5E02",451002:"\u53F3\u6C5F\u533A",451021:"\u7530\u9633\u53BF",451022:"\u7530\u4E1C\u53BF",451023:"\u5E73\u679C\u53BF",451024:"\u5FB7\u4FDD\u53BF",451025:"\u9756\u897F\u53BF",451026:"\u90A3\u5761\u53BF",451027:"\u51CC\u4E91\u53BF",451028:"\u4E50\u4E1A\u53BF",451029:"\u7530\u6797\u53BF",451030:"\u897F\u6797\u53BF",451031:"\u9686\u6797\u5404\u65CF\u81EA\u6CBB\u53BF",451032:"\u5176\u5B83\u533A",451100:"\u8D3A\u5DDE\u5E02",451102:"\u516B\u6B65\u533A",451119:"\u5E73\u6842\u7BA1\u7406\u533A",451121:"\u662D\u5E73\u53BF",451122:"\u949F\u5C71\u53BF",451123:"\u5BCC\u5DDD\u7476\u65CF\u81EA\u6CBB\u53BF",451124:"\u5176\u5B83\u533A",451200:"\u6CB3\u6C60\u5E02",451202:"\u91D1\u57CE\u6C5F\u533A",451221:"\u5357\u4E39\u53BF",451222:"\u5929\u5CE8\u53BF",451223:"\u51E4\u5C71\u53BF",451224:"\u4E1C\u5170\u53BF",451225:"\u7F57\u57CE\u4EEB\u4F6C\u65CF\u81EA\u6CBB\u53BF",451226:"\u73AF\u6C5F\u6BDB\u5357\u65CF\u81EA\u6CBB\u53BF",451227:"\u5DF4\u9A6C\u7476\u65CF\u81EA\u6CBB\u53BF",451228:"\u90FD\u5B89\u7476\u65CF\u81EA\u6CBB\u53BF",451229:"\u5927\u5316\u7476\u65CF\u81EA\u6CBB\u53BF",451281:"\u5B9C\u5DDE\u5E02",451282:"\u5176\u5B83\u533A",451300:"\u6765\u5BBE\u5E02",451302:"\u5174\u5BBE\u533A",451321:"\u5FFB\u57CE\u53BF",451322:"\u8C61\u5DDE\u53BF",451323:"\u6B66\u5BA3\u53BF",451324:"\u91D1\u79C0\u7476\u65CF\u81EA\u6CBB\u53BF",451381:"\u5408\u5C71\u5E02",451382:"\u5176\u5B83\u533A",451400:"\u5D07\u5DE6\u5E02",451402:"\u6C5F\u5DDE\u533A",451421:"\u6276\u7EE5\u53BF",451422:"\u5B81\u660E\u53BF",451423:"\u9F99\u5DDE\u53BF",451424:"\u5927\u65B0\u53BF",451425:"\u5929\u7B49\u53BF",451481:"\u51ED\u7965\u5E02",451482:"\u5176\u5B83\u533A",46e4:"\u6D77\u5357\u7701",460100:"\u6D77\u53E3\u5E02",460105:"\u79C0\u82F1\u533A",460106:"\u9F99\u534E\u533A",460107:"\u743C\u5C71\u533A",460108:"\u7F8E\u5170\u533A",460109:"\u5176\u5B83\u533A",460200:"\u4E09\u4E9A\u5E02",460300:"\u4E09\u6C99\u5E02",460321:"\u897F\u6C99\u7FA4\u5C9B",460322:"\u5357\u6C99\u7FA4\u5C9B",460323:"\u4E2D\u6C99\u7FA4\u5C9B\u7684\u5C9B\u7901\u53CA\u5176\u6D77\u57DF",469001:"\u4E94\u6307\u5C71\u5E02",469002:"\u743C\u6D77\u5E02",469003:"\u510B\u5DDE\u5E02",469005:"\u6587\u660C\u5E02",469006:"\u4E07\u5B81\u5E02",469007:"\u4E1C\u65B9\u5E02",469025:"\u5B9A\u5B89\u53BF",469026:"\u5C6F\u660C\u53BF",469027:"\u6F84\u8FC8\u53BF",469028:"\u4E34\u9AD8\u53BF",469030:"\u767D\u6C99\u9ECE\u65CF\u81EA\u6CBB\u53BF",469031:"\u660C\u6C5F\u9ECE\u65CF\u81EA\u6CBB\u53BF",469033:"\u4E50\u4E1C\u9ECE\u65CF\u81EA\u6CBB\u53BF",469034:"\u9675\u6C34\u9ECE\u65CF\u81EA\u6CBB\u53BF",469035:"\u4FDD\u4EAD\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",469036:"\u743C\u4E2D\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",471005:"\u5176\u5B83\u533A",5e5:"\u91CD\u5E86",500100:"\u91CD\u5E86\u5E02",500101:"\u4E07\u5DDE\u533A",500102:"\u6DAA\u9675\u533A",500103:"\u6E1D\u4E2D\u533A",500104:"\u5927\u6E21\u53E3\u533A",500105:"\u6C5F\u5317\u533A",500106:"\u6C99\u576A\u575D\u533A",500107:"\u4E5D\u9F99\u5761\u533A",500108:"\u5357\u5CB8\u533A",500109:"\u5317\u789A\u533A",500110:"\u4E07\u76DB\u533A",500111:"\u53CC\u6865\u533A",500112:"\u6E1D\u5317\u533A",500113:"\u5DF4\u5357\u533A",500114:"\u9ED4\u6C5F\u533A",500115:"\u957F\u5BFF\u533A",500222:"\u7DA6\u6C5F\u533A",500223:"\u6F7C\u5357\u53BF",500224:"\u94DC\u6881\u53BF",500225:"\u5927\u8DB3\u533A",500226:"\u8363\u660C\u53BF",500227:"\u74A7\u5C71\u53BF",500228:"\u6881\u5E73\u53BF",500229:"\u57CE\u53E3\u53BF",500230:"\u4E30\u90FD\u53BF",500231:"\u57AB\u6C5F\u53BF",500232:"\u6B66\u9686\u53BF",500233:"\u5FE0\u53BF",500234:"\u5F00\u53BF",500235:"\u4E91\u9633\u53BF",500236:"\u5949\u8282\u53BF",500237:"\u5DEB\u5C71\u53BF",500238:"\u5DEB\u6EAA\u53BF",500240:"\u77F3\u67F1\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",500241:"\u79C0\u5C71\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",500242:"\u9149\u9633\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",500243:"\u5F6D\u6C34\u82D7\u65CF\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",500381:"\u6C5F\u6D25\u533A",500382:"\u5408\u5DDD\u533A",500383:"\u6C38\u5DDD\u533A",500384:"\u5357\u5DDD\u533A",500385:"\u5176\u5B83\u533A",51e4:"\u56DB\u5DDD\u7701",510100:"\u6210\u90FD\u5E02",510104:"\u9526\u6C5F\u533A",510105:"\u9752\u7F8A\u533A",510106:"\u91D1\u725B\u533A",510107:"\u6B66\u4FAF\u533A",510108:"\u6210\u534E\u533A",510112:"\u9F99\u6CC9\u9A7F\u533A",510113:"\u9752\u767D\u6C5F\u533A",510114:"\u65B0\u90FD\u533A",510115:"\u6E29\u6C5F\u533A",510121:"\u91D1\u5802\u53BF",510122:"\u53CC\u6D41\u53BF",510124:"\u90EB\u53BF",510129:"\u5927\u9091\u53BF",510131:"\u84B2\u6C5F\u53BF",510132:"\u65B0\u6D25\u53BF",510181:"\u90FD\u6C5F\u5830\u5E02",510182:"\u5F6D\u5DDE\u5E02",510183:"\u909B\u5D03\u5E02",510184:"\u5D07\u5DDE\u5E02",510185:"\u5176\u5B83\u533A",510300:"\u81EA\u8D21\u5E02",510302:"\u81EA\u6D41\u4E95\u533A",510303:"\u8D21\u4E95\u533A",510304:"\u5927\u5B89\u533A",510311:"\u6CBF\u6EE9\u533A",510321:"\u8363\u53BF",510322:"\u5BCC\u987A\u53BF",510323:"\u5176\u5B83\u533A",510400:"\u6500\u679D\u82B1\u5E02",510402:"\u4E1C\u533A",510403:"\u897F\u533A",510411:"\u4EC1\u548C\u533A",510421:"\u7C73\u6613\u53BF",510422:"\u76D0\u8FB9\u53BF",510423:"\u5176\u5B83\u533A",510500:"\u6CF8\u5DDE\u5E02",510502:"\u6C5F\u9633\u533A",510503:"\u7EB3\u6EAA\u533A",510504:"\u9F99\u9A6C\u6F6D\u533A",510521:"\u6CF8\u53BF",510522:"\u5408\u6C5F\u53BF",510524:"\u53D9\u6C38\u53BF",510525:"\u53E4\u853A\u53BF",510526:"\u5176\u5B83\u533A",510600:"\u5FB7\u9633\u5E02",510603:"\u65CC\u9633\u533A",510623:"\u4E2D\u6C5F\u53BF",510626:"\u7F57\u6C5F\u53BF",510681:"\u5E7F\u6C49\u5E02",510682:"\u4EC0\u90A1\u5E02",510683:"\u7EF5\u7AF9\u5E02",510684:"\u5176\u5B83\u533A",510700:"\u7EF5\u9633\u5E02",510703:"\u6DAA\u57CE\u533A",510704:"\u6E38\u4ED9\u533A",510722:"\u4E09\u53F0\u53BF",510723:"\u76D0\u4EAD\u53BF",510724:"\u5B89\u53BF",510725:"\u6893\u6F7C\u53BF",510726:"\u5317\u5DDD\u7F8C\u65CF\u81EA\u6CBB\u53BF",510727:"\u5E73\u6B66\u53BF",510781:"\u6C5F\u6CB9\u5E02",510782:"\u5176\u5B83\u533A",510800:"\u5E7F\u5143\u5E02",510802:"\u5229\u5DDE\u533A",510811:"\u662D\u5316\u533A",510812:"\u671D\u5929\u533A",510821:"\u65FA\u82CD\u53BF",510822:"\u9752\u5DDD\u53BF",510823:"\u5251\u9601\u53BF",510824:"\u82CD\u6EAA\u53BF",510825:"\u5176\u5B83\u533A",510900:"\u9042\u5B81\u5E02",510903:"\u8239\u5C71\u533A",510904:"\u5B89\u5C45\u533A",510921:"\u84EC\u6EAA\u53BF",510922:"\u5C04\u6D2A\u53BF",510923:"\u5927\u82F1\u53BF",510924:"\u5176\u5B83\u533A",511e3:"\u5185\u6C5F\u5E02",511002:"\u5E02\u4E2D\u533A",511011:"\u4E1C\u5174\u533A",511024:"\u5A01\u8FDC\u53BF",511025:"\u8D44\u4E2D\u53BF",511028:"\u9686\u660C\u53BF",511029:"\u5176\u5B83\u533A",511100:"\u4E50\u5C71\u5E02",511102:"\u5E02\u4E2D\u533A",511111:"\u6C99\u6E7E\u533A",511112:"\u4E94\u901A\u6865\u533A",511113:"\u91D1\u53E3\u6CB3\u533A",511123:"\u728D\u4E3A\u53BF",511124:"\u4E95\u7814\u53BF",511126:"\u5939\u6C5F\u53BF",511129:"\u6C90\u5DDD\u53BF",511132:"\u5CE8\u8FB9\u5F5D\u65CF\u81EA\u6CBB\u53BF",511133:"\u9A6C\u8FB9\u5F5D\u65CF\u81EA\u6CBB\u53BF",511181:"\u5CE8\u7709\u5C71\u5E02",511182:"\u5176\u5B83\u533A",511300:"\u5357\u5145\u5E02",511302:"\u987A\u5E86\u533A",511303:"\u9AD8\u576A\u533A",511304:"\u5609\u9675\u533A",511321:"\u5357\u90E8\u53BF",511322:"\u8425\u5C71\u53BF",511323:"\u84EC\u5B89\u53BF",511324:"\u4EEA\u9647\u53BF",511325:"\u897F\u5145\u53BF",511381:"\u9606\u4E2D\u5E02",511382:"\u5176\u5B83\u533A",511400:"\u7709\u5C71\u5E02",511402:"\u4E1C\u5761\u533A",511421:"\u4EC1\u5BFF\u53BF",511422:"\u5F6D\u5C71\u53BF",511423:"\u6D2A\u96C5\u53BF",511424:"\u4E39\u68F1\u53BF",511425:"\u9752\u795E\u53BF",511426:"\u5176\u5B83\u533A",511500:"\u5B9C\u5BBE\u5E02",511502:"\u7FE0\u5C4F\u533A",511521:"\u5B9C\u5BBE\u53BF",511522:"\u5357\u6EAA\u533A",511523:"\u6C5F\u5B89\u53BF",511524:"\u957F\u5B81\u53BF",511525:"\u9AD8\u53BF",511526:"\u73D9\u53BF",511527:"\u7B60\u8FDE\u53BF",511528:"\u5174\u6587\u53BF",511529:"\u5C4F\u5C71\u53BF",511530:"\u5176\u5B83\u533A",511600:"\u5E7F\u5B89\u5E02",511602:"\u5E7F\u5B89\u533A",511603:"\u524D\u950B\u533A",511621:"\u5CB3\u6C60\u53BF",511622:"\u6B66\u80DC\u53BF",511623:"\u90BB\u6C34\u53BF",511681:"\u534E\u84E5\u5E02",511683:"\u5176\u5B83\u533A",511700:"\u8FBE\u5DDE\u5E02",511702:"\u901A\u5DDD\u533A",511721:"\u8FBE\u5DDD\u533A",511722:"\u5BA3\u6C49\u53BF",511723:"\u5F00\u6C5F\u53BF",511724:"\u5927\u7AF9\u53BF",511725:"\u6E20\u53BF",511781:"\u4E07\u6E90\u5E02",511782:"\u5176\u5B83\u533A",511800:"\u96C5\u5B89\u5E02",511802:"\u96E8\u57CE\u533A",511821:"\u540D\u5C71\u533A",511822:"\u8365\u7ECF\u53BF",511823:"\u6C49\u6E90\u53BF",511824:"\u77F3\u68C9\u53BF",511825:"\u5929\u5168\u53BF",511826:"\u82A6\u5C71\u53BF",511827:"\u5B9D\u5174\u53BF",511828:"\u5176\u5B83\u533A",511900:"\u5DF4\u4E2D\u5E02",511902:"\u5DF4\u5DDE\u533A",511903:"\u6069\u9633\u533A",511921:"\u901A\u6C5F\u53BF",511922:"\u5357\u6C5F\u53BF",511923:"\u5E73\u660C\u53BF",511924:"\u5176\u5B83\u533A",512e3:"\u8D44\u9633\u5E02",512002:"\u96C1\u6C5F\u533A",512021:"\u5B89\u5CB3\u53BF",512022:"\u4E50\u81F3\u53BF",512081:"\u7B80\u9633\u5E02",512082:"\u5176\u5B83\u533A",513200:"\u963F\u575D\u85CF\u65CF\u7F8C\u65CF\u81EA\u6CBB\u5DDE",513221:"\u6C76\u5DDD\u53BF",513222:"\u7406\u53BF",513223:"\u8302\u53BF",513224:"\u677E\u6F58\u53BF",513225:"\u4E5D\u5BE8\u6C9F\u53BF",513226:"\u91D1\u5DDD\u53BF",513227:"\u5C0F\u91D1\u53BF",513228:"\u9ED1\u6C34\u53BF",513229:"\u9A6C\u5C14\u5EB7\u53BF",513230:"\u58E4\u5858\u53BF",513231:"\u963F\u575D\u53BF",513232:"\u82E5\u5C14\u76D6\u53BF",513233:"\u7EA2\u539F\u53BF",513234:"\u5176\u5B83\u533A",513300:"\u7518\u5B5C\u85CF\u65CF\u81EA\u6CBB\u5DDE",513321:"\u5EB7\u5B9A\u53BF",513322:"\u6CF8\u5B9A\u53BF",513323:"\u4E39\u5DF4\u53BF",513324:"\u4E5D\u9F99\u53BF",513325:"\u96C5\u6C5F\u53BF",513326:"\u9053\u5B5A\u53BF",513327:"\u7089\u970D\u53BF",513328:"\u7518\u5B5C\u53BF",513329:"\u65B0\u9F99\u53BF",513330:"\u5FB7\u683C\u53BF",513331:"\u767D\u7389\u53BF",513332:"\u77F3\u6E20\u53BF",513333:"\u8272\u8FBE\u53BF",513334:"\u7406\u5858\u53BF",513335:"\u5DF4\u5858\u53BF",513336:"\u4E61\u57CE\u53BF",513337:"\u7A3B\u57CE\u53BF",513338:"\u5F97\u8363\u53BF",513339:"\u5176\u5B83\u533A",513400:"\u51C9\u5C71\u5F5D\u65CF\u81EA\u6CBB\u5DDE",513401:"\u897F\u660C\u5E02",513422:"\u6728\u91CC\u85CF\u65CF\u81EA\u6CBB\u53BF",513423:"\u76D0\u6E90\u53BF",513424:"\u5FB7\u660C\u53BF",513425:"\u4F1A\u7406\u53BF",513426:"\u4F1A\u4E1C\u53BF",513427:"\u5B81\u5357\u53BF",513428:"\u666E\u683C\u53BF",513429:"\u5E03\u62D6\u53BF",513430:"\u91D1\u9633\u53BF",513431:"\u662D\u89C9\u53BF",513432:"\u559C\u5FB7\u53BF",513433:"\u5195\u5B81\u53BF",513434:"\u8D8A\u897F\u53BF",513435:"\u7518\u6D1B\u53BF",513436:"\u7F8E\u59D1\u53BF",513437:"\u96F7\u6CE2\u53BF",513438:"\u5176\u5B83\u533A",52e4:"\u8D35\u5DDE\u7701",520100:"\u8D35\u9633\u5E02",520102:"\u5357\u660E\u533A",520103:"\u4E91\u5CA9\u533A",520111:"\u82B1\u6EAA\u533A",520112:"\u4E4C\u5F53\u533A",520113:"\u767D\u4E91\u533A",520121:"\u5F00\u9633\u53BF",520122:"\u606F\u70FD\u53BF",520123:"\u4FEE\u6587\u53BF",520151:"\u89C2\u5C71\u6E56\u533A",520181:"\u6E05\u9547\u5E02",520182:"\u5176\u5B83\u533A",520200:"\u516D\u76D8\u6C34\u5E02",520201:"\u949F\u5C71\u533A",520203:"\u516D\u679D\u7279\u533A",520221:"\u6C34\u57CE\u53BF",520222:"\u76D8\u53BF",520223:"\u5176\u5B83\u533A",520300:"\u9075\u4E49\u5E02",520302:"\u7EA2\u82B1\u5C97\u533A",520303:"\u6C47\u5DDD\u533A",520321:"\u9075\u4E49\u53BF",520322:"\u6850\u6893\u53BF",520323:"\u7EE5\u9633\u53BF",520324:"\u6B63\u5B89\u53BF",520325:"\u9053\u771F\u4EE1\u4F6C\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520326:"\u52A1\u5DDD\u4EE1\u4F6C\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520327:"\u51E4\u5188\u53BF",520328:"\u6E44\u6F6D\u53BF",520329:"\u4F59\u5E86\u53BF",520330:"\u4E60\u6C34\u53BF",520381:"\u8D64\u6C34\u5E02",520382:"\u4EC1\u6000\u5E02",520383:"\u5176\u5B83\u533A",520400:"\u5B89\u987A\u5E02",520402:"\u897F\u79C0\u533A",520421:"\u5E73\u575D\u53BF",520422:"\u666E\u5B9A\u53BF",520423:"\u9547\u5B81\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520424:"\u5173\u5CAD\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",520425:"\u7D2B\u4E91\u82D7\u65CF\u5E03\u4F9D\u65CF\u81EA\u6CBB\u53BF",520426:"\u5176\u5B83\u533A",522200:"\u94DC\u4EC1\u5E02",522201:"\u78A7\u6C5F\u533A",522222:"\u6C5F\u53E3\u53BF",522223:"\u7389\u5C4F\u4F97\u65CF\u81EA\u6CBB\u53BF",522224:"\u77F3\u9621\u53BF",522225:"\u601D\u5357\u53BF",522226:"\u5370\u6C5F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",522227:"\u5FB7\u6C5F\u53BF",522228:"\u6CBF\u6CB3\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF",522229:"\u677E\u6843\u82D7\u65CF\u81EA\u6CBB\u53BF",522230:"\u4E07\u5C71\u533A",522231:"\u5176\u5B83\u533A",522300:"\u9ED4\u897F\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",522301:"\u5174\u4E49\u5E02",522322:"\u5174\u4EC1\u53BF",522323:"\u666E\u5B89\u53BF",522324:"\u6674\u9686\u53BF",522325:"\u8D1E\u4E30\u53BF",522326:"\u671B\u8C1F\u53BF",522327:"\u518C\u4EA8\u53BF",522328:"\u5B89\u9F99\u53BF",522329:"\u5176\u5B83\u533A",522400:"\u6BD5\u8282\u5E02",522401:"\u4E03\u661F\u5173\u533A",522422:"\u5927\u65B9\u53BF",522423:"\u9ED4\u897F\u53BF",522424:"\u91D1\u6C99\u53BF",522425:"\u7EC7\u91D1\u53BF",522426:"\u7EB3\u96CD\u53BF",522427:"\u5A01\u5B81\u5F5D\u65CF\u56DE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",522428:"\u8D6B\u7AE0\u53BF",522429:"\u5176\u5B83\u533A",522600:"\u9ED4\u4E1C\u5357\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u5DDE",522601:"\u51EF\u91CC\u5E02",522622:"\u9EC4\u5E73\u53BF",522623:"\u65BD\u79C9\u53BF",522624:"\u4E09\u7A57\u53BF",522625:"\u9547\u8FDC\u53BF",522626:"\u5C91\u5DE9\u53BF",522627:"\u5929\u67F1\u53BF",522628:"\u9526\u5C4F\u53BF",522629:"\u5251\u6CB3\u53BF",522630:"\u53F0\u6C5F\u53BF",522631:"\u9ECE\u5E73\u53BF",522632:"\u6995\u6C5F\u53BF",522633:"\u4ECE\u6C5F\u53BF",522634:"\u96F7\u5C71\u53BF",522635:"\u9EBB\u6C5F\u53BF",522636:"\u4E39\u5BE8\u53BF",522637:"\u5176\u5B83\u533A",522700:"\u9ED4\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",522701:"\u90FD\u5300\u5E02",522702:"\u798F\u6CC9\u5E02",522722:"\u8354\u6CE2\u53BF",522723:"\u8D35\u5B9A\u53BF",522725:"\u74EE\u5B89\u53BF",522726:"\u72EC\u5C71\u53BF",522727:"\u5E73\u5858\u53BF",522728:"\u7F57\u7538\u53BF",522729:"\u957F\u987A\u53BF",522730:"\u9F99\u91CC\u53BF",522731:"\u60E0\u6C34\u53BF",522732:"\u4E09\u90FD\u6C34\u65CF\u81EA\u6CBB\u53BF",522733:"\u5176\u5B83\u533A",53e4:"\u4E91\u5357\u7701",530100:"\u6606\u660E\u5E02",530102:"\u4E94\u534E\u533A",530103:"\u76D8\u9F99\u533A",530111:"\u5B98\u6E21\u533A",530112:"\u897F\u5C71\u533A",530113:"\u4E1C\u5DDD\u533A",530121:"\u5448\u8D21\u533A",530122:"\u664B\u5B81\u53BF",530124:"\u5BCC\u6C11\u53BF",530125:"\u5B9C\u826F\u53BF",530126:"\u77F3\u6797\u5F5D\u65CF\u81EA\u6CBB\u53BF",530127:"\u5D69\u660E\u53BF",530128:"\u7984\u529D\u5F5D\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF",530129:"\u5BFB\u7538\u56DE\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530181:"\u5B89\u5B81\u5E02",530182:"\u5176\u5B83\u533A",530300:"\u66F2\u9756\u5E02",530302:"\u9E92\u9E9F\u533A",530321:"\u9A6C\u9F99\u53BF",530322:"\u9646\u826F\u53BF",530323:"\u5E08\u5B97\u53BF",530324:"\u7F57\u5E73\u53BF",530325:"\u5BCC\u6E90\u53BF",530326:"\u4F1A\u6CFD\u53BF",530328:"\u6CBE\u76CA\u53BF",530381:"\u5BA3\u5A01\u5E02",530382:"\u5176\u5B83\u533A",530400:"\u7389\u6EAA\u5E02",530402:"\u7EA2\u5854\u533A",530421:"\u6C5F\u5DDD\u53BF",530422:"\u6F84\u6C5F\u53BF",530423:"\u901A\u6D77\u53BF",530424:"\u534E\u5B81\u53BF",530425:"\u6613\u95E8\u53BF",530426:"\u5CE8\u5C71\u5F5D\u65CF\u81EA\u6CBB\u53BF",530427:"\u65B0\u5E73\u5F5D\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530428:"\u5143\u6C5F\u54C8\u5C3C\u65CF\u5F5D\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530429:"\u5176\u5B83\u533A",530500:"\u4FDD\u5C71\u5E02",530502:"\u9686\u9633\u533A",530521:"\u65BD\u7538\u53BF",530522:"\u817E\u51B2\u53BF",530523:"\u9F99\u9675\u53BF",530524:"\u660C\u5B81\u53BF",530525:"\u5176\u5B83\u533A",530600:"\u662D\u901A\u5E02",530602:"\u662D\u9633\u533A",530621:"\u9C81\u7538\u53BF",530622:"\u5DE7\u5BB6\u53BF",530623:"\u76D0\u6D25\u53BF",530624:"\u5927\u5173\u53BF",530625:"\u6C38\u5584\u53BF",530626:"\u7EE5\u6C5F\u53BF",530627:"\u9547\u96C4\u53BF",530628:"\u5F5D\u826F\u53BF",530629:"\u5A01\u4FE1\u53BF",530630:"\u6C34\u5BCC\u53BF",530631:"\u5176\u5B83\u533A",530700:"\u4E3D\u6C5F\u5E02",530702:"\u53E4\u57CE\u533A",530721:"\u7389\u9F99\u7EB3\u897F\u65CF\u81EA\u6CBB\u53BF",530722:"\u6C38\u80DC\u53BF",530723:"\u534E\u576A\u53BF",530724:"\u5B81\u8497\u5F5D\u65CF\u81EA\u6CBB\u53BF",530725:"\u5176\u5B83\u533A",530800:"\u666E\u6D31\u5E02",530802:"\u601D\u8305\u533A",530821:"\u5B81\u6D31\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530822:"\u58A8\u6C5F\u54C8\u5C3C\u65CF\u81EA\u6CBB\u53BF",530823:"\u666F\u4E1C\u5F5D\u65CF\u81EA\u6CBB\u53BF",530824:"\u666F\u8C37\u50A3\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530825:"\u9547\u6C85\u5F5D\u65CF\u54C8\u5C3C\u65CF\u62C9\u795C\u65CF\u81EA\u6CBB\u53BF",530826:"\u6C5F\u57CE\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u53BF",530827:"\u5B5F\u8FDE\u50A3\u65CF\u62C9\u795C\u65CF\u4F64\u65CF\u81EA\u6CBB\u53BF",530828:"\u6F9C\u6CA7\u62C9\u795C\u65CF\u81EA\u6CBB\u53BF",530829:"\u897F\u76DF\u4F64\u65CF\u81EA\u6CBB\u53BF",530830:"\u5176\u5B83\u533A",530900:"\u4E34\u6CA7\u5E02",530902:"\u4E34\u7FD4\u533A",530921:"\u51E4\u5E86\u53BF",530922:"\u4E91\u53BF",530923:"\u6C38\u5FB7\u53BF",530924:"\u9547\u5EB7\u53BF",530925:"\u53CC\u6C5F\u62C9\u795C\u65CF\u4F64\u65CF\u5E03\u6717\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",530926:"\u803F\u9A6C\u50A3\u65CF\u4F64\u65CF\u81EA\u6CBB\u53BF",530927:"\u6CA7\u6E90\u4F64\u65CF\u81EA\u6CBB\u53BF",530928:"\u5176\u5B83\u533A",532300:"\u695A\u96C4\u5F5D\u65CF\u81EA\u6CBB\u5DDE",532301:"\u695A\u96C4\u5E02",532322:"\u53CC\u67CF\u53BF",532323:"\u725F\u5B9A\u53BF",532324:"\u5357\u534E\u53BF",532325:"\u59DA\u5B89\u53BF",532326:"\u5927\u59DA\u53BF",532327:"\u6C38\u4EC1\u53BF",532328:"\u5143\u8C0B\u53BF",532329:"\u6B66\u5B9A\u53BF",532331:"\u7984\u4E30\u53BF",532332:"\u5176\u5B83\u533A",532500:"\u7EA2\u6CB3\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u5DDE",532501:"\u4E2A\u65E7\u5E02",532502:"\u5F00\u8FDC\u5E02",532522:"\u8499\u81EA\u5E02",532523:"\u5C4F\u8FB9\u82D7\u65CF\u81EA\u6CBB\u53BF",532524:"\u5EFA\u6C34\u53BF",532525:"\u77F3\u5C4F\u53BF",532526:"\u5F25\u52D2\u5E02",532527:"\u6CF8\u897F\u53BF",532528:"\u5143\u9633\u53BF",532529:"\u7EA2\u6CB3\u53BF",532530:"\u91D1\u5E73\u82D7\u65CF\u7476\u65CF\u50A3\u65CF\u81EA\u6CBB\u53BF",532531:"\u7EFF\u6625\u53BF",532532:"\u6CB3\u53E3\u7476\u65CF\u81EA\u6CBB\u53BF",532533:"\u5176\u5B83\u533A",532600:"\u6587\u5C71\u58EE\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",532621:"\u6587\u5C71\u5E02",532622:"\u781A\u5C71\u53BF",532623:"\u897F\u7574\u53BF",532624:"\u9EBB\u6817\u5761\u53BF",532625:"\u9A6C\u5173\u53BF",532626:"\u4E18\u5317\u53BF",532627:"\u5E7F\u5357\u53BF",532628:"\u5BCC\u5B81\u53BF",532629:"\u5176\u5B83\u533A",532800:"\u897F\u53CC\u7248\u7EB3\u50A3\u65CF\u81EA\u6CBB\u5DDE",532801:"\u666F\u6D2A\u5E02",532822:"\u52D0\u6D77\u53BF",532823:"\u52D0\u814A\u53BF",532824:"\u5176\u5B83\u533A",532900:"\u5927\u7406\u767D\u65CF\u81EA\u6CBB\u5DDE",532901:"\u5927\u7406\u5E02",532922:"\u6F3E\u6FDE\u5F5D\u65CF\u81EA\u6CBB\u53BF",532923:"\u7965\u4E91\u53BF",532924:"\u5BBE\u5DDD\u53BF",532925:"\u5F25\u6E21\u53BF",532926:"\u5357\u6DA7\u5F5D\u65CF\u81EA\u6CBB\u53BF",532927:"\u5DCD\u5C71\u5F5D\u65CF\u56DE\u65CF\u81EA\u6CBB\u53BF",532928:"\u6C38\u5E73\u53BF",532929:"\u4E91\u9F99\u53BF",532930:"\u6D31\u6E90\u53BF",532931:"\u5251\u5DDD\u53BF",532932:"\u9E64\u5E86\u53BF",532933:"\u5176\u5B83\u533A",533100:"\u5FB7\u5B8F\u50A3\u65CF\u666F\u9887\u65CF\u81EA\u6CBB\u5DDE",533102:"\u745E\u4E3D\u5E02",533103:"\u8292\u5E02",533122:"\u6881\u6CB3\u53BF",533123:"\u76C8\u6C5F\u53BF",533124:"\u9647\u5DDD\u53BF",533125:"\u5176\u5B83\u533A",533300:"\u6012\u6C5F\u5088\u50F3\u65CF\u81EA\u6CBB\u5DDE",533321:"\u6CF8\u6C34\u53BF",533323:"\u798F\u8D21\u53BF",533324:"\u8D21\u5C71\u72EC\u9F99\u65CF\u6012\u65CF\u81EA\u6CBB\u53BF",533325:"\u5170\u576A\u767D\u65CF\u666E\u7C73\u65CF\u81EA\u6CBB\u53BF",533326:"\u5176\u5B83\u533A",533400:"\u8FEA\u5E86\u85CF\u65CF\u81EA\u6CBB\u5DDE",533421:"\u9999\u683C\u91CC\u62C9\u53BF",533422:"\u5FB7\u94A6\u53BF",533423:"\u7EF4\u897F\u5088\u50F3\u65CF\u81EA\u6CBB\u53BF",533424:"\u5176\u5B83\u533A",54e4:"\u897F\u85CF\u81EA\u6CBB\u533A",540100:"\u62C9\u8428\u5E02",540102:"\u57CE\u5173\u533A",540121:"\u6797\u5468\u53BF",540122:"\u5F53\u96C4\u53BF",540123:"\u5C3C\u6728\u53BF",540124:"\u66F2\u6C34\u53BF",540125:"\u5806\u9F99\u5FB7\u5E86\u53BF",540126:"\u8FBE\u5B5C\u53BF",540127:"\u58A8\u7AF9\u5DE5\u5361\u53BF",540128:"\u5176\u5B83\u533A",542100:"\u660C\u90FD\u5730\u533A",542121:"\u660C\u90FD\u53BF",542122:"\u6C5F\u8FBE\u53BF",542123:"\u8D21\u89C9\u53BF",542124:"\u7C7B\u4E4C\u9F50\u53BF",542125:"\u4E01\u9752\u53BF",542126:"\u5BDF\u96C5\u53BF",542127:"\u516B\u5BBF\u53BF",542128:"\u5DE6\u8D21\u53BF",542129:"\u8292\u5EB7\u53BF",542132:"\u6D1B\u9686\u53BF",542133:"\u8FB9\u575D\u53BF",542134:"\u5176\u5B83\u533A",542200:"\u5C71\u5357\u5730\u533A",542221:"\u4E43\u4E1C\u53BF",542222:"\u624E\u56CA\u53BF",542223:"\u8D21\u560E\u53BF",542224:"\u6851\u65E5\u53BF",542225:"\u743C\u7ED3\u53BF",542226:"\u66F2\u677E\u53BF",542227:"\u63AA\u7F8E\u53BF",542228:"\u6D1B\u624E\u53BF",542229:"\u52A0\u67E5\u53BF",542231:"\u9686\u5B50\u53BF",542232:"\u9519\u90A3\u53BF",542233:"\u6D6A\u5361\u5B50\u53BF",542234:"\u5176\u5B83\u533A",542300:"\u65E5\u5580\u5219\u5730\u533A",542301:"\u65E5\u5580\u5219\u5E02",542322:"\u5357\u6728\u6797\u53BF",542323:"\u6C5F\u5B5C\u53BF",542324:"\u5B9A\u65E5\u53BF",542325:"\u8428\u8FE6\u53BF",542326:"\u62C9\u5B5C\u53BF",542327:"\u6602\u4EC1\u53BF",542328:"\u8C22\u901A\u95E8\u53BF",542329:"\u767D\u6717\u53BF",542330:"\u4EC1\u5E03\u53BF",542331:"\u5EB7\u9A6C\u53BF",542332:"\u5B9A\u7ED3\u53BF",542333:"\u4EF2\u5DF4\u53BF",542334:"\u4E9A\u4E1C\u53BF",542335:"\u5409\u9686\u53BF",542336:"\u8042\u62C9\u6728\u53BF",542337:"\u8428\u560E\u53BF",542338:"\u5C97\u5DF4\u53BF",542339:"\u5176\u5B83\u533A",542400:"\u90A3\u66F2\u5730\u533A",542421:"\u90A3\u66F2\u53BF",542422:"\u5609\u9ECE\u53BF",542423:"\u6BD4\u5982\u53BF",542424:"\u8042\u8363\u53BF",542425:"\u5B89\u591A\u53BF",542426:"\u7533\u624E\u53BF",542427:"\u7D22\u53BF",542428:"\u73ED\u6208\u53BF",542429:"\u5DF4\u9752\u53BF",542430:"\u5C3C\u739B\u53BF",542431:"\u5176\u5B83\u533A",542432:"\u53CC\u6E56\u53BF",542500:"\u963F\u91CC\u5730\u533A",542521:"\u666E\u5170\u53BF",542522:"\u672D\u8FBE\u53BF",542523:"\u5676\u5C14\u53BF",542524:"\u65E5\u571F\u53BF",542525:"\u9769\u5409\u53BF",542526:"\u6539\u5219\u53BF",542527:"\u63AA\u52E4\u53BF",542528:"\u5176\u5B83\u533A",542600:"\u6797\u829D\u5730\u533A",542621:"\u6797\u829D\u53BF",542622:"\u5DE5\u5E03\u6C5F\u8FBE\u53BF",542623:"\u7C73\u6797\u53BF",542624:"\u58A8\u8131\u53BF",542625:"\u6CE2\u5BC6\u53BF",542626:"\u5BDF\u9685\u53BF",542627:"\u6717\u53BF",542628:"\u5176\u5B83\u533A",61e4:"\u9655\u897F\u7701",610100:"\u897F\u5B89\u5E02",610102:"\u65B0\u57CE\u533A",610103:"\u7891\u6797\u533A",610104:"\u83B2\u6E56\u533A",610111:"\u705E\u6865\u533A",610112:"\u672A\u592E\u533A",610113:"\u96C1\u5854\u533A",610114:"\u960E\u826F\u533A",610115:"\u4E34\u6F7C\u533A",610116:"\u957F\u5B89\u533A",610122:"\u84DD\u7530\u53BF",610124:"\u5468\u81F3\u53BF",610125:"\u6237\u53BF",610126:"\u9AD8\u9675\u53BF",610127:"\u5176\u5B83\u533A",610200:"\u94DC\u5DDD\u5E02",610202:"\u738B\u76CA\u533A",610203:"\u5370\u53F0\u533A",610204:"\u8000\u5DDE\u533A",610222:"\u5B9C\u541B\u53BF",610223:"\u5176\u5B83\u533A",610300:"\u5B9D\u9E21\u5E02",610302:"\u6E2D\u6EE8\u533A",610303:"\u91D1\u53F0\u533A",610304:"\u9648\u4ED3\u533A",610322:"\u51E4\u7FD4\u53BF",610323:"\u5C90\u5C71\u53BF",610324:"\u6276\u98CE\u53BF",610326:"\u7709\u53BF",610327:"\u9647\u53BF",610328:"\u5343\u9633\u53BF",610329:"\u9E9F\u6E38\u53BF",610330:"\u51E4\u53BF",610331:"\u592A\u767D\u53BF",610332:"\u5176\u5B83\u533A",610400:"\u54B8\u9633\u5E02",610402:"\u79E6\u90FD\u533A",610403:"\u6768\u9675\u533A",610404:"\u6E2D\u57CE\u533A",610422:"\u4E09\u539F\u53BF",610423:"\u6CFE\u9633\u53BF",610424:"\u4E7E\u53BF",610425:"\u793C\u6CC9\u53BF",610426:"\u6C38\u5BFF\u53BF",610427:"\u5F6C\u53BF",610428:"\u957F\u6B66\u53BF",610429:"\u65EC\u9091\u53BF",610430:"\u6DF3\u5316\u53BF",610431:"\u6B66\u529F\u53BF",610481:"\u5174\u5E73\u5E02",610482:"\u5176\u5B83\u533A",610500:"\u6E2D\u5357\u5E02",610502:"\u4E34\u6E2D\u533A",610521:"\u534E\u53BF",610522:"\u6F7C\u5173\u53BF",610523:"\u5927\u8354\u53BF",610524:"\u5408\u9633\u53BF",610525:"\u6F84\u57CE\u53BF",610526:"\u84B2\u57CE\u53BF",610527:"\u767D\u6C34\u53BF",610528:"\u5BCC\u5E73\u53BF",610581:"\u97E9\u57CE\u5E02",610582:"\u534E\u9634\u5E02",610583:"\u5176\u5B83\u533A",610600:"\u5EF6\u5B89\u5E02",610602:"\u5B9D\u5854\u533A",610621:"\u5EF6\u957F\u53BF",610622:"\u5EF6\u5DDD\u53BF",610623:"\u5B50\u957F\u53BF",610624:"\u5B89\u585E\u53BF",610625:"\u5FD7\u4E39\u53BF",610626:"\u5434\u8D77\u53BF",610627:"\u7518\u6CC9\u53BF",610628:"\u5BCC\u53BF",610629:"\u6D1B\u5DDD\u53BF",610630:"\u5B9C\u5DDD\u53BF",610631:"\u9EC4\u9F99\u53BF",610632:"\u9EC4\u9675\u53BF",610633:"\u5176\u5B83\u533A",610700:"\u6C49\u4E2D\u5E02",610702:"\u6C49\u53F0\u533A",610721:"\u5357\u90D1\u53BF",610722:"\u57CE\u56FA\u53BF",610723:"\u6D0B\u53BF",610724:"\u897F\u4E61\u53BF",610725:"\u52C9\u53BF",610726:"\u5B81\u5F3A\u53BF",610727:"\u7565\u9633\u53BF",610728:"\u9547\u5DF4\u53BF",610729:"\u7559\u575D\u53BF",610730:"\u4F5B\u576A\u53BF",610731:"\u5176\u5B83\u533A",610800:"\u6986\u6797\u5E02",610802:"\u6986\u9633\u533A",610821:"\u795E\u6728\u53BF",610822:"\u5E9C\u8C37\u53BF",610823:"\u6A2A\u5C71\u53BF",610824:"\u9756\u8FB9\u53BF",610825:"\u5B9A\u8FB9\u53BF",610826:"\u7EE5\u5FB7\u53BF",610827:"\u7C73\u8102\u53BF",610828:"\u4F73\u53BF",610829:"\u5434\u5821\u53BF",610830:"\u6E05\u6DA7\u53BF",610831:"\u5B50\u6D32\u53BF",610832:"\u5176\u5B83\u533A",610900:"\u5B89\u5EB7\u5E02",610902:"\u6C49\u6EE8\u533A",610921:"\u6C49\u9634\u53BF",610922:"\u77F3\u6CC9\u53BF",610923:"\u5B81\u9655\u53BF",610924:"\u7D2B\u9633\u53BF",610925:"\u5C9A\u768B\u53BF",610926:"\u5E73\u5229\u53BF",610927:"\u9547\u576A\u53BF",610928:"\u65EC\u9633\u53BF",610929:"\u767D\u6CB3\u53BF",610930:"\u5176\u5B83\u533A",611e3:"\u5546\u6D1B\u5E02",611002:"\u5546\u5DDE\u533A",611021:"\u6D1B\u5357\u53BF",611022:"\u4E39\u51E4\u53BF",611023:"\u5546\u5357\u53BF",611024:"\u5C71\u9633\u53BF",611025:"\u9547\u5B89\u53BF",611026:"\u67DE\u6C34\u53BF",611027:"\u5176\u5B83\u533A",62e4:"\u7518\u8083\u7701",620100:"\u5170\u5DDE\u5E02",620102:"\u57CE\u5173\u533A",620103:"\u4E03\u91CC\u6CB3\u533A",620104:"\u897F\u56FA\u533A",620105:"\u5B89\u5B81\u533A",620111:"\u7EA2\u53E4\u533A",620121:"\u6C38\u767B\u53BF",620122:"\u768B\u5170\u53BF",620123:"\u6986\u4E2D\u53BF",620124:"\u5176\u5B83\u533A",620200:"\u5609\u5CEA\u5173\u5E02",620300:"\u91D1\u660C\u5E02",620302:"\u91D1\u5DDD\u533A",620321:"\u6C38\u660C\u53BF",620322:"\u5176\u5B83\u533A",620400:"\u767D\u94F6\u5E02",620402:"\u767D\u94F6\u533A",620403:"\u5E73\u5DDD\u533A",620421:"\u9756\u8FDC\u53BF",620422:"\u4F1A\u5B81\u53BF",620423:"\u666F\u6CF0\u53BF",620424:"\u5176\u5B83\u533A",620500:"\u5929\u6C34\u5E02",620502:"\u79E6\u5DDE\u533A",620503:"\u9EA6\u79EF\u533A",620521:"\u6E05\u6C34\u53BF",620522:"\u79E6\u5B89\u53BF",620523:"\u7518\u8C37\u53BF",620524:"\u6B66\u5C71\u53BF",620525:"\u5F20\u5BB6\u5DDD\u56DE\u65CF\u81EA\u6CBB\u53BF",620526:"\u5176\u5B83\u533A",620600:"\u6B66\u5A01\u5E02",620602:"\u51C9\u5DDE\u533A",620621:"\u6C11\u52E4\u53BF",620622:"\u53E4\u6D6A\u53BF",620623:"\u5929\u795D\u85CF\u65CF\u81EA\u6CBB\u53BF",620624:"\u5176\u5B83\u533A",620700:"\u5F20\u6396\u5E02",620702:"\u7518\u5DDE\u533A",620721:"\u8083\u5357\u88D5\u56FA\u65CF\u81EA\u6CBB\u53BF",620722:"\u6C11\u4E50\u53BF",620723:"\u4E34\u6CFD\u53BF",620724:"\u9AD8\u53F0\u53BF",620725:"\u5C71\u4E39\u53BF",620726:"\u5176\u5B83\u533A",620800:"\u5E73\u51C9\u5E02",620802:"\u5D06\u5CD2\u533A",620821:"\u6CFE\u5DDD\u53BF",620822:"\u7075\u53F0\u53BF",620823:"\u5D07\u4FE1\u53BF",620824:"\u534E\u4EAD\u53BF",620825:"\u5E84\u6D6A\u53BF",620826:"\u9759\u5B81\u53BF",620827:"\u5176\u5B83\u533A",620900:"\u9152\u6CC9\u5E02",620902:"\u8083\u5DDE\u533A",620921:"\u91D1\u5854\u53BF",620922:"\u74DC\u5DDE\u53BF",620923:"\u8083\u5317\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",620924:"\u963F\u514B\u585E\u54C8\u8428\u514B\u65CF\u81EA\u6CBB\u53BF",620981:"\u7389\u95E8\u5E02",620982:"\u6566\u714C\u5E02",620983:"\u5176\u5B83\u533A",621e3:"\u5E86\u9633\u5E02",621002:"\u897F\u5CF0\u533A",621021:"\u5E86\u57CE\u53BF",621022:"\u73AF\u53BF",621023:"\u534E\u6C60\u53BF",621024:"\u5408\u6C34\u53BF",621025:"\u6B63\u5B81\u53BF",621026:"\u5B81\u53BF",621027:"\u9547\u539F\u53BF",621028:"\u5176\u5B83\u533A",621100:"\u5B9A\u897F\u5E02",621102:"\u5B89\u5B9A\u533A",621121:"\u901A\u6E2D\u53BF",621122:"\u9647\u897F\u53BF",621123:"\u6E2D\u6E90\u53BF",621124:"\u4E34\u6D2E\u53BF",621125:"\u6F33\u53BF",621126:"\u5CB7\u53BF",621127:"\u5176\u5B83\u533A",621200:"\u9647\u5357\u5E02",621202:"\u6B66\u90FD\u533A",621221:"\u6210\u53BF",621222:"\u6587\u53BF",621223:"\u5B95\u660C\u53BF",621224:"\u5EB7\u53BF",621225:"\u897F\u548C\u53BF",621226:"\u793C\u53BF",621227:"\u5FBD\u53BF",621228:"\u4E24\u5F53\u53BF",621229:"\u5176\u5B83\u533A",622900:"\u4E34\u590F\u56DE\u65CF\u81EA\u6CBB\u5DDE",622901:"\u4E34\u590F\u5E02",622921:"\u4E34\u590F\u53BF",622922:"\u5EB7\u4E50\u53BF",622923:"\u6C38\u9756\u53BF",622924:"\u5E7F\u6CB3\u53BF",622925:"\u548C\u653F\u53BF",622926:"\u4E1C\u4E61\u65CF\u81EA\u6CBB\u53BF",622927:"\u79EF\u77F3\u5C71\u4FDD\u5B89\u65CF\u4E1C\u4E61\u65CF\u6492\u62C9\u65CF\u81EA\u6CBB\u53BF",622928:"\u5176\u5B83\u533A",623e3:"\u7518\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",623001:"\u5408\u4F5C\u5E02",623021:"\u4E34\u6F6D\u53BF",623022:"\u5353\u5C3C\u53BF",623023:"\u821F\u66F2\u53BF",623024:"\u8FED\u90E8\u53BF",623025:"\u739B\u66F2\u53BF",623026:"\u788C\u66F2\u53BF",623027:"\u590F\u6CB3\u53BF",623028:"\u5176\u5B83\u533A",63e4:"\u9752\u6D77\u7701",630100:"\u897F\u5B81\u5E02",630102:"\u57CE\u4E1C\u533A",630103:"\u57CE\u4E2D\u533A",630104:"\u57CE\u897F\u533A",630105:"\u57CE\u5317\u533A",630121:"\u5927\u901A\u56DE\u65CF\u571F\u65CF\u81EA\u6CBB\u53BF",630122:"\u6E5F\u4E2D\u53BF",630123:"\u6E5F\u6E90\u53BF",630124:"\u5176\u5B83\u533A",632100:"\u6D77\u4E1C\u5E02",632121:"\u5E73\u5B89\u53BF",632122:"\u6C11\u548C\u56DE\u65CF\u571F\u65CF\u81EA\u6CBB\u53BF",632123:"\u4E50\u90FD\u533A",632126:"\u4E92\u52A9\u571F\u65CF\u81EA\u6CBB\u53BF",632127:"\u5316\u9686\u56DE\u65CF\u81EA\u6CBB\u53BF",632128:"\u5FAA\u5316\u6492\u62C9\u65CF\u81EA\u6CBB\u53BF",632129:"\u5176\u5B83\u533A",632200:"\u6D77\u5317\u85CF\u65CF\u81EA\u6CBB\u5DDE",632221:"\u95E8\u6E90\u56DE\u65CF\u81EA\u6CBB\u53BF",632222:"\u7941\u8FDE\u53BF",632223:"\u6D77\u664F\u53BF",632224:"\u521A\u5BDF\u53BF",632225:"\u5176\u5B83\u533A",632300:"\u9EC4\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",632321:"\u540C\u4EC1\u53BF",632322:"\u5C16\u624E\u53BF",632323:"\u6CFD\u5E93\u53BF",632324:"\u6CB3\u5357\u8499\u53E4\u65CF\u81EA\u6CBB\u53BF",632325:"\u5176\u5B83\u533A",632500:"\u6D77\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",632521:"\u5171\u548C\u53BF",632522:"\u540C\u5FB7\u53BF",632523:"\u8D35\u5FB7\u53BF",632524:"\u5174\u6D77\u53BF",632525:"\u8D35\u5357\u53BF",632526:"\u5176\u5B83\u533A",632600:"\u679C\u6D1B\u85CF\u65CF\u81EA\u6CBB\u5DDE",632621:"\u739B\u6C81\u53BF",632622:"\u73ED\u739B\u53BF",632623:"\u7518\u5FB7\u53BF",632624:"\u8FBE\u65E5\u53BF",632625:"\u4E45\u6CBB\u53BF",632626:"\u739B\u591A\u53BF",632627:"\u5176\u5B83\u533A",632700:"\u7389\u6811\u85CF\u65CF\u81EA\u6CBB\u5DDE",632721:"\u7389\u6811\u5E02",632722:"\u6742\u591A\u53BF",632723:"\u79F0\u591A\u53BF",632724:"\u6CBB\u591A\u53BF",632725:"\u56CA\u8C26\u53BF",632726:"\u66F2\u9EBB\u83B1\u53BF",632727:"\u5176\u5B83\u533A",632800:"\u6D77\u897F\u8499\u53E4\u65CF\u85CF\u65CF\u81EA\u6CBB\u5DDE",632801:"\u683C\u5C14\u6728\u5E02",632802:"\u5FB7\u4EE4\u54C8\u5E02",632821:"\u4E4C\u5170\u53BF",632822:"\u90FD\u5170\u53BF",632823:"\u5929\u5CFB\u53BF",632824:"\u5176\u5B83\u533A",64e4:"\u5B81\u590F\u56DE\u65CF\u81EA\u6CBB\u533A",640100:"\u94F6\u5DDD\u5E02",640104:"\u5174\u5E86\u533A",640105:"\u897F\u590F\u533A",640106:"\u91D1\u51E4\u533A",640121:"\u6C38\u5B81\u53BF",640122:"\u8D3A\u5170\u53BF",640181:"\u7075\u6B66\u5E02",640182:"\u5176\u5B83\u533A",640200:"\u77F3\u5634\u5C71\u5E02",640202:"\u5927\u6B66\u53E3\u533A",640205:"\u60E0\u519C\u533A",640221:"\u5E73\u7F57\u53BF",640222:"\u5176\u5B83\u533A",640300:"\u5434\u5FE0\u5E02",640302:"\u5229\u901A\u533A",640303:"\u7EA2\u5BFA\u5821\u533A",640323:"\u76D0\u6C60\u53BF",640324:"\u540C\u5FC3\u53BF",640381:"\u9752\u94DC\u5CE1\u5E02",640382:"\u5176\u5B83\u533A",640400:"\u56FA\u539F\u5E02",640402:"\u539F\u5DDE\u533A",640422:"\u897F\u5409\u53BF",640423:"\u9686\u5FB7\u53BF",640424:"\u6CFE\u6E90\u53BF",640425:"\u5F6D\u9633\u53BF",640426:"\u5176\u5B83\u533A",640500:"\u4E2D\u536B\u5E02",640502:"\u6C99\u5761\u5934\u533A",640521:"\u4E2D\u5B81\u53BF",640522:"\u6D77\u539F\u53BF",640523:"\u5176\u5B83\u533A",65e4:"\u65B0\u7586\u7EF4\u543E\u5C14\u81EA\u6CBB\u533A",650100:"\u4E4C\u9C81\u6728\u9F50\u5E02",650102:"\u5929\u5C71\u533A",650103:"\u6C99\u4F9D\u5DF4\u514B\u533A",650104:"\u65B0\u5E02\u533A",650105:"\u6C34\u78E8\u6C9F\u533A",650106:"\u5934\u5C6F\u6CB3\u533A",650107:"\u8FBE\u5742\u57CE\u533A",650109:"\u7C73\u4E1C\u533A",650121:"\u4E4C\u9C81\u6728\u9F50\u53BF",650122:"\u5176\u5B83\u533A",650200:"\u514B\u62C9\u739B\u4F9D\u5E02",650202:"\u72EC\u5C71\u5B50\u533A",650203:"\u514B\u62C9\u739B\u4F9D\u533A",650204:"\u767D\u78B1\u6EE9\u533A",650205:"\u4E4C\u5C14\u79BE\u533A",650206:"\u5176\u5B83\u533A",652100:"\u5410\u9C81\u756A\u5730\u533A",652101:"\u5410\u9C81\u756A\u5E02",652122:"\u912F\u5584\u53BF",652123:"\u6258\u514B\u900A\u53BF",652124:"\u5176\u5B83\u533A",652200:"\u54C8\u5BC6\u5730\u533A",652201:"\u54C8\u5BC6\u5E02",652222:"\u5DF4\u91CC\u5764\u54C8\u8428\u514B\u81EA\u6CBB\u53BF",652223:"\u4F0A\u543E\u53BF",652224:"\u5176\u5B83\u533A",652300:"\u660C\u5409\u56DE\u65CF\u81EA\u6CBB\u5DDE",652301:"\u660C\u5409\u5E02",652302:"\u961C\u5EB7\u5E02",652323:"\u547C\u56FE\u58C1\u53BF",652324:"\u739B\u7EB3\u65AF\u53BF",652325:"\u5947\u53F0\u53BF",652327:"\u5409\u6728\u8428\u5C14\u53BF",652328:"\u6728\u5792\u54C8\u8428\u514B\u81EA\u6CBB\u53BF",652329:"\u5176\u5B83\u533A",652700:"\u535A\u5C14\u5854\u62C9\u8499\u53E4\u81EA\u6CBB\u5DDE",652701:"\u535A\u4E50\u5E02",652702:"\u963F\u62C9\u5C71\u53E3\u5E02",652722:"\u7CBE\u6CB3\u53BF",652723:"\u6E29\u6CC9\u53BF",652724:"\u5176\u5B83\u533A",652800:"\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE",652801:"\u5E93\u5C14\u52D2\u5E02",652822:"\u8F6E\u53F0\u53BF",652823:"\u5C09\u7281\u53BF",652824:"\u82E5\u7F8C\u53BF",652825:"\u4E14\u672B\u53BF",652826:"\u7109\u8006\u56DE\u65CF\u81EA\u6CBB\u53BF",652827:"\u548C\u9759\u53BF",652828:"\u548C\u7855\u53BF",652829:"\u535A\u6E56\u53BF",652830:"\u5176\u5B83\u533A",652900:"\u963F\u514B\u82CF\u5730\u533A",652901:"\u963F\u514B\u82CF\u5E02",652922:"\u6E29\u5BBF\u53BF",652923:"\u5E93\u8F66\u53BF",652924:"\u6C99\u96C5\u53BF",652925:"\u65B0\u548C\u53BF",652926:"\u62DC\u57CE\u53BF",652927:"\u4E4C\u4EC0\u53BF",652928:"\u963F\u74E6\u63D0\u53BF",652929:"\u67EF\u576A\u53BF",652930:"\u5176\u5B83\u533A",653e3:"\u514B\u5B5C\u52D2\u82CF\u67EF\u5C14\u514B\u5B5C\u81EA\u6CBB\u5DDE",653001:"\u963F\u56FE\u4EC0\u5E02",653022:"\u963F\u514B\u9676\u53BF",653023:"\u963F\u5408\u5947\u53BF",653024:"\u4E4C\u6070\u53BF",653025:"\u5176\u5B83\u533A",653100:"\u5580\u4EC0\u5730\u533A",653101:"\u5580\u4EC0\u5E02",653121:"\u758F\u9644\u53BF",653122:"\u758F\u52D2\u53BF",653123:"\u82F1\u5409\u6C99\u53BF",653124:"\u6CFD\u666E\u53BF",653125:"\u838E\u8F66\u53BF",653126:"\u53F6\u57CE\u53BF",653127:"\u9EA6\u76D6\u63D0\u53BF",653128:"\u5CB3\u666E\u6E56\u53BF",653129:"\u4F3D\u5E08\u53BF",653130:"\u5DF4\u695A\u53BF",653131:"\u5854\u4EC0\u5E93\u5C14\u5E72\u5854\u5409\u514B\u81EA\u6CBB\u53BF",653132:"\u5176\u5B83\u533A",653200:"\u548C\u7530\u5730\u533A",653201:"\u548C\u7530\u5E02",653221:"\u548C\u7530\u53BF",653222:"\u58A8\u7389\u53BF",653223:"\u76AE\u5C71\u53BF",653224:"\u6D1B\u6D66\u53BF",653225:"\u7B56\u52D2\u53BF",653226:"\u4E8E\u7530\u53BF",653227:"\u6C11\u4E30\u53BF",653228:"\u5176\u5B83\u533A",654e3:"\u4F0A\u7281\u54C8\u8428\u514B\u81EA\u6CBB\u5DDE",654002:"\u4F0A\u5B81\u5E02",654003:"\u594E\u5C6F\u5E02",654021:"\u4F0A\u5B81\u53BF",654022:"\u5BDF\u5E03\u67E5\u5C14\u9521\u4F2F\u81EA\u6CBB\u53BF",654023:"\u970D\u57CE\u53BF",654024:"\u5DE9\u7559\u53BF",654025:"\u65B0\u6E90\u53BF",654026:"\u662D\u82CF\u53BF",654027:"\u7279\u514B\u65AF\u53BF",654028:"\u5C3C\u52D2\u514B\u53BF",654029:"\u5176\u5B83\u533A",654200:"\u5854\u57CE\u5730\u533A",654201:"\u5854\u57CE\u5E02",654202:"\u4E4C\u82CF\u5E02",654221:"\u989D\u654F\u53BF",654223:"\u6C99\u6E7E\u53BF",654224:"\u6258\u91CC\u53BF",654225:"\u88D5\u6C11\u53BF",654226:"\u548C\u5E03\u514B\u8D5B\u5C14\u8499\u53E4\u81EA\u6CBB\u53BF",654227:"\u5176\u5B83\u533A",654300:"\u963F\u52D2\u6CF0\u5730\u533A",654301:"\u963F\u52D2\u6CF0\u5E02",654321:"\u5E03\u5C14\u6D25\u53BF",654322:"\u5BCC\u8574\u53BF",654323:"\u798F\u6D77\u53BF",654324:"\u54C8\u5DF4\u6CB3\u53BF",654325:"\u9752\u6CB3\u53BF",654326:"\u5409\u6728\u4E43\u53BF",654327:"\u5176\u5B83\u533A",659001:"\u77F3\u6CB3\u5B50\u5E02",659002:"\u963F\u62C9\u5C14\u5E02",659003:"\u56FE\u6728\u8212\u514B\u5E02",659004:"\u4E94\u5BB6\u6E20\u5E02",71e4:"\u53F0\u6E7E",710100:"\u53F0\u5317\u5E02",710101:"\u4E2D\u6B63\u533A",710102:"\u5927\u540C\u533A",710103:"\u4E2D\u5C71\u533A",710104:"\u677E\u5C71\u533A",710105:"\u5927\u5B89\u533A",710106:"\u4E07\u534E\u533A",710107:"\u4FE1\u4E49\u533A",710108:"\u58EB\u6797\u533A",710109:"\u5317\u6295\u533A",710110:"\u5185\u6E56\u533A",710111:"\u5357\u6E2F\u533A",710112:"\u6587\u5C71\u533A",710113:"\u5176\u5B83\u533A",710200:"\u9AD8\u96C4\u5E02",710201:"\u65B0\u5174\u533A",710202:"\u524D\u91D1\u533A",710203:"\u82A9\u96C5\u533A",710204:"\u76D0\u57D5\u533A",710205:"\u9F13\u5C71\u533A",710206:"\u65D7\u6D25\u533A",710207:"\u524D\u9547\u533A",710208:"\u4E09\u6C11\u533A",710209:"\u5DE6\u8425\u533A",710210:"\u6960\u6893\u533A",710211:"\u5C0F\u6E2F\u533A",710212:"\u5176\u5B83\u533A",710241:"\u82D3\u96C5\u533A",710242:"\u4EC1\u6B66\u533A",710243:"\u5927\u793E\u533A",710244:"\u5188\u5C71\u533A",710245:"\u8DEF\u7AF9\u533A",710246:"\u963F\u83B2\u533A",710247:"\u7530\u5BEE\u533A",710248:"\u71D5\u5DE2\u533A",710249:"\u6865\u5934\u533A",710250:"\u6893\u5B98\u533A",710251:"\u5F25\u9640\u533A",710252:"\u6C38\u5B89\u533A",710253:"\u6E56\u5185\u533A",710254:"\u51E4\u5C71\u533A",710255:"\u5927\u5BEE\u533A",710256:"\u6797\u56ED\u533A",710257:"\u9E1F\u677E\u533A",710258:"\u5927\u6811\u533A",710259:"\u65D7\u5C71\u533A",710260:"\u7F8E\u6D53\u533A",710261:"\u516D\u9F9F\u533A",710262:"\u5185\u95E8\u533A",710263:"\u6749\u6797\u533A",710264:"\u7532\u4ED9\u533A",710265:"\u6843\u6E90\u533A",710266:"\u90A3\u739B\u590F\u533A",710267:"\u8302\u6797\u533A",710268:"\u8304\u8423\u533A",710300:"\u53F0\u5357\u5E02",710301:"\u4E2D\u897F\u533A",710302:"\u4E1C\u533A",710303:"\u5357\u533A",710304:"\u5317\u533A",710305:"\u5B89\u5E73\u533A",710306:"\u5B89\u5357\u533A",710307:"\u5176\u5B83\u533A",710339:"\u6C38\u5EB7\u533A",710340:"\u5F52\u4EC1\u533A",710341:"\u65B0\u5316\u533A",710342:"\u5DE6\u9547\u533A",710343:"\u7389\u4E95\u533A",710344:"\u6960\u897F\u533A",710345:"\u5357\u5316\u533A",710346:"\u4EC1\u5FB7\u533A",710347:"\u5173\u5E99\u533A",710348:"\u9F99\u5D0E\u533A",710349:"\u5B98\u7530\u533A",710350:"\u9EBB\u8C46\u533A",710351:"\u4F73\u91CC\u533A",710352:"\u897F\u6E2F\u533A",710353:"\u4E03\u80A1\u533A",710354:"\u5C06\u519B\u533A",710355:"\u5B66\u7532\u533A",710356:"\u5317\u95E8\u533A",710357:"\u65B0\u8425\u533A",710358:"\u540E\u58C1\u533A",710359:"\u767D\u6CB3\u533A",710360:"\u4E1C\u5C71\u533A",710361:"\u516D\u7532\u533A",710362:"\u4E0B\u8425\u533A",710363:"\u67F3\u8425\u533A",710364:"\u76D0\u6C34\u533A",710365:"\u5584\u5316\u533A",710366:"\u5927\u5185\u533A",710367:"\u5C71\u4E0A\u533A",710368:"\u65B0\u5E02\u533A",710369:"\u5B89\u5B9A\u533A",710400:"\u53F0\u4E2D\u5E02",710401:"\u4E2D\u533A",710402:"\u4E1C\u533A",710403:"\u5357\u533A",710404:"\u897F\u533A",710405:"\u5317\u533A",710406:"\u5317\u5C6F\u533A",710407:"\u897F\u5C6F\u533A",710408:"\u5357\u5C6F\u533A",710409:"\u5176\u5B83\u533A",710431:"\u592A\u5E73\u533A",710432:"\u5927\u91CC\u533A",710433:"\u96FE\u5CF0\u533A",710434:"\u4E4C\u65E5\u533A",710435:"\u4E30\u539F\u533A",710436:"\u540E\u91CC\u533A",710437:"\u77F3\u5188\u533A",710438:"\u4E1C\u52BF\u533A",710439:"\u548C\u5E73\u533A",710440:"\u65B0\u793E\u533A",710441:"\u6F6D\u5B50\u533A",710442:"\u5927\u96C5\u533A",710443:"\u795E\u5188\u533A",710444:"\u5927\u809A\u533A",710445:"\u6C99\u9E7F\u533A",710446:"\u9F99\u4E95\u533A",710447:"\u68A7\u6816\u533A",710448:"\u6E05\u6C34\u533A",710449:"\u5927\u7532\u533A",710450:"\u5916\u57D4\u533A",710451:"\u5927\u5B89\u533A",710500:"\u91D1\u95E8\u53BF",710507:"\u91D1\u6C99\u9547",710508:"\u91D1\u6E56\u9547",710509:"\u91D1\u5B81\u4E61",710510:"\u91D1\u57CE\u9547",710511:"\u70C8\u5C7F\u4E61",710512:"\u4E4C\u5775\u4E61",710600:"\u5357\u6295\u53BF",710614:"\u5357\u6295\u5E02",710615:"\u4E2D\u5BEE\u4E61",710616:"\u8349\u5C6F\u9547",710617:"\u56FD\u59D3\u4E61",710618:"\u57D4\u91CC\u9547",710619:"\u4EC1\u7231\u4E61",710620:"\u540D\u95F4\u4E61",710621:"\u96C6\u96C6\u9547",710622:"\u6C34\u91CC\u4E61",710623:"\u9C7C\u6C60\u4E61",710624:"\u4FE1\u4E49\u4E61",710625:"\u7AF9\u5C71\u9547",710626:"\u9E7F\u8C37\u4E61",710700:"\u57FA\u9686\u5E02",710701:"\u4EC1\u7231\u533A",710702:"\u4FE1\u4E49\u533A",710703:"\u4E2D\u6B63\u533A",710704:"\u4E2D\u5C71\u533A",710705:"\u5B89\u4E50\u533A",710706:"\u6696\u6696\u533A",710707:"\u4E03\u5835\u533A",710708:"\u5176\u5B83\u533A",710800:"\u65B0\u7AF9\u5E02",710801:"\u4E1C\u533A",710802:"\u5317\u533A",710803:"\u9999\u5C71\u533A",710804:"\u5176\u5B83\u533A",710900:"\u5609\u4E49\u5E02",710901:"\u4E1C\u533A",710902:"\u897F\u533A",710903:"\u5176\u5B83\u533A",711100:"\u65B0\u5317\u5E02",711130:"\u4E07\u91CC\u533A",711131:"\u91D1\u5C71\u533A",711132:"\u677F\u6865\u533A",711133:"\u6C50\u6B62\u533A",711134:"\u6DF1\u5751\u533A",711135:"\u77F3\u7887\u533A",711136:"\u745E\u82B3\u533A",711137:"\u5E73\u6EAA\u533A",711138:"\u53CC\u6EAA\u533A",711139:"\u8D21\u5BEE\u533A",711140:"\u65B0\u5E97\u533A",711141:"\u576A\u6797\u533A",711142:"\u4E4C\u6765\u533A",711143:"\u6C38\u548C\u533A",711144:"\u4E2D\u548C\u533A",711145:"\u571F\u57CE\u533A",711146:"\u4E09\u5CE1\u533A",711147:"\u6811\u6797\u533A",711148:"\u83BA\u6B4C\u533A",711149:"\u4E09\u91CD\u533A",711150:"\u65B0\u5E84\u533A",711151:"\u6CF0\u5C71\u533A",711152:"\u6797\u53E3\u533A",711153:"\u82A6\u6D32\u533A",711154:"\u4E94\u80A1\u533A",711155:"\u516B\u91CC\u533A",711156:"\u6DE1\u6C34\u533A",711157:"\u4E09\u829D\u533A",711158:"\u77F3\u95E8\u533A",711200:"\u5B9C\u5170\u53BF",711214:"\u5B9C\u5170\u5E02",711215:"\u5934\u57CE\u9547",711216:"\u7901\u6EAA\u4E61",711217:"\u58EE\u56F4\u4E61",711218:"\u5458\u5C71\u4E61",711219:"\u7F57\u4E1C\u9547",711220:"\u4E09\u661F\u4E61",711221:"\u5927\u540C\u4E61",711222:"\u4E94\u7ED3\u4E61",711223:"\u51AC\u5C71\u4E61",711224:"\u82CF\u6FB3\u9547",711225:"\u5357\u6FB3\u4E61",711226:"\u9493\u9C7C\u53F0",711300:"\u65B0\u7AF9\u53BF",711314:"\u7AF9\u5317\u5E02",711315:"\u6E56\u53E3\u4E61",711316:"\u65B0\u4E30\u4E61",711317:"\u65B0\u57D4\u9547",711318:"\u5173\u897F\u9547",711319:"\u828E\u6797\u4E61",711320:"\u5B9D\u5C71\u4E61",711321:"\u7AF9\u4E1C\u9547",711322:"\u4E94\u5CF0\u4E61",711323:"\u6A2A\u5C71\u4E61",711324:"\u5C16\u77F3\u4E61",711325:"\u5317\u57D4\u4E61",711326:"\u5CE8\u7709\u4E61",711400:"\u6843\u56ED\u53BF",711414:"\u4E2D\u575C\u5E02",711415:"\u5E73\u9547\u5E02",711416:"\u9F99\u6F6D\u4E61",711417:"\u6768\u6885\u5E02",711418:"\u65B0\u5C4B\u4E61",711419:"\u89C2\u97F3\u4E61",711420:"\u6843\u56ED\u5E02",711421:"\u9F9F\u5C71\u4E61",711422:"\u516B\u5FB7\u5E02",711423:"\u5927\u6EAA\u9547",711424:"\u590D\u5174\u4E61",711425:"\u5927\u56ED\u4E61",711426:"\u82A6\u7AF9\u4E61",711500:"\u82D7\u6817\u53BF",711519:"\u7AF9\u5357\u9547",711520:"\u5934\u4EFD\u9547",711521:"\u4E09\u6E7E\u4E61",711522:"\u5357\u5E84\u4E61",711523:"\u72EE\u6F6D\u4E61",711524:"\u540E\u9F99\u9547",711525:"\u901A\u9704\u9547",711526:"\u82D1\u91CC\u9547",711527:"\u82D7\u6817\u5E02",711528:"\u9020\u6865\u4E61",711529:"\u5934\u5C4B\u4E61",711530:"\u516C\u9986\u4E61",711531:"\u5927\u6E56\u4E61",711532:"\u6CF0\u5B89\u4E61",711533:"\u94DC\u9523\u4E61",711534:"\u4E09\u4E49\u4E61",711535:"\u897F\u6E56\u4E61",711536:"\u5353\u5170\u9547",711700:"\u5F70\u5316\u53BF",711727:"\u5F70\u5316\u5E02",711728:"\u82AC\u56ED\u4E61",711729:"\u82B1\u575B\u4E61",711730:"\u79C0\u6C34\u4E61",711731:"\u9E7F\u6E2F\u9547",711732:"\u798F\u5174\u4E61",711733:"\u7EBF\u897F\u4E61",711734:"\u548C\u7F8E\u9547",711735:"\u4F38\u6E2F\u4E61",711736:"\u5458\u6797\u9547",711737:"\u793E\u5934\u4E61",711738:"\u6C38\u9756\u4E61",711739:"\u57D4\u5FC3\u4E61",711740:"\u6EAA\u6E56\u9547",711741:"\u5927\u6751\u4E61",711742:"\u57D4\u76D0\u4E61",711743:"\u7530\u4E2D\u9547",711744:"\u5317\u6597\u9547",711745:"\u7530\u5C3E\u4E61",711746:"\u57E4\u5934\u4E61",711747:"\u6EAA\u5DDE\u4E61",711748:"\u7AF9\u5858\u4E61",711749:"\u4E8C\u6797\u9547",711750:"\u5927\u57CE\u4E61",711751:"\u82B3\u82D1\u4E61",711752:"\u4E8C\u6C34\u4E61",711900:"\u5609\u4E49\u53BF",711919:"\u756A\u8DEF\u4E61",711920:"\u6885\u5C71\u4E61",711921:"\u7AF9\u5D0E\u4E61",711922:"\u963F\u91CC\u5C71\u4E61",711923:"\u4E2D\u57D4\u4E61",711924:"\u5927\u57D4\u4E61",711925:"\u6C34\u4E0A\u4E61",711926:"\u9E7F\u8349\u4E61",711927:"\u592A\u4FDD\u5E02",711928:"\u6734\u5B50\u5E02",711929:"\u4E1C\u77F3\u4E61",711930:"\u516D\u811A\u4E61",711931:"\u65B0\u6E2F\u4E61",711932:"\u6C11\u96C4\u4E61",711933:"\u5927\u6797\u9547",711934:"\u6EAA\u53E3\u4E61",711935:"\u4E49\u7AF9\u4E61",711936:"\u5E03\u888B\u9547",712100:"\u4E91\u6797\u53BF",712121:"\u6597\u5357\u9547",712122:"\u5927\u57E4\u4E61",712123:"\u864E\u5C3E\u9547",712124:"\u571F\u5E93\u9547",712125:"\u8912\u5FE0\u4E61",712126:"\u4E1C\u52BF\u4E61",712127:"\u53F0\u897F\u4E61",712128:"\u4ED1\u80CC\u4E61",712129:"\u9EA6\u5BEE\u4E61",712130:"\u6597\u516D\u5E02",712131:"\u6797\u5185\u4E61",712132:"\u53E4\u5751\u4E61",712133:"\u83BF\u6850\u4E61",712134:"\u897F\u87BA\u9547",712135:"\u4E8C\u4ED1\u4E61",712136:"\u5317\u6E2F\u9547",712137:"\u6C34\u6797\u4E61",712138:"\u53E3\u6E56\u4E61",712139:"\u56DB\u6E56\u4E61",712140:"\u5143\u957F\u4E61",712400:"\u5C4F\u4E1C\u53BF",712434:"\u5C4F\u4E1C\u5E02",712435:"\u4E09\u5730\u95E8\u4E61",712436:"\u96FE\u53F0\u4E61",712437:"\u739B\u5BB6\u4E61",712438:"\u4E5D\u5982\u4E61",712439:"\u91CC\u6E2F\u4E61",712440:"\u9AD8\u6811\u4E61",712441:"\u76D0\u57D4\u4E61",712442:"\u957F\u6CBB\u4E61",712443:"\u9E9F\u6D1B\u4E61",712444:"\u7AF9\u7530\u4E61",712445:"\u5185\u57D4\u4E61",712446:"\u4E07\u4E39\u4E61",712447:"\u6F6E\u5DDE\u9547",712448:"\u6CF0\u6B66\u4E61",712449:"\u6765\u4E49\u4E61",712450:"\u4E07\u5CE6\u4E61",712451:"\u5D01\u9876\u4E61",712452:"\u65B0\u57E4\u4E61",712453:"\u5357\u5DDE\u4E61",712454:"\u6797\u8FB9\u4E61",712455:"\u4E1C\u6E2F\u9547",712456:"\u7409\u7403\u4E61",712457:"\u4F73\u51AC\u4E61",712458:"\u65B0\u56ED\u4E61",712459:"\u678B\u5BEE\u4E61",712460:"\u678B\u5C71\u4E61",712461:"\u6625\u65E5\u4E61",712462:"\u72EE\u5B50\u4E61",712463:"\u8F66\u57CE\u4E61",712464:"\u7261\u4E39\u4E61",712465:"\u6052\u6625\u9547",712466:"\u6EE1\u5DDE\u4E61",712500:"\u53F0\u4E1C\u53BF",712517:"\u53F0\u4E1C\u5E02",712518:"\u7EFF\u5C9B\u4E61",712519:"\u5170\u5C7F\u4E61",712520:"\u5EF6\u5E73\u4E61",712521:"\u5351\u5357\u4E61",712522:"\u9E7F\u91CE\u4E61",712523:"\u5173\u5C71\u9547",712524:"\u6D77\u7AEF\u4E61",712525:"\u6C60\u4E0A\u4E61",712526:"\u4E1C\u6CB3\u4E61",712527:"\u6210\u529F\u9547",712528:"\u957F\u6EE8\u4E61",712529:"\u91D1\u5CF0\u4E61",712530:"\u5927\u6B66\u4E61",712531:"\u8FBE\u4EC1\u4E61",712532:"\u592A\u9EBB\u91CC\u4E61",712600:"\u82B1\u83B2\u53BF",712615:"\u82B1\u83B2\u5E02",712616:"\u65B0\u57CE\u4E61",712617:"\u592A\u9C81\u9601",712618:"\u79C0\u6797\u4E61",712619:"\u5409\u5B89\u4E61",712620:"\u5BFF\u4E30\u4E61",712621:"\u51E4\u6797\u9547",712622:"\u5149\u590D\u4E61",712623:"\u4E30\u6EE8\u4E61",712624:"\u745E\u7A57\u4E61",712625:"\u4E07\u8363\u4E61",712626:"\u7389\u91CC\u9547",712627:"\u5353\u6EAA\u4E61",712628:"\u5BCC\u91CC\u4E61",712700:"\u6F8E\u6E56\u53BF",712707:"\u9A6C\u516C\u5E02",712708:"\u897F\u5C7F\u4E61",712709:"\u671B\u5B89\u4E61",712710:"\u4E03\u7F8E\u4E61",712711:"\u767D\u6C99\u4E61",712712:"\u6E56\u897F\u4E61",712800:"\u8FDE\u6C5F\u53BF",712805:"\u5357\u7AFF\u4E61",712806:"\u5317\u7AFF\u4E61",712807:"\u8392\u5149\u4E61",712808:"\u4E1C\u5F15\u4E61",81e4:"\u9999\u6E2F\u7279\u522B\u884C\u653F\u533A",810100:"\u9999\u6E2F\u5C9B",810101:"\u4E2D\u897F\u533A",810102:"\u6E7E\u4ED4",810103:"\u4E1C\u533A",810104:"\u5357\u533A",810200:"\u4E5D\u9F99",810201:"\u4E5D\u9F99\u57CE\u533A",810202:"\u6CB9\u5C16\u65FA\u533A",810203:"\u6DF1\u6C34\u57D7\u533A",810204:"\u9EC4\u5927\u4ED9\u533A",810205:"\u89C2\u5858\u533A",810300:"\u65B0\u754C",810301:"\u5317\u533A",810302:"\u5927\u57D4\u533A",810303:"\u6C99\u7530\u533A",810304:"\u897F\u8D21\u533A",810305:"\u5143\u6717\u533A",810306:"\u5C6F\u95E8\u533A",810307:"\u8343\u6E7E\u533A",810308:"\u8475\u9752\u533A",810309:"\u79BB\u5C9B\u533A",82e4:"\u6FB3\u95E8\u7279\u522B\u884C\u653F\u533A",820100:"\u6FB3\u95E8\u534A\u5C9B",820200:"\u79BB\u5C9B",99e4:"\u6D77\u5916",990100:"\u6D77\u5916"};function n(o){for(var s={},l=0,c;l$e;$e++)Fe=O.charAt($e),Fe===` +`?(D.seenCR||D.line++,D.column=1,D.seenCR=!1):Fe==="\r"||Fe==="\u2028"||Fe==="\u2029"?(D.line++,D.column=1,D.seenCR=!0):(D.column++,D.seenCR=!1)}return Pe!==f&&(Pe>f&&(Pe=0,Xe={line:1,column:1,seenCR:!1}),v(Xe,Pe,f),Pe=f),Xe}function C(f){Ze>E||(E>Ze&&(Ze=E,je=[]),je.push(f))}function P(f){var v=0;for(f.sort();vE?(D=O.charAt(E),E++):(D=null,Q===0&&C(R1)),D!==null?(le=f,v=d2(D),v===null&&(E=f),f=v):(E=f,f=oe)):(E=f,f=oe),f}function Le(){var f,v,D;return f=E,O.charCodeAt(E)===92?(v=A1,E++):(v=null,Q===0&&C($1)),v!==null?(p2.test(O.charAt(E))?(D=O.charAt(E),E++):(D=null,Q===0&&C(m2)),D!==null?(le=f,v=h2(D),v===null&&(E=f),f=v):(E=f,f=oe)):(E=f,f=oe),f}function Ke(){var f,v,D,te;if(f=E,O.substr(E,2)===Ne?(v=Ne,E+=2):(v=null,Q===0&&C(T1)),v!==null){if(D=[],z1.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(I1)),te!==null)for(;te!==null;)D.push(te),z1.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(I1));else D=oe;D!==null?(le=f,v=g2(D),v===null&&(E=f),f=v):(E=f,f=oe)}else E=f,f=oe;return f}function Ge(){var f,v,D,te;if(f=E,O.substr(E,2)===P1?(v=P1,E+=2):(v=null,Q===0&&C(b2)),v!==null){if(D=[],De.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(Ve)),te!==null)for(;te!==null;)D.push(te),De.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(Ve));else D=oe;D!==null?(le=f,v=v2(D),v===null&&(E=f),f=v):(E=f,f=oe)}else E=f,f=oe;return f}function Qe(){var f,v,D,te;if(f=E,O.substr(E,2)===F1?(v=F1,E+=2):(v=null,Q===0&&C(y2)),v!==null){if(D=[],De.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(Ve)),te!==null)for(;te!==null;)D.push(te),De.test(O.charAt(E))?(te=O.charAt(E),E++):(te=null,Q===0&&C(Ve));else D=oe;D!==null?(le=f,v=w2(D),v===null&&(E=f),f=v):(E=f,f=oe)}else E=f,f=oe;return f}function Je(){var f,v;return f=E,O.substr(E,2)===Ne?(v=Ne,E+=2):(v=null,Q===0&&C(T1)),v!==null&&(le=f,v=x2()),v===null&&(E=f),f=v,f}function e1(){var f,v,D;return f=E,O.charCodeAt(E)===92?(v=A1,E++):(v=null,Q===0&&C($1)),v!==null?(O.length>E?(D=O.charAt(E),E++):(D=null,Q===0&&C(R1)),D!==null?(le=f,v=We(D),v===null&&(E=f),f=v):(E=f,f=oe)):(E=f,f=oe),f}var Ue,He=arguments.length>1?arguments[1]:{},t1={regexp:W},r1=W,oe=null,Te="",L1="|",H1='"|"',B1=function(f,v){return v?new n(f,v[1]):f},N1=function(f,v,D){return new a([f].concat(v).concat([D]))},n1="^",a1='"^"',D1=function(){return new r("start")},V1="$",Z1='"$"',j1=function(){return new r("end")},U1=function(f,v){return new l(f,v)},Y1="Quantifier",q1=function(f,v){return v&&(f.greedy=!1),f},Ye="{",qe='"{"',W1=",",X1='","',o1="}",i1='"}"',K1=function(f,v){return new c(f,v)},s1=",}",G1='",}"',Q1=function(f){return new c(f,1/0)},J1=function(f){return new c(f,f)},et="+",tt='"+"',rt=function(){return new c(1,1/0)},nt="*",at='"*"',ot=function(){return new c(0,1/0)},l1="?",c1='"?"',it=function(){return new c(0,1)},u1=/^[0-9]/,f1="[0-9]",st=function(f){return+f.join("")},lt="(",ct='"("',ut=")",ft='")"',dt=function(f){return f},pt=function(f){return new s(f)},d1="?:",mt='"?:"',ht=function(f){return new o("non-capture-group",f)},p1="?=",gt='"?="',bt=function(f){return new o("positive-lookahead",f)},m1="?!",vt='"?!"',yt=function(f){return new o("negative-lookahead",f)},wt="CharacterSet",xt="[",kt='"["',_t="]",Et='"]"',Ct=function(f,v){return new u(!!f,v)},Mt="CharacterRange",St="-",Ot='"-"',Rt=function(f,v){return new d(f,v)},At="Character",$t=/^[^\\\]]/,Tt="[^\\\\\\]]",We=function(f){return new m(f)},zt=".",It='"."',Pt=function(){return new r("any-character")},Ft="Literal",Lt=/^[^|\\\/.[()?+*$\^]/,Ht="[^|\\\\\\/.[()?+*$\\^]",Be="\\b",h1='"\\\\b"',Bt=function(){return new r("backspace")},Nt=function(){return new r("word-boundary")},g1="\\B",Dt='"\\\\B"',Vt=function(){return new r("non-word-boundary")},b1="\\d",Zt='"\\\\d"',jt=function(){return new r("digit")},v1="\\D",Ut='"\\\\D"',Yt=function(){return new r("non-digit")},y1="\\f",qt='"\\\\f"',Wt=function(){return new r("form-feed")},w1="\\n",Xt='"\\\\n"',Kt=function(){return new r("line-feed")},x1="\\r",Gt='"\\\\r"',Qt=function(){return new r("carriage-return")},k1="\\s",Jt='"\\\\s"',e2=function(){return new r("white-space")},_1="\\S",t2='"\\\\S"',r2=function(){return new r("non-white-space")},E1="\\t",n2='"\\\\t"',a2=function(){return new r("tab")},C1="\\v",o2='"\\\\v"',i2=function(){return new r("vertical-tab")},M1="\\w",s2='"\\\\w"',l2=function(){return new r("word")},S1="\\W",c2='"\\\\W"',u2=function(){return new r("non-word")},O1="\\c",f2='"\\\\c"',R1="any character",d2=function(f){return new w(f)},A1="\\",$1='"\\\\"',p2=/^[1-9]/,m2="[1-9]",h2=function(f){return new y(f)},Ne="\\0",T1='"\\\\0"',z1=/^[0-7]/,I1="[0-7]",g2=function(f){return new g(f.join(""))},P1="\\x",b2='"\\\\x"',De=/^[0-9a-fA-F]/,Ve="[0-9a-fA-F]",v2=function(f){return new x(f.join(""))},F1="\\u",y2='"\\\\u"',w2=function(f){return new b(f.join(""))},x2=function(){return new r("null-character")},E=0,le=0,Pe=0,Xe={line:1,column:1,seenCR:!1},Ze=0,je=[],Q=0;if("startRule"in He){if(!(He.startRule in t1))throw new Error(`Can't start parsing from rule "`+He.startRule+'".');r1=t1[He.startRule]}if(r.offset=I,r.text=T,Ue=r1(),Ue!==null&&E===O.length)return Ue;throw P(je),le=Math.max(E,Ze),new L(je,leb)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is greater than",message:g};return y.message=c.message(y),x.push(y),!1},lessThan:function(u,d,m,b,x,g){if(m=b)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is greater than or equal to",message:g};return y.message=c.message(y),x.push(y),!1},lessThanOrEqualTo:function(u,d,m,b,x,g){if(m<=b)return!0;var y={path:d,type:u,actual:m,expected:b,action:"is less than or equal to",message:g};return y.message=c.message(y),x.push(y),!1}};s.Diff=l,s.Assert=c,e.exports=s},function(e,t,r){e.exports=r(28)},function(e,t,r){var n=r(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(g,y,w,k){var _=document.createEvent("CustomEvent");return _.initCustomEvent(g,y,w,k),_}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o="readystatechange loadstart progress abort error load timeout loadend".split(" "),s="timeout withCredentials".split(" "),l="readyState responseURL status statusText responseType response responseText responseXML".split(" "),c={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function u(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}u._settings={timeout:"10-100"},u.setup=function(x){return n.extend(u._settings,x),u._settings},n.extend(u,a),n.extend(u.prototype,a),u.prototype.mock=!0,u.prototype.match=!1,n.extend(u.prototype,{open:function(x,g,y,w,k){var _=this;n.extend(this.custom,{method:x,url:g,async:typeof y=="boolean"?y:!0,username:w,password:k,options:{url:g,type:x}}),this.custom.timeout=function(T){if(typeof T=="number")return T;if(typeof T=="string"&&!~T.indexOf("-"))return parseInt(T,10);if(typeof T=="string"&&~T.indexOf("-")){var I=T.split("-"),B=parseInt(I[0],10),C=parseInt(I[1],10);return Math.round(Math.random()*(C-B))+B}}(u._settings.timeout);var $=m(this.custom.options);function S(T){for(var I=0;I{if(n=`${base}${n}`,n in seen)return;seen[n]=!0;const a=n.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${o}`))return;const s=document.createElement("link");if(s.rel=a?"stylesheet":scriptRel,a||(s.as="script",s.crossOrigin=""),s.href=n,document.head.appendChild(s),a)return new Promise((l,c)=>{s.addEventListener("load",l),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},__pages_import_0__=()=>__vitePreload(()=>import("./401.066c62ac.js"),["assets/401.066c62ac.js","assets/401.f292e8e2.css","assets/401.58f0cb83.js","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_1__=()=>__vitePreload(()=>import("./403.aab6b96f.js"),["assets/403.aab6b96f.js","assets/401.f292e8e2.css","assets/401.58f0cb83.js","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_2__=()=>__vitePreload(()=>import("./404.811dd5f6.js"),["assets/404.811dd5f6.js","assets/404.b443a636.css","assets/index.2f5dd8a9.js","assets/route-block.9b0645f8.js"]),__pages_import_3__=()=>__vitePreload(()=>import("./about.b14bdbbf.js"),[]),__pages_import_4__=()=>__vitePreload(()=>import("./login.aea646be.js"),["assets/login.aea646be.js","assets/login.f7a1fc17.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/request.e2daed10.js","assets/isEqual.2263846a.js","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/link.e398aca7.js","assets/link.f7c436ab.css","assets/image-viewer.ed2baaff.js","assets/image-viewer.856a8939.css","assets/index.566ad052.js","assets/debounce.014e7b6e.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/scroll.90c07eee.js","assets/zfile-basic.e44d95f5.js","assets/login.f53d8f04.js","assets/install.29b84ed7.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/BadgeCheckIcon.8153a115.js"]),__pages_import_5__=()=>__vitePreload(()=>import("./site-setting.9446c34b.js"),["assets/site-setting.9446c34b.js","assets/site-setting.b462a513.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/input-number.4b8b8203.js","assets/input-number.9c618ec5.css","assets/index.da7dbe5d.js","assets/request.e2daed10.js","assets/event.776e7e11.js","assets/index.566ad052.js","assets/index.7fa0be7b.js","assets/event.3ec63147.js","assets/admin-setting.28847312.js","assets/route-block.9b0645f8.js","assets/index.439070da.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/focus-trap.4cfde4b4.js","assets/validator.b1ae6965.js","assets/BadgeCheckIcon.8153a115.js","assets/directive.378eb0e0.js"]),__pages_import_6__=()=>__vitePreload(()=>import("./storage-list.f19a5874.js"),["assets/storage-list.f19a5874.js","assets/storage-list.7487c9b9.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/icon.cca102d8.css","assets/popover.74dd4546.css","assets/tag.9021a61b.css","assets/input.c3618236.css","assets/401.58f0cb83.js","assets/zfile-basic.e44d95f5.js","assets/zfile-horizontal.330e1cd8.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/card.d6fbde4d.js","assets/card.7b41c195.css","assets/dropdown-item.dc1b3a74.js","assets/dropdown-item.32357c71.css","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/dropdown.2ef7612f.js","assets/index.566ad052.js","assets/refs.f6f7d296.js","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/storage-list.84919783.js","assets/admin-storage.442a3cb6.js","assets/sortable.esm.a99254e8.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/validator.b1ae6965.js","assets/route-block.9b0645f8.js","assets/index.9c287fed.js","assets/index.a1ce1e68.js","assets/directive.378eb0e0.js"]),__pages_import_7__=()=>__vitePreload(()=>import("./update-password.2ab71475.js"),["assets/update-password.2ab71475.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/admin-setting.28847312.js","assets/request.e2daed10.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.8153a115.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/directive.378eb0e0.js"]),__pages_import_8__=()=>__vitePreload(()=>import("./view-setting.b07dc428.js"),["assets/view-setting.b07dc428.js","assets/view-setting.7d4b62f6.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/event.776e7e11.js","assets/radio.35753592.js","assets/radio.3ebff4f2.css","assets/index.da7dbe5d.js","assets/admin-setting.28847312.js","assets/common.72335e7c.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.8153a115.js","assets/directive.378eb0e0.js"]),__pages_import_9__=()=>__vitePreload(()=>import("./index.d4ff9f04.js"),["assets/index.d4ff9f04.js","assets/index.467dedf2.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/request.e2daed10.js","assets/isEqual.2263846a.js","assets/zfile-basic.e44d95f5.js","assets/install.29b84ed7.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/BadgeCheckIcon.8153a115.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js"]),__pages_import_10__=()=>__vitePreload(()=>import("./basic-setting.31261c22.js"),["assets/basic-setting.31261c22.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.35753592.js","assets/radio.3ebff4f2.css","assets/event.776e7e11.js","assets/index.da7dbe5d.js","assets/request.e2daed10.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/useLinkSetting.acb89768.js","assets/admin-setting.28847312.js","assets/directive.378eb0e0.js"]),__pages_import_11__=()=>__vitePreload(()=>import("./index.744623fc.js"),["assets/index.744623fc.js","assets/index.e507f173.css","assets/input.c3618236.css","assets/tag.9021a61b.css","assets/popover.74dd4546.css","assets/table-column.5d9b8d93.css","assets/button.cca160de.css","assets/loading.dd11abc3.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/dialog.0ab1ba1d.js","assets/dialog.731d01ef.css","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.566ad052.js","assets/focus-trap.4cfde4b4.js","assets/refs.f6f7d296.js","assets/card.d6fbde4d.js","assets/card.7b41c195.css","assets/zh-cn.19e9e150.js","assets/zh-cn.3cfc5143.css","assets/request.e2daed10.js","assets/dayjs.min.78646b3b.js","assets/index.da7dbe5d.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/index.7fa0be7b.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/isEqual.2263846a.js","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/index.9c287fed.js","assets/validator.b1ae6965.js","assets/checkbox.65d5353a.js","assets/checkbox.74f2ee5a.css","assets/tooltip.f118fcb0.js","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/basic-setting.31261c22.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.35753592.js","assets/radio.3ebff4f2.css","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/useLinkSetting.acb89768.js","assets/admin-setting.28847312.js","assets/directive.378eb0e0.js","assets/admin-storage.442a3cb6.js","assets/route-block.9b0645f8.js","assets/index.439070da.js"]),__pages_import_12__=()=>__vitePreload(()=>import("./log.0fd73217.js"),["assets/log.0fd73217.js","assets/log.58b0a816.css","assets/input.c3618236.css","assets/tag.9021a61b.css","assets/popover.74dd4546.css","assets/table-column.5d9b8d93.css","assets/button.cca160de.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/card.d6fbde4d.js","assets/card.7b41c195.css","assets/zh-cn.19e9e150.js","assets/zh-cn.3cfc5143.css","assets/request.e2daed10.js","assets/dayjs.min.78646b3b.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.566ad052.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/index.7fa0be7b.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/isEqual.2263846a.js","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/index.9c287fed.js","assets/scroll.90c07eee.js","assets/validator.b1ae6965.js","assets/checkbox.65d5353a.js","assets/checkbox.74f2ee5a.css","assets/tooltip.f118fcb0.js","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/useLinkSetting.acb89768.js","assets/admin-setting.28847312.js","assets/admin-storage.442a3cb6.js","assets/route-block.9b0645f8.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/index.439070da.js","assets/index.d46124aa.js"]),__pages_import_13__=()=>__vitePreload(()=>import("./setting.86037418.js"),["assets/setting.86037418.js","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/basic-setting.31261c22.js","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/radio.35753592.js","assets/radio.3ebff4f2.css","assets/event.776e7e11.js","assets/index.da7dbe5d.js","assets/request.e2daed10.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/useLinkSetting.acb89768.js","assets/admin-setting.28847312.js","assets/directive.378eb0e0.js","assets/route-block.9b0645f8.js"]),__pages_import_14__=()=>__vitePreload(()=>import("./index.78fa4530.js"),["assets/index.78fa4530.js","assets/index.1f8079a9.css","assets/loading.dd11abc3.css","assets/input.c3618236.css","assets/button.cca160de.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/image-viewer.ed2baaff.js","assets/image-viewer.856a8939.css","assets/index.566ad052.js","assets/debounce.014e7b6e.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/scroll.90c07eee.js","assets/radio.35753592.js","assets/radio.3ebff4f2.css","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/admin-setting.28847312.js","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/index.439070da.js","assets/index.d46124aa.js","assets/route-block.9b0645f8.js","assets/directive.378eb0e0.js"]),__pages_import_15__=()=>__vitePreload(()=>import("./index.4a8ae10f.js"),["assets/index.4a8ae10f.js","assets/tag.9021a61b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/checkbox.65d5353a.js","assets/checkbox.74f2ee5a.css","assets/index.88f36c37.js","assets/request.e2daed10.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/debounce.014e7b6e.js","assets/event.776e7e11.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/index.566ad052.js","assets/tooltip.f118fcb0.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/admin-storage.442a3cb6.js","assets/storage-list.84919783.js","assets/sortable.esm.a99254e8.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js"]),__pages_import_16__=()=>__vitePreload(()=>import("./_storageId_.a5f79f09.js"),["assets/_storageId_.a5f79f09.js","assets/button.cca160de.css","assets/popover.74dd4546.css","assets/tag.9021a61b.css","assets/input.c3618236.css","assets/index.e784c329.js","assets/index.f41c547b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/link.e398aca7.js","assets/link.f7c436ab.css","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/event.776e7e11.js","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/index.da7dbe5d.js","assets/index.88f36c37.js","assets/index.9c287fed.js","assets/index.566ad052.js","assets/scroll.90c07eee.js","assets/isEqual.2263846a.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/admin-storage.442a3cb6.js","assets/route-block.9b0645f8.js","assets/index.a1ce1e68.js","assets/dropdown.2ef7612f.js","assets/BadgeCheckIcon.8153a115.js","assets/index.439070da.js","assets/index.d46124aa.js"]),__pages_import_17__=()=>__vitePreload(()=>import("./index.e784c329.js"),["assets/index.e784c329.js","assets/index.f41c547b.css","assets/button.cca160de.css","assets/popover.74dd4546.css","assets/tag.9021a61b.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/link.e398aca7.js","assets/link.f7c436ab.css","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/event.776e7e11.js","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/index.da7dbe5d.js","assets/index.88f36c37.js","assets/index.9c287fed.js","assets/index.566ad052.js","assets/scroll.90c07eee.js","assets/isEqual.2263846a.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/admin-storage.442a3cb6.js","assets/route-block.9b0645f8.js","assets/index.a1ce1e68.js","assets/dropdown.2ef7612f.js","assets/BadgeCheckIcon.8153a115.js","assets/index.439070da.js","assets/index.d46124aa.js"]),__pages_import_18__=()=>__vitePreload(()=>import("./_storageId_.c2c34ae8.js"),["assets/_storageId_.c2c34ae8.js","assets/_storageId_.11ae694b.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/tag.9021a61b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/request.e2daed10.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/index.9c287fed.js","assets/index.566ad052.js","assets/scroll.90c07eee.js","assets/isEqual.2263846a.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/validator.b1ae6965.js","assets/tooltip.f118fcb0.js","assets/alert.b0fac511.js","assets/alert.220a30c1.css","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/admin-storage.442a3cb6.js","assets/common.9f3a7a35.js","assets/index.439070da.js","assets/index.d46124aa.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.8153a115.js","assets/directive.378eb0e0.js"]),__pages_import_19__=()=>__vitePreload(()=>import("./_storageId_.9a9c95b6.js"),["assets/_storageId_.9a9c95b6.js","assets/_storageId_.21797378.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/alert.b0fac511.js","assets/alert.220a30c1.css","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/admin-storage.442a3cb6.js","assets/common.9f3a7a35.js","assets/sortable.esm.a99254e8.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/validator.b1ae6965.js","assets/index.566ad052.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.8153a115.js","assets/directive.378eb0e0.js"]),__pages_import_20__=()=>__vitePreload(()=>import("./_storageId_.14ee6b2c.js"),["assets/_storageId_.14ee6b2c.js","assets/_storageId_.12103200.css","assets/loading.dd11abc3.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/tag.9021a61b.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/request.e2daed10.js","assets/index.da7dbe5d.js","assets/event.776e7e11.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/index.9c287fed.js","assets/index.566ad052.js","assets/scroll.90c07eee.js","assets/isEqual.2263846a.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/validator.b1ae6965.js","assets/alert.b0fac511.js","assets/alert.220a30c1.css","assets/tooltip.f118fcb0.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/ZFormItem.899c4541.js","assets/ZFormItem.e3c3668e.css","assets/index.5cf4e3bb.js","assets/admin-storage.442a3cb6.js","assets/common.9f3a7a35.js","assets/sortable.esm.a99254e8.js","assets/index.439070da.js","assets/index.d46124aa.js","assets/readme-editor-dialog.5b0917f1.js","assets/dialog.0ab1ba1d.js","assets/dialog.731d01ef.css","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/refs.f6f7d296.js","assets/route-block.9b0645f8.js","assets/BadgeCheckIcon.8153a115.js","assets/directive.378eb0e0.js"]),__pages_import_21__=()=>__vitePreload(()=>import("./readme-editor-dialog.5b0917f1.js"),["assets/readme-editor-dialog.5b0917f1.js","assets/button.cca160de.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/dialog.0ab1ba1d.js","assets/dialog.731d01ef.css","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.566ad052.js","assets/focus-trap.4cfde4b4.js","assets/refs.f6f7d296.js"]),routes$1=[{name:"401",path:"/401",component:__pages_import_0__,props:!0,meta:{layout:"notFound"}},{name:"403",path:"/403",component:__pages_import_1__,props:!0,meta:{layout:"notFound"}},{name:"404",path:"/404",component:__pages_import_2__,props:!0,meta:{layout:"notFound"}},{name:"about",path:"/about",component:__pages_import_3__,props:!0},{name:"login",path:"/login",component:__pages_import_4__,props:!0},{name:"admin-site-setting",path:"/admin/site-setting",component:__pages_import_5__,props:!0,meta:{layout:"admin",name:"\u57FA\u672C\u8BBE\u7F6E"}},{name:"admin-storage-list",path:"/admin/storage-list",component:__pages_import_6__,props:!0,meta:{layout:"admin",name:"\u5B58\u50A8\u6E90\u7BA1\u7406"}},{name:"admin-update-password",path:"/admin/update-password",component:__pages_import_7__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u7BA1\u7406"}},{name:"admin-view-setting",path:"/admin/view-setting",component:__pages_import_8__,props:!0,meta:{layout:"admin",name:"\u663E\u793A\u8BBE\u7F6E"}},{name:"install",path:"/install",component:__pages_import_9__,props:!0},{name:"admin-download-link-basic-setting",path:"/admin/download-link/basic-setting",component:__pages_import_10__,props:!0},{name:"admin-download-link",path:"/admin/download-link",component:__pages_import_11__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u7BA1\u7406"}},{name:"admin-download-link-log",path:"/admin/download-link/log",component:__pages_import_12__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u65E5\u5FD7"}},{name:"admin-download-link-setting",path:"/admin/download-link/setting",component:__pages_import_13__,props:!0,meta:{layout:"admin",name:"\u76F4\u94FE\u8BBE\u7F6E"}},{name:"admin-security-setting",path:"/admin/security-setting",component:__pages_import_14__,props:!0,meta:{layout:"admin",name:"\u57FA\u672C\u8BBE\u7F6E"}},{name:"admin-storage-cache",path:"/admin/storage-cache",component:__pages_import_15__,props:!0},{name:"admin-storage-edit-storageId",path:"/admin/storage-edit/:storageId",component:__pages_import_16__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-edit",path:"/admin/storage-edit",component:__pages_import_17__,props:!0,meta:{layout:"admin",name:"\u65B0\u589E\u5B58\u50A8\u6E90"}},{name:"admin-storage-filter-storageId",path:"/admin/storage-filter/:storageId",component:__pages_import_18__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-password-storageId",path:"/admin/storage-password/:storageId",component:__pages_import_19__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-readme-storageId",path:"/admin/storage-readme/:storageId",component:__pages_import_20__,props:!0,meta:{layout:"admin",name:"\u7F16\u8F91\u5B58\u50A8\u6E90"}},{name:"admin-storage-readme-readme-editor-dialog",path:"/admin/storage-readme/readme-editor-dialog",component:__pages_import_21__,props:!0}],setupLayouts=e=>{const t={};return Object.entries({"/src/layouts/admin.vue":()=>__vitePreload(()=>import("./admin.c98855b1.js"),["assets/admin.c98855b1.js","assets/button.cca160de.css","assets/icon.cca102d8.css","assets/popover.74dd4546.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/dropdown-item.dc1b3a74.js","assets/dropdown-item.32357c71.css","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/index.88f36c37.js","assets/dropdown.2ef7612f.js","assets/index.566ad052.js","assets/refs.f6f7d296.js","assets/badge.28b48511.js","assets/badge.8cd3c6ed.css","assets/link.e398aca7.js","assets/link.f7c436ab.css","assets/zfile-basic.e44d95f5.js","assets/zfile-horizontal.330e1cd8.js","assets/admin-setting.28847312.js","assets/login.f53d8f04.js","assets/dayjs.min.78646b3b.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/common.72335e7c.js","assets/index.a1ce1e68.js"]),"/src/layouts/default.vue":()=>__vitePreload(()=>import("./default.a74f5529.js"),["assets/default.a74f5529.js","assets/plugin-vue_export-helper.21dcd24c.js"]),"/src/layouts/file.vue":()=>__vitePreload(()=>import("./file.74773f11.js"),["assets/file.74773f11.js","assets/file.d112bd9c.css","assets/input.c3618236.css","assets/tag.9021a61b.css","assets/button.cca160de.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/switch.87050cd5.js","assets/switch.de8121aa.css","assets/validator.b1ae6965.js","assets/input-number.4b8b8203.js","assets/input-number.9c618ec5.css","assets/index.da7dbe5d.js","assets/request.e2daed10.js","assets/index.566ad052.js","assets/index.7fa0be7b.js","assets/event.3ec63147.js","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/focus-trap.4cfde4b4.js","assets/SvgIcon.eefd5347.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/select.8acf8bd3.js","assets/select.00495d75.css","assets/index.88f36c37.js","assets/index.9c287fed.js","assets/isEqual.2263846a.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/useFileUpload.72c71760.js","assets/common.72335e7c.js","assets/index.439070da.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/dropdown-item.dc1b3a74.js","assets/dropdown-item.32357c71.css","assets/dropdown.2ef7612f.js","assets/refs.f6f7d296.js","assets/badge.28b48511.js","assets/badge.8cd3c6ed.css"]),"/src/layouts/notFound.vue":()=>__vitePreload(()=>import("./notFound.97bc4a2d.js"),["assets/notFound.97bc4a2d.js","assets/plugin-vue_export-helper.21dcd24c.js"])}).forEach(([n,a])=>{let o=n.replace("/src/layouts/","").replace(".vue","");t[o]=a}),e.map(n=>{var a;return{path:n.path,component:t[((a=n.meta)==null?void 0:a.layout)||"default"],children:[{...n,path:""}],meta:{isLayout:!0}}})};/*! * vue-router v4.0.16 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=e=>hasSymbol?Symbol(e):"_vr_"+e,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window!="undefined";function isESModule(e){return e.__esModule||hasSymbol&&e[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(e,t){const r={};for(const n in t){const a=t[n];r[n]=Array.isArray(a)?a.map(e):e(a)}return r}const noop$1=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,r="/"){let n,a={},o="",s="";const l=t.indexOf("?"),c=t.indexOf("#",l>-1?l:0);return l>-1&&(n=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),a=e(o)),c>-1&&(n=n||t.slice(0,c),s=t.slice(c,t.length)),n=resolveRelativePath(n!=null?n:t,r),{fullPath:n+(o&&"?")+o+s,path:n,query:a,hash:s}}function stringifyURL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function stripBase(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function isSameRouteLocation(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&isSameRouteRecord(t.matched[n],r.matched[a])&&isSameRouteLocationParams(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!isSameRouteLocationParamsValue(e[r],t[r]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return Array.isArray(e)?isEquivalentArray(e,t):Array.isArray(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let a=r.length-1,o,s;for(o=0;o({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=getElementPosition(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:r,search:n,hash:a}=t,o=e.indexOf("#");if(o>-1){let l=a.includes(e.slice(o))?e.slice(o).length:1,c=a.slice(l);return c[0]!=="/"&&(c="/"+c),stripBase(c,"")}return stripBase(r,e)+n+a}function useHistoryListeners(e,t,r,n){let a=[],o=[],s=null;const l=({state:b})=>{const x=createCurrentLocation(e,location),g=r.value,y=t.value;let w=0;if(b){if(r.value=x,t.value=b,s&&s===g){s=null;return}w=y?b.position-y.position:0}else n(x);a.forEach(_=>{_(r.value,g,{delta:w,type:NavigationType.pop,direction:w?w>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function c(){s=r.value}function u(b){a.push(b);const x=()=>{const g=a.indexOf(b);g>-1&&a.splice(g,1)};return o.push(x),x}function d(){const{history:b}=window;!b.state||b.replaceState(assign$1({},b.state,{scroll:computeScrollPosition()}),"")}function m(){for(const b of o)b();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:m}}function buildState(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:r}=window,n={value:createCurrentLocation(e,r)},a={value:t.state};a.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,d){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+c:createBaseLocation()+e+c;try{t[d?"replaceState":"pushState"](u,"",b),a.value=u}catch(x){console.error(x),r[d?"replace":"assign"](b)}}function s(c,u){const d=assign$1({},t.state,buildState(a.value.back,c,a.value.forward,!0),u,{position:a.value.position});o(c,d,!0),n.value=c}function l(c,u){const d=assign$1({},a.value,t.state,{forward:c,scroll:computeScrollPosition()});o(d.current,d,!0);const m=assign$1({},buildState(n.value,c,null),{position:d.position+1},u);o(c,m,!1),n.value=c}return{location:n,state:a,push:l,replace:s}}function createWebHistory(e){e=normalizeBase(e);const t=useHistoryStateNavigation(e),r=useHistoryListeners(e,t.state,t.location,t.replace);function n(o,s=!0){s||r.pauseListeners(),history.go(o)}const a=assign$1({location:"",base:e,go:n,createHref:createHref.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function isRouteLocation(e){return typeof e=="string"||e&&typeof e=="object"}function isRouteName(e){return typeof e=="string"||typeof e=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(e,t){return assign$1(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(t==null||!!(e.type&t))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const r=assign$1({},BASE_PATH_PARSER_OPTIONS,t),n=[];let a=r.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let m=0;m1&&(d.endsWith("/")?d=d.slice(0,-1):m=!0);else throw new Error(`Missing required param "${g}"`);d+=E}}return d}return{re:s,score:n,keys:o,parse:l,stringify:c}}function compareScoreArray(e,t){let r=0;for(;rt.length?t.length===1&&t[0]===40+40?1:-1:0}function comparePathParserScore(e,t){let r=0;const n=e.score,a=t.score;for(;r0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if(e==="/")return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${u}": ${x}`)}let r=0,n=r;const a=[];let o;function s(){o&&a.push(o),o=[]}let l=0,c,u="",d="";function m(){!u||(r===0?o.push({type:0,value:u}):r===1||r===2||r===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function b(){u+=c}for(;l{s(E)}:noop$1}function s(d){if(isRouteName(d)){const m=n.get(d);m&&(n.delete(d),r.splice(r.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=r.indexOf(d);m>-1&&(r.splice(m,1),d.record.name&&n.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function l(){return r}function c(d){let m=0;for(;m=0&&(d.record.path!==r[m].record.path||!isRecordChildOf(d,r[m]));)m++;r.splice(m,0,d),d.record.name&&!isAliasRecord(d)&&n.set(d.record.name,d)}function u(d,m){let b,x={},g,y;if("name"in d&&d.name){if(b=n.get(d.name),!b)throw createRouterError(1,{location:d});y=b.record.name,x=assign$1(paramsFromLocation(m.params,b.keys.filter(E=>!E.optional).map(E=>E.name)),d.params),g=b.stringify(x)}else if("path"in d)g=d.path,b=r.find(E=>E.re.test(g)),b&&(x=b.parse(g),y=b.record.name);else{if(b=m.name?n.get(m.name):r.find(E=>E.re.test(m.path)),!b)throw createRouterError(1,{location:d,currentLocation:m});y=b.record.name,x=assign$1({},m.params,d.params),g=b.stringify(x)}const w=[];let _=b;for(;_;)w.unshift(_.record),_=_.parent;return{name:y,path:g,params:x,matched:w,meta:mergeMetaFields(w)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:s,getRoutes:l,getRecordMatcher:a}}function paramsFromLocation(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function normalizeRecordProps(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce((t,r)=>assign$1(t,r.meta),{})}function mergeOptions(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function isRecordChildOf(e,t){return t.children.some(r=>r===e||isRecordChildOf(e,r))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return e==null?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function parseQuery(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&encodeQueryValue(o)):[n&&encodeQueryValue(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function normalizeQuery(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}function useCallbacks(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function guardToPromiseFn(e,t,r,n,a){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const c=m=>{m===!1?l(createRouterError(4,{from:r,to:t})):m instanceof Error?l(m):isRouteLocation(m)?l(createRouterError(2,{from:t,to:m})):(o&&n.enterCallbacks[a]===o&&typeof m=="function"&&o.push(m),s())},u=e.call(n&&n.instances[a],t,r,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(m=>l(m))})}function extractComponentsGuards(e,t,r,n){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(isRouteComponent(l)){const u=(l.__vccOpts||l)[t];u&&a.push(guardToPromiseFn(u,r,n,o,s))}else{let c=l();a.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const d=isESModule(u)?u.default:u;o.components[s]=d;const b=(d.__vccOpts||d)[t];return b&&guardToPromiseFn(b,r,n,o,s)()}))}}return a}function isRouteComponent(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){const t=inject(routerKey),r=inject(routeLocationKey),n=computed(()=>t.resolve(unref(e.to))),a=computed(()=>{const{matched:c}=n.value,{length:u}=c,d=c[u-1],m=r.matched;if(!d||!m.length)return-1;const b=m.findIndex(isSameRouteRecord.bind(null,d));if(b>-1)return b;const x=getOriginalPath(c[u-2]);return u>1&&getOriginalPath(d)===x&&m[m.length-1].path!==x?m.findIndex(isSameRouteRecord.bind(null,c[u-2])):b}),o=computed(()=>a.value>-1&&includesParams(r.params,n.value.params)),s=computed(()=>a.value>-1&&a.value===r.matched.length-1&&isSameRouteLocationParams(r.params,n.value.params));function l(c={}){return guardEvent(c)?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$1):Promise.resolve()}return{route:n,href:computed(()=>n.value.href),isActive:o,isExactActive:s,navigate:l}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(e,{slots:t}){const r=reactive(useLink(e)),{options:n}=inject(routerKey),a=computed(()=>({[getLinkClass(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[getLinkClass(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&t.default(r);return e.custom?o:h("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},o)}}}),RouterLink=RouterLinkImpl;function guardEvent(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 includesParams(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Array.isArray(a)||a.length!==n.length||n.some((o,s)=>o!==a[s]))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,r)=>e!=null?e:t!=null?t:r,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=inject(routerViewLocationKey),a=computed(()=>e.route||n.value),o=inject(viewDepthKey,0),s=computed(()=>a.value.matched[o]);provide(viewDepthKey,o+1),provide(matchedRouteKey,s),provide(routerViewLocationKey,a);const l=ref();return watch(()=>[l.value,s.value,e.name],([c,u,d],[m,b,x])=>{u&&(u.instances[d]=c,b&&b!==u&&c&&c===m&&(u.leaveGuards.size||(u.leaveGuards=b.leaveGuards),u.updateGuards.size||(u.updateGuards=b.updateGuards))),c&&u&&(!b||!isSameRouteRecord(u,b)||!m)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=a.value,u=s.value,d=u&&u.components[e.name],m=e.name;if(!d)return normalizeSlot(r.default,{Component:d,route:c});const b=u.props[e.name],x=b?b===!0?c.params:typeof b=="function"?b(c):b:null,y=h(d,assign$1({},x,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(u.instances[m]=null)},ref:l}));return normalizeSlot(r.default,{Component:y,route:c})||y}}});function normalizeSlot(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),r=e.parseQuery||parseQuery,n=e.stringifyQuery||stringifyQuery,a=e.history,o=useCallbacks(),s=useCallbacks(),l=useCallbacks(),c=shallowRef(START_LOCATION_NORMALIZED);let u=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=applyToParams.bind(null,F=>""+F),m=applyToParams.bind(null,encodeParam),b=applyToParams.bind(null,decode);function x(F,W){let U,Q;return isRouteName(F)?(U=t.getRecordMatcher(F),Q=W):Q=F,t.addRoute(Q,U)}function g(F){const W=t.getRecordMatcher(F);W&&t.removeRoute(W)}function y(){return t.getRoutes().map(F=>F.record)}function w(F){return!!t.getRecordMatcher(F)}function _(F,W){if(W=assign$1({},W||c.value),typeof F=="string"){const ce=parseURL(r,F,W.path),C=t.resolve({path:ce.path},W),S=a.createHref(ce.fullPath);return assign$1(ce,C,{params:b(C.params),hash:decode(ce.hash),redirectedFrom:void 0,href:S})}let U;if("path"in F)U=assign$1({},F,{path:parseURL(r,F.path,W.path).path});else{const ce=assign$1({},F.params);for(const C in ce)ce[C]==null&&delete ce[C];U=assign$1({},F,{params:m(F.params)}),W.params=m(W.params)}const Q=t.resolve(U,W),de=F.hash||"";Q.params=d(b(Q.params));const he=stringifyURL(n,assign$1({},F,{hash:encodeHash(de),path:Q.path})),le=a.createHref(he);return assign$1({fullPath:he,hash:de,query:n===stringifyQuery?normalizeQuery(F.query):F.query||{}},Q,{redirectedFrom:void 0,href:le})}function E(F){return typeof F=="string"?parseURL(r,F,c.value.path):assign$1({},F)}function z(F,W){if(u!==F)return createRouterError(8,{from:W,to:F})}function R(F){return M(F)}function $(F){return R(assign$1(E(F),{replace:!0}))}function H(F){const W=F.matched[F.matched.length-1];if(W&&W.redirect){const{redirect:U}=W;let Q=typeof U=="function"?U(F):U;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=E(Q):{path:Q},Q.params={}),assign$1({query:F.query,hash:F.hash,params:F.params},Q)}}function M(F,W){const U=u=_(F),Q=c.value,de=F.state,he=F.force,le=F.replace===!0,ce=H(U);if(ce)return M(assign$1(E(ce),{state:de,force:he,replace:le}),W||U);const C=U;C.redirectedFrom=W;let S;return!he&&isSameRouteLocation(n,Q,U)&&(S=createRouterError(16,{to:C,from:Q}),xe(Q,Q,!0,!1)),(S?Promise.resolve(S):j(C,Q)).catch(P=>isNavigationFailure(P)?isNavigationFailure(P,2)?P:ye(P):me(P,C,Q)).then(P=>{if(P){if(isNavigationFailure(P,2))return M(assign$1(E(P.to),{state:de,force:he,replace:le}),W||C)}else P=T(C,Q,!0,le,de);return N(C,Q,P),P})}function I(F,W){const U=z(F,W);return U?Promise.reject(U):Promise.resolve()}function j(F,W){let U;const[Q,de,he]=extractChangingRecords(F,W);U=extractComponentsGuards(Q.reverse(),"beforeRouteLeave",F,W);for(const ce of Q)ce.leaveGuards.forEach(C=>{U.push(guardToPromiseFn(C,F,W))});const le=I.bind(null,F,W);return U.push(le),runGuardQueue(U).then(()=>{U=[];for(const ce of o.list())U.push(guardToPromiseFn(ce,F,W));return U.push(le),runGuardQueue(U)}).then(()=>{U=extractComponentsGuards(de,"beforeRouteUpdate",F,W);for(const ce of de)ce.updateGuards.forEach(C=>{U.push(guardToPromiseFn(C,F,W))});return U.push(le),runGuardQueue(U)}).then(()=>{U=[];for(const ce of F.matched)if(ce.beforeEnter&&!W.matched.includes(ce))if(Array.isArray(ce.beforeEnter))for(const C of ce.beforeEnter)U.push(guardToPromiseFn(C,F,W));else U.push(guardToPromiseFn(ce.beforeEnter,F,W));return U.push(le),runGuardQueue(U)}).then(()=>(F.matched.forEach(ce=>ce.enterCallbacks={}),U=extractComponentsGuards(he,"beforeRouteEnter",F,W),U.push(le),runGuardQueue(U))).then(()=>{U=[];for(const ce of s.list())U.push(guardToPromiseFn(ce,F,W));return U.push(le),runGuardQueue(U)}).catch(ce=>isNavigationFailure(ce,8)?ce:Promise.reject(ce))}function N(F,W,U){for(const Q of l.list())Q(F,W,U)}function T(F,W,U,Q,de){const he=z(F,W);if(he)return he;const le=W===START_LOCATION_NORMALIZED,ce=isBrowser?history.state:{};U&&(Q||le?a.replace(F.fullPath,assign$1({scroll:le&&ce&&ce.scroll},de)):a.push(F.fullPath,de)),c.value=F,xe(F,W,U,le),ye()}let Y;function J(){Y||(Y=a.listen((F,W,U)=>{const Q=_(F),de=H(Q);if(de){M(assign$1(de,{replace:!0}),Q).catch(noop$1);return}u=Q;const he=c.value;isBrowser&&saveScrollPosition(getScrollKey(he.fullPath,U.delta),computeScrollPosition()),j(Q,he).catch(le=>isNavigationFailure(le,12)?le:isNavigationFailure(le,2)?(M(le.to,Q).then(ce=>{isNavigationFailure(ce,20)&&!U.delta&&U.type===NavigationType.pop&&a.go(-1,!1)}).catch(noop$1),Promise.reject()):(U.delta&&a.go(-U.delta,!1),me(le,Q,he))).then(le=>{le=le||T(Q,he,!1),le&&(U.delta?a.go(-U.delta,!1):U.type===NavigationType.pop&&isNavigationFailure(le,20)&&a.go(-1,!1)),N(Q,he,le)}).catch(noop$1)}))}let X=useCallbacks(),ue=useCallbacks(),ae;function me(F,W,U){ye(F);const Q=ue.list();return Q.length?Q.forEach(de=>de(F,W,U)):console.error(F),Promise.reject(F)}function fe(){return ae&&c.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((F,W)=>{X.add([F,W])})}function ye(F){return ae||(ae=!F,J(),X.list().forEach(([W,U])=>F?U(F):W()),X.reset()),F}function xe(F,W,U,Q){const{scrollBehavior:de}=e;if(!isBrowser||!de)return Promise.resolve();const he=!U&&getSavedScrollPosition(getScrollKey(F.fullPath,0))||(Q||!U)&&history.state&&history.state.scroll||null;return nextTick().then(()=>de(F,W,he)).then(le=>le&&scrollToPosition(le)).catch(le=>me(le,F,W))}const _e=F=>a.go(F);let Ee;const ke=new Set;return{currentRoute:c,addRoute:x,removeRoute:g,hasRoute:w,getRoutes:y,resolve:_,options:e,push:R,replace:$,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:ue.add,isReady:fe,install(F){const W=this;F.component("RouterLink",RouterLink),F.component("RouterView",RouterView),F.config.globalProperties.$router=W,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(c)}),isBrowser&&!Ee&&c.value===START_LOCATION_NORMALIZED&&(Ee=!0,R(a.location).catch(de=>{}));const U={};for(const de in START_LOCATION_NORMALIZED)U[de]=computed(()=>c.value[de]);F.provide(routerKey,W),F.provide(routeLocationKey,reactive(U)),F.provide(routerViewLocationKey,c);const Q=F.unmount;ke.add(F),F.unmount=function(){ke.delete(F),ke.size<1&&(u=START_LOCATION_NORMALIZED,Y&&Y(),Y=null,c.value=START_LOCATION_NORMALIZED,Ee=!1,ae=!1),Q()}}}}function runGuardQueue(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function extractChangingRecords(e,t){const r=[],n=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;sisSameRouteRecord(u,l))?n.push(l):r.push(l));const c=e.matched[s];c&&(t.matched.find(u=>isSameRouteRecord(u,c))||a.push(c))}return[r,n,a]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}routes$1.push({path:"/",meta:{layout:"file"},component:()=>__vitePreload(()=>import("./file.0293c443.js"),["assets/file.0293c443.js","assets/file.1054f137.css","assets/loading.dd11abc3.css","assets/icon.cca102d8.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/dialog.04a5229a.js","assets/dialog.731d01ef.css","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.1e624cbf.js","assets/refs.4597d917.js","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/index.24f1077d.js","assets/debounce.32892d61.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/table-column.0ede6c12.js","assets/table-column.58e8e9a6.css","assets/alert.36ada7cc.js","assets/alert.220a30c1.css","assets/common.0f75f163.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/SvgIcon.c7a5ac24.js","assets/useFileUpload.b18c246f.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/validator.6f3b33db.js","assets/directive.e250a256.js","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/isEqual.fe8e5f6f.js","assets/image-viewer.65ed4853.js","assets/image-viewer.856a8939.css","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/route-block.9b0645f8.js"])},{path:"/:storageKey/:fullpath(.*)*",meta:{layout:"file"},props:!0,component:()=>__vitePreload(()=>import("./file.0293c443.js"),["assets/file.0293c443.js","assets/file.1054f137.css","assets/loading.dd11abc3.css","assets/icon.cca102d8.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.d698891e.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.14a92806.js","assets/popper.e5c0055c.css","assets/request.3708b2c4.js","assets/focus-trap.58847c97.js","assets/event.3ec63147.js","assets/dialog.04a5229a.js","assets/dialog.731d01ef.css","assets/index.0f572ca8.js","assets/scroll.cbf731df.js","assets/overlay.7eff71c7.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.1e624cbf.js","assets/refs.4597d917.js","assets/checkbox.cfb94aee.js","assets/checkbox.74f2ee5a.css","assets/index.24f1077d.js","assets/debounce.32892d61.js","assets/scrollbar.97fa2ffd.js","assets/scrollbar.88366223.css","assets/table-column.0ede6c12.js","assets/table-column.58e8e9a6.css","assets/alert.36ada7cc.js","assets/alert.220a30c1.css","assets/common.0f75f163.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/SvgIcon.c7a5ac24.js","assets/useFileUpload.b18c246f.js","assets/index.11692625.js","assets/index.4ab44dc8.js","assets/validator.6f3b33db.js","assets/directive.e250a256.js","assets/form-item.1544fca0.js","assets/form-item.4ffcf52c.css","assets/index.c92ded65.js","assets/isEqual.fe8e5f6f.js","assets/image-viewer.65ed4853.js","assets/image-viewer.856a8939.css","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/route-block.9b0645f8.js"])});let routes=setupLayouts(routes$1);routes.push({path:"/admin",redirect:"/admin/site-setting"});const router=createRouter({routes,history:createWebHistory()});var router$1=e=>e.use(router),__glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,router,default:router$1},Symbol.toStringTag,{value:"Module"})),nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(r,n){e.exports=n()})(commonjsGlobal,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};r.configure=function(g){var y,w;for(y in g)w=g[y],w!==void 0&&g.hasOwnProperty(y)&&(n[y]=w);return this},r.status=null,r.set=function(g){var y=r.isStarted();g=a(g,n.minimum,1),r.status=g===1?null:g;var w=r.render(!y),_=w.querySelector(n.barSelector),E=n.speed,z=n.easing;return w.offsetWidth,l(function(R){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),c(_,s(g,E,z)),g===1?(c(w,{transition:"none",opacity:1}),w.offsetWidth,setTimeout(function(){c(w,{transition:"all "+E+"ms linear",opacity:0}),setTimeout(function(){r.remove(),R()},E)},E)):setTimeout(R,E)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var g=function(){setTimeout(function(){!r.status||(r.trickle(),g())},n.trickleSpeed)};return n.trickle&&g(),this},r.done=function(g){return!g&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(g){var y=r.status;return y?(typeof g!="number"&&(g=(1-y)*a(Math.random()*y,.1,.95)),y=a(y+g,0,.994),r.set(y)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var g=0,y=0;r.promise=function(w){return!w||w.state()==="resolved"?this:(y===0&&r.start(),g++,y++,w.always(function(){y--,y===0?(g=0,r.done()):r.set((g-y)/g)}),this)}}(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var y=document.createElement("div");y.id="nprogress",y.innerHTML=n.template;var w=y.querySelector(n.barSelector),_=g?"-100":o(r.status||0),E=document.querySelector(n.parent),z;return c(w,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),n.showSpinner||(z=y.querySelector(n.spinnerSelector),z&&x(z)),E!=document.body&&d(E,"nprogress-custom-parent"),E.appendChild(y),y},r.remove=function(){m(document.documentElement,"nprogress-busy"),m(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&x(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,y="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return y+"Perspective"in g?"translate3d":y+"Transform"in g?"translate":"margin"};function a(g,y,w){return gw?w:g}function o(g){return(-1+g)*100}function s(g,y,w){var _;return n.positionUsing==="translate3d"?_={transform:"translate3d("+o(g)+"%,0,0)"}:n.positionUsing==="translate"?_={transform:"translate("+o(g)+"%,0)"}:_={"margin-left":o(g)+"%"},_.transition="all "+y+"ms "+w,_}var l=function(){var g=[];function y(){var w=g.shift();w&&w(y)}return function(w){g.push(w),g.length==1&&y()}}(),c=function(){var g=["Webkit","O","Moz","ms"],y={};function w(R){return R.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function($,H){return H.toUpperCase()})}function _(R){var $=document.body.style;if(R in $)return R;for(var H=g.length,M=R.charAt(0).toUpperCase()+R.slice(1),I;H--;)if(I=g[H]+M,I in $)return I;return R}function E(R){return R=w(R),y[R]||(y[R]=_(R))}function z(R,$,H){$=E($),R.style[$]=H}return function(R,$){var H=arguments,M,I;if(H.length==2)for(M in $)I=$[M],I!==void 0&&$.hasOwnProperty(M)&&z(R,M,I);else z(R,H[1],H[2])}}();function u(g,y){var w=typeof g=="string"?g:b(g);return w.indexOf(" "+y+" ")>=0}function d(g,y){var w=b(g),_=w+y;u(w,y)||(g.className=_.substring(1))}function m(g,y){var w=b(g),_;!u(g,y)||(_=w.replace(" "+y+" "," "),g.className=_.substring(1,_.length-1))}function b(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function x(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})})(nprogress$1);var NProgress=nprogress$1.exports,nprogress=()=>{router.beforeEach(()=>{NProgress.start()}),router.afterEach(()=>{NProgress.done()})},__glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:nprogress},Symbol.toStringTag,{value:"Module"})),isVue2=!1;/*! + */const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=e=>hasSymbol?Symbol(e):"_vr_"+e,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window!="undefined";function isESModule(e){return e.__esModule||hasSymbol&&e[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(e,t){const r={};for(const n in t){const a=t[n];r[n]=Array.isArray(a)?a.map(e):e(a)}return r}const noop$1=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,r="/"){let n,a={},o="",s="";const l=t.indexOf("?"),c=t.indexOf("#",l>-1?l:0);return l>-1&&(n=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),a=e(o)),c>-1&&(n=n||t.slice(0,c),s=t.slice(c,t.length)),n=resolveRelativePath(n!=null?n:t,r),{fullPath:n+(o&&"?")+o+s,path:n,query:a,hash:s}}function stringifyURL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function stripBase(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function isSameRouteLocation(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&isSameRouteRecord(t.matched[n],r.matched[a])&&isSameRouteLocationParams(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!isSameRouteLocationParamsValue(e[r],t[r]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return Array.isArray(e)?isEquivalentArray(e,t):Array.isArray(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let a=r.length-1,o,s;for(o=0;o({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=getElementPosition(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:r,search:n,hash:a}=t,o=e.indexOf("#");if(o>-1){let l=a.includes(e.slice(o))?e.slice(o).length:1,c=a.slice(l);return c[0]!=="/"&&(c="/"+c),stripBase(c,"")}return stripBase(r,e)+n+a}function useHistoryListeners(e,t,r,n){let a=[],o=[],s=null;const l=({state:b})=>{const x=createCurrentLocation(e,location),g=r.value,y=t.value;let w=0;if(b){if(r.value=x,t.value=b,s&&s===g){s=null;return}w=y?b.position-y.position:0}else n(x);a.forEach(k=>{k(r.value,g,{delta:w,type:NavigationType.pop,direction:w?w>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function c(){s=r.value}function u(b){a.push(b);const x=()=>{const g=a.indexOf(b);g>-1&&a.splice(g,1)};return o.push(x),x}function d(){const{history:b}=window;!b.state||b.replaceState(assign$1({},b.state,{scroll:computeScrollPosition()}),"")}function m(){for(const b of o)b();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:m}}function buildState(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:r}=window,n={value:createCurrentLocation(e,r)},a={value:t.state};a.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,d){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+c:createBaseLocation()+e+c;try{t[d?"replaceState":"pushState"](u,"",b),a.value=u}catch(x){console.error(x),r[d?"replace":"assign"](b)}}function s(c,u){const d=assign$1({},t.state,buildState(a.value.back,c,a.value.forward,!0),u,{position:a.value.position});o(c,d,!0),n.value=c}function l(c,u){const d=assign$1({},a.value,t.state,{forward:c,scroll:computeScrollPosition()});o(d.current,d,!0);const m=assign$1({},buildState(n.value,c,null),{position:d.position+1},u);o(c,m,!1),n.value=c}return{location:n,state:a,push:l,replace:s}}function createWebHistory(e){e=normalizeBase(e);const t=useHistoryStateNavigation(e),r=useHistoryListeners(e,t.state,t.location,t.replace);function n(o,s=!0){s||r.pauseListeners(),history.go(o)}const a=assign$1({location:"",base:e,go:n,createHref:createHref.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function isRouteLocation(e){return typeof e=="string"||e&&typeof e=="object"}function isRouteName(e){return typeof e=="string"||typeof e=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(e,t){return assign$1(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(t==null||!!(e.type&t))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const r=assign$1({},BASE_PATH_PARSER_OPTIONS,t),n=[];let a=r.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let m=0;m1&&(d.endsWith("/")?d=d.slice(0,-1):m=!0);else throw new Error(`Missing required param "${g}"`);d+=_}}return d}return{re:s,score:n,keys:o,parse:l,stringify:c}}function compareScoreArray(e,t){let r=0;for(;rt.length?t.length===1&&t[0]===40+40?1:-1:0}function comparePathParserScore(e,t){let r=0;const n=e.score,a=t.score;for(;r0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if(e==="/")return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${u}": ${x}`)}let r=0,n=r;const a=[];let o;function s(){o&&a.push(o),o=[]}let l=0,c,u="",d="";function m(){!u||(r===0?o.push({type:0,value:u}):r===1||r===2||r===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function b(){u+=c}for(;l{s(_)}:noop$1}function s(d){if(isRouteName(d)){const m=n.get(d);m&&(n.delete(d),r.splice(r.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=r.indexOf(d);m>-1&&(r.splice(m,1),d.record.name&&n.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function l(){return r}function c(d){let m=0;for(;m=0&&(d.record.path!==r[m].record.path||!isRecordChildOf(d,r[m]));)m++;r.splice(m,0,d),d.record.name&&!isAliasRecord(d)&&n.set(d.record.name,d)}function u(d,m){let b,x={},g,y;if("name"in d&&d.name){if(b=n.get(d.name),!b)throw createRouterError(1,{location:d});y=b.record.name,x=assign$1(paramsFromLocation(m.params,b.keys.filter(_=>!_.optional).map(_=>_.name)),d.params),g=b.stringify(x)}else if("path"in d)g=d.path,b=r.find(_=>_.re.test(g)),b&&(x=b.parse(g),y=b.record.name);else{if(b=m.name?n.get(m.name):r.find(_=>_.re.test(m.path)),!b)throw createRouterError(1,{location:d,currentLocation:m});y=b.record.name,x=assign$1({},m.params,d.params),g=b.stringify(x)}const w=[];let k=b;for(;k;)w.unshift(k.record),k=k.parent;return{name:y,path:g,params:x,matched:w,meta:mergeMetaFields(w)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:s,getRoutes:l,getRecordMatcher:a}}function paramsFromLocation(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function normalizeRecordProps(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce((t,r)=>assign$1(t,r.meta),{})}function mergeOptions(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function isRecordChildOf(e,t){return t.children.some(r=>r===e||isRecordChildOf(e,r))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return e==null?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function parseQuery(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&encodeQueryValue(o)):[n&&encodeQueryValue(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function normalizeQuery(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}function useCallbacks(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function guardToPromiseFn(e,t,r,n,a){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const c=m=>{m===!1?l(createRouterError(4,{from:r,to:t})):m instanceof Error?l(m):isRouteLocation(m)?l(createRouterError(2,{from:t,to:m})):(o&&n.enterCallbacks[a]===o&&typeof m=="function"&&o.push(m),s())},u=e.call(n&&n.instances[a],t,r,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(m=>l(m))})}function extractComponentsGuards(e,t,r,n){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(isRouteComponent(l)){const u=(l.__vccOpts||l)[t];u&&a.push(guardToPromiseFn(u,r,n,o,s))}else{let c=l();a.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const d=isESModule(u)?u.default:u;o.components[s]=d;const b=(d.__vccOpts||d)[t];return b&&guardToPromiseFn(b,r,n,o,s)()}))}}return a}function isRouteComponent(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){const t=inject(routerKey),r=inject(routeLocationKey),n=computed(()=>t.resolve(unref(e.to))),a=computed(()=>{const{matched:c}=n.value,{length:u}=c,d=c[u-1],m=r.matched;if(!d||!m.length)return-1;const b=m.findIndex(isSameRouteRecord.bind(null,d));if(b>-1)return b;const x=getOriginalPath(c[u-2]);return u>1&&getOriginalPath(d)===x&&m[m.length-1].path!==x?m.findIndex(isSameRouteRecord.bind(null,c[u-2])):b}),o=computed(()=>a.value>-1&&includesParams(r.params,n.value.params)),s=computed(()=>a.value>-1&&a.value===r.matched.length-1&&isSameRouteLocationParams(r.params,n.value.params));function l(c={}){return guardEvent(c)?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$1):Promise.resolve()}return{route:n,href:computed(()=>n.value.href),isActive:o,isExactActive:s,navigate:l}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(e,{slots:t}){const r=reactive(useLink(e)),{options:n}=inject(routerKey),a=computed(()=>({[getLinkClass(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[getLinkClass(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&t.default(r);return e.custom?o:h("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},o)}}}),RouterLink=RouterLinkImpl;function guardEvent(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 includesParams(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Array.isArray(a)||a.length!==n.length||n.some((o,s)=>o!==a[s]))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,r)=>e!=null?e:t!=null?t:r,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=inject(routerViewLocationKey),a=computed(()=>e.route||n.value),o=inject(viewDepthKey,0),s=computed(()=>a.value.matched[o]);provide(viewDepthKey,o+1),provide(matchedRouteKey,s),provide(routerViewLocationKey,a);const l=ref();return watch(()=>[l.value,s.value,e.name],([c,u,d],[m,b,x])=>{u&&(u.instances[d]=c,b&&b!==u&&c&&c===m&&(u.leaveGuards.size||(u.leaveGuards=b.leaveGuards),u.updateGuards.size||(u.updateGuards=b.updateGuards))),c&&u&&(!b||!isSameRouteRecord(u,b)||!m)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=a.value,u=s.value,d=u&&u.components[e.name],m=e.name;if(!d)return normalizeSlot(r.default,{Component:d,route:c});const b=u.props[e.name],x=b?b===!0?c.params:typeof b=="function"?b(c):b:null,y=h(d,assign$1({},x,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(u.instances[m]=null)},ref:l}));return normalizeSlot(r.default,{Component:y,route:c})||y}}});function normalizeSlot(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),r=e.parseQuery||parseQuery,n=e.stringifyQuery||stringifyQuery,a=e.history,o=useCallbacks(),s=useCallbacks(),l=useCallbacks(),c=shallowRef(START_LOCATION_NORMALIZED);let u=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=applyToParams.bind(null,F=>""+F),m=applyToParams.bind(null,encodeParam),b=applyToParams.bind(null,decode);function x(F,K){let q,J;return isRouteName(F)?(q=t.getRecordMatcher(F),J=K):J=F,t.addRoute(J,q)}function g(F){const K=t.getRecordMatcher(F);K&&t.removeRoute(K)}function y(){return t.getRoutes().map(F=>F.record)}function w(F){return!!t.getRecordMatcher(F)}function k(F,K){if(K=assign$1({},K||c.value),typeof F=="string"){const ue=parseURL(r,F,K.path),M=t.resolve({path:ue.path},K),A=a.createHref(ue.fullPath);return assign$1(ue,M,{params:b(M.params),hash:decode(ue.hash),redirectedFrom:void 0,href:A})}let q;if("path"in F)q=assign$1({},F,{path:parseURL(r,F.path,K.path).path});else{const ue=assign$1({},F.params);for(const M in ue)ue[M]==null&&delete ue[M];q=assign$1({},F,{params:m(F.params)}),K.params=m(K.params)}const J=t.resolve(q,K),pe=F.hash||"";J.params=d(b(J.params));const he=stringifyURL(n,assign$1({},F,{hash:encodeHash(pe),path:J.path})),ce=a.createHref(he);return assign$1({fullPath:he,hash:pe,query:n===stringifyQuery?normalizeQuery(F.query):F.query||{}},J,{redirectedFrom:void 0,href:ce})}function _(F){return typeof F=="string"?parseURL(r,F,c.value.path):assign$1({},F)}function $(F,K){if(u!==F)return createRouterError(8,{from:K,to:F})}function S(F){return O(F)}function L(F){return S(assign$1(_(F),{replace:!0}))}function V(F){const K=F.matched[F.matched.length-1];if(K&&K.redirect){const{redirect:q}=K;let J=typeof q=="function"?q(F):q;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=_(J):{path:J},J.params={}),assign$1({query:F.query,hash:F.hash,params:F.params},J)}}function O(F,K){const q=u=k(F),J=c.value,pe=F.state,he=F.force,ce=F.replace===!0,ue=V(q);if(ue)return O(assign$1(_(ue),{state:pe,force:he,replace:ce}),K||q);const M=q;M.redirectedFrom=K;let A;return!he&&isSameRouteLocation(n,J,q)&&(A=createRouterError(16,{to:M,from:J}),xe(J,J,!0,!1)),(A?Promise.resolve(A):I(M,J)).catch(H=>isNavigationFailure(H)?isNavigationFailure(H,2)?H:ye(H):fe(H,M,J)).then(H=>{if(H){if(isNavigationFailure(H,2))return O(assign$1(_(H.to),{state:pe,force:he,replace:ce}),K||M)}else H=C(M,J,!0,ce,pe);return B(M,J,H),H})}function T(F,K){const q=$(F,K);return q?Promise.reject(q):Promise.resolve()}function I(F,K){let q;const[J,pe,he]=extractChangingRecords(F,K);q=extractComponentsGuards(J.reverse(),"beforeRouteLeave",F,K);for(const ue of J)ue.leaveGuards.forEach(M=>{q.push(guardToPromiseFn(M,F,K))});const ce=T.bind(null,F,K);return q.push(ce),runGuardQueue(q).then(()=>{q=[];for(const ue of o.list())q.push(guardToPromiseFn(ue,F,K));return q.push(ce),runGuardQueue(q)}).then(()=>{q=extractComponentsGuards(pe,"beforeRouteUpdate",F,K);for(const ue of pe)ue.updateGuards.forEach(M=>{q.push(guardToPromiseFn(M,F,K))});return q.push(ce),runGuardQueue(q)}).then(()=>{q=[];for(const ue of F.matched)if(ue.beforeEnter&&!K.matched.includes(ue))if(Array.isArray(ue.beforeEnter))for(const M of ue.beforeEnter)q.push(guardToPromiseFn(M,F,K));else q.push(guardToPromiseFn(ue.beforeEnter,F,K));return q.push(ce),runGuardQueue(q)}).then(()=>(F.matched.forEach(ue=>ue.enterCallbacks={}),q=extractComponentsGuards(he,"beforeRouteEnter",F,K),q.push(ce),runGuardQueue(q))).then(()=>{q=[];for(const ue of s.list())q.push(guardToPromiseFn(ue,F,K));return q.push(ce),runGuardQueue(q)}).catch(ue=>isNavigationFailure(ue,8)?ue:Promise.reject(ue))}function B(F,K,q){for(const J of l.list())J(F,K,q)}function C(F,K,q,J,pe){const he=$(F,K);if(he)return he;const ce=K===START_LOCATION_NORMALIZED,ue=isBrowser?history.state:{};q&&(J||ce?a.replace(F.fullPath,assign$1({scroll:ce&&ue&&ue.scroll},pe)):a.push(F.fullPath,pe)),c.value=F,xe(F,K,q,ce),ye()}let P;function W(){P||(P=a.listen((F,K,q)=>{const J=k(F),pe=V(J);if(pe){O(assign$1(pe,{replace:!0}),J).catch(noop$1);return}u=J;const he=c.value;isBrowser&&saveScrollPosition(getScrollKey(he.fullPath,q.delta),computeScrollPosition()),I(J,he).catch(ce=>isNavigationFailure(ce,12)?ce:isNavigationFailure(ce,2)?(O(ce.to,J).then(ue=>{isNavigationFailure(ue,20)&&!q.delta&&q.type===NavigationType.pop&&a.go(-1,!1)}).catch(noop$1),Promise.reject()):(q.delta&&a.go(-q.delta,!1),fe(ce,J,he))).then(ce=>{ce=ce||C(J,he,!1),ce&&(q.delta?a.go(-q.delta,!1):q.type===NavigationType.pop&&isNavigationFailure(ce,20)&&a.go(-1,!1)),B(J,he,ce)}).catch(noop$1)}))}let N=useCallbacks(),ie=useCallbacks(),ne;function fe(F,K,q){ye(F);const J=ie.list();return J.length?J.forEach(pe=>pe(F,K,q)):console.error(F),Promise.reject(F)}function de(){return ne&&c.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((F,K)=>{N.add([F,K])})}function ye(F){return ne||(ne=!F,W(),N.list().forEach(([K,q])=>F?q(F):K()),N.reset()),F}function xe(F,K,q,J){const{scrollBehavior:pe}=e;if(!isBrowser||!pe)return Promise.resolve();const he=!q&&getSavedScrollPosition(getScrollKey(F.fullPath,0))||(J||!q)&&history.state&&history.state.scroll||null;return nextTick().then(()=>pe(F,K,he)).then(ce=>ce&&scrollToPosition(ce)).catch(ce=>fe(ce,F,K))}const _e=F=>a.go(F);let Ee;const ke=new Set;return{currentRoute:c,addRoute:x,removeRoute:g,hasRoute:w,getRoutes:y,resolve:k,options:e,push:S,replace:L,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:ie.add,isReady:de,install(F){const K=this;F.component("RouterLink",RouterLink),F.component("RouterView",RouterView),F.config.globalProperties.$router=K,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(c)}),isBrowser&&!Ee&&c.value===START_LOCATION_NORMALIZED&&(Ee=!0,S(a.location).catch(pe=>{}));const q={};for(const pe in START_LOCATION_NORMALIZED)q[pe]=computed(()=>c.value[pe]);F.provide(routerKey,K),F.provide(routeLocationKey,reactive(q)),F.provide(routerViewLocationKey,c);const J=F.unmount;ke.add(F),F.unmount=function(){ke.delete(F),ke.size<1&&(u=START_LOCATION_NORMALIZED,P&&P(),P=null,c.value=START_LOCATION_NORMALIZED,Ee=!1,ne=!1),J()}}}}function runGuardQueue(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function extractChangingRecords(e,t){const r=[],n=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;sisSameRouteRecord(u,l))?n.push(l):r.push(l));const c=e.matched[s];c&&(t.matched.find(u=>isSameRouteRecord(u,c))||a.push(c))}return[r,n,a]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}routes$1.push({path:"/",meta:{layout:"file"},component:()=>__vitePreload(()=>import("./file.59ec637e.js"),["assets/file.59ec637e.js","assets/file.44c1b3cd.css","assets/loading.dd11abc3.css","assets/tag.9021a61b.css","assets/icon.cca102d8.css","assets/table-column.5d9b8d93.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/dialog.0ab1ba1d.js","assets/dialog.731d01ef.css","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.566ad052.js","assets/refs.f6f7d296.js","assets/checkbox.65d5353a.js","assets/checkbox.74f2ee5a.css","assets/index.88f36c37.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/card.d6fbde4d.js","assets/card.7b41c195.css","assets/alert.b0fac511.js","assets/alert.220a30c1.css","assets/common.72335e7c.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/SvgIcon.eefd5347.js","assets/useFileUpload.72c71760.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/validator.b1ae6965.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/isEqual.2263846a.js","assets/image-viewer.ed2baaff.js","assets/image-viewer.856a8939.css","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/route-block.9b0645f8.js"])},{path:"/:storageKey/:fullpath(.*)*",meta:{layout:"file"},props:!0,component:()=>__vitePreload(()=>import("./file.59ec637e.js"),["assets/file.59ec637e.js","assets/file.44c1b3cd.css","assets/loading.dd11abc3.css","assets/tag.9021a61b.css","assets/icon.cca102d8.css","assets/table-column.5d9b8d93.css","assets/button.cca160de.css","assets/input.c3618236.css","assets/base.4ef7f45b.js","assets/base.ef3e45d0.css","assets/tooltip.f118fcb0.js","assets/popper.718d36e0.js","assets/popper.e5c0055c.css","assets/request.e2daed10.js","assets/focus-trap.4cfde4b4.js","assets/event.3ec63147.js","assets/dialog.0ab1ba1d.js","assets/dialog.731d01ef.css","assets/index.d46124aa.js","assets/scroll.90c07eee.js","assets/overlay.533d94fc.js","assets/overlay.dd389659.css","assets/event.776e7e11.js","assets/index.566ad052.js","assets/refs.f6f7d296.js","assets/checkbox.65d5353a.js","assets/checkbox.74f2ee5a.css","assets/index.88f36c37.js","assets/debounce.014e7b6e.js","assets/scrollbar.83fe9165.js","assets/scrollbar.193d2636.css","assets/card.d6fbde4d.js","assets/card.7b41c195.css","assets/alert.b0fac511.js","assets/alert.220a30c1.css","assets/common.72335e7c.js","assets/plugin-vue_export-helper.21dcd24c.js","assets/SvgIcon.eefd5347.js","assets/useFileUpload.72c71760.js","assets/index.439070da.js","assets/index.da7dbe5d.js","assets/validator.b1ae6965.js","assets/index.e7e80979.js","assets/directive.378eb0e0.js","assets/form-item.2dea3b0a.js","assets/form-item.4ffcf52c.css","assets/index.5cf4e3bb.js","assets/isEqual.2263846a.js","assets/image-viewer.ed2baaff.js","assets/image-viewer.856a8939.css","assets/vue3-clipboard.esm-bundler.34366eba.js","assets/route-block.9b0645f8.js"])});let routes=setupLayouts(routes$1);routes.push({path:"/admin",redirect:"/admin/site-setting"});const router=createRouter({routes,history:createWebHistory()});var router$1=e=>e.use(router),__glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,router,default:router$1},Symbol.toStringTag,{value:"Module"})),nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(r,n){e.exports=n()})(commonjsGlobal,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};r.configure=function(g){var y,w;for(y in g)w=g[y],w!==void 0&&g.hasOwnProperty(y)&&(n[y]=w);return this},r.status=null,r.set=function(g){var y=r.isStarted();g=a(g,n.minimum,1),r.status=g===1?null:g;var w=r.render(!y),k=w.querySelector(n.barSelector),_=n.speed,$=n.easing;return w.offsetWidth,l(function(S){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),c(k,s(g,_,$)),g===1?(c(w,{transition:"none",opacity:1}),w.offsetWidth,setTimeout(function(){c(w,{transition:"all "+_+"ms linear",opacity:0}),setTimeout(function(){r.remove(),S()},_)},_)):setTimeout(S,_)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var g=function(){setTimeout(function(){!r.status||(r.trickle(),g())},n.trickleSpeed)};return n.trickle&&g(),this},r.done=function(g){return!g&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(g){var y=r.status;return y?(typeof g!="number"&&(g=(1-y)*a(Math.random()*y,.1,.95)),y=a(y+g,0,.994),r.set(y)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var g=0,y=0;r.promise=function(w){return!w||w.state()==="resolved"?this:(y===0&&r.start(),g++,y++,w.always(function(){y--,y===0?(g=0,r.done()):r.set((g-y)/g)}),this)}}(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var y=document.createElement("div");y.id="nprogress",y.innerHTML=n.template;var w=y.querySelector(n.barSelector),k=g?"-100":o(r.status||0),_=document.querySelector(n.parent),$;return c(w,{transition:"all 0 linear",transform:"translate3d("+k+"%,0,0)"}),n.showSpinner||($=y.querySelector(n.spinnerSelector),$&&x($)),_!=document.body&&d(_,"nprogress-custom-parent"),_.appendChild(y),y},r.remove=function(){m(document.documentElement,"nprogress-busy"),m(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&x(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,y="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return y+"Perspective"in g?"translate3d":y+"Transform"in g?"translate":"margin"};function a(g,y,w){return gw?w:g}function o(g){return(-1+g)*100}function s(g,y,w){var k;return n.positionUsing==="translate3d"?k={transform:"translate3d("+o(g)+"%,0,0)"}:n.positionUsing==="translate"?k={transform:"translate("+o(g)+"%,0)"}:k={"margin-left":o(g)+"%"},k.transition="all "+y+"ms "+w,k}var l=function(){var g=[];function y(){var w=g.shift();w&&w(y)}return function(w){g.push(w),g.length==1&&y()}}(),c=function(){var g=["Webkit","O","Moz","ms"],y={};function w(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(L,V){return V.toUpperCase()})}function k(S){var L=document.body.style;if(S in L)return S;for(var V=g.length,O=S.charAt(0).toUpperCase()+S.slice(1),T;V--;)if(T=g[V]+O,T in L)return T;return S}function _(S){return S=w(S),y[S]||(y[S]=k(S))}function $(S,L,V){L=_(L),S.style[L]=V}return function(S,L){var V=arguments,O,T;if(V.length==2)for(O in L)T=L[O],T!==void 0&&L.hasOwnProperty(O)&&$(S,O,T);else $(S,V[1],V[2])}}();function u(g,y){var w=typeof g=="string"?g:b(g);return w.indexOf(" "+y+" ")>=0}function d(g,y){var w=b(g),k=w+y;u(w,y)||(g.className=k.substring(1))}function m(g,y){var w=b(g),k;!u(g,y)||(k=w.replace(" "+y+" "," "),g.className=k.substring(1,k.length-1))}function b(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function x(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})})(nprogress$1);var NProgress=nprogress$1.exports,nprogress=()=>{router.beforeEach(()=>{NProgress.start()}),router.afterEach(()=>{NProgress.done()})},__glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:nprogress},Symbol.toStringTag,{value:"Module"})),isVue2=!1;/*! * pinia v2.0.14 * (c) 2022 Eduardo San Martin Morote * @license MIT - */let activePinia;const setActivePinia=e=>activePinia=e,piniaSymbol=Symbol();function isPlainObject$2(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var MutationType;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const e=effectScope(!0),t=e.run(()=>ref({}));let r=[],n=[];const a=markRaw({install(o){setActivePinia(a),a._a=o,o.provide(piniaSymbol,a),o.config.globalProperties.$pinia=a,n.forEach(s=>r.push(s)),n=[]},use(o){return!this._a&&!isVue2?n.push(o):r.push(o),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return a}const noop=()=>{};function addSubscription(e,t,r,n=noop){e.push(t);const a=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!r&&getCurrentInstance()&&onUnmounted(a),a}function triggerSubscriptions(e,...t){e.slice().forEach(r=>{r(...t)})}function mergeReactiveObjects(e,t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],a=e[r];isPlainObject$2(a)&&isPlainObject$2(n)&&e.hasOwnProperty(r)&&!isRef(n)&&!isReactive(n)?e[r]=mergeReactiveObjects(a,n):e[r]=n}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject$2(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(e){return!!(isRef(e)&&e.effect)}function createOptionsStore(e,t,r,n){const{state:a,actions:o,getters:s}=t,l=r.state.value[e];let c;function u(){l||(r.state.value[e]=a?a():{});const d=toRefs(r.state.value[e]);return assign(d,o,Object.keys(s||{}).reduce((m,b)=>(m[b]=markRaw(computed(()=>{setActivePinia(r);const x=r._s.get(e);return s[b].call(x,x)})),m),{}))}return c=createSetupStore(e,u,t,r,n,!0),c.$reset=function(){const m=a?a():{};this.$patch(b=>{assign(b,m)})},c}function createSetupStore(e,t,r={},n,a,o){let s;const l=assign({actions:{}},r),c={deep:!0};let u,d,m=markRaw([]),b=markRaw([]),x;const g=n.state.value[e];!o&&!g&&(n.state.value[e]={}),ref({});let y;function w(M){let I;u=d=!1,typeof M=="function"?(M(n.state.value[e]),I={type:MutationType.patchFunction,storeId:e,events:x}):(mergeReactiveObjects(n.state.value[e],M),I={type:MutationType.patchObject,payload:M,storeId:e,events:x});const j=y=Symbol();nextTick().then(()=>{y===j&&(u=!0)}),d=!0,triggerSubscriptions(m,I,n.state.value[e])}const _=noop;function E(){s.stop(),m=[],b=[],n._s.delete(e)}function z(M,I){return function(){setActivePinia(n);const j=Array.from(arguments),N=[],T=[];function Y(ue){N.push(ue)}function J(ue){T.push(ue)}triggerSubscriptions(b,{args:j,name:M,store:$,after:Y,onError:J});let X;try{X=I.apply(this&&this.$id===e?this:$,j)}catch(ue){throw triggerSubscriptions(T,ue),ue}return X instanceof Promise?X.then(ue=>(triggerSubscriptions(N,ue),ue)).catch(ue=>(triggerSubscriptions(T,ue),Promise.reject(ue))):(triggerSubscriptions(N,X),X)}}const R={_p:n,$id:e,$onAction:addSubscription.bind(null,b),$patch:w,$reset:_,$subscribe(M,I={}){const j=addSubscription(m,M,I.detached,()=>N()),N=s.run(()=>watch(()=>n.state.value[e],T=>{(I.flush==="sync"?d:u)&&M({storeId:e,type:MutationType.direct,events:x},T)},assign({},c,I)));return j},$dispose:E},$=reactive(assign({},R));n._s.set(e,$);const H=n._e.run(()=>(s=effectScope(),s.run(()=>t())));for(const M in H){const I=H[M];if(isRef(I)&&!isComputed(I)||isReactive(I))o||(g&&shouldHydrate(I)&&(isRef(I)?I.value=g[M]:mergeReactiveObjects(I,g[M])),n.state.value[e][M]=I);else if(typeof I=="function"){const j=z(M,I);H[M]=j,l.actions[M]=I}}return assign($,H),assign(toRaw($),H),Object.defineProperty($,"$state",{get:()=>n.state.value[e],set:M=>{w(I=>{assign(I,M)})}}),n._p.forEach(M=>{assign($,s.run(()=>M({store:$,app:n._a,pinia:n,options:l})))}),g&&o&&r.hydrate&&r.hydrate($.$state,g),u=!0,d=!0,$}function defineStore(e,t,r){let n,a;const o=typeof t=="function";typeof e=="string"?(n=e,a=o?r:t):(a=e,n=e.id);function s(l,c){const u=getCurrentInstance();return l=l||u&&inject(piniaSymbol),l&&setActivePinia(l),l=activePinia,l._s.has(n)||(o?createSetupStore(n,t,a,l):createOptionsStore(n,a,l)),l._s.get(n)}return s.$id=n,s}var pinia=e=>e.use(createPinia()),__glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:pinia},Symbol.toStringTag,{value:"Module"}));if(typeof window!="undefined"){let e=function(){var t=document.body,r=document.getElementById("__svg__icons__dom__");r||(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.style.position="absolute",r.style.width="0",r.style.height="0",r.id="__svg__icons__dom__",r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),r.innerHTML='',t.insertBefore(r,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}var svgIcon=e=>{},__glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:svgIcon},Symbol.toStringTag,{value:"Module"})),__glob_0_8=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const GLOBAL_OPTIONS={},GLOBAL_OPTIONS_PROVIDE_KEY=Symbol("GLOBAL_OPTIONS_PROVIDE_KEY"),setGlobalOptions=e=>{Object.keys(e).forEach(t=>{GLOBAL_OPTIONS[t]=e[t]})},getGlobalOptions=()=>GLOBAL_OPTIONS;defineComponent({name:"RequestConfig",props:{config:{type:Object,required:!0}},setup(e,{slots:t}){const{config:r}=e;return provide(GLOBAL_OPTIONS_PROVIDE_KEY,r),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}});const objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isString$1=e=>toTypeString(e)==="[object String]",isPlainObject$1=e=>toTypeString(e)==="[object Object]",isObject$1=e=>e!==null&&typeof e=="object",isPromise=e=>isObject$1(e)&&isFunction$1(e.then)&&isFunction$1(e.catch),isFunction$1=e=>e instanceof Function,isNil=e=>e==null,isServer=typeof window=="undefined",isDocumentVisibility=()=>{var e,t;return!isServer&&((e=window)===null||e===void 0||(t=e.document)===null||t===void 0?void 0:t.visibilityState)==="visible"},isOnline=()=>{var e,t,r;return(e=!isServer&&((t=window)===null||t===void 0||(r=t.navigator)===null||r===void 0?void 0:r.onLine))!==null&&e!==void 0?e:!0},unRefObject=e=>{const t={};return Object.keys(e).forEach(r=>{t[r]=unref(e[r])}),t},resolvedPromise=Promise.resolve(null),requestProxy=async(...e)=>{const t=await fetch(...e);if(t.ok)return t.json();throw new Error(t.statusText)};function omit(e,t){const r=Object.assign({},e);for(const n of t)delete r[n];return r}const warning=(e,t=!1)=>{const r=`Warning: [vue-request] ${e}`;if(t)return new Error(r);console.error(r)},limitTrigger=(e,t)=>{let r=!1;return(...n)=>{r||(r=!0,e(...n),setTimeout(()=>{r=!1},t))}};var _window;const FOCUS_LISTENER=new Set,VISIBLE_LISTENER=new Set,RECONNECT_LISTENER=new Set,subscriber=(e,t)=>{let r;switch(e){case"FOCUS_LISTENER":r=FOCUS_LISTENER;break;case"RECONNECT_LISTENER":r=RECONNECT_LISTENER;break;case"VISIBLE_LISTENER":r=VISIBLE_LISTENER;break}if(!r.has(t))return r.add(t),()=>{r.delete(t)}},observer=e=>{e.forEach(t=>{t()})};!isServer&&(_window=window)!==null&&_window!==void 0&&_window.addEventListener&&(window.addEventListener("visibilitychange",()=>{isDocumentVisibility()&&observer(VISIBLE_LISTENER)},!1),window.addEventListener("focus",()=>observer(FOCUS_LISTENER),!1),window.addEventListener("online",()=>observer(RECONNECT_LISTENER),!1));function debounce(e,t,r){let n,a,o,s,l,c,u=0,d=!1,m=!1,b=!0;const x=!t&&t!==0&&typeof window.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,isObject$1(r)&&(d=!!r.leading,m="maxWait"in r,o=m?Math.max(+r.maxWait||0,t):o,b="trailing"in r?!!r.trailing:b);function g(N){const T=n,Y=a;return n=a=void 0,u=N,s=e.apply(Y,T),s}function y(N,T){return x?(window.cancelAnimationFrame(l),window.requestAnimationFrame(N)):setTimeout(N,T)}function w(N){if(x)return window.cancelAnimationFrame(N);clearTimeout(N)}function _(N){return u=N,l=y(R,t),d?g(N):s}function E(N){const T=N-c,Y=N-u,J=t-T;return m?Math.min(J,o-Y):J}function z(N){const T=N-c,Y=N-u;return c===void 0||T>=t||T<0||m&&Y>=o}function R(){const N=Date.now();if(z(N))return $(N);l=y(R,E(N))}function $(N){return l=void 0,b&&n?g(N):(n=a=void 0,s)}function H(){l!==void 0&&w(l),u=0,n=c=a=l=void 0}function M(){return l===void 0?s:$(Date.now())}function I(){return l!==void 0}function j(...N){const T=Date.now(),Y=z(T);if(n=N,a=this,c=T,Y){if(l===void 0)return _(c);if(m)return l=y(R,t),g(c)}return l===void 0&&(l=y(R,t)),s}return j.cancel=H,j.flush=M,j.pending=I,j}function throttle(e,t,r){let n=!0,a=!0;if(typeof e!="function")throw new TypeError("Expected a function");return isObject$1(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),debounce(e,t,{leading:n,trailing:a,maxWait:t})}const setStateBind=(e,t)=>r=>{Object.keys(r).forEach(n=>{e[n].value=r[n]}),t.forEach(n=>n(e))},createQuery=(e,t,r)=>{var n,a,o;const{initialAutoRunFlag:s,initialData:l,loadingDelay:c,pollingInterval:u,debounceInterval:d,debounceOptions:m,throttleInterval:b,throttleOptions:x,pollingWhenHidden:g,pollingWhenOffline:y,errorRetryCount:w,errorRetryInterval:_,stopPollingWhenHiddenOrOffline:E,refreshOnWindowFocus:z,refocusTimespan:R,updateCache:$,formatResult:H,onSuccess:M,onError:I,onBefore:j,onAfter:N}=t,T=ref(0),Y=ref((n=r==null?void 0:r.loading)!==null&&n!==void 0?n:!1),J=ref((a=r==null?void 0:r.data)!==null&&a!==void 0?a:l),X=ref(r==null?void 0:r.error),ue=ref((o=r==null?void 0:r.params)!==null&&o!==void 0?o:[]),ae=setStateBind({loading:Y,data:J,error:X,params:ue},[V=>$(V)]),me=()=>{T.value=0},fe=ref(0),ye=ref(),xe=ref(),_e=ref(),Ee=()=>{ye.value&&ye.value(),_e.value&&_e.value(),xe.value&&xe.value()},ke=()=>{let V;return c&&(V=setTimeout(ae,c,{loading:!0})),()=>V&&clearTimeout(V)},Oe=V=>{if(X.value&&w!==0)return;let Z;if(!isNil(u)&&u>=0)if((g||isDocumentVisibility())&&(y||isOnline()))Z=setTimeout(V,u);else{E.value=!0;return}return()=>Z&&clearTimeout(Z)},F=computed(()=>{if(_)return _;const V=1e3,Z=1,O=9,A=Math.floor(Math.random()*2**Math.min(T.value,O)+Z);return V*A}),W=V=>{let Z;const O=w===-1,A=T.valueZ&&clearTimeout(Z)},U=(...V)=>{ae({loading:!c,params:V}),_e.value=ke(),fe.value+=1;const Z=fe.value;return j==null||j(V),e(...V).then(O=>{if(Z===fe.value){const A=H?H(O):O;return ae({data:A,loading:!1,error:void 0}),M&&M(A,V),me(),A}return resolvedPromise}).catch(O=>(Z===fe.value&&(ae({data:void 0,loading:!1,error:O}),I&&I(O,V),console.error(O)),resolvedPromise)).finally(()=>{Z===fe.value&&(_e.value(),xe.value=W(()=>U(...V)),ye.value=Oe(()=>U(...V)),N==null||N(V))})},Q=!isNil(d)&&debounce(U,d,m),de=!isNil(b)&&throttle(U,b,x),he=(...V)=>(Ee(),!s.value&&Q?(Q(...V),resolvedPromise):de?(de(...V),resolvedPromise):(me(),U(...V))),le=()=>{fe.value+=1,ae({loading:!1}),Q&&Q.cancel(),de&&de.cancel(),Ee()},ce=()=>he(...ue.value),C=V=>{const Z=isFunction$1(V)?V(J.value):V;ae({data:Z})},S=[],P=V=>{V&&S.push(V)},B=()=>{E.value&&(g||isDocumentVisibility())&&(y||isOnline())&&(ce(),E.value=!1)};g||P(subscriber("VISIBLE_LISTENER",B)),y||P(subscriber("RECONNECT_LISTENER",B));const D=limitTrigger(ce,R);return z&&(P(subscriber("VISIBLE_LISTENER",D)),P(subscriber("FOCUS_LISTENER",D))),{loading:Y,data:J,error:X,params:ue,run:he,cancel:le,refresh:ce,mutate:C,unmount:()=>{S.forEach(V=>V())}}},CACHE_MAP=new Map,getCache=e=>{if(isNil(e))return;const t=CACHE_MAP.get(e);if(!!t)return{data:t.data,cacheTime:t.cacheTime}},setCache=(e,t,r)=>{const n=CACHE_MAP.get(e);n!=null&&n.timer&&clearTimeout(n.timer);const a=setTimeout(()=>CACHE_MAP.delete(e),r);CACHE_MAP.set(e,{data:t,timer:a,cacheTime:new Date().getTime()})},QUERY_DEFAULT_KEY="__QUERY_DEFAULT_KEY__";function useAsyncQuery(e,t){const r=inject(GLOBAL_OPTIONS_PROVIDE_KEY,{}),{cacheKey:n,defaultParams:a=[],manual:o=!1,ready:s=ref(!0),refreshDeps:l=[],loadingDelay:c=0,pollingWhenHidden:u=!1,pollingWhenOffline:d=!1,refreshOnWindowFocus:m=!1,refocusTimespan:b=5e3,cacheTime:x=6e5,staleTime:g=0,errorRetryCount:y=0,errorRetryInterval:w=0,queryKey:_,...E}={...getGlobalOptions(),...r,...t},z=ref(!1),R=ref(!1),H={initialAutoRunFlag:R,loadingDelay:c,pollingWhenHidden:u,pollingWhenOffline:d,stopPollingWhenHiddenOrOffline:z,cacheKey:n,errorRetryCount:y,errorRetryInterval:w,refreshOnWindowFocus:m,refocusTimespan:b,updateCache:F=>{var W,U;if(!n)return;const Q=(W=getCache(n))===null||W===void 0?void 0:W.data,de=Q==null?void 0:Q.queries,he=unRefObject(F),le=(U=_==null?void 0:_(...F.params.value))!==null&&U!==void 0?U:QUERY_DEFAULT_KEY;setCache(n,{queries:{...de,[le]:{...de==null?void 0:de[le],...he}},latestQueriesKey:le},x)},...omit(E,["pagination","listKey"])},M=ref(!1),I=ref(),j=ref(),N=ref(),T=reactive({[QUERY_DEFAULT_KEY]:reactive(createQuery(e,H))}),Y=ref(QUERY_DEFAULT_KEY),J=computed(()=>{var F;return(F=T[Y.value])!==null&&F!==void 0?F:{}});if(watch(J,F=>{M.value=F.loading,I.value=F.data,j.value=F.error,N.value=F.params},{immediate:!0,deep:!0}),n){var X;const F=getCache(n);F!=null&&(X=F.data)!==null&&X!==void 0&&X.queries&&(Object.keys(F.data.queries).forEach(W=>{const U=F.data.queries[W];T[W]=reactive(createQuery(e,H,{loading:U.loading,params:U.params,data:U.data,error:U.error}))}),F.data.latestQueriesKey&&(Y.value=F.data.latestQueriesKey))}const ue=ref(),ae=ref(!1),me=(...F)=>{var W;if(!s.value&&!ae.value)return ue.value=F,resolvedPromise;const U=(W=_==null?void 0:_(...F))!==null&&W!==void 0?W:QUERY_DEFAULT_KEY;return T[U]||(T[U]=reactive(createQuery(e,H))),Y.value=U,J.value.run(...F)},fe=()=>{ye(),Y.value=QUERY_DEFAULT_KEY,T[QUERY_DEFAULT_KEY]=reactive(createQuery(e,H))},ye=()=>{Object.keys(T).forEach(F=>{T[F].cancel(),T[F].unmount(),delete T[F]})},xe=()=>J.value.cancel(),_e=()=>J.value.refresh(),Ee=F=>J.value.mutate(F);if(!o){var ke;R.value=!0;const F=getCache(n),W=(ke=F==null?void 0:F.data.queries)!==null&&ke!==void 0?ke:{},U=F&&(g===-1||F.cacheTime+g>new Date().getTime()),Q=Object.keys(W).length>0;U||(Q?Object.keys(T).forEach(de=>{var he;(he=T[de])===null||he===void 0||he.refresh()}):me(...a)),R.value=!1}const Oe=ref();return Oe.value=watch(s,F=>{ae.value=!0,F&&ue.value&&(me(...ue.value),Oe.value())},{flush:"sync"}),l.length&&watch(l,()=>{!o&&J.value.refresh()}),onUnmounted(()=>{ye()}),{loading:M,data:I,error:j,params:N,cancel:xe,refresh:_e,mutate:Ee,run:me,reset:fe,queries:T}}const generateService=e=>(...t)=>{if(isFunction$1(e))return generateService(e(...t))();if(isPromise(e))return e;if(isPlainObject$1(e)){const{url:r,...n}=e;return requestProxy(r,n)}else{if(isString$1(e))return requestProxy(e);throw warning("Unknown service type",!0)}};function useRequest(e,t){const r=generateService(e),{reset:n,run:a,...o}=useAsyncQuery(r,t!=null?t:{}),s=ref(!1);return{reload:async()=>{const{defaultParams:c=[],manual:u}=t;n(),u||(s.value=!0,await a(...c),s.value=!1)},run:a,reloading:s,...o}}setGlobalOptions({});var vueRequest=e=>{},__glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:vueRequest},Symbol.toStringTag,{value:"Module"}));const modules={"/src/modules/animate.ts":__glob_0_0,"/src/modules/element-plus.ts":__glob_0_1,"/src/modules/i18n.ts":__glob_0_2,"/src/modules/mock.ts":__glob_0_3,"/src/modules/nprogress.ts":__glob_0_4,"/src/modules/pinia.ts":__glob_0_5,"/src/modules/router.ts":__glob_0_6,"/src/modules/svg-icon.ts":__glob_0_7,"/src/modules/title.ts":__glob_0_8,"/src/modules/vue-request.ts":__glob_0_9},useModules=e=>(Object.values(modules).forEach(t=>{typeof t.default=="function"&&t.default(e)}),e);var main=(()=>`:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #aaaaaa;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.prose{--prism-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol}.prose pre{font-weight:500;font-size:1rem}ol{padding-left:15px}.prose blockquote p:first-of-type:before{content:none}.prose pre{color:#495057;background:#f8f9fa}.prose-sm p{font-weight:500}.prose blockquote{margin:0;font-style:normal}.token.comment{font-style:normal;font-size:.5rem}html,body,#app{font-family:inherit;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--el-text-color-primary);overflow:hidden;height:100%;width:100%;margin:0;padding:0}.prose{scroll-behavior:smooth}#nprogress{pointer-events:none}#nprogress .bar{background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-bg-opacity: .75;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}::-webkit-scrollbar{width:11px;height:11px;background-color:#f6f7f8}::-webkit-scrollbar-thumb{background-color:#e9ecef;border-radius:10px}::-webkit-scrollbar-track{background-color:#f6f7f8;border-radius:10px}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.dragging-over *{pointer-events:none}#v3-img-preview-container-id .v-images-wrap .arrow .icon{display:initial}#v3-img-preview-container-id .img-container{height:95vh;top:2.5vh!important}#v3-img-preview-container-id .img-container .img-content{max-width:95%}@media screen and (max-width: 500px){#v3-img-preview-container-id .v3-img-preview-toolbar{bottom:20%}.el-message{min-width:calc(100% - 30px)!important}.el-message-box{width:calc(100% - 30px)!important}.el-dialog{width:90%!important}.el-dialog .el-dialog__body{max-height:80vh;overflow-y:auto;overflow-x:hidden}} -`)(),index=(()=>`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-y-0{top:0px;bottom:0px}.left-0{left:0px}.right-0{right:0px}.top-0\\.5{top:.125rem}.top-0{top:0px}.-top-\\[1\\.5px\\]{top:-1.5px}.top-\\[1px\\]{top:1px}.bottom-0{bottom:0px}.right-5{right:1.25rem}.top-3{top:.75rem}.right-3{right:.75rem}.top-\\[2px\\]{top:2px}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.float-right{float:right}.clear-right{clear:right}.m-12{margin:3rem}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-auto{margin-top:auto;margin-bottom:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-\\[10\\%\\]{margin-left:10%}.mr-4{margin-right:1rem}.mr-1\\.5{margin-right:.375rem}.-mt-10{margin-top:-2.5rem}.-mt-3{margin-top:-.75rem}.mt-6{margin-top:1.5rem}.ml-2{margin-left:.5rem}.mt-10{margin-top:2.5rem}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-3{margin-top:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mr-3{margin-right:.75rem}.mb-3{margin-bottom:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h-80{height:20rem}.h-\\[80vh\\]{height:80vh}.h-12{height:3rem}.h-10{height:2.5rem}.h-5\\/6{height:83.333333%}.h-5{height:1.25rem}.h-20{height:5rem}.h-\\[17rem\\]{height:17rem}.h-1\\/2{height:50%}.h-\\[75vh\\]{height:75vh}.\\!h-full{height:100%!important}.h-\\[40vh\\]{height:40vh}.min-h-screen{min-height:100vh}.min-h-\\[150px\\]{min-height:150px}.w-6{width:1.5rem}.w-auto{width:auto}.w-8{width:2rem}.w-48{width:12rem}.w-\\[80\\%\\]{width:80%}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-16{width:4rem}.w-3\\/4{width:75%}.w-10{width:2.5rem}.w-10\\/12{width:83.333333%}.w-\\[150px\\]{width:150px}.w-\\[90\\%\\]{width:90%}.w-12{width:3rem}.w-5\\/6{width:83.333333%}.w-20{width:5rem}.\\!w-1\\/4{width:25%!important}.\\!w-1\\/2{width:50%!important}.w-1\\/4{width:25%}.max-w-7xl{max-width:80rem}.max-w-screen-lg{max-width:1024px}.max-w-3xl{max-width:48rem}.max-w-2xl{max-width:42rem}.max-w-\\[40\\%\\]{max-width:40%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.gap-6{gap:1.5rem}.gap-0{gap:0px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-x-1\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-20>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t-2{border-top-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-b-blue-300{--tw-border-opacity: 1;border-bottom-color:rgb(147 197 253 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-\\[\\#313136\\]{--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-contain{background-size:contain}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-0{padding:0}.p-6{padding:1.5rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-8{padding:2rem}.p-5{padding:1.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.pt-1{padding-top:.25rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-4{padding-right:1rem}.pb-16{padding-bottom:4rem}.pt-\\[1px\\]{padding-top:1px}.pt-5{padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-5xl{font-size:3rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.text-\\[17px\\]{font-size:17px}.text-4xl{font-size:2.25rem;line-height:2.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.leading-none{line-height:1}.leading-6{line-height:1.5rem}.tracking-wider{letter-spacing:.05em}.tracking-wide{letter-spacing:.025em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.divider{margin-top:.25rem;margin-bottom:.25rem;display:block;height:1px;width:100%;border-top-width:1px}.link{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.empty\\:mt-0:empty{margin-top:0}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:static{position:static}.sm\\:inset-auto{top:auto;right:auto;bottom:auto;left:auto}.sm\\:bottom-10{bottom:2.5rem}.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:ml-6{margin-left:1.5rem}.sm\\:mt-8{margin-top:2rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-px{margin-top:1px}.sm\\:mt-0{margin-top:0}.sm\\:inline{display:inline}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-\\[85vh\\]{height:85vh}.sm\\:h-\\[80vh\\]{height:80vh}.sm\\:w-6\\/12{width:50%}.sm\\:w-36{width:9rem}.sm\\:w-24{width:6rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:justify-center{justify-content:center}.sm\\:gap-4{gap:1rem}.sm\\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.sm\\:space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:rounded-xl{border-radius:.75rem}.sm\\:border-t{border-top-width:1px}.sm\\:border-b-0{border-bottom-width:0px}.sm\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.sm\\:p-10{padding:2.5rem}.sm\\:p-12{padding:3rem}.sm\\:p-4{padding:1rem}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:pr-0{padding-right:0}.sm\\:pb-26{padding-bottom:6.5rem}.sm\\:pt-5{padding-top:1.25rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pb-0{padding-bottom:0}}@media (min-width: 768px){.md\\:block{display:block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-\\[60vh\\]{height:60vh}.md\\:w-5\\/12{width:41.666667%}.md\\:w-48{width:12rem}.md\\:w-36{width:9rem}.md\\:max-w-\\[50\\%\\]{max-width:50%}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:items-stretch{align-items:stretch}.md\\:justify-start{justify-content:flex-start}.md\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}}@media (min-width: 1024px){.lg\\:ml-6{margin-left:1.5rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:h-auto{height:auto}.lg\\:h-\\[70vh\\]{height:70vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-4\\/12{width:33.333333%}.lg\\:w-64{width:16rem}.lg\\:w-48{width:12rem}.lg\\:max-w-\\[60\\%\\]{max-width:60%}.lg\\:flex-none{flex:none}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\\:m-16{margin:4rem}.xl\\:w-1\\/2{width:50%}.xl\\:w-3\\/12{width:25%}.xl\\:w-96{width:24rem}.xl\\:w-80{width:20rem}.xl\\:w-64{width:16rem}.xl\\:max-w-\\[70\\%\\]{max-width:70%}.xl\\:px-0{padding-left:0;padding-right:0}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}} -`)();const routerRef=ref(null),routeRef=ref(null);function useRouterData(e,t){e&&!routerRef.value&&(routerRef.value=e),t&&!routeRef.value&&(routeRef.value=t);const r=computed(()=>{var o;return(o=routeRef.value)==null?void 0:o.params.storageKey}),n=computed(()=>{var o;return(o=routeRef.value)!=null&&o.params.fullpath?"/"+routeRef.value.params.fullpath.join("/"):"/"}),a=computed(()=>{var o;return(o=routeRef.value)==null?void 0:o.params.fullpath});return{routerRef,storageKey:r,currentPath:n,fullpath:a}}const _sfc_main={__name:"App",setup(e){let t=useRouter(),r=useRoute();return useRouterData(t,r),(n,a)=>{const o=resolveComponent("router-view");return openBlock(),createBlock(o)}}};var axios$2={exports:{}},bind$2=function e(t,r){return function(){for(var a=new Array(arguments.length),o=0;o=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},utils$8=utils$e,isURLSameOrigin$1=utils$8.isStandardBrowserEnv()?function e(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){var l=utils$8.isString(s)?a(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function e(){return function(){return!0}}();function Cancel$3(e){this.message=e}Cancel$3.prototype.toString=function e(){return"Cancel"+(this.message?": "+this.message:"")};Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$7=utils$e,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,transitionalDefaults$1=transitional,Cancel$2=Cancel_1,xhr=function e(t){return new Promise(function(n,a){var o=t.data,s=t.headers,l=t.responseType,c;function u(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}utils$7.isFormData(o)&&delete s["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(m+":"+b)}var x=buildFullPath(t.baseURL,t.url);d.open(t.method.toUpperCase(),buildURL$1(x,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function g(){if(!!d){var w="getAllResponseHeaders"in d?parseHeaders(d.getAllResponseHeaders()):null,_=!l||l==="text"||l==="json"?d.responseText:d.response,E={data:_,status:d.status,statusText:d.statusText,headers:w,config:t,request:d};settle(function(R){n(R),u()},function(R){a(R),u()},E),d=null}}if("onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(g)},d.onabort=function(){!d||(a(createError("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){a(createError("Network Error",t,null,d)),d=null},d.ontimeout=function(){var _=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",E=t.transitional||transitionalDefaults$1;t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),a(createError(_,t,E.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},utils$7.isStandardBrowserEnv()){var y=(t.withCredentials||isURLSameOrigin(x))&&t.xsrfCookieName?cookies.read(t.xsrfCookieName):void 0;y&&(s[t.xsrfHeaderName]=y)}"setRequestHeader"in d&&utils$7.forEach(s,function(_,E){typeof o=="undefined"&&E.toLowerCase()==="content-type"?delete s[E]:d.setRequestHeader(E,_)}),utils$7.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),l&&l!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(w){!d||(a(!w||w&&w.type?new Cancel$2("canceled"):w),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),o||(o=null),d.send(o)})},utils$6=utils$e,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,transitionalDefaults=transitional,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!utils$6.isUndefined(e)&&utils$6.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function getDefaultAdapter(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=xhr),e}function stringifySafely(e,t,r){if(utils$6.isString(e))try{return(t||JSON.parse)(e),utils$6.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function e(t,r){return normalizeHeaderName(r,"Accept"),normalizeHeaderName(r,"Content-Type"),utils$6.isFormData(t)||utils$6.isArrayBuffer(t)||utils$6.isBuffer(t)||utils$6.isStream(t)||utils$6.isFile(t)||utils$6.isBlob(t)?t:utils$6.isArrayBufferView(t)?t.buffer:utils$6.isURLSearchParams(t)?(setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):utils$6.isObject(t)||r&&r["Content-Type"]==="application/json"?(setContentTypeIfUnset(r,"application/json"),stringifySafely(t)):t}],transformResponse:[function e(t){var r=this.transitional||defaults$3.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||a&&utils$6.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?enhanceError(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$6.forEach(["delete","get","head"],function e(t){defaults$3.headers[t]={}});utils$6.forEach(["post","put","patch"],function e(t){defaults$3.headers[t]=utils$6.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$5=utils$e,defaults$2=defaults_1,transformData$1=function e(t,r,n){var a=this||defaults$2;return utils$5.forEach(n,function(s){t=s.call(a,t,r)}),t},isCancel$1=function e(t){return!!(t&&t.__CANCEL__)},utils$4=utils$e,transformData=transformData$1,isCancel=isCancel$1,defaults$1=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function e(t){throwIfCancellationRequested(t),t.headers=t.headers||{},t.data=transformData.call(t,t.data,t.headers,t.transformRequest),t.headers=utils$4.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),utils$4.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||defaults$1.adapter;return r(t).then(function(a){return throwIfCancellationRequested(t),a.data=transformData.call(t,a.data,a.headers,t.transformResponse),a},function(a){return isCancel(a)||(throwIfCancellationRequested(t),a&&a.response&&(a.response.data=transformData.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},utils$3=utils$e,mergeConfig$2=function e(t,r){r=r||{};var n={};function a(d,m){return utils$3.isPlainObject(d)&&utils$3.isPlainObject(m)?utils$3.merge(d,m):utils$3.isPlainObject(m)?utils$3.merge({},m):utils$3.isArray(m)?m.slice():m}function o(d){if(utils$3.isUndefined(r[d])){if(!utils$3.isUndefined(t[d]))return a(void 0,t[d])}else return a(t[d],r[d])}function s(d){if(!utils$3.isUndefined(r[d]))return a(void 0,r[d])}function l(d){if(utils$3.isUndefined(r[d])){if(!utils$3.isUndefined(t[d]))return a(void 0,t[d])}else return a(void 0,r[d])}function c(d){if(d in r)return a(t[d],r[d]);if(d in t)return a(void 0,t[d])}var u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c};return utils$3.forEach(Object.keys(t).concat(Object.keys(r)),function(m){var b=u[m]||o,x=b(m);utils$3.isUndefined(x)&&b!==c||(n[m]=x)}),n},data={version:"0.26.1"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};validators$1.transitional=function e(t,r,n){function a(o,s){return"[Axios v"+VERSION+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return function(o,s,l){if(t===!1)throw new Error(a(s," has been removed"+(r?" in "+r:"")));return r&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,l):!0}};function assertOptions(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var o=n[a],s=t[o];if(s){var l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}var validator$1={assertOptions,validators:validators$1},utils$2=utils$e,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function e(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mergeConfig$1(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var a=[],o=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(o=o&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});var s=[];this.interceptors.response.forEach(function(x){s.push(x.fulfilled,x.rejected)});var l;if(!o){var c=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(c,a),c=c.concat(s),l=Promise.resolve(r);c.length;)l=l.then(c.shift(),c.shift());return l}for(var u=r;a.length;){var d=a.shift(),m=a.shift();try{u=d(u)}catch(b){m(b);break}}try{l=dispatchRequest(u)}catch(b){return Promise.reject(b)}for(;s.length;)l=l.then(s.shift(),s.shift());return l};Axios$1.prototype.getUri=function e(t){return t=mergeConfig$1(this.defaults,t),buildURL(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};utils$2.forEach(["delete","get","head","options"],function e(t){Axios$1.prototype[t]=function(r,n){return this.request(mergeConfig$1(n||{},{method:t,url:r,data:(n||{}).data}))}});utils$2.forEach(["post","put","patch"],function e(t){Axios$1.prototype[t]=function(r,n,a){return this.request(mergeConfig$1(a||{},{method:t,url:r,data:n}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;this.promise.then(function(n){if(!!r._listeners){var a,o=r._listeners.length;for(a=0;a({zfileConfig:{baseUrl:"",fileList:{defaultSize:"small",emptyText:"\u6570\u636E\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u4E0A\u4F20\u6216\u6DFB\u52A0\u6587\u4EF6"},router:{mode:"history"},skeleton:{enable:!0,show:"always",size:30},gallery:{column:5,columnSpacing:50,rowSpacing:10,showInfo:!1,showInfoMode:"hover",roundedBorder:!0,showBackTop:!0},imagePreview:{mode:"only",gallery:!0},officePreview:{}}}),actions:{updateZfileConfig(e){this.zfileConfig=e}}}),name="zfile",version="4.0.8",description="ZFile \u6587\u4EF6\u7BA1\u7406",author="Zhao Jun",repository={type:"git",url:"https://github.com/zfile-dev/zfile-vue.git"},license="MIT",scripts={dev:"vite",test:"vitest",build:"vite build","dev:host":"vite --host","dev:open":"vite --open",vis:"set vis=true && vite build",preview:"vite preview","deps:fresh":"npx taze -w",coverage:"vitest --coverage",analysis:"npx windicss-analysis",typecheck:"npx vue-tsc --noEmit","deps:fresh:major":"npx taze major -w","deps:fresh:minor":"npx taze minor -w","deps:fresh:patch":"npx taze patch -w","preview:host":"vite preview --host","preview:open":"vite preview --open","auto:create":"plop --plopfile scripts/create.js","auto:remove":"plop --plopfile scripts/remove.js",tailwind:"tailwindcss build src/styles.css -o public/styles.css",lint:"eslint --ext .ts,.js,.jsx,.vue .","lint:fix":"eslint --fix --ext .ts,.js,.jsx,.vue .",prepare:"husky install"},dependencies={"@element-plus/icons-vue":"^2.0.6","@headlessui/vue":"^1.6.5","@heroicons/vue":"^1.0.6","@kangc/v-md-editor":"^2.3.15","@soerenmartius/vue3-clipboard":"^0.1.2","animate.css":"^4.1.1",aplayer:"^1.10.1",artplayer:"^4.5.2","async-validator":"^4.0.7","beautify-qrcode":"^1.0.3",dayjs:"^1.11.3","element-plus":"^2.2.8","file-saver":"^2.0.5","flv.js":"^1.6.2","github-markdown-css":"^5.1.0","hls.js":"^1.1.5",lazysizes:"^5.3.2",less:"^4.1.3","less-loader":"^10.2.0",marked:"^4.0.17",minimatch:"^5.1.0","monaco-editor":"^0.33.0","path-browserify":"^1.0.1",prismjs:"^1.28.0","script-loader":"^0.7.2",sortablejs:"^1.15.0","v-contextmenu":"^3.0.0","v3-img-preview":"^1.1.16",vue:"^3.2.37","vue-pdf-embed":"^1.1.4",xlsx:"^0.18.5"},devDependencies={"@iconify-json/ep":"^1.1.6","@intlify/vite-plugin-vue-i18n":"^3.4.0","@tailwindcss/line-clamp":"^0.4.0","@types/ityped":"^1.0.1","@types/node":"^17.0.35","@types/nprogress":"^0.2.0","@typescript-eslint/parser":"^5.26.0","@vitejs/plugin-vue":"^2.3.3","@vitejs/plugin-vue-jsx":"^1.3.10","@vueuse/components":"^8.7.5","@vueuse/core":"^8.7.5",autoprefixer:"^10.4.7",axios:"^0.26.1",c8:"^7.11.3",eslint:"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-vue":"^9.0.1","fast-glob":"^3.2.11","fs-extra":"^10.1.0",husky:"^8.0.1",ityped:"^1.0.3","lint-staged":"^12.4.2","local-pkg":"^0.4.1","markdown-it-anchor":"^8.6.4","markdown-it-prism":"^2.2.4",mockjs:"^1.1.0",nprogress:"^0.2.0",pinia:"^2.0.14",plop:"^3.1.1",postcss:"^8.4.14",prettier:"2.6.2","prism-theme-vars":"^0.2.3","rollup-plugin-visualizer":"^5.6.0",sass:"^1.52.3",tailwindcss:"^3.1.4",typescript:"^4.7.4","unplugin-auto-import":"^0.8.7","unplugin-icons":"^0.14.3","unplugin-vue-components":"^0.19.6",vite:"^2.9.13","vite-auto-import-resolvers":"^2.3.0","vite-plugin-compression":"^0.5.1","vite-plugin-inspect":"^0.5.0","vite-plugin-md":"^0.13.1","vite-plugin-mock":"^2.9.6","vite-plugin-pages":"^0.23.0","vite-plugin-removelog":"^0.0.4","vite-plugin-restart":"^0.1.1","vite-plugin-svg-icons":"^2.0.1","vite-plugin-use-modules":"^1.1.0","vite-plugin-vue-meta-layouts":"^0.0.9",vitest:"^0.12.9","vue-i18n":"^9.1.10","vue-request":"^1.2.4","vue-router":"^4.0.16","vue-tsc":"^0.33.9"},pnpm={peerDependencyRules:{ignoreMissing:["rollup","markdown-it","@types/markdown-it"]}},vite={optimizeDeps:{include:["@element-plus/icons-vue","@heroicons/vue/solid","@vueuse/core","axios","element-plus","element-plus/es","element-plus/es/components/button/style/css","element-plus/es/components/form-item/style/css","element-plus/es/components/form/style/css","element-plus/es/components/input/style/css","element-plus/es/components/loading/src/directive","element-plus/es/components/loading/style/css","element-plus/es/components/message-box/style/css","element-plus/es/components/message/style/css","element-plus/es/components/notification/style/css","ityped","mockjs","nprogress","pinia","v-viewer","vite-plugin-mock/es/createProdMockServer","vue","vue-i18n","vue-masonry","vue-request","vue-router"]}};var config={name,version,description,author,repository,license,scripts,dependencies,devDependencies,pnpm,vite,"lint-staged":{"*.{js,jsx,vue}":"eslint --cache --fix"}};const app=useModules(createApp(_sfc_main)),globalConfigStore=useGlobalConfigStore();console.log(` + */let activePinia;const setActivePinia=e=>activePinia=e,piniaSymbol=Symbol();function isPlainObject$2(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var MutationType;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const e=effectScope(!0),t=e.run(()=>ref({}));let r=[],n=[];const a=markRaw({install(o){setActivePinia(a),a._a=o,o.provide(piniaSymbol,a),o.config.globalProperties.$pinia=a,n.forEach(s=>r.push(s)),n=[]},use(o){return!this._a&&!isVue2?n.push(o):r.push(o),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return a}const noop=()=>{};function addSubscription(e,t,r,n=noop){e.push(t);const a=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!r&&getCurrentInstance()&&onUnmounted(a),a}function triggerSubscriptions(e,...t){e.slice().forEach(r=>{r(...t)})}function mergeReactiveObjects(e,t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],a=e[r];isPlainObject$2(a)&&isPlainObject$2(n)&&e.hasOwnProperty(r)&&!isRef(n)&&!isReactive(n)?e[r]=mergeReactiveObjects(a,n):e[r]=n}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject$2(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(e){return!!(isRef(e)&&e.effect)}function createOptionsStore(e,t,r,n){const{state:a,actions:o,getters:s}=t,l=r.state.value[e];let c;function u(){l||(r.state.value[e]=a?a():{});const d=toRefs(r.state.value[e]);return assign(d,o,Object.keys(s||{}).reduce((m,b)=>(m[b]=markRaw(computed(()=>{setActivePinia(r);const x=r._s.get(e);return s[b].call(x,x)})),m),{}))}return c=createSetupStore(e,u,t,r,n,!0),c.$reset=function(){const m=a?a():{};this.$patch(b=>{assign(b,m)})},c}function createSetupStore(e,t,r={},n,a,o){let s;const l=assign({actions:{}},r),c={deep:!0};let u,d,m=markRaw([]),b=markRaw([]),x;const g=n.state.value[e];!o&&!g&&(n.state.value[e]={}),ref({});let y;function w(O){let T;u=d=!1,typeof O=="function"?(O(n.state.value[e]),T={type:MutationType.patchFunction,storeId:e,events:x}):(mergeReactiveObjects(n.state.value[e],O),T={type:MutationType.patchObject,payload:O,storeId:e,events:x});const I=y=Symbol();nextTick().then(()=>{y===I&&(u=!0)}),d=!0,triggerSubscriptions(m,T,n.state.value[e])}const k=noop;function _(){s.stop(),m=[],b=[],n._s.delete(e)}function $(O,T){return function(){setActivePinia(n);const I=Array.from(arguments),B=[],C=[];function P(ie){B.push(ie)}function W(ie){C.push(ie)}triggerSubscriptions(b,{args:I,name:O,store:L,after:P,onError:W});let N;try{N=T.apply(this&&this.$id===e?this:L,I)}catch(ie){throw triggerSubscriptions(C,ie),ie}return N instanceof Promise?N.then(ie=>(triggerSubscriptions(B,ie),ie)).catch(ie=>(triggerSubscriptions(C,ie),Promise.reject(ie))):(triggerSubscriptions(B,N),N)}}const S={_p:n,$id:e,$onAction:addSubscription.bind(null,b),$patch:w,$reset:k,$subscribe(O,T={}){const I=addSubscription(m,O,T.detached,()=>B()),B=s.run(()=>watch(()=>n.state.value[e],C=>{(T.flush==="sync"?d:u)&&O({storeId:e,type:MutationType.direct,events:x},C)},assign({},c,T)));return I},$dispose:_},L=reactive(assign({},S));n._s.set(e,L);const V=n._e.run(()=>(s=effectScope(),s.run(()=>t())));for(const O in V){const T=V[O];if(isRef(T)&&!isComputed(T)||isReactive(T))o||(g&&shouldHydrate(T)&&(isRef(T)?T.value=g[O]:mergeReactiveObjects(T,g[O])),n.state.value[e][O]=T);else if(typeof T=="function"){const I=$(O,T);V[O]=I,l.actions[O]=T}}return assign(L,V),assign(toRaw(L),V),Object.defineProperty(L,"$state",{get:()=>n.state.value[e],set:O=>{w(T=>{assign(T,O)})}}),n._p.forEach(O=>{assign(L,s.run(()=>O({store:L,app:n._a,pinia:n,options:l})))}),g&&o&&r.hydrate&&r.hydrate(L.$state,g),u=!0,d=!0,L}function defineStore(e,t,r){let n,a;const o=typeof t=="function";typeof e=="string"?(n=e,a=o?r:t):(a=e,n=e.id);function s(l,c){const u=getCurrentInstance();return l=l||u&&inject(piniaSymbol),l&&setActivePinia(l),l=activePinia,l._s.has(n)||(o?createSetupStore(n,t,a,l):createOptionsStore(n,a,l)),l._s.get(n)}return s.$id=n,s}var pinia=e=>e.use(createPinia()),__glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:pinia},Symbol.toStringTag,{value:"Module"}));if(typeof window!="undefined"){let e=function(){var t=document.body,r=document.getElementById("__svg__icons__dom__");r||(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.style.position="absolute",r.style.width="0",r.style.height="0",r.id="__svg__icons__dom__",r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),r.innerHTML='',t.insertBefore(r,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}var svgIcon=e=>{},__glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:svgIcon},Symbol.toStringTag,{value:"Module"})),__glob_0_8=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const GLOBAL_OPTIONS={},GLOBAL_OPTIONS_PROVIDE_KEY=Symbol("GLOBAL_OPTIONS_PROVIDE_KEY"),setGlobalOptions=e=>{Object.keys(e).forEach(t=>{GLOBAL_OPTIONS[t]=e[t]})},getGlobalOptions=()=>GLOBAL_OPTIONS;defineComponent({name:"RequestConfig",props:{config:{type:Object,required:!0}},setup(e,{slots:t}){const{config:r}=e;return provide(GLOBAL_OPTIONS_PROVIDE_KEY,r),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}});const objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isString$1=e=>toTypeString(e)==="[object String]",isPlainObject$1=e=>toTypeString(e)==="[object Object]",isObject$1=e=>e!==null&&typeof e=="object",isPromise=e=>isObject$1(e)&&isFunction$1(e.then)&&isFunction$1(e.catch),isFunction$1=e=>e instanceof Function,isNil=e=>e==null,isServer=typeof window=="undefined",isDocumentVisibility=()=>{var e,t;return!isServer&&((e=window)===null||e===void 0||(t=e.document)===null||t===void 0?void 0:t.visibilityState)==="visible"},isOnline=()=>{var e,t,r;return(e=!isServer&&((t=window)===null||t===void 0||(r=t.navigator)===null||r===void 0?void 0:r.onLine))!==null&&e!==void 0?e:!0},unRefObject=e=>{const t={};return Object.keys(e).forEach(r=>{t[r]=unref(e[r])}),t},resolvedPromise=Promise.resolve(null),requestProxy=async(...e)=>{const t=await fetch(...e);if(t.ok)return t.json();throw new Error(t.statusText)};function omit(e,t){const r=Object.assign({},e);for(const n of t)delete r[n];return r}const warning=(e,t=!1)=>{const r=`Warning: [vue-request] ${e}`;if(t)return new Error(r);console.error(r)},limitTrigger=(e,t)=>{let r=!1;return(...n)=>{r||(r=!0,e(...n),setTimeout(()=>{r=!1},t))}};var _window;const FOCUS_LISTENER=new Set,VISIBLE_LISTENER=new Set,RECONNECT_LISTENER=new Set,subscriber=(e,t)=>{let r;switch(e){case"FOCUS_LISTENER":r=FOCUS_LISTENER;break;case"RECONNECT_LISTENER":r=RECONNECT_LISTENER;break;case"VISIBLE_LISTENER":r=VISIBLE_LISTENER;break}if(!r.has(t))return r.add(t),()=>{r.delete(t)}},observer=e=>{e.forEach(t=>{t()})};!isServer&&(_window=window)!==null&&_window!==void 0&&_window.addEventListener&&(window.addEventListener("visibilitychange",()=>{isDocumentVisibility()&&observer(VISIBLE_LISTENER)},!1),window.addEventListener("focus",()=>observer(FOCUS_LISTENER),!1),window.addEventListener("online",()=>observer(RECONNECT_LISTENER),!1));function debounce(e,t,r){let n,a,o,s,l,c,u=0,d=!1,m=!1,b=!0;const x=!t&&t!==0&&typeof window.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,isObject$1(r)&&(d=!!r.leading,m="maxWait"in r,o=m?Math.max(+r.maxWait||0,t):o,b="trailing"in r?!!r.trailing:b);function g(B){const C=n,P=a;return n=a=void 0,u=B,s=e.apply(P,C),s}function y(B,C){return x?(window.cancelAnimationFrame(l),window.requestAnimationFrame(B)):setTimeout(B,C)}function w(B){if(x)return window.cancelAnimationFrame(B);clearTimeout(B)}function k(B){return u=B,l=y(S,t),d?g(B):s}function _(B){const C=B-c,P=B-u,W=t-C;return m?Math.min(W,o-P):W}function $(B){const C=B-c,P=B-u;return c===void 0||C>=t||C<0||m&&P>=o}function S(){const B=Date.now();if($(B))return L(B);l=y(S,_(B))}function L(B){return l=void 0,b&&n?g(B):(n=a=void 0,s)}function V(){l!==void 0&&w(l),u=0,n=c=a=l=void 0}function O(){return l===void 0?s:L(Date.now())}function T(){return l!==void 0}function I(...B){const C=Date.now(),P=$(C);if(n=B,a=this,c=C,P){if(l===void 0)return k(c);if(m)return l=y(S,t),g(c)}return l===void 0&&(l=y(S,t)),s}return I.cancel=V,I.flush=O,I.pending=T,I}function throttle(e,t,r){let n=!0,a=!0;if(typeof e!="function")throw new TypeError("Expected a function");return isObject$1(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),debounce(e,t,{leading:n,trailing:a,maxWait:t})}const setStateBind=(e,t)=>r=>{Object.keys(r).forEach(n=>{e[n].value=r[n]}),t.forEach(n=>n(e))},createQuery=(e,t,r)=>{var n,a,o;const{initialAutoRunFlag:s,initialData:l,loadingDelay:c,pollingInterval:u,debounceInterval:d,debounceOptions:m,throttleInterval:b,throttleOptions:x,pollingWhenHidden:g,pollingWhenOffline:y,errorRetryCount:w,errorRetryInterval:k,stopPollingWhenHiddenOrOffline:_,refreshOnWindowFocus:$,refocusTimespan:S,updateCache:L,formatResult:V,onSuccess:O,onError:T,onBefore:I,onAfter:B}=t,C=ref(0),P=ref((n=r==null?void 0:r.loading)!==null&&n!==void 0?n:!1),W=ref((a=r==null?void 0:r.data)!==null&&a!==void 0?a:l),N=ref(r==null?void 0:r.error),ie=ref((o=r==null?void 0:r.params)!==null&&o!==void 0?o:[]),ne=setStateBind({loading:P,data:W,error:N,params:ie},[U=>L(U)]),fe=()=>{C.value=0},de=ref(0),ye=ref(),xe=ref(),_e=ref(),Ee=()=>{ye.value&&ye.value(),_e.value&&_e.value(),xe.value&&xe.value()},ke=()=>{let U;return c&&(U=setTimeout(ne,c,{loading:!0})),()=>U&&clearTimeout(U)},Oe=U=>{if(N.value&&w!==0)return;let Y;if(!isNil(u)&&u>=0)if((g||isDocumentVisibility())&&(y||isOnline()))Y=setTimeout(U,u);else{_.value=!0;return}return()=>Y&&clearTimeout(Y)},F=computed(()=>{if(k)return k;const U=1e3,Y=1,R=9,z=Math.floor(Math.random()*2**Math.min(C.value,R)+Y);return U*z}),K=U=>{let Y;const R=w===-1,z=C.valueY&&clearTimeout(Y)},q=(...U)=>{ne({loading:!c,params:U}),_e.value=ke(),de.value+=1;const Y=de.value;return I==null||I(U),e(...U).then(R=>{if(Y===de.value){const z=V?V(R):R;return ne({data:z,loading:!1,error:void 0}),O&&O(z,U),fe(),z}return resolvedPromise}).catch(R=>(Y===de.value&&(ne({data:void 0,loading:!1,error:R}),T&&T(R,U),console.error(R)),resolvedPromise)).finally(()=>{Y===de.value&&(_e.value(),xe.value=K(()=>q(...U)),ye.value=Oe(()=>q(...U)),B==null||B(U))})},J=!isNil(d)&&debounce(q,d,m),pe=!isNil(b)&&throttle(q,b,x),he=(...U)=>(Ee(),!s.value&&J?(J(...U),resolvedPromise):pe?(pe(...U),resolvedPromise):(fe(),q(...U))),ce=()=>{de.value+=1,ne({loading:!1}),J&&J.cancel(),pe&&pe.cancel(),Ee()},ue=()=>he(...ie.value),M=U=>{const Y=isFunction$1(U)?U(W.value):U;ne({data:Y})},A=[],H=U=>{U&&A.push(U)},Z=()=>{_.value&&(g||isDocumentVisibility())&&(y||isOnline())&&(ue(),_.value=!1)};g||H(subscriber("VISIBLE_LISTENER",Z)),y||H(subscriber("RECONNECT_LISTENER",Z));const j=limitTrigger(ue,S);return $&&(H(subscriber("VISIBLE_LISTENER",j)),H(subscriber("FOCUS_LISTENER",j))),{loading:P,data:W,error:N,params:ie,run:he,cancel:ce,refresh:ue,mutate:M,unmount:()=>{A.forEach(U=>U())}}},CACHE_MAP=new Map,getCache=e=>{if(isNil(e))return;const t=CACHE_MAP.get(e);if(!!t)return{data:t.data,cacheTime:t.cacheTime}},setCache=(e,t,r)=>{const n=CACHE_MAP.get(e);n!=null&&n.timer&&clearTimeout(n.timer);const a=setTimeout(()=>CACHE_MAP.delete(e),r);CACHE_MAP.set(e,{data:t,timer:a,cacheTime:new Date().getTime()})},QUERY_DEFAULT_KEY="__QUERY_DEFAULT_KEY__";function useAsyncQuery(e,t){const r=inject(GLOBAL_OPTIONS_PROVIDE_KEY,{}),{cacheKey:n,defaultParams:a=[],manual:o=!1,ready:s=ref(!0),refreshDeps:l=[],loadingDelay:c=0,pollingWhenHidden:u=!1,pollingWhenOffline:d=!1,refreshOnWindowFocus:m=!1,refocusTimespan:b=5e3,cacheTime:x=6e5,staleTime:g=0,errorRetryCount:y=0,errorRetryInterval:w=0,queryKey:k,..._}={...getGlobalOptions(),...r,...t},$=ref(!1),S=ref(!1),V={initialAutoRunFlag:S,loadingDelay:c,pollingWhenHidden:u,pollingWhenOffline:d,stopPollingWhenHiddenOrOffline:$,cacheKey:n,errorRetryCount:y,errorRetryInterval:w,refreshOnWindowFocus:m,refocusTimespan:b,updateCache:F=>{var K,q;if(!n)return;const J=(K=getCache(n))===null||K===void 0?void 0:K.data,pe=J==null?void 0:J.queries,he=unRefObject(F),ce=(q=k==null?void 0:k(...F.params.value))!==null&&q!==void 0?q:QUERY_DEFAULT_KEY;setCache(n,{queries:{...pe,[ce]:{...pe==null?void 0:pe[ce],...he}},latestQueriesKey:ce},x)},...omit(_,["pagination","listKey"])},O=ref(!1),T=ref(),I=ref(),B=ref(),C=reactive({[QUERY_DEFAULT_KEY]:reactive(createQuery(e,V))}),P=ref(QUERY_DEFAULT_KEY),W=computed(()=>{var F;return(F=C[P.value])!==null&&F!==void 0?F:{}});if(watch(W,F=>{O.value=F.loading,T.value=F.data,I.value=F.error,B.value=F.params},{immediate:!0,deep:!0}),n){var N;const F=getCache(n);F!=null&&(N=F.data)!==null&&N!==void 0&&N.queries&&(Object.keys(F.data.queries).forEach(K=>{const q=F.data.queries[K];C[K]=reactive(createQuery(e,V,{loading:q.loading,params:q.params,data:q.data,error:q.error}))}),F.data.latestQueriesKey&&(P.value=F.data.latestQueriesKey))}const ie=ref(),ne=ref(!1),fe=(...F)=>{var K;if(!s.value&&!ne.value)return ie.value=F,resolvedPromise;const q=(K=k==null?void 0:k(...F))!==null&&K!==void 0?K:QUERY_DEFAULT_KEY;return C[q]||(C[q]=reactive(createQuery(e,V))),P.value=q,W.value.run(...F)},de=()=>{ye(),P.value=QUERY_DEFAULT_KEY,C[QUERY_DEFAULT_KEY]=reactive(createQuery(e,V))},ye=()=>{Object.keys(C).forEach(F=>{C[F].cancel(),C[F].unmount(),delete C[F]})},xe=()=>W.value.cancel(),_e=()=>W.value.refresh(),Ee=F=>W.value.mutate(F);if(!o){var ke;S.value=!0;const F=getCache(n),K=(ke=F==null?void 0:F.data.queries)!==null&&ke!==void 0?ke:{},q=F&&(g===-1||F.cacheTime+g>new Date().getTime()),J=Object.keys(K).length>0;q||(J?Object.keys(C).forEach(pe=>{var he;(he=C[pe])===null||he===void 0||he.refresh()}):fe(...a)),S.value=!1}const Oe=ref();return Oe.value=watch(s,F=>{ne.value=!0,F&&ie.value&&(fe(...ie.value),Oe.value())},{flush:"sync"}),l.length&&watch(l,()=>{!o&&W.value.refresh()}),onUnmounted(()=>{ye()}),{loading:O,data:T,error:I,params:B,cancel:xe,refresh:_e,mutate:Ee,run:fe,reset:de,queries:C}}const generateService=e=>(...t)=>{if(isFunction$1(e))return generateService(e(...t))();if(isPromise(e))return e;if(isPlainObject$1(e)){const{url:r,...n}=e;return requestProxy(r,n)}else{if(isString$1(e))return requestProxy(e);throw warning("Unknown service type",!0)}};function useRequest(e,t){const r=generateService(e),{reset:n,run:a,...o}=useAsyncQuery(r,t!=null?t:{}),s=ref(!1);return{reload:async()=>{const{defaultParams:c=[],manual:u}=t;n(),u||(s.value=!0,await a(...c),s.value=!1)},run:a,reloading:s,...o}}setGlobalOptions({});var vueRequest=e=>{},__glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:vueRequest},Symbol.toStringTag,{value:"Module"}));const modules={"/src/modules/animate.ts":__glob_0_0,"/src/modules/element-plus.ts":__glob_0_1,"/src/modules/i18n.ts":__glob_0_2,"/src/modules/mock.ts":__glob_0_3,"/src/modules/nprogress.ts":__glob_0_4,"/src/modules/pinia.ts":__glob_0_5,"/src/modules/router.ts":__glob_0_6,"/src/modules/svg-icon.ts":__glob_0_7,"/src/modules/title.ts":__glob_0_8,"/src/modules/vue-request.ts":__glob_0_9},useModules=e=>(Object.values(modules).forEach(t=>{typeof t.default=="function"&&t.default(e)}),e);var main=(()=>`:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #aaaaaa;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.prose{--prism-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol}.prose pre{font-weight:500;font-size:1rem}ol{padding-left:15px}.prose blockquote p:first-of-type:before{content:none}.prose pre{color:#495057;background:#f8f9fa}.prose-sm p{font-weight:500}.prose blockquote{margin:0;font-style:normal}.token.comment{font-style:normal;font-size:.5rem}html,body,#app{font-family:inherit;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--el-text-color-primary);overflow:hidden;height:100%;width:100%;margin:0;padding:0}.prose{scroll-behavior:smooth}#nprogress{pointer-events:none}#nprogress .bar{background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-bg-opacity: .75;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}::-webkit-scrollbar{width:11px;height:11px;background-color:#f6f7f8}::-webkit-scrollbar-thumb{background-color:#e9ecef;border-radius:10px}::-webkit-scrollbar-track{background-color:#f6f7f8;border-radius:10px}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.dragging-over *{pointer-events:none}#v3-img-preview-container-id .v-images-wrap .arrow .icon{display:initial}#v3-img-preview-container-id .img-container{height:95vh;top:2.5vh!important}#v3-img-preview-container-id .img-container .img-content{max-width:95%}@media screen and (max-width: 500px){#v3-img-preview-container-id .v3-img-preview-toolbar{bottom:20%}.el-message{min-width:calc(100% - 30px)!important}.el-message-box{width:calc(100% - 30px)!important}.el-dialog{width:90%!important}.el-dialog .el-dialog__body{max-height:80vh;overflow-y:auto;overflow-x:hidden}} +`)(),index=(()=>`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-y-0{top:0px;bottom:0px}.left-0{left:0px}.right-0{right:0px}.top-0\\.5{top:.125rem}.top-0{top:0px}.-top-\\[1\\.5px\\]{top:-1.5px}.top-\\[1px\\]{top:1px}.bottom-0{bottom:0px}.top-3{top:.75rem}.right-3{right:.75rem}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.float-right{float:right}.clear-right{clear:right}.m-12{margin:3rem}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-\\[10\\%\\]{margin-left:10%}.mr-4{margin-right:1rem}.mr-1\\.5{margin-right:.375rem}.-mt-10{margin-top:-2.5rem}.-mt-3{margin-top:-.75rem}.mt-6{margin-top:1.5rem}.ml-2{margin-left:.5rem}.mt-10{margin-top:2.5rem}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-3{margin-top:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mr-3{margin-right:.75rem}.-mt-px{margin-top:-1px}.-mr-px{margin-right:-1px}.mt-4{margin-top:1rem}.block{display:block}.\\!block{display:block!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h-80{height:20rem}.h-\\[80vh\\]{height:80vh}.h-12{height:3rem}.h-10{height:2.5rem}.h-5\\/6{height:83.333333%}.h-5{height:1.25rem}.h-20{height:5rem}.h-\\[17rem\\]{height:17rem}.h-1\\/2{height:50%}.h-\\[75vh\\]{height:75vh}.\\!h-full{height:100%!important}.h-\\[40vh\\]{height:40vh}.min-h-screen{min-height:100vh}.min-h-\\[150px\\]{min-height:150px}.w-6{width:1.5rem}.w-auto{width:auto}.w-8{width:2rem}.w-48{width:12rem}.w-\\[80\\%\\]{width:80%}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-16{width:4rem}.w-3\\/4{width:75%}.w-10{width:2.5rem}.w-10\\/12{width:83.333333%}.w-\\[150px\\]{width:150px}.w-\\[90\\%\\]{width:90%}.w-12{width:3rem}.w-5\\/6{width:83.333333%}.w-20{width:5rem}.w-0{width:0px}.\\!w-1\\/4{width:25%!important}.\\!w-1\\/2{width:50%!important}.w-1\\/4{width:25%}.max-w-7xl{max-width:80rem}.max-w-screen-lg{max-width:1024px}.max-w-\\[80\\%\\]{max-width:80%}.max-w-3xl{max-width:48rem}.max-w-2xl{max-width:42rem}.max-w-\\[40\\%\\]{max-width:40%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.gap-6{gap:1.5rem}.gap-0{gap:0px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-20>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.border-2{border-width:2px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t-2{border-top-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-\\[\\#313136\\]{--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-contain{background-size:contain}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-0{padding:0}.p-6{padding:1.5rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-8{padding:2rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pt-1{padding-top:.25rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-4{padding-right:1rem}.pb-16{padding-bottom:4rem}.pt-\\[1px\\]{padding-top:1px}.pt-5{padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-5xl{font-size:3rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.text-\\[17px\\]{font-size:17px}.text-4xl{font-size:2.25rem;line-height:2.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.leading-none{line-height:1}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.tracking-wider{letter-spacing:.05em}.tracking-wide{letter-spacing:.025em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.divider{margin-top:.25rem;margin-bottom:.25rem;display:block;height:1px;width:100%;border-top-width:1px}.link{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.empty\\:mt-0:empty{margin-top:0}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\\:line-clamp-none:active{-webkit-line-clamp:unset}.group:hover .group-hover\\:text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:static{position:static}.sm\\:inset-auto{top:auto;right:auto;bottom:auto;left:auto}.sm\\:bottom-10{bottom:2.5rem}.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:ml-6{margin-left:1.5rem}.sm\\:mt-8{margin-top:2rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-px{margin-top:1px}.sm\\:mt-0{margin-top:0}.sm\\:inline{display:inline}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-\\[85vh\\]{height:85vh}.sm\\:h-\\[80vh\\]{height:80vh}.sm\\:w-6\\/12{width:50%}.sm\\:w-36{width:9rem}.sm\\:w-24{width:6rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:justify-center{justify-content:center}.sm\\:gap-4{gap:1rem}.sm\\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.sm\\:space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:rounded-xl{border-radius:.75rem}.sm\\:border-t{border-top-width:1px}.sm\\:border-b-0{border-bottom-width:0px}.sm\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.sm\\:p-10{padding:2.5rem}.sm\\:p-12{padding:3rem}.sm\\:p-4{padding:1rem}.sm\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.sm\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:pr-0{padding-right:0}.sm\\:pb-26{padding-bottom:6.5rem}.sm\\:pt-5{padding-top:1.25rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pb-0{padding-bottom:0}}@media (min-width: 768px){.md\\:block{display:block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-\\[60vh\\]{height:60vh}.md\\:w-5\\/12{width:41.666667%}.md\\:w-48{width:12rem}.md\\:w-36{width:9rem}.md\\:max-w-\\[50\\%\\]{max-width:50%}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:items-stretch{align-items:stretch}.md\\:justify-start{justify-content:flex-start}.md\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}}@media (min-width: 1024px){.lg\\:ml-6{margin-left:1.5rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:h-auto{height:auto}.lg\\:h-\\[70vh\\]{height:70vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-4\\/12{width:33.333333%}.lg\\:w-64{width:16rem}.lg\\:w-48{width:12rem}.lg\\:max-w-\\[60\\%\\]{max-width:60%}.lg\\:flex-none{flex:none}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\\:m-16{margin:4rem}.xl\\:w-1\\/2{width:50%}.xl\\:w-3\\/12{width:25%}.xl\\:w-96{width:24rem}.xl\\:w-80{width:20rem}.xl\\:w-64{width:16rem}.xl\\:max-w-\\[70\\%\\]{max-width:70%}.xl\\:px-0{padding-left:0;padding-right:0}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}} +`)();const routerRef=ref(null),routeRef=ref(null);function useRouterData(e,t){e&&!routerRef.value&&(routerRef.value=e),t&&!routeRef.value&&(routeRef.value=t);const r=computed(()=>{var o;return(o=routeRef.value)==null?void 0:o.params.storageKey}),n=computed(()=>{var o;return(o=routeRef.value)!=null&&o.params.fullpath?"/"+routeRef.value.params.fullpath.join("/"):"/"}),a=computed(()=>{var o;return(o=routeRef.value)==null?void 0:o.params.fullpath});return{routerRef,storageKey:r,currentPath:n,fullpath:a}}var uaBrowser$1={exports:{}},browser_min={exports:{}};(function(e,t){function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function n(s,l){for(var c=0;c2&&arguments[2]!==void 0?arguments[2]:l,B=O.length;B--;){var C=O[B];if(T[C].test(I))return C}return"unknown"},_=function(){var O;return(O=s.browserLanguage||s.language)===null||O===void 0?void 0:O.replace(/-\w+/g,function(T){return T.toUpperCase()})},$=function(){return typeof __wxjs_environment!="undefined"&&__wxjs_environment==="miniprogram"},S=function(O){return g.isWebview.test(O)},L=new(function(){function O(T){var I=this;r(this,O),this.ua=l,this.version={Safari:function(){return I.ua.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return I.ua.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return I.ua.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return I.ua.replace(/^.*Edge\/([\d.]+).*$/,"$1").replace(/^.*Edg\/([\d.]+).*$/,"$1").replace(/^.*EdgA\/([\d.]+).*$/,"$1").replace(/^.*EdgiOS\/([\d.]+).*$/,"$1")},Firefox:function(){return I.ua.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return I.ua.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return I.ua.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return I.ua.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1").replace(/^.*OPT\/([\d.]+).*$/,"$1")},Vivaldi:function(){return I.ua.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return I.ua.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return I.ua.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return I.ua.replace(/^.*Lunascape[\s]([\d.]+).*$/,"$1")},QupZilla:function(){return I.ua.replace(/^.*QupZilla[\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return I.ua.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return I.ua.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return I.ua.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return I.ua.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return I.ua.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return I.ua.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return I.ua.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},Maxthon:function(){return I.ua.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return I.ua.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return I.ua.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return I.ua.replace(/^.*BIDUBrowser[\s/]([\d.]+).*$/,"$1").replace(/^.*baiduboxapp\/([\d.]+).*$/,"$1")},UC:function(){return I.ua.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return I.ua.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},TheWorld:function(){return I.ua.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return I.ua.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Vivo:function(){return I.ua.replace(/^.*VivoBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return I.ua.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return I.ua.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return I.ua.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return I.ua.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return I.ua.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return I.ua.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return I.ua.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return I.ua.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return I.ua.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return I.ua.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")},DingTalk:function(){return I.ua.replace(/^.*DingTalk\/([\d.]+).*$/,"$1")},Huawei:function(){return I.ua.replace(/^.*Version\/([\d.]+).*$/,"$1").replace(/^.*HuaweiBrowser\/([\d.]+).*$/,"$1")},"115Browser":function(){return I.ua.replace(/^.*115Browser\/([\d.]+).*$/,"$1")},360:function(){return I.ua.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[I.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[I.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"2345Explorer":function(){return{69:"10.0",55:"9.9"}[I.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||I.ua.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1").replace(/^.*Mb2345Browser\/([\d.]+).*$/,"$1")},Liebao:function(){var B="";/LieBaoFast/.test(I.ua)&&(B=I.ua.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var C=I.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1");return B||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[C]||""}},this.osVersion={Android:function(){return I.ua.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return I.ua.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return I.ua.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return I.ua.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},MacOS:function(){return I.ua.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return I.ua.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")},HarmonyOS:function(){return{10:"2"}[I.ua.replace(/^Mozilla.*Android ([\d.]+)[;)].*$/,"$1")]||""},Windows:function(){var B=I.ua.replace(/^Mozilla\/\d.0 \(Windows NT ([\d.]+);.*$/,"$1");return{10:"10",6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[B]||B}},T&&(this.ua=T)}return a(O,[{key:"getOs",value:function(){return k(y.os,b,this.ua)}},{key:"getEngine",value:function(){return k(y.engine,d,this.ua)}},{key:"getBrowser",value:function(){return k(y.browser,m,this.ua)}},{key:"getDevice",value:function(){if(u==="MacIntel"&&s.maxTouchPoints>1)return"Tablet";var T=k(y.device,x,this.ua);return T==="unknown"?"PC":T}},{key:"getEnv",value:function(T){var I,B;this.ua=T||l;var C={version:"unknown",osVersion:"unknown",engine:this.getEngine(),browser:this.getBrowser(),os:this.getOs(),device:this.getDevice(),isWebview:S(this.ua),language:(I=_())!==null&&I!==void 0?I:"unknown",platfrom:u!=null?u:"unknown"},P=C.browser,W=!1;if(typeof chrome!="undefined"){var N=this.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1");chrome.adblock2345||chrome.common2345?C.browser="2345Explorer":w("application/360softmgrplugin")||w("application/mozilla-npqihooquicklogin")||N>"36"&&typeof showModalDialog!="undefined"?W=!0:N>"45"&&!(W=w("application/vnd.chromium.remoting-viewer"))&&N>="69"&&(W=w("application/hwepass2001.installepass2001")||w("application/asx"))}return C.device==="Mobile"&&/iPad/.test(this.ua)?C.device="Tablet":W&&(P=w("application/gameplugin")||!(!((B=s==null?void 0:s.connection)===null||B===void 0)&&B.saveData)?"360SE":"360EE"),y.browser.indexOf(P)>=y.browser.indexOf(C.browser)&&(C.browser=P),C.browser==="Baidu"&&m.Opera.test(this.ua)&&(C.browser="Opera"),C.os in this.osVersion&&(C.osVersion=this.osVersion[C.os](),C.osVersion===this.ua&&(C.osVersion="unknown")),C.browser in this.version&&(C.version=this.version[C.browser](),C.version===this.ua&&(C.version="unknown")),C.browser==="Chrome"&&this.ua.match(/\S+Browser/)?(C.browser=this.ua.match(/\S+Browser/)[0],C.version=this.ua.replace(/^.*Browser\/([\d.]+).*$/,"$1")):C.browser!=="Firefox"||typeof clientInformation=="undefined"&&typeof u2f!="undefined"?C.browser==="Wechat"&&$()&&(C.browser="Wechat Miniapp"):C.browser="".concat(C.browser," Nightly"),C.browser==="Edge"?C.engine=parseInt(C.version)>75?"Blink":"EdgeHTML":(m.Chrome.test(this.ua)&&C.engine==="WebKit"&&parseInt(this.version.Chrome())>27||C.browser==="Opera"&&parseInt(C.version)>12||C.browser==="Yandex")&&(C.engine="Blink"),C}}]),O}());function V(O){return L.getEnv(O)}return V.isWebview=S,V.isWechatMiniapp=$,V.getLanguage=_,V.VERSION="0.1.4",V})})(browser_min,browser_min.exports);var browser={exports:{}};(function(e,t){function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function n(s,l){for(var c=0;c2&&arguments[2]!==void 0?arguments[2]:c,W=B.length;W--;){var N=B[W];if(C[N].test(P))return N}return"unknown"},$=function(){var B;return(B=l.browserLanguage||l.language)===null||B===void 0?void 0:B.replace(/-\w+/g,function(C){return C.toUpperCase()})},S=function(){return typeof __wxjs_environment!="undefined"&&__wxjs_environment==="miniprogram"},L=function(B){return y.isWebview.test(B)},V=function(){function I(B){var C=this;r(this,I),this.ua=c,this.version={Safari:function(){return C.ua.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return C.ua.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return C.ua.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return C.ua.replace(/^.*Edge\/([\d.]+).*$/,"$1").replace(/^.*Edg\/([\d.]+).*$/,"$1").replace(/^.*EdgA\/([\d.]+).*$/,"$1").replace(/^.*EdgiOS\/([\d.]+).*$/,"$1")},Firefox:function(){return C.ua.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return C.ua.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return C.ua.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return C.ua.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1").replace(/^.*OPT\/([\d.]+).*$/,"$1")},Vivaldi:function(){return C.ua.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return C.ua.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return C.ua.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return C.ua.replace(/^.*Lunascape[\s]([\d.]+).*$/,"$1")},QupZilla:function(){return C.ua.replace(/^.*QupZilla[\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return C.ua.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return C.ua.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return C.ua.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return C.ua.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return C.ua.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return C.ua.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return C.ua.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},Maxthon:function(){return C.ua.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return C.ua.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return C.ua.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return C.ua.replace(/^.*BIDUBrowser[\s/]([\d.]+).*$/,"$1").replace(/^.*baiduboxapp\/([\d.]+).*$/,"$1")},UC:function(){return C.ua.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return C.ua.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},TheWorld:function(){return C.ua.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return C.ua.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Vivo:function(){return C.ua.replace(/^.*VivoBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return C.ua.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return C.ua.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return C.ua.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return C.ua.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return C.ua.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return C.ua.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return C.ua.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return C.ua.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return C.ua.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return C.ua.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")},DingTalk:function(){return C.ua.replace(/^.*DingTalk\/([\d.]+).*$/,"$1")},Huawei:function(){return C.ua.replace(/^.*Version\/([\d.]+).*$/,"$1").replace(/^.*HuaweiBrowser\/([\d.]+).*$/,"$1")},"115Browser":function(){return C.ua.replace(/^.*115Browser\/([\d.]+).*$/,"$1")},360:function(){return C.ua.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){var W=C.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1"),N={86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"};return N[W]||""},"360EE":function(){var W=C.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1"),N={86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"};return N[W]||""},"2345Explorer":function(){var W=C.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1"),N={69:"10.0",55:"9.9"};return N[W]||C.ua.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1").replace(/^.*Mb2345Browser\/([\d.]+).*$/,"$1")},Liebao:function(){var W="";/LieBaoFast/.test(C.ua)&&(W=C.ua.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var N=C.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1"),ie={57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"};return W||ie[N]||""}},this.osVersion={Android:function(){return C.ua.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return C.ua.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return C.ua.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return C.ua.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},MacOS:function(){return C.ua.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return C.ua.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")},HarmonyOS:function(){var W=C.ua.replace(/^Mozilla.*Android ([\d.]+)[;)].*$/,"$1"),N={10:"2"};return N[W]||""},Windows:function(){var W=C.ua.replace(/^Mozilla\/\d.0 \(Windows NT ([\d.]+);.*$/,"$1"),N={10:"10","6.4":"10","6.3":"8.1","6.2":"8","6.1":"7","6.0":"Vista","5.2":"XP","5.1":"XP","5.0":"2000"};return N[W]||W}},B&&(this.ua=B)}return a(I,[{key:"getOs",value:function(){return _(w.os,x,this.ua)}},{key:"getEngine",value:function(){return _(w.engine,m,this.ua)}},{key:"getBrowser",value:function(){return _(w.browser,b,this.ua)}},{key:"getDevice",value:function(){if(d==="MacIntel"&&l.maxTouchPoints>1)return"Tablet";var C=_(w.device,g,this.ua);return C==="unknown"?"PC":C}},{key:"getEnv",value:function(C){var P,W;C?this.ua=C:this.ua=c;var N={version:"unknown",osVersion:"unknown",engine:this.getEngine(),browser:this.getBrowser(),os:this.getOs(),device:this.getDevice(),isWebview:L(this.ua),language:(P=$())!==null&&P!==void 0?P:"unknown",platfrom:d!=null?d:"unknown"},ie=N.browser,ne=!1;if(typeof chrome!="undefined"){var fe=this.ua.replace(/^.*Chrome\/([\d]+).*$/,"$1");chrome.adblock2345||chrome.common2345?N.browser="2345Explorer":k("application/360softmgrplugin")||k("application/mozilla-npqihooquicklogin")||fe>"36"&&typeof showModalDialog!="undefined"?ne=!0:fe>"45"&&(ne=k("application/vnd.chromium.remoting-viewer"),!ne&&fe>="69"&&(ne=k("application/hwepass2001.installepass2001")||k("application/asx")))}return N.device==="Mobile"&&/iPad/.test(this.ua)?N.device="Tablet":ne&&(k("application/gameplugin")||!(!((W=l==null?void 0:l.connection)===null||W===void 0)&&W.saveData)?ie="360SE":ie="360EE"),w.browser.indexOf(ie)>=w.browser.indexOf(N.browser)&&(N.browser=ie),N.browser==="Baidu"&&b.Opera.test(this.ua)&&(N.browser="Opera"),N.os in this.osVersion&&(N.osVersion=this.osVersion[N.os](),N.osVersion===this.ua&&(N.osVersion="unknown")),N.browser in this.version&&(N.version=this.version[N.browser](),N.version===this.ua&&(N.version="unknown")),N.browser==="Chrome"&&this.ua.match(/\S+Browser/)?(N.browser=this.ua.match(/\S+Browser/)[0],N.version=this.ua.replace(/^.*Browser\/([\d.]+).*$/,"$1")):N.browser==="Firefox"&&(typeof clientInformation!="undefined"||typeof u2f=="undefined")?N.browser="".concat(N.browser," Nightly"):N.browser==="Wechat"&&S()&&(N.browser="Wechat Miniapp"),N.browser==="Edge"?N.engine=parseInt(N.version)>75?"Blink":"EdgeHTML":(b.Chrome.test(this.ua)&&N.engine==="WebKit"&&parseInt(this.version.Chrome())>27||N.browser==="Opera"&&parseInt(N.version)>12||N.browser==="Yandex")&&(N.engine="Blink"),N}}]),I}(),O=new V;function T(I){return O.getEnv(I)}return T.isWebview=L,T.isWechatMiniapp=S,T.getLanguage=$,T.VERSION=s,T})})(browser,browser.exports);({}).ENV_NODE==="production"?uaBrowser$1.exports=browser_min.exports:uaBrowser$1.exports=browser.exports;var uaBrowser=uaBrowser$1.exports;const _sfc_main={__name:"App",setup(e){let t=useRouter(),r=useRoute();return useRouterData(t,r),console.log("\u5F53\u524D\u6D4F\u89C8\u5668\u4FE1\u606F:",uaBrowser()),(n,a)=>{const o=resolveComponent("router-view");return openBlock(),createBlock(o)}}};var axios$2={exports:{}},bind$2=function e(t,r){return function(){for(var a=new Array(arguments.length),o=0;o=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},utils$8=utils$e,isURLSameOrigin$1=utils$8.isStandardBrowserEnv()?function e(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){var l=utils$8.isString(s)?a(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function e(){return function(){return!0}}();function Cancel$3(e){this.message=e}Cancel$3.prototype.toString=function e(){return"Cancel"+(this.message?": "+this.message:"")};Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$7=utils$e,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,transitionalDefaults$1=transitional,Cancel$2=Cancel_1,xhr=function e(t){return new Promise(function(n,a){var o=t.data,s=t.headers,l=t.responseType,c;function u(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}utils$7.isFormData(o)&&delete s["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(m+":"+b)}var x=buildFullPath(t.baseURL,t.url);d.open(t.method.toUpperCase(),buildURL$1(x,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function g(){if(!!d){var w="getAllResponseHeaders"in d?parseHeaders(d.getAllResponseHeaders()):null,k=!l||l==="text"||l==="json"?d.responseText:d.response,_={data:k,status:d.status,statusText:d.statusText,headers:w,config:t,request:d};settle(function(S){n(S),u()},function(S){a(S),u()},_),d=null}}if("onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(g)},d.onabort=function(){!d||(a(createError("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){a(createError("Network Error",t,null,d)),d=null},d.ontimeout=function(){var k=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",_=t.transitional||transitionalDefaults$1;t.timeoutErrorMessage&&(k=t.timeoutErrorMessage),a(createError(k,t,_.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},utils$7.isStandardBrowserEnv()){var y=(t.withCredentials||isURLSameOrigin(x))&&t.xsrfCookieName?cookies.read(t.xsrfCookieName):void 0;y&&(s[t.xsrfHeaderName]=y)}"setRequestHeader"in d&&utils$7.forEach(s,function(k,_){typeof o=="undefined"&&_.toLowerCase()==="content-type"?delete s[_]:d.setRequestHeader(_,k)}),utils$7.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),l&&l!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(w){!d||(a(!w||w&&w.type?new Cancel$2("canceled"):w),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),o||(o=null),d.send(o)})},utils$6=utils$e,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,transitionalDefaults=transitional,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!utils$6.isUndefined(e)&&utils$6.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function getDefaultAdapter(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=xhr),e}function stringifySafely(e,t,r){if(utils$6.isString(e))try{return(t||JSON.parse)(e),utils$6.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function e(t,r){return normalizeHeaderName(r,"Accept"),normalizeHeaderName(r,"Content-Type"),utils$6.isFormData(t)||utils$6.isArrayBuffer(t)||utils$6.isBuffer(t)||utils$6.isStream(t)||utils$6.isFile(t)||utils$6.isBlob(t)?t:utils$6.isArrayBufferView(t)?t.buffer:utils$6.isURLSearchParams(t)?(setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):utils$6.isObject(t)||r&&r["Content-Type"]==="application/json"?(setContentTypeIfUnset(r,"application/json"),stringifySafely(t)):t}],transformResponse:[function e(t){var r=this.transitional||defaults$3.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||a&&utils$6.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?enhanceError(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$6.forEach(["delete","get","head"],function e(t){defaults$3.headers[t]={}});utils$6.forEach(["post","put","patch"],function e(t){defaults$3.headers[t]=utils$6.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$5=utils$e,defaults$2=defaults_1,transformData$1=function e(t,r,n){var a=this||defaults$2;return utils$5.forEach(n,function(s){t=s.call(a,t,r)}),t},isCancel$1=function e(t){return!!(t&&t.__CANCEL__)},utils$4=utils$e,transformData=transformData$1,isCancel=isCancel$1,defaults$1=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function e(t){throwIfCancellationRequested(t),t.headers=t.headers||{},t.data=transformData.call(t,t.data,t.headers,t.transformRequest),t.headers=utils$4.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),utils$4.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||defaults$1.adapter;return r(t).then(function(a){return throwIfCancellationRequested(t),a.data=transformData.call(t,a.data,a.headers,t.transformResponse),a},function(a){return isCancel(a)||(throwIfCancellationRequested(t),a&&a.response&&(a.response.data=transformData.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},utils$3=utils$e,mergeConfig$2=function e(t,r){r=r||{};var n={};function a(d,m){return utils$3.isPlainObject(d)&&utils$3.isPlainObject(m)?utils$3.merge(d,m):utils$3.isPlainObject(m)?utils$3.merge({},m):utils$3.isArray(m)?m.slice():m}function o(d){if(utils$3.isUndefined(r[d])){if(!utils$3.isUndefined(t[d]))return a(void 0,t[d])}else return a(t[d],r[d])}function s(d){if(!utils$3.isUndefined(r[d]))return a(void 0,r[d])}function l(d){if(utils$3.isUndefined(r[d])){if(!utils$3.isUndefined(t[d]))return a(void 0,t[d])}else return a(void 0,r[d])}function c(d){if(d in r)return a(t[d],r[d]);if(d in t)return a(void 0,t[d])}var u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c};return utils$3.forEach(Object.keys(t).concat(Object.keys(r)),function(m){var b=u[m]||o,x=b(m);utils$3.isUndefined(x)&&b!==c||(n[m]=x)}),n},data={version:"0.26.1"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};validators$1.transitional=function e(t,r,n){function a(o,s){return"[Axios v"+VERSION+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return function(o,s,l){if(t===!1)throw new Error(a(s," has been removed"+(r?" in "+r:"")));return r&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,l):!0}};function assertOptions(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var o=n[a],s=t[o];if(s){var l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}var validator$1={assertOptions,validators:validators$1},utils$2=utils$e,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function e(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mergeConfig$1(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var a=[],o=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(o=o&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});var s=[];this.interceptors.response.forEach(function(x){s.push(x.fulfilled,x.rejected)});var l;if(!o){var c=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(c,a),c=c.concat(s),l=Promise.resolve(r);c.length;)l=l.then(c.shift(),c.shift());return l}for(var u=r;a.length;){var d=a.shift(),m=a.shift();try{u=d(u)}catch(b){m(b);break}}try{l=dispatchRequest(u)}catch(b){return Promise.reject(b)}for(;s.length;)l=l.then(s.shift(),s.shift());return l};Axios$1.prototype.getUri=function e(t){return t=mergeConfig$1(this.defaults,t),buildURL(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};utils$2.forEach(["delete","get","head","options"],function e(t){Axios$1.prototype[t]=function(r,n){return this.request(mergeConfig$1(n||{},{method:t,url:r,data:(n||{}).data}))}});utils$2.forEach(["post","put","patch"],function e(t){Axios$1.prototype[t]=function(r,n,a){return this.request(mergeConfig$1(a||{},{method:t,url:r,data:n}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;this.promise.then(function(n){if(!!r._listeners){var a,o=r._listeners.length;for(a=0;a({zfileConfig:{baseUrl:"",router:{mode:"history"},skeleton:{enable:!0,show:"always",size:20},gallery:{mobileColumn:5,column:3,columnSpacing:50,rowSpacing:10,showInfo:!0,showInfoMode:"hover",roundedBorder:!0,showBackTop:!0},imagePreview:{mode:"full",gallery:!0},officePreview:{}}}),actions:{updateZfileConfig(e){this.zfileConfig=e}}}),name="zfile",version="4.0.9",description="ZFile \u6587\u4EF6\u7BA1\u7406",author="Zhao Jun",repository={type:"git",url:"https://github.com/zfile-dev/zfile-vue.git"},license="MIT",scripts={dev:"vite",test:"vitest",build:"vite build","dev:host":"vite --host","dev:open":"vite --open",vis:"set vis=true && vite build",preview:"vite preview","deps:fresh":"npx taze -w",coverage:"vitest --coverage",analysis:"npx windicss-analysis",typecheck:"npx vue-tsc --noEmit","deps:fresh:major":"npx taze major -w","deps:fresh:minor":"npx taze minor -w","deps:fresh:patch":"npx taze patch -w","preview:host":"vite preview --host","preview:open":"vite preview --open","auto:create":"plop --plopfile scripts/create.js","auto:remove":"plop --plopfile scripts/remove.js",tailwind:"tailwindcss build src/styles.css -o public/styles.css",lint:"eslint --ext .ts,.js,.jsx,.vue .","lint:fix":"eslint --fix --ext .ts,.js,.jsx,.vue .",prepare:"husky install"},dependencies={"@element-plus/icons-vue":"^2.0.6","@headlessui/vue":"^1.6.5","@heroicons/vue":"^1.0.6","@kangc/v-md-editor":"^2.3.15","@soerenmartius/vue3-clipboard":"^0.1.2","animate.css":"^4.1.1",aplayer:"^1.10.1",artplayer:"^4.5.2","async-validator":"^4.0.7","beautify-qrcode":"^1.0.3",dayjs:"^1.11.3","element-plus":"^2.2.8","file-saver":"^2.0.5","flv.js":"^1.6.2","github-markdown-css":"^5.1.0","hls.js":"^1.1.5",lazysizes:"^5.3.2",less:"^4.1.3","less-loader":"^10.2.0",marked:"^4.0.17",minimatch:"^5.1.0","monaco-editor":"^0.33.0","path-browserify":"^1.0.1",prismjs:"^1.28.0","script-loader":"^0.7.2",sortablejs:"^1.15.0","ua-browser":"^0.1.4","v-contextmenu":"^3.0.0","v3-img-preview":"^1.1.16",vue:"^3.2.37","vue-pdf-embed":"^1.1.4",xlsx:"^0.18.5"},devDependencies={"@iconify-json/ep":"^1.1.6","@intlify/vite-plugin-vue-i18n":"^3.4.0","@tailwindcss/line-clamp":"^0.4.0","@types/ityped":"^1.0.1","@types/node":"^17.0.35","@types/nprogress":"^0.2.0","@typescript-eslint/parser":"^5.26.0","@vitejs/plugin-vue":"^2.3.3","@vitejs/plugin-vue-jsx":"^1.3.10","@vueuse/components":"^8.7.5","@vueuse/core":"^8.7.5",autoprefixer:"^10.4.7",axios:"^0.26.1",c8:"^7.11.3",eslint:"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-vue":"^9.0.1","fast-glob":"^3.2.11","fs-extra":"^10.1.0",husky:"^8.0.1",ityped:"^1.0.3","lint-staged":"^12.4.2","local-pkg":"^0.4.1","markdown-it-anchor":"^8.6.4","markdown-it-prism":"^2.2.4",mockjs:"^1.1.0",nprogress:"^0.2.0",pinia:"^2.0.14",plop:"^3.1.1",postcss:"^8.4.14",prettier:"2.6.2","prism-theme-vars":"^0.2.3","rollup-plugin-visualizer":"^5.6.0",sass:"^1.52.3",tailwindcss:"^3.1.4",typescript:"^4.7.4","unplugin-auto-import":"^0.8.7","unplugin-icons":"^0.14.3","unplugin-vue-components":"^0.19.6",vite:"^2.9.13","vite-auto-import-resolvers":"^2.3.0","vite-plugin-compression":"^0.5.1","vite-plugin-inspect":"^0.5.0","vite-plugin-md":"^0.13.1","vite-plugin-mock":"^2.9.6","vite-plugin-pages":"^0.23.0","vite-plugin-removelog":"^0.0.4","vite-plugin-restart":"^0.1.1","vite-plugin-svg-icons":"^2.0.1","vite-plugin-use-modules":"^1.1.0","vite-plugin-vue-meta-layouts":"^0.0.9",vitest:"^0.12.9","vue-i18n":"^9.1.10","vue-request":"^1.2.4","vue-router":"^4.0.16","vue-tsc":"^0.33.9"},pnpm={peerDependencyRules:{ignoreMissing:["rollup","markdown-it","@types/markdown-it"]}},vite={optimizeDeps:{include:["@element-plus/icons-vue","@heroicons/vue/solid","@vueuse/core","axios","element-plus","element-plus/es","element-plus/es/components/button/style/css","element-plus/es/components/form-item/style/css","element-plus/es/components/form/style/css","element-plus/es/components/input/style/css","element-plus/es/components/loading/src/directive","element-plus/es/components/loading/style/css","element-plus/es/components/message-box/style/css","element-plus/es/components/message/style/css","element-plus/es/components/notification/style/css","ityped","mockjs","nprogress","pinia","v-viewer","vite-plugin-mock/es/createProdMockServer","vue","vue-i18n","vue-masonry","vue-request","vue-router"]}};var config={name,version,description,author,repository,license,scripts,dependencies,devDependencies,pnpm,vite,"lint-staged":{"*.{js,jsx,vue}":"eslint --cache --fix"}};const app=useModules(createApp(_sfc_main)),globalConfigStore=useGlobalConfigStore();console.log(` %c ZFile `+config.version+` %c https://github.com/zhaojun1998/zfile -`,"background: #35495e; padding: 1px; border-radius: 3px 0 0 3px; color: #fff","background: #fadfa3; padding: 1px; border-radius: 0 3px 3px 0; color: #fff");axios.get("/zfile.config.json").then(e=>{globalConfigStore.updateZfileConfig(e.data)}).finally(()=>{app.mount("#app")});export{useGlobalConfigStore as $,normalizeProps as A,withKeys as B,TransitionGroup as C,isArray$2 as D,inject as E,Fragment as F,useSlots as G,onBeforeUnmount as H,createSlots as I,createTextVNode as J,getDefaultExportFromCjs as K,useRoute as L,useRouterData as M,NOOP as N,commonjsGlobal as O,useRouter as P,withDirectives as Q,vShow as R,isRef as S,Transition as T,pushScopeId as U,popScopeId as V,reactive as W,Teleport as X,isVNode as Y,nextTick as Z,defineAsyncComponent as _,openBlock as a,createHydrationRenderer as a$,getCurrentInstance as a0,onBeforeMount as a1,__vitePreload as a2,getCurrentScope as a3,onScopeDispose as a4,isObject$4 as a5,camelize as a6,hasOwn$2 as a7,warn$1 as a8,onUnmounted as a9,guardReactiveProps as aA,isPromise$1 as aB,vModelRadio as aC,isDate$2 as aD,toRaw as aE,triggerRef as aF,toRawType as aG,vModelText as aH,Suspense as aI,EffectScope as aJ,ReactiveEffect as aK,effect as aL,isProxy as aM,isReactive as aN,isReadonly as aO,isShallow as aP,proxyRefs as aQ,shallowReadonly as aR,stop as aS,capitalize as aT,toHandlerKey as aU,BaseTransition as aV,KeepAlive as aW,Static as aX,callWithAsyncErrorHandling as aY,callWithErrorHandling as aZ,compatUtils as a_,Text as aa,cloneVNode as ab,Comment as ac,toRefs as ad,resolveComponent as ae,readonly as af,onDeactivated as ag,toTypeString$2 as ah,vModelCheckbox as ai,resolveDirective as aj,onUpdated as ak,h as al,watchEffect as am,config as an,render as ao,defineStore as ap,createApp as aq,customRef as ar,axios as as,hyphenate as at,markRaw as au,effectScope as av,useAttrs as aw,shallowReactive as ax,createStaticVNode as ay,useRequest as az,createBlock as b,createPropsRestProxy as b0,createRenderer as b1,defineEmits as b2,defineExpose as b3,defineProps as b4,devtools$1 as b5,getTransitionRawChildren as b6,handleError as b7,initCustomFormatter as b8,isMemoSame as b9,withMemo as bA,withScopeId as bB,VueElement as bC,createSSRApp as bD,defineCustomElement as bE,defineSSRCustomElement as bF,hydrate as bG,initDirectivesForSSR as bH,useCssModule as bI,useCssVars as bJ,vModelDynamic as bK,vModelSelect as bL,getAugmentedNamespace as bM,commonjsRequire as bN,isRuntimeOnly as ba,mergeDefaults as bb,onActivated as bc,onBeforeUpdate as bd,onErrorCaptured as be,onRenderTracked as bf,onRenderTriggered as bg,onServerPrefetch as bh,queuePostFlushCb as bi,registerRuntimeCompiler as bj,resolveFilter as bk,resolveTransitionHooks as bl,setBlockTracking as bm,setDevtoolsHook as bn,setTransitionHooks as bo,ssrContextKey as bp,ssrUtils as bq,toHandlers as br,transformVNodeArgs as bs,useSSRContext as bt,useTransitionState as bu,version$1 as bv,watchPostEffect as bw,watchSyncEffect as bx,withAsyncContext as by,withDefaults as bz,computed as c,defineComponent as d,withCtx as e,createElementBlock as f,renderSlot as g,createVNode as h,normalizeStyle as i,withModifiers as j,createCommentVNode as k,isFunction$3 as l,isString$3 as m,normalizeClass as n,onMounted as o,createBaseVNode as p,resolveDynamicComponent as q,ref as r,shallowRef as s,toDisplayString$1 as t,unref as u,provide as v,watch as w,toRef as x,renderList as y,mergeProps as z}; +`,"background: #35495e; padding: 1px; border-radius: 3px 0 0 3px; color: #fff","background: #fadfa3; padding: 1px; border-radius: 0 3px 3px 0; color: #fff");axios.get("/zfile.config.json").then(e=>{globalConfigStore.updateZfileConfig(e.data)}).finally(()=>{app.mount("#app")});export{useGlobalConfigStore as $,normalizeProps as A,withKeys as B,TransitionGroup as C,isArray$2 as D,inject as E,Fragment as F,useSlots as G,onBeforeUnmount as H,createSlots as I,createTextVNode as J,getDefaultExportFromCjs as K,useRoute as L,useRouterData as M,NOOP as N,commonjsGlobal as O,useRouter as P,withDirectives as Q,vShow as R,isRef as S,Transition as T,pushScopeId as U,popScopeId as V,reactive as W,Teleport as X,isVNode as Y,nextTick as Z,defineAsyncComponent as _,openBlock as a,compatUtils as a$,getCurrentInstance as a0,onBeforeMount as a1,__vitePreload as a2,getCurrentScope as a3,onScopeDispose as a4,isObject$4 as a5,camelize as a6,hasOwn$2 as a7,warn$1 as a8,onUnmounted as a9,useRequest as aA,guardReactiveProps as aB,isPromise$1 as aC,vModelRadio as aD,isDate$2 as aE,toRaw as aF,triggerRef as aG,toRawType as aH,vModelText as aI,Suspense as aJ,EffectScope as aK,ReactiveEffect as aL,effect as aM,isProxy as aN,isReactive as aO,isReadonly as aP,isShallow as aQ,proxyRefs as aR,shallowReadonly as aS,stop as aT,capitalize as aU,toHandlerKey as aV,BaseTransition as aW,KeepAlive as aX,Static as aY,callWithAsyncErrorHandling as aZ,callWithErrorHandling as a_,Text as aa,cloneVNode as ab,Comment as ac,toRefs as ad,resolveComponent as ae,readonly as af,onDeactivated as ag,toTypeString$2 as ah,vModelCheckbox as ai,resolveDirective as aj,onUpdated as ak,h as al,watchEffect as am,config as an,render as ao,defineStore as ap,createApp as aq,customRef as ar,uaBrowser as as,axios as at,hyphenate as au,markRaw as av,effectScope as aw,useAttrs as ax,shallowReactive as ay,createStaticVNode as az,createBlock as b,createHydrationRenderer as b0,createPropsRestProxy as b1,createRenderer as b2,defineEmits as b3,defineExpose as b4,defineProps as b5,devtools$1 as b6,getTransitionRawChildren as b7,handleError as b8,initCustomFormatter as b9,withDefaults as bA,withMemo as bB,withScopeId as bC,VueElement as bD,createSSRApp as bE,defineCustomElement as bF,defineSSRCustomElement as bG,hydrate as bH,initDirectivesForSSR as bI,useCssModule as bJ,useCssVars as bK,vModelDynamic as bL,vModelSelect as bM,getAugmentedNamespace as bN,commonjsRequire as bO,isMemoSame as ba,isRuntimeOnly as bb,mergeDefaults as bc,onActivated as bd,onBeforeUpdate as be,onErrorCaptured as bf,onRenderTracked as bg,onRenderTriggered as bh,onServerPrefetch as bi,queuePostFlushCb as bj,registerRuntimeCompiler as bk,resolveFilter as bl,resolveTransitionHooks as bm,setBlockTracking as bn,setDevtoolsHook as bo,setTransitionHooks as bp,ssrContextKey as bq,ssrUtils as br,toHandlers as bs,transformVNodeArgs as bt,useSSRContext as bu,useTransitionState as bv,version$1 as bw,watchPostEffect as bx,watchSyncEffect as by,withAsyncContext as bz,computed as c,defineComponent as d,withCtx as e,createElementBlock as f,renderSlot as g,createVNode as h,normalizeStyle as i,withModifiers as j,createCommentVNode as k,isFunction$3 as l,isString$3 as m,normalizeClass as n,onMounted as o,createBaseVNode as p,resolveDynamicComponent as q,ref as r,shallowRef as s,toDisplayString$1 as t,unref as u,provide as v,watch as w,toRef as x,renderList as y,mergeProps as z}; diff --git a/src/main/resources/static/assets/index.4a8ae10f.js b/src/main/resources/static/assets/index.4a8ae10f.js new file mode 100644 index 0000000..95b6dec --- /dev/null +++ b/src/main/resources/static/assets/index.4a8ae10f.js @@ -0,0 +1 @@ +import{P as V,r as h,o as C,a as u,f as b,b as g,e as l,h as a,u as s,k,J as w}from"./index.43b3cbf5.js";import"./base.4ef7f45b.js";import{a as x}from"./checkbox.65d5353a.js";/* empty css */import"./tooltip.f118fcb0.js";import"./popper.718d36e0.js";import"./scrollbar.83fe9165.js";import{Z as E,a as R}from"./ZFormItem.899c4541.js";import{E as S}from"./switch.87050cd5.js";import{e as B}from"./admin-storage.442a3cb6.js";import{u as I}from"./storage-list.84919783.js";import"./index.88f36c37.js";import"./request.e2daed10.js";import"./event.3ec63147.js";import"./debounce.014e7b6e.js";import"./event.776e7e11.js";import"./index.566ad052.js";import"./focus-trap.4cfde4b4.js";import"./index.5cf4e3bb.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./validator.b1ae6965.js";import"./sortable.esm.a99254e8.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";const M=w(" \u6B64\u9875\u9762\u53EF\u4EE5\u7BA1\u7406\u60A8\u7684\u7F13\u5B58\u76F8\u5173\u8BBE\u7F6E\uFF0C\u5305\u62EC\u7F13\u5B58\u7684\u7BA1\u7406\u3001\u7F13\u5B58\u7684\u6E05\u7406\u3001\u7F13\u5B58\u7684\u7EDF\u8BA1\u7B49\u3002 "),re={__name:"index",setup(N){let i=V();const{cacheManageVisible:U,switchCacheEnableStatus:p,switchCacheAutoRefreshStatus:d,currentCacheManageId:f}=I(i),e=h(null),c=()=>{B(f.value).then(r=>{e.value=r.data})};return C(()=>{c()}),(r,t)=>{const m=S,n=E,_=R,v=x;return u(),b("div",null,[e.value?(u(),g(_,{key:0,modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=o=>e.value=o)},{"form-sub-title":l(()=>[M]),default:l(()=>[a(n,{label:"\u5F00\u542F\u7F13\u5B58"},{default:l(()=>[a(m,{onChange:t[0]||(t[0]=o=>s(p)(e.value)),modelValue:e.value.enableCache,"onUpdate:modelValue":t[1]||(t[1]=o=>e.value.enableCache=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"\u5F00\u542F\u7F13\u5B58\u81EA\u52A8\u5237\u65B0"},{default:l(()=>[a(m,{onChange:t[2]||(t[2]=o=>s(d)(e.value)),modelValue:e.value.autoRefreshCache,"onUpdate:modelValue":t[3]||(t[3]=o=>e.value.autoRefreshCache=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])):k("",!0),a(v)])}}};export{re as default}; diff --git a/src/main/resources/static/assets/index.1e624cbf.js b/src/main/resources/static/assets/index.566ad052.js similarity index 95% rename from src/main/resources/static/assets/index.1e624cbf.js rename to src/main/resources/static/assets/index.566ad052.js index ca04657..7a2526d 100644 --- a/src/main/resources/static/assets/index.1e624cbf.js +++ b/src/main/resources/static/assets/index.566ad052.js @@ -1 +1 @@ -import{O as s,X as c}from"./base.d698891e.js";import{c as n,u as l,S as d,r as i}from"./index.552205f5.js";var m={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const u=e=>(t,a)=>h(t,a,l(e)),h=(e,t,a)=>c(a,e,e).replace(/\{(\w+)\}/g,(g,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),p=e=>{const t=n(()=>l(e).name),a=d(e)?e:i(e);return{lang:t,locale:a,t:u(e)}},b=()=>{const e=s("locale");return p(n(()=>e.value||m))};export{b as u}; +import{O as s,X as c}from"./base.4ef7f45b.js";import{c as n,u as l,S as d,r as i}from"./index.43b3cbf5.js";var m={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const u=e=>(t,a)=>h(t,a,l(e)),h=(e,t,a)=>c(a,e,e).replace(/\{(\w+)\}/g,(g,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),p=e=>{const t=n(()=>l(e).name),a=d(e)?e:i(e);return{lang:t,locale:a,t:u(e)}},b=()=>{const e=s("locale");return p(n(()=>e.value||m))};export{b as u}; diff --git a/src/main/resources/static/assets/index.c92ded65.js b/src/main/resources/static/assets/index.5cf4e3bb.js similarity index 82% rename from src/main/resources/static/assets/index.c92ded65.js rename to src/main/resources/static/assets/index.5cf4e3bb.js index 8ecbc75..6286d99 100644 --- a/src/main/resources/static/assets/index.c92ded65.js +++ b/src/main/resources/static/assets/index.5cf4e3bb.js @@ -1,4 +1,4 @@ -function R(){return R=Object.assign?Object.assign.bind():function(i){for(var e=1;e1?e-1:0),n=1;n=f)return s;switch(s){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch{return"[Circular]"}break;default:return s}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function v(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function fe(i,e,r){var n=[],t=0,f=i.length;function a(s){n.push.apply(n,s||[]),t++,t===f&&r(n)}i.forEach(function(s){e(s,a)})}function G(i,e,r){var n=0,t=i.length;function f(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s1?e-1:0),n=1;n=f)return s;switch(s){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch{return"[Circular]"}break;default:return s}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function v(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function fe(i,e,r){var n=[],t=0,f=i.length;function a(s){n.push.apply(n,s||[]),t++,t===f&&r(n)}i.forEach(function(s){e(s,a)})}function G(i,e,r){var n=0,t=i.length;function f(a){if(a&&a.length){r(a);return}var s=n;n=n+1,sinput{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-message{--el-message-min-width:380px;--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 15px 15px 20px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);min-width:var(--el-message-min-width);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);transition:opacity .3s,transform .4s,top .4s;background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content,.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content,.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content,.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content,.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:15px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}}:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #aaaaaa;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.prose{--prism-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol}.prose pre{font-weight:500;font-size:1rem}ol{padding-left:15px}.prose blockquote p:first-of-type:before{content:none}.prose pre{color:#495057;background:#f8f9fa}.prose-sm p{font-weight:500}.prose blockquote{margin:0;font-style:normal}.token.comment{font-style:normal;font-size:.5rem}html,body,#app{font-family:inherit;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--el-text-color-primary);overflow:hidden;height:100%;width:100%;margin:0;padding:0}.prose{scroll-behavior:smooth}#nprogress{pointer-events:none}#nprogress .bar{background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-bg-opacity: .75;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}::-webkit-scrollbar{width:11px;height:11px;background-color:#f6f7f8}::-webkit-scrollbar-thumb{background-color:#e9ecef;border-radius:10px}::-webkit-scrollbar-track{background-color:#f6f7f8;border-radius:10px}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.dragging-over *{pointer-events:none}#v3-img-preview-container-id .v-images-wrap .arrow .icon{display:initial}#v3-img-preview-container-id .img-container{height:95vh;top:2.5vh!important}#v3-img-preview-container-id .img-container .img-content{max-width:95%}@media screen and (max-width: 500px){#v3-img-preview-container-id .v3-img-preview-toolbar{bottom:20%}.el-message{min-width:calc(100% - 30px)!important}.el-message-box{width:calc(100% - 30px)!important}.el-dialog{width:90%!important}.el-dialog .el-dialog__body{max-height:80vh;overflow-y:auto;overflow-x:hidden}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-y-0{top:0px;bottom:0px}.left-0{left:0px}.right-0{right:0px}.top-0\.5{top:.125rem}.top-0{top:0px}.-top-\[1\.5px\]{top:-1.5px}.top-\[1px\]{top:1px}.bottom-0{bottom:0px}.right-5{right:1.25rem}.top-3{top:.75rem}.right-3{right:.75rem}.top-\[2px\]{top:2px}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.float-right{float:right}.clear-right{clear:right}.m-12{margin:3rem}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-auto{margin-top:auto;margin-bottom:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-\[10\%\]{margin-left:10%}.mr-4{margin-right:1rem}.mr-1\.5{margin-right:.375rem}.-mt-10{margin-top:-2.5rem}.-mt-3{margin-top:-.75rem}.mt-6{margin-top:1.5rem}.ml-2{margin-left:.5rem}.mt-10{margin-top:2.5rem}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-3{margin-top:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mr-3{margin-right:.75rem}.mb-3{margin-bottom:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h-80{height:20rem}.h-\[80vh\]{height:80vh}.h-12{height:3rem}.h-10{height:2.5rem}.h-5\/6{height:83.333333%}.h-5{height:1.25rem}.h-20{height:5rem}.h-\[17rem\]{height:17rem}.h-1\/2{height:50%}.h-\[75vh\]{height:75vh}.\!h-full{height:100%!important}.h-\[40vh\]{height:40vh}.min-h-screen{min-height:100vh}.min-h-\[150px\]{min-height:150px}.w-6{width:1.5rem}.w-auto{width:auto}.w-8{width:2rem}.w-48{width:12rem}.w-\[80\%\]{width:80%}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-16{width:4rem}.w-3\/4{width:75%}.w-10{width:2.5rem}.w-10\/12{width:83.333333%}.w-\[150px\]{width:150px}.w-\[90\%\]{width:90%}.w-12{width:3rem}.w-5\/6{width:83.333333%}.w-20{width:5rem}.\!w-1\/4{width:25%!important}.\!w-1\/2{width:50%!important}.w-1\/4{width:25%}.max-w-7xl{max-width:80rem}.max-w-screen-lg{max-width:1024px}.max-w-3xl{max-width:48rem}.max-w-2xl{max-width:42rem}.max-w-\[40\%\]{max-width:40%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.gap-6{gap:1.5rem}.gap-0{gap:0px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-20>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t-2{border-top-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-b-blue-300{--tw-border-opacity: 1;border-bottom-color:rgb(147 197 253 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-\[\#313136\]{--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-contain{background-size:contain}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-0{padding:0}.p-6{padding:1.5rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-8{padding:2rem}.p-5{padding:1.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.pt-1{padding-top:.25rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-4{padding-right:1rem}.pb-16{padding-bottom:4rem}.pt-\[1px\]{padding-top:1px}.pt-5{padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-5xl{font-size:3rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.text-\[17px\]{font-size:17px}.text-4xl{font-size:2.25rem;line-height:2.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.leading-none{line-height:1}.leading-6{line-height:1.5rem}.tracking-wider{letter-spacing:.05em}.tracking-wide{letter-spacing:.025em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.divider{margin-top:.25rem;margin-bottom:.25rem;display:block;height:1px;width:100%;border-top-width:1px}.link{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.empty\:mt-0:empty{margin-top:0}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:opacity-100:hover{opacity:1}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\:static{position:static}.sm\:inset-auto{top:auto;right:auto;bottom:auto;left:auto}.sm\:bottom-10{bottom:2.5rem}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-8{margin-top:2rem}.sm\:mt-5{margin-top:1.25rem}.sm\:mt-px{margin-top:1px}.sm\:mt-0{margin-top:0}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:h-\[85vh\]{height:85vh}.sm\:h-\[80vh\]{height:80vh}.sm\:w-6\/12{width:50%}.sm\:w-36{width:9rem}.sm\:w-24{width:6rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:items-start{align-items:flex-start}.sm\:justify-center{justify-content:center}.sm\:gap-4{gap:1rem}.sm\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.sm\:space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:rounded-xl{border-radius:.75rem}.sm\:border-t{border-top-width:1px}.sm\:border-b-0{border-bottom-width:0px}.sm\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.sm\:p-10{padding:2.5rem}.sm\:p-12{padding:3rem}.sm\:p-4{padding:1rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:pr-0{padding-right:0}.sm\:pb-26{padding-bottom:6.5rem}.sm\:pt-5{padding-top:1.25rem}.sm\:pt-2{padding-top:.5rem}.sm\:pb-0{padding-bottom:0}}@media (min-width: 768px){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[60vh\]{height:60vh}.md\:w-5\/12{width:41.666667%}.md\:w-48{width:12rem}.md\:w-36{width:9rem}.md\:max-w-\[50\%\]{max-width:50%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:items-stretch{align-items:stretch}.md\:justify-start{justify-content:flex-start}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}}@media (min-width: 1024px){.lg\:ml-6{margin-left:1.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-auto{height:auto}.lg\:h-\[70vh\]{height:70vh}.lg\:w-1\/2{width:50%}.lg\:w-4\/12{width:33.333333%}.lg\:w-64{width:16rem}.lg\:w-48{width:12rem}.lg\:max-w-\[60\%\]{max-width:60%}.lg\:flex-none{flex:none}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:m-16{margin:4rem}.xl\:w-1\/2{width:50%}.xl\:w-3\/12{width:25%}.xl\:w-96{width:24rem}.xl\:w-80{width:20rem}.xl\:w-64{width:16rem}.xl\:max-w-\[70\%\]{max-width:70%}.xl\:px-0{padding-left:0;padding-right:0}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}} +*/:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}:root{--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px;display:inline-block;width:var(--el-messagebox-width);padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-message{--el-message-min-width:380px;--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 15px 15px 20px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);min-width:var(--el-message-min-width);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);transition:opacity .3s,transform .4s,top .4s;background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content,.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content,.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content,.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content,.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:15px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}}:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #aaaaaa;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{-webkit-text-decoration:var(--prism-url-decoration);text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}.prose{--prism-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol}.prose pre{font-weight:500;font-size:1rem}ol{padding-left:15px}.prose blockquote p:first-of-type:before{content:none}.prose pre{color:#495057;background:#f8f9fa}.prose-sm p{font-weight:500}.prose blockquote{margin:0;font-style:normal}.token.comment{font-style:normal;font-size:.5rem}html,body,#app{font-family:inherit;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--el-text-color-primary);overflow:hidden;height:100%;width:100%;margin:0;padding:0}.prose{scroll-behavior:smooth}#nprogress{pointer-events:none}#nprogress .bar{background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-bg-opacity: .75;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}::-webkit-scrollbar{width:11px;height:11px;background-color:#f6f7f8}::-webkit-scrollbar-thumb{background-color:#e9ecef;border-radius:10px}::-webkit-scrollbar-track{background-color:#f6f7f8;border-radius:10px}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.dragging-over *{pointer-events:none}#v3-img-preview-container-id .v-images-wrap .arrow .icon{display:initial}#v3-img-preview-container-id .img-container{height:95vh;top:2.5vh!important}#v3-img-preview-container-id .img-container .img-content{max-width:95%}@media screen and (max-width: 500px){#v3-img-preview-container-id .v3-img-preview-toolbar{bottom:20%}.el-message{min-width:calc(100% - 30px)!important}.el-message-box{width:calc(100% - 30px)!important}.el-dialog{width:90%!important}.el-dialog .el-dialog__body{max-height:80vh;overflow-y:auto;overflow-x:hidden}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-y-0{top:0px;bottom:0px}.left-0{left:0px}.right-0{right:0px}.top-0\.5{top:.125rem}.top-0{top:0px}.-top-\[1\.5px\]{top:-1.5px}.top-\[1px\]{top:1px}.bottom-0{bottom:0px}.top-3{top:.75rem}.right-3{right:.75rem}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.float-right{float:right}.clear-right{clear:right}.m-12{margin:3rem}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-\[10\%\]{margin-left:10%}.mr-4{margin-right:1rem}.mr-1\.5{margin-right:.375rem}.-mt-10{margin-top:-2.5rem}.-mt-3{margin-top:-.75rem}.mt-6{margin-top:1.5rem}.ml-2{margin-left:.5rem}.mt-10{margin-top:2.5rem}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-3{margin-top:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mr-3{margin-right:.75rem}.-mt-px{margin-top:-1px}.-mr-px{margin-right:-1px}.mt-4{margin-top:1rem}.block{display:block}.\!block{display:block!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h-80{height:20rem}.h-\[80vh\]{height:80vh}.h-12{height:3rem}.h-10{height:2.5rem}.h-5\/6{height:83.333333%}.h-5{height:1.25rem}.h-20{height:5rem}.h-\[17rem\]{height:17rem}.h-1\/2{height:50%}.h-\[75vh\]{height:75vh}.\!h-full{height:100%!important}.h-\[40vh\]{height:40vh}.min-h-screen{min-height:100vh}.min-h-\[150px\]{min-height:150px}.w-6{width:1.5rem}.w-auto{width:auto}.w-8{width:2rem}.w-48{width:12rem}.w-\[80\%\]{width:80%}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-16{width:4rem}.w-3\/4{width:75%}.w-10{width:2.5rem}.w-10\/12{width:83.333333%}.w-\[150px\]{width:150px}.w-\[90\%\]{width:90%}.w-12{width:3rem}.w-5\/6{width:83.333333%}.w-20{width:5rem}.w-0{width:0px}.\!w-1\/4{width:25%!important}.\!w-1\/2{width:50%!important}.w-1\/4{width:25%}.max-w-7xl{max-width:80rem}.max-w-screen-lg{max-width:1024px}.max-w-\[80\%\]{max-width:80%}.max-w-3xl{max-width:48rem}.max-w-2xl{max-width:42rem}.max-w-\[40\%\]{max-width:40%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.gap-6{gap:1.5rem}.gap-0{gap:0px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-20>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(5rem * var(--tw-space-x-reverse));margin-left:calc(5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.border-2{border-width:2px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t-2{border-top-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-\[\#313136\]{--tw-bg-opacity: 1;background-color:rgb(49 49 54 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-contain{background-size:contain}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-0{padding:0}.p-6{padding:1.5rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-8{padding:2rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pt-1{padding-top:.25rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-4{padding-right:1rem}.pb-16{padding-bottom:4rem}.pt-\[1px\]{padding-top:1px}.pt-5{padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-5xl{font-size:3rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.text-\[17px\]{font-size:17px}.text-4xl{font-size:2.25rem;line-height:2.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.leading-none{line-height:1}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.tracking-wider{letter-spacing:.05em}.tracking-wide{letter-spacing:.025em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.divider{margin-top:.25rem;margin-bottom:.25rem;display:block;height:1px;width:100%;border-top-width:1px}.link{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.empty\:mt-0:empty{margin-top:0}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:line-clamp-none:active{-webkit-line-clamp:unset}.group:hover .group-hover\:text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:static{position:static}.sm\:inset-auto{top:auto;right:auto;bottom:auto;left:auto}.sm\:bottom-10{bottom:2.5rem}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-8{margin-top:2rem}.sm\:mt-5{margin-top:1.25rem}.sm\:mt-px{margin-top:1px}.sm\:mt-0{margin-top:0}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:h-\[85vh\]{height:85vh}.sm\:h-\[80vh\]{height:80vh}.sm\:w-6\/12{width:50%}.sm\:w-36{width:9rem}.sm\:w-24{width:6rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:justify-center{justify-content:center}.sm\:gap-4{gap:1rem}.sm\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.sm\:space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.5rem * var(--tw-space-x-reverse));margin-left:calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:rounded-xl{border-radius:.75rem}.sm\:border-t{border-top-width:1px}.sm\:border-b-0{border-bottom-width:0px}.sm\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.sm\:p-10{padding:2.5rem}.sm\:p-12{padding:3rem}.sm\:p-4{padding:1rem}.sm\:py-1{padding-top:.25rem;padding-bottom:.25rem}.sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:pr-0{padding-right:0}.sm\:pb-26{padding-bottom:6.5rem}.sm\:pt-5{padding-top:1.25rem}.sm\:pt-2{padding-top:.5rem}.sm\:pb-0{padding-bottom:0}}@media (min-width: 768px){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[60vh\]{height:60vh}.md\:w-5\/12{width:41.666667%}.md\:w-48{width:12rem}.md\:w-36{width:9rem}.md\:max-w-\[50\%\]{max-width:50%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:items-stretch{align-items:stretch}.md\:justify-start{justify-content:flex-start}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}}@media (min-width: 1024px){.lg\:ml-6{margin-left:1.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-auto{height:auto}.lg\:h-\[70vh\]{height:70vh}.lg\:w-1\/2{width:50%}.lg\:w-4\/12{width:33.333333%}.lg\:w-64{width:16rem}.lg\:w-48{width:12rem}.lg\:max-w-\[60\%\]{max-width:60%}.lg\:flex-none{flex:none}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:m-16{margin:4rem}.xl\:w-1\/2{width:50%}.xl\:w-3\/12{width:25%}.xl\:w-96{width:24rem}.xl\:w-80{width:20rem}.xl\:w-64{width:16rem}.xl\:max-w-\[70\%\]{max-width:70%}.xl\:px-0{padding-left:0;padding-right:0}.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}} diff --git a/src/main/resources/static/assets/index.744623fc.js b/src/main/resources/static/assets/index.744623fc.js new file mode 100644 index 0000000..076ad73 --- /dev/null +++ b/src/main/resources/static/assets/index.744623fc.js @@ -0,0 +1 @@ +import{aS as A,m as V,r as q}from"./base.4ef7f45b.js";import{E as J}from"./dialog.0ab1ba1d.js";import"./overlay.533d94fc.js";import{E as O}from"./card.d6fbde4d.js";import{E as W,a as Z,b as G,c as Q,z as X,g as e1,d as t1,e as o1}from"./zh-cn.19e9e150.js";/* empty css *//* empty css */import{E as a1,a as l1}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{E as n1}from"./popper.718d36e0.js";import{E as s1,a as i1}from"./checkbox.65d5353a.js";import"./tooltip.f118fcb0.js";/* empty css *//* empty css */import{E as r1,a as d1}from"./form-item.2dea3b0a.js";/* empty css */import{a as f,f as w,p as s,r as _,W as p1,o as c1,h as e,e as a,S as m1,F as _1,y as u1,b as f1,t as h,u,U as g1,V as h1,J as b}from"./index.43b3cbf5.js";import v1 from"./basic-setting.31261c22.js";import{l as w1}from"./admin-storage.442a3cb6.js";import{b as C}from"./route-block.9b0645f8.js";import{_ as b1}from"./plugin-vue_export-helper.21dcd24c.js";import{E as v}from"./request.e2daed10.js";import{E as y1}from"./index.439070da.js";import{E as E1}from"./index.da7dbe5d.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./index.566ad052.js";import"./focus-trap.4cfde4b4.js";import"./refs.f6f7d296.js";import"./event.776e7e11.js";import"./dayjs.min.78646b3b.js";import"./index.88f36c37.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./debounce.014e7b6e.js";import"./isEqual.2263846a.js";import"./index.9c287fed.js";import"./validator.b1ae6965.js";import"./index.5cf4e3bb.js";/* empty css */import"./ZFormItem.899c4541.js";import"./radio.35753592.js";import"./switch.87050cd5.js";import"./useLinkSetting.acb89768.js";import"./admin-setting.28847312.js";import"./directive.378eb0e0.js";const k1={t:"1654510398523",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3907","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},x1=s("defs",null,null,-1),V1=s("path",{d:"M511.998 1023.988c-71.133166 0-129.004488-57.871322-129.004488-129.002488v-8.793897a393.981383 393.981383 0 0 1-44.34948-18.399784l-6.241927 6.239926c-24.283715 24.287715-56.677336 37.665559-91.216931 37.665559s-66.933216-13.377843-91.222931-37.665559c-50.293411-50.299411-50.293411-132.140451 0-182.441862l6.239927-6.235926a394.031382 394.031382 0 0 1-18.397785-44.349481h-8.793897C57.875322 641.002488 0.004 583.129166 0.004 511.996s57.873322-129.004488 129.004488-129.004488h8.789897a393.827385 393.827385 0 0 1 18.399785-44.34948l-6.239927-6.239927c-50.293411-50.299411-50.293411-132.140451 0-182.439862 24.289715-24.289715 56.683336-37.667559 91.222931-37.667559s66.933216 13.377843 91.218931 37.667559l6.239927 6.235927a393.981383 393.981383 0 0 1 44.34948-18.399785v-8.789897c0-71.133166 57.873322-129.004488 129.004488-129.004488s129.004488 57.873322 129.004488 129.004488V137.798385a394.727374 394.727374 0 0 1 44.349481 18.399785l6.239926-6.239927c24.287715-24.287715 56.681336-37.665559 91.218931-37.665559s66.933216 13.377843 91.222931 37.665559c50.293411 50.299411 50.293411 132.140451 0 182.441862-11.501865 11.501865-30.155647 11.501865-41.665511 0-11.503865-11.503865-11.503865-30.155647 0-41.661512 27.32368-27.32768 27.32368-71.791159 0-99.118839-13.159846-13.161846-30.75964-20.409761-49.55742-20.40976s-36.395573 7.247915-49.555419 20.40976l-21.547747 21.547748a29.449655 29.449655 0 0 1-35.243587 4.859943 334.960075 334.960075 0 0 0-72.911146-30.249646 29.457655 29.457655 0 0 1-21.469748-28.355667V129.010488c0-38.645547-31.439632-70.085179-70.085179-70.085179s-70.085179 31.439632-70.085179 70.085179v30.423644a29.461655 29.461655 0 0 1-21.469748 28.355667 335.000074 335.000074 0 0 0-72.911146 30.249646 29.459655 29.459655 0 0 1-35.243587-4.859943l-21.547747-21.547748c-13.159846-13.161846-30.75564-20.409761-49.555419-20.409761s-36.397573 7.247915-49.55742 20.409761c-27.32368 27.32368-27.32368 71.787159 0 99.118839l21.547748 21.543747a29.455655 29.455655 0 0 1 4.859943 35.243587 334.836076 334.836076 0 0 0-30.249646 72.911146 29.453655 29.453655 0 0 1-28.355667 21.469748H129.008488c-38.645547 0-70.085179 31.439632-70.085179 70.085179s31.439632 70.085179 70.085179 70.085179h30.423644a29.459655 29.459655 0 0 1 28.355667 21.467748 335.156072 335.156072 0 0 0 30.249646 72.913146 29.461655 29.461655 0 0 1-4.863943 35.243587l-21.547748 21.543747c-27.32168 27.32368-27.32168 71.787159 0.002 99.114839 13.159846 13.161846 30.75964 20.409761 49.55742 20.40976s36.395573-7.247915 49.555419-20.40976l21.549747-21.543748a29.457655 29.457655 0 0 1 35.237587-4.863943 335.180072 335.180072 0 0 0 72.913146 30.249646 29.457655 29.457655 0 0 1 21.469748 28.355667v30.425644c0 38.643547 31.439632 70.083179 70.085179 70.083178s70.085179-31.439632 70.085179-70.083178V864.569868a29.461655 29.461655 0 0 1 21.469748-28.355667 335.138073 335.138073 0 0 0 72.913146-30.249646 29.459655 29.459655 0 0 1 35.237587 4.863943l21.547747 21.543748c13.161846 13.161846 30.75964 20.409761 49.557419 20.40976s36.397573-7.247915 49.55742-20.40976c27.32368-27.32368 27.32368-71.789159 0-99.118839l-21.543748-21.543747a29.455655 29.455655 0 0 1-4.863943-35.243587 335.156072 335.156072 0 0 0 30.249646-72.913146 29.459655 29.459655 0 0 1 28.355667-21.467748h30.423644c38.645547 0 70.085179-31.439632 70.085179-70.085179 0-19.269774-8.171904-37.939555-22.419738-51.2194-11.903861-11.09387-12.561853-29.733652-1.467982-41.635512 11.09387-11.901861 29.739651-12.555853 41.635512-1.467983C1008.984176 442.06082 1023.992 476.438417 1023.992 512c0 71.133166-57.873322 129.004488-129.004488 129.004488H886.193615a394.777374 394.777374 0 0 1-18.397784 44.349481l6.235926 6.235926c50.297411 50.299411 50.297411 132.140451 0.002 182.439862-24.289715 24.289715-56.683336 37.667559-91.222931 37.667559s-66.933216-13.377843-91.220931-37.667559l-6.239926-6.235926a393.239392 393.239392 0 0 1-44.349481 18.399784v8.793897C641.002488 966.120678 583.129166 1023.988 511.998 1023.988z",fill:"#2D527C","p-id":"3908"},null,-1),C1=s("path",{d:"M511.99 511.988m-235.149244 0a235.149244 235.149244 0 1 0 470.298488 0 235.149244 235.149244 0 1 0-470.298488 0Z",fill:"#CEE8FA","p-id":"3909"},null,-1),S1=s("path",{d:"M511.998 776.614899c-145.91029 0-264.614899-118.706609-264.614899-264.614899S366.08771 247.381101 511.998 247.381101s264.614899 118.708609 264.614899 264.618899S657.90829 776.614899 511.998 776.614899z m0-470.316488c-113.420671 0-205.69559 92.274919-205.695589 205.697589 0 113.420671 92.274919 205.69559 205.695589 205.69559s205.69559-92.274919 205.69559-205.69559c0-113.422671-92.274919-205.697589-205.69559-205.697589z",fill:"#2D527C","p-id":"3910"},null,-1),z1=[x1,V1,C1,S1];function D1(d,c){return f(),w("svg",k1,z1)}var L1={name:"custom-settings",render:D1};const T1=d=>(g1("data-v-f457177c"),d=d(),h1(),d),I1={class:"zfile-admin-down-link"},F1={class:"flex justify-between"},M1=T1(()=>s("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u76F4\u94FE\u7BA1\u7406 ",-1)),U1={class:"flex space-x-1.5 justify-center items-center cursor-pointer"},$1={class:"mt-4"},B1={class:"flex justify-between space-x-20"},R1={class:"text-gray-400"},P1=b("\u67E5\u8BE2"),j1=b("\u6279\u91CF\u5220\u9664"),H1=b("\u5220\u9664"),S={__name:"index",setup(d){const c=_(!1),z=()=>{c.value=!0},t=p1({storageId:null,page:1,limit:10,key:"",url:"",date:"",dateFrom:"",dateTo:"",total:0}),D=n=>{t.limit=n,t.page=1,i()},L=n=>{t.page=n,i()},y=_(),i=()=>{t.date instanceof Array?(t.dateFrom=t.date[0],t.dateTo=t.date[1]):(t.dateFrom="",t.dateTo=""),e1(t).then(n=>{y.value=n.data,t.total=n.dataCount})};c1(()=>{i(),T()});const E=_(),T=()=>{w1().then(n=>{E.value=n.data})},I=n=>{t1(n).then(l=>{v.success("\u5220\u9664\u6210\u529F"),i()})},k=_(),F=()=>{let n=k.value.getSelectionRows();if(n.length===0){v.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u6761\u6570\u636E");return}y1.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{type:"warning"}).then(()=>{let l=n.map(m=>m.id);o1({ids:l}).then(m=>{v.success("\u5220\u9664\u6210\u529F"),i()})})};return(n,l)=>{const m=L1,M=a1,U=l1,p=r1,x=E1,$=W,g=q,B=d1,r=s1,R=n1,P=Z,j=i1,H=G,N=Q,Y=O,K=J;return f(),w("div",I1,[e(Y,null,{default:a(()=>[s("div",F1,[M1,s("div",U1,[s("span",{onClick:z},[e(m,{class:"text-xl"})])])]),s("div",$1,[e(B,{inline:"",modelValue:t,"onUpdate:modelValue":l[4]||(l[4]=o=>m1(t)?t.value=o:null)},{default:a(()=>[e(p,{label:"\u5B58\u50A8\u6E90"},{default:a(()=>[e(U,{clearable:"",teleported:!1,modelValue:t.storageId,"onUpdate:modelValue":l[0]||(l[0]=o=>t.storageId=o)},{default:a(()=>[(f(!0),w(_1,null,u1(E.value,o=>(f(),f1(M,{key:o.id,label:o.name,value:o.id},{default:a(()=>[s("div",B1,[s("span",null,h(o.name),1),s("span",R1,h(o.type.description),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u6587\u4EF6\u540D"},{default:a(()=>[e(x,{modelValue:t.url,"onUpdate:modelValue":l[1]||(l[1]=o=>t.url=o)},null,8,["modelValue"])]),_:1}),e(p,{label:"\u77ED\u94FE Key"},{default:a(()=>[e(x,{modelValue:t.key,"onUpdate:modelValue":l[2]||(l[2]=o=>t.key=o)},null,8,["modelValue"])]),_:1}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e($,{modelValue:t.date,"onUpdate:modelValue":l[3]||(l[3]=o=>t.date=o),type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,2,1,23,59,59)],"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue","default-time"])]),_:1}),e(p,null,{default:a(()=>[e(g,{type:"primary",icon:u(A),onClick:i},{default:a(()=>[P1]),_:1},8,["icon"])]),_:1})]),_:1},8,["modelValue"]),s("div",null,[e(g,{onClick:F,icon:u(V),type:"danger"},{default:a(()=>[j1]),_:1},8,["icon"])]),e(j,{ref_key:"linkTableRef",ref:k,size:"large",data:y.value},{default:a(()=>[e(r,{type:"selection",width:"55"}),e(r,{width:"120",label:"\u5B58\u50A8\u6E90\u540D\u79F0"},{default:a(o=>[e(R,{content:o.row.storageType.description,placement:"right"},{default:a(()=>[s("span",null,h(o.row.storageName),1)]),_:2},1032,["content"])]),_:1}),e(r,{width:"110",prop:"shortKey",label:"\u77ED\u94FE Key"}),e(r,{"show-tooltip-when-overflow":"",prop:"url",label:"\u8DEF\u5F84"}),e(r,{width:"180",prop:"createDate",label:"\u521B\u5EFA\u65F6\u95F4"}),e(r,{width:"120",label:"\u64CD\u4F5C"},{default:a(o=>[e(P,{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onConfirm:N1=>I(o.row.id)},{reference:a(()=>[e(g,{icon:u(V),type:"danger"},{default:a(()=>[H1]),_:1},8,["icon"])]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),e(N,{locale:u(X)},{default:a(()=>[e(H,{class:"mt-3","page-size":t.limit,background:"",layout:"total, sizes, prev, pager, next, jumper",onCurrentChange:L,onSizeChange:D,"current-page":t.page,"onUpdate:current-page":l[5]||(l[5]=o=>t.page=o),"default-current-page":10,"page-sizes":[10,50,100,200,1e3,99999999],total:t.total},null,8,["page-size","current-page","total"])]),_:1},8,["locale"])])]),_:1}),e(K,{modelValue:c.value,"onUpdate:modelValue":l[6]||(l[6]=o=>c.value=o),"destroy-on-close":!0,title:"\u76F4\u94FE\u8BBE\u7F6E","custom-class":"zfile-admin-down-link-dialog",draggable:"",top:"5vh",width:"80%"},{default:a(()=>[e(v1)]),_:1},8,["modelValue"])])}}};typeof C=="function"&&C(S);var U9=b1(S,[["__scopeId","data-v-f457177c"]]);export{U9 as default}; diff --git a/src/main/resources/static/assets/index.0b21af12.js b/src/main/resources/static/assets/index.78fa4530.js similarity index 73% rename from src/main/resources/static/assets/index.0b21af12.js rename to src/main/resources/static/assets/index.78fa4530.js index edc358d..3743ce8 100644 --- a/src/main/resources/static/assets/index.0b21af12.js +++ b/src/main/resources/static/assets/index.78fa4530.js @@ -1 +1 @@ -import{b0 as G,r as J}from"./base.d698891e.js";/* empty css */import{Z as Q,a as j}from"./ZFormItem.7a4b4758.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as H}from"./popper.14a92806.js";import{E as K}from"./image-viewer.65ed4853.js";/* empty css */import{E as O}from"./radio.427cda7a.js";import{E as W}from"./switch.2393edfd.js";import{g as X,v as x,l as Y,d as $}from"./admin-setting.158855e4.js";import{r as ee,az as A,w as F,u as e,Q as oe,a as m,b as v,e as n,h as l,I,f as T,k as h,J as a,U as te,V as ne,p as k}from"./index.552205f5.js";import{t as ie}from"./vue3-clipboard.esm-bundler.34366eba.js";import{E as p}from"./request.3708b2c4.js";import{E as R}from"./index.11692625.js";import{b as U}from"./route-block.9b0645f8.js";import{_ as ae}from"./plugin-vue_export-helper.21dcd24c.js";import{E as le}from"./index.4ab44dc8.js";import{v as se}from"./directive.e250a256.js";import"./index.c92ded65.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.1e624cbf.js";import"./debounce.32892d61.js";import"./scroll.cbf731df.js";import"./event.776e7e11.js";import"./validator.6f3b33db.js";import"./index.0f572ca8.js";const y=ee({});function re(){const{data:r,reload:o}=A(Y,{formatResult:t=>t.data}),{loading:u,run:g}=A($,{manual:!0,onSuccess(){p({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}}),f=()=>{g(r.value)},d=()=>{X().then(t=>{y.value=t.data})};return{data:r,reload:o,saveData:f,saveLoading:u,load2FAInfo:d,twoFAData:y,copyTwoFASecret:()=>{ie(y.value.secret).then(()=>{p.success("\u590D\u5236\u6210\u529F")})},verifyCodeAndBind:()=>{x(y.value).then(t=>{p.success("\u7ED1\u5B9A\u6210\u529F"),o()})},rebind:()=>{r.value.loginVerifySecret="",d()},cancelBind:()=>{R.confirm("\u662F\u5426\u786E\u8BA4\u53D6\u6D88\u7ED1\u5B9A\uFF0C\u786E\u8BA4\u540E\u5C06\u81EA\u52A8\u6062\u590D\u4E3A\u56FE\u5F62\u9A8C\u8BC1\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:t=>{t==="confirm"&&(r.value.loginVerifySecret="",r.value.loginVerifyMode="image")}})},validBind:()=>{R.prompt("\u8BF7\u8F93\u5165\u53CC\u56E0\u7D20\u8BA4\u8BC1 APP \u4E2D\u7684\u9A8C\u8BC1\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputValidator(t){return!!t},inputErrorMessage:"\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:t})=>{let i={secret:r.value.loginVerifySecret,code:t};x(i).then(()=>{p.success("\u9A8C\u8BC1\u6210\u529F")})})}}}const b=r=>(te("data-v-7666d571"),r=r(),ne(),r),de=a(" \u5B89\u5168\u8BBE\u7F6E "),ce=a(" \u6B64\u5904\u8BBE\u7F6E\u53EF\u4FDD\u62A4\u60A8\u7684\u7AD9\u70B9\u5B89\u5168 "),me=a(" \u542F\u7528\u540E\uFF0C\u4F1A\u5728\u95E8\u6237\u663E\u793A\u540E\u53F0\u767B\u5F55\u5165\u53E3\uFF0C\u8BF7\u6839\u636E\u81EA\u8EAB\u60C5\u51B5\u9009\u62E9\u662F\u5426\u542F\u7528 "),ue=a("\u4E0D\u542F\u7528\u767B\u5F55\u9A8C\u8BC1"),fe=a("\u542F\u7528\u56FE\u7247\u9A8C\u8BC1\u7801"),_e=a("\u542F\u7528\u53CC\u56E0\u7D20\u8BA4\u8BC1"),pe=a(" \u56FE\u7247\u9A8C\u8BC1\u7801\u4E5F\u53EF\u80FD\u4F1A\u88AB\u8BC6\u522B\uFF0C\u4E0D\u80FD\u5B8C\u5168\u62B5\u6321\u66B4\u529B\u7834\u89E3\u3002 "),ye=a(" \u53CC\u56E0\u7D20\u8BA4\u8BC1\u53EF\u5B8C\u7F8E\u4FDD\u62A4\u767B\u5F55\u8BA4\u8BC1\uFF0C\u53EF\u4F7F\u7528\u4EFB\u610F\u652F\u6301 2FA \u8BA4\u8BC1\u7684\u8F6F\u4EF6\uFF0C\u5982 "),ge=b(()=>k("b",null,"Google \u8EAB\u4EFD\u9A8C\u8BC1\u5668",-1)),Ve=a("\u3001"),ve=b(()=>k("b",null,"Microsoft Authenticator",-1)),he=a(" \u7B49\u8F6F\u4EF6. "),ke=b(()=>k("br",null,null,-1)),be={key:0,class:"w-full"},Se=a("\u91CD\u65B0\u7ED1\u5B9A"),Be=a("\u53D6\u6D88\u7ED1\u5B9A"),Ce=a("\u9A8C\u8BC1\u7ED1\u5B9A"),Ee={key:1},we=a(" \u53EF\u626B\u63CF\u4E0A\u65B9\u4E8C\u7EF4\u7801\u6216\u590D\u5236\u4E0B\u65B9\u5BC6\u94A5\u5230\u652F\u6301\u53CC\u56E0\u7D20\u8BA4\u8BC1\u7684\u8F6F\u4EF6\u4E2D\u6DFB\u52A0\u3002 "),Me=a("\u9A8C\u8BC1\u5E76\u7ED1\u5B9A"),xe=a(" \u8BF7\u7ED1\u5B9A\u53CC\u56E0\u7D20\u8BA4\u8BC1\u8F6F\u4EF6\u540E\uFF0C\u8F93\u5165\u663E\u793A\u7684\u9A8C\u8BC1\u7801\u8FDB\u884C\u7ED1\u5B9A "),q={__name:"index",setup(r){const{data:o,saveData:u,saveLoading:g,load2FAInfo:f,twoFAData:d,copyTwoFASecret:S,verifyCodeAndBind:B,rebind:C,cancelBind:E,validBind:w}=re();return F(()=>{var t;return(t=o.value)==null?void 0:t.loginVerifyMode},(t,i)=>{(t==="off"||t==="image")&&i&&u(),t==="2fa"&&!o.value.loginVerifySecret&&f()}),F(()=>{var t;return(t=o.value)==null?void 0:t.showLogin},(t,i)=>{t!==i&&i!==void 0&&u()}),(t,i)=>{const z=W,_=Q,V=O,c=J,D=K,L=H,M=le,N=j,Z=se;return e(o)?oe((m(),v(N,{key:0,model:e(o)},{"form-title":n(()=>[de]),"form-sub-title":n(()=>[ce]),default:n(()=>[l(_,{label:"\u662F\u5426\u663E\u793A\u767B\u5F55\u5165\u53E3"},{tips:n(()=>[me]),default:n(()=>[l(z,{modelValue:e(o).showLogin,"onUpdate:modelValue":i[0]||(i[0]=s=>e(o).showLogin=s)},null,8,["modelValue"])]),_:1}),l(_,{label:"\u767B\u5F55\u9A8C\u8BC1\u65B9\u5F0F"},I({default:n(()=>[l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[1]||(i[1]=s=>e(o).loginVerifyMode=s),label:"off"},{default:n(()=>[ue]),_:1},8,["modelValue"]),l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[2]||(i[2]=s=>e(o).loginVerifyMode=s),label:"image"},{default:n(()=>[fe]),_:1},8,["modelValue"]),l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[3]||(i[3]=s=>e(o).loginVerifyMode=s),label:"2fa"},{default:n(()=>[_e]),_:1},8,["modelValue"])]),_:2},[e(o).loginVerifyMode==="image"?{name:"tips",fn:n(()=>[pe])}:void 0,e(o).loginVerifyMode==="2fa"?{name:"tips",fn:n(()=>[ye,ge,Ve,ve,he,ke])}:void 0]),1024),e(o).loginVerifyMode==="2fa"?(m(),v(_,{key:0,label:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u5BC6\u94A5"},I({default:n(()=>{var s;return[e(o).loginVerifySecret?(m(),T("div",be,[l(c,{size:"small",type:"primary",onClick:e(C)},{default:n(()=>[Se]),_:1},8,["onClick"]),l(c,{size:"small",type:"primary",onClick:e(E)},{default:n(()=>[Be]),_:1},8,["onClick"]),l(c,{size:"small",type:"primary",onClick:e(w)},{default:n(()=>[Ce]),_:1},8,["onClick"])])):(m(),T("div",Ee,[l(D,{onClick:e(f),src:(s=e(d))==null?void 0:s.qrcode},null,8,["onClick","src"]),l(M,{readonly:"",modelValue:e(d).secret,"onUpdate:modelValue":i[4]||(i[4]=P=>e(d).secret=P)},{append:n(()=>[l(L,{class:"item",effect:"dark",content:"\u590D\u5236",placement:"bottom"},{default:n(()=>[l(c,{onClick:e(S),icon:e(G)},null,8,["onClick","icon"])]),_:1})]),_:1},8,["modelValue"])]))]}),_:2},[e(o).loginVerifySecret?void 0:{name:"tips",fn:n(()=>[we])}]),1024)):h("",!0),e(o).loginVerifyMode==="2fa"&&!e(o).loginVerifySecret?(m(),v(_,{key:1,label:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u9A8C\u8BC1\u7801"},{tips:n(()=>[xe]),default:n(()=>[l(M,{modelValue:e(d).code,"onUpdate:modelValue":i[5]||(i[5]=s=>e(d).code=s)},null,8,["modelValue"]),l(c,{onClick:e(B),type:"primary"},{default:n(()=>[Me]),_:1},8,["onClick"])]),_:1})):h("",!0)]),_:1},8,["model"])),[[Z,e(g)]]):h("",!0)}}};typeof U=="function"&&U(q);var io=ae(q,[["__scopeId","data-v-7666d571"]]);export{io as default}; +import{b2 as G,r as J}from"./base.4ef7f45b.js";/* empty css */import{Z as Q,a as j}from"./ZFormItem.899c4541.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as H}from"./popper.718d36e0.js";import{E as K}from"./image-viewer.ed2baaff.js";/* empty css */import{E as O}from"./radio.35753592.js";import{E as W}from"./switch.87050cd5.js";import{g as X,v as M,l as Y,d as $}from"./admin-setting.28847312.js";import{r as ee,aA as x,w as F,u as e,Q as oe,a as m,b as v,e as n,h as l,I,f as T,k as h,J as a,U as te,V as ne,p as k}from"./index.43b3cbf5.js";import{t as ie}from"./vue3-clipboard.esm-bundler.34366eba.js";import{E as p}from"./request.e2daed10.js";import{E as R}from"./index.439070da.js";import{b as U}from"./route-block.9b0645f8.js";import{_ as ae}from"./plugin-vue_export-helper.21dcd24c.js";import{E as le}from"./index.da7dbe5d.js";import{v as se}from"./directive.378eb0e0.js";import"./index.5cf4e3bb.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.566ad052.js";import"./debounce.014e7b6e.js";import"./scroll.90c07eee.js";import"./event.776e7e11.js";import"./validator.b1ae6965.js";import"./index.d46124aa.js";const y=ee({});function re(){const{data:r,reload:o}=x(Y,{formatResult:t=>t.data}),{loading:u,run:g}=x($,{manual:!0,onSuccess(){p({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}}),f=()=>{g(r.value)},d=()=>{X().then(t=>{y.value=t.data})};return{data:r,reload:o,saveData:f,saveLoading:u,load2FAInfo:d,twoFAData:y,copyTwoFASecret:()=>{ie(y.value.secret).then(()=>{p.success("\u590D\u5236\u6210\u529F")})},verifyCodeAndBind:()=>{M(y.value).then(t=>{p.success("\u7ED1\u5B9A\u6210\u529F"),o()})},rebind:()=>{r.value.loginVerifySecret="",d()},cancelBind:()=>{R.confirm("\u662F\u5426\u786E\u8BA4\u53D6\u6D88\u7ED1\u5B9A\uFF0C\u786E\u8BA4\u540E\u5C06\u81EA\u52A8\u6062\u590D\u4E3A\u56FE\u5F62\u9A8C\u8BC1\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:t=>{t==="confirm"&&(r.value.loginVerifySecret="",r.value.loginVerifyMode="image")}})},validBind:()=>{R.prompt("\u8BF7\u8F93\u5165\u53CC\u56E0\u7D20\u8BA4\u8BC1 APP \u4E2D\u7684\u9A8C\u8BC1\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputValidator(t){return!!t},inputErrorMessage:"\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:t})=>{let i={secret:r.value.loginVerifySecret,code:t};M(i).then(()=>{p.success("\u9A8C\u8BC1\u6210\u529F")})})}}}const b=r=>(te("data-v-7666d571"),r=r(),ne(),r),de=a(" \u5B89\u5168\u8BBE\u7F6E "),ce=a(" \u6B64\u5904\u8BBE\u7F6E\u53EF\u4FDD\u62A4\u60A8\u7684\u7AD9\u70B9\u5B89\u5168 "),me=a(" \u542F\u7528\u540E\uFF0C\u4F1A\u5728\u95E8\u6237\u663E\u793A\u540E\u53F0\u767B\u5F55\u5165\u53E3\uFF0C\u8BF7\u6839\u636E\u81EA\u8EAB\u60C5\u51B5\u9009\u62E9\u662F\u5426\u542F\u7528 "),ue=a("\u4E0D\u542F\u7528\u767B\u5F55\u9A8C\u8BC1"),fe=a("\u542F\u7528\u56FE\u7247\u9A8C\u8BC1\u7801"),_e=a("\u542F\u7528\u53CC\u56E0\u7D20\u8BA4\u8BC1"),pe=a(" \u56FE\u7247\u9A8C\u8BC1\u7801\u4E5F\u53EF\u80FD\u4F1A\u88AB\u8BC6\u522B\uFF0C\u4E0D\u80FD\u5B8C\u5168\u62B5\u6321\u66B4\u529B\u7834\u89E3\u3002 "),ye=a(" \u53CC\u56E0\u7D20\u8BA4\u8BC1\u53EF\u5B8C\u7F8E\u4FDD\u62A4\u767B\u5F55\u8BA4\u8BC1\uFF0C\u53EF\u4F7F\u7528\u4EFB\u610F\u652F\u6301 2FA \u8BA4\u8BC1\u7684\u8F6F\u4EF6\uFF0C\u5982 "),ge=b(()=>k("b",null,"Google \u8EAB\u4EFD\u9A8C\u8BC1\u5668",-1)),Ve=a("\u3001"),ve=b(()=>k("b",null,"Microsoft Authenticator",-1)),he=a(" \u7B49\u8F6F\u4EF6. "),ke=b(()=>k("br",null,null,-1)),be={key:0,class:"w-full"},Se=a("\u91CD\u65B0\u7ED1\u5B9A"),Be=a("\u53D6\u6D88\u7ED1\u5B9A"),Ce=a("\u9A8C\u8BC1\u7ED1\u5B9A"),Ee={key:1},we=a(" \u53EF\u626B\u63CF\u4E0A\u65B9\u4E8C\u7EF4\u7801\u6216\u590D\u5236\u4E0B\u65B9\u5BC6\u94A5\u5230\u652F\u6301\u53CC\u56E0\u7D20\u8BA4\u8BC1\u7684\u8F6F\u4EF6\u4E2D\u6DFB\u52A0\u3002 "),Ae=a("\u9A8C\u8BC1\u5E76\u7ED1\u5B9A"),Me=a(" \u8BF7\u7ED1\u5B9A\u53CC\u56E0\u7D20\u8BA4\u8BC1\u8F6F\u4EF6\u540E\uFF0C\u8F93\u5165\u663E\u793A\u7684\u9A8C\u8BC1\u7801\u8FDB\u884C\u7ED1\u5B9A "),q={__name:"index",setup(r){const{data:o,saveData:u,saveLoading:g,load2FAInfo:f,twoFAData:d,copyTwoFASecret:S,verifyCodeAndBind:B,rebind:C,cancelBind:E,validBind:w}=re();return F(()=>{var t;return(t=o.value)==null?void 0:t.loginVerifyMode},(t,i)=>{(t==="off"||t==="image")&&i&&u(),t==="2fa"&&!o.value.loginVerifySecret&&f()}),F(()=>{var t;return(t=o.value)==null?void 0:t.showLogin},(t,i)=>{t!==i&&i!==void 0&&u()}),(t,i)=>{const D=W,_=Q,V=O,c=J,L=K,z=H,A=le,N=j,Z=se;return e(o)?oe((m(),v(N,{key:0,model:e(o)},{"form-title":n(()=>[de]),"form-sub-title":n(()=>[ce]),default:n(()=>[l(_,{label:"\u662F\u5426\u663E\u793A\u767B\u5F55\u5165\u53E3"},{tips:n(()=>[me]),default:n(()=>[l(D,{modelValue:e(o).showLogin,"onUpdate:modelValue":i[0]||(i[0]=s=>e(o).showLogin=s)},null,8,["modelValue"])]),_:1}),l(_,{label:"\u767B\u5F55\u9A8C\u8BC1\u65B9\u5F0F"},I({default:n(()=>[l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[1]||(i[1]=s=>e(o).loginVerifyMode=s),label:"off"},{default:n(()=>[ue]),_:1},8,["modelValue"]),l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[2]||(i[2]=s=>e(o).loginVerifyMode=s),label:"image"},{default:n(()=>[fe]),_:1},8,["modelValue"]),l(V,{modelValue:e(o).loginVerifyMode,"onUpdate:modelValue":i[3]||(i[3]=s=>e(o).loginVerifyMode=s),label:"2fa"},{default:n(()=>[_e]),_:1},8,["modelValue"])]),_:2},[e(o).loginVerifyMode==="image"?{name:"tips",fn:n(()=>[pe])}:void 0,e(o).loginVerifyMode==="2fa"?{name:"tips",fn:n(()=>[ye,ge,Ve,ve,he,ke])}:void 0]),1024),e(o).loginVerifyMode==="2fa"?(m(),v(_,{key:0,label:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u5BC6\u94A5"},I({default:n(()=>{var s;return[e(o).loginVerifySecret?(m(),T("div",be,[l(c,{size:"small",type:"primary",onClick:e(C)},{default:n(()=>[Se]),_:1},8,["onClick"]),l(c,{size:"small",type:"primary",onClick:e(E)},{default:n(()=>[Be]),_:1},8,["onClick"]),l(c,{size:"small",type:"primary",onClick:e(w)},{default:n(()=>[Ce]),_:1},8,["onClick"])])):(m(),T("div",Ee,[l(L,{onClick:e(f),src:(s=e(d))==null?void 0:s.qrcode},null,8,["onClick","src"]),l(A,{readonly:"",modelValue:e(d).secret,"onUpdate:modelValue":i[4]||(i[4]=P=>e(d).secret=P)},{append:n(()=>[l(z,{class:"item",effect:"dark",content:"\u590D\u5236",placement:"bottom"},{default:n(()=>[l(c,{onClick:e(S),icon:e(G)},null,8,["onClick","icon"])]),_:1})]),_:1},8,["modelValue"])]))]}),_:2},[e(o).loginVerifySecret?void 0:{name:"tips",fn:n(()=>[we])}]),1024)):h("",!0),e(o).loginVerifyMode==="2fa"&&!e(o).loginVerifySecret?(m(),v(_,{key:1,label:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u9A8C\u8BC1\u7801"},{tips:n(()=>[Me]),default:n(()=>[l(A,{modelValue:e(d).code,"onUpdate:modelValue":i[5]||(i[5]=s=>e(d).code=s)},null,8,["modelValue"]),l(c,{onClick:e(B),type:"primary"},{default:n(()=>[Ae]),_:1},8,["onClick"])]),_:1})):h("",!0)]),_:1},8,["model"])),[[Z,e(g)]]):h("",!0)}}};typeof U=="function"&&U(q);var io=ae(q,[["__scopeId","data-v-7666d571"]]);export{io as default}; diff --git a/src/main/resources/static/assets/index.8485884c.js b/src/main/resources/static/assets/index.8485884c.js deleted file mode 100644 index 4d41cbe..0000000 --- a/src/main/resources/static/assets/index.8485884c.js +++ /dev/null @@ -1 +0,0 @@ -import{P as le,L as te,r as _,ae as oe,a as u,b as d,e as o,p as V,h as i,u as e,f as b,y as w,F as P,Q as se,R as ne,J as h,t as S,k as A,U as re,V as ue,o as ie,c as me,w as I}from"./index.552205f5.js";import{x as L,r as ce}from"./base.d698891e.js";/* empty css *//* empty css */import"./popper.14a92806.js";import{E as de}from"./link.0fb91bad.js";import"./scrollbar.97fa2ffd.js";import{E as pe}from"./switch.2393edfd.js";/* empty css */import{E as ye,a as fe}from"./select.ff52a9e1.js";import{S as he}from"./SvgIcon.c7a5ac24.js";import{Z as k,a as ge}from"./ZFormItem.7a4b4758.js";import{f as ve,g as _e,h as be,i as Se,e as ke}from"./admin-storage.260bbac1.js";import{e as N}from"./request.3708b2c4.js";import{b as M}from"./route-block.9b0645f8.js";import{_ as Ve}from"./plugin-vue_export-helper.21dcd24c.js";import{E as we}from"./index.3eb5cbdf.js";import{E as Pe}from"./index.e168d154.js";import{r as qe}from"./BadgeCheckIcon.09c2c42b.js";import{E as Ae}from"./index.11692625.js";import{E as Ie}from"./index.4ab44dc8.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./validator.6f3b33db.js";import"./event.776e7e11.js";import"./index.24f1077d.js";import"./index.1e624cbf.js";import"./scroll.cbf731df.js";import"./isEqual.fe8e5f6f.js";import"./debounce.32892d61.js";import"./index.c92ded65.js";import"./dropdown.d5503246.js";import"./index.0f572ca8.js";let O={aliyun:[{name:"\u534E\u4E1C 1\uFF08\u676D\u5DDE\uFF09",val:"oss-cn-hangzhou.aliyuncs.com"},{name:"\u534E\u4E1C 2\uFF08\u4E0A\u6D77\uFF09",val:"oss-cn-shanghai.aliyuncs.com"},{name:"\u534E\u5317 1\uFF08\u9752\u5C9B\uFF09",val:"oss-cn-qingdao.aliyuncs.com"},{name:"\u534E\u5317 2\uFF08\u5317\u4EAC\uFF09",val:"oss-cn-beijing.aliyuncs.com"},{name:"\u534E\u5317 3\uFF08\u5F20\u5BB6\u53E3\uFF09",val:"oss-cn-zhangjiakou.aliyuncs.com"},{name:"\u534E\u5317 5\uFF08\u547C\u548C\u6D69\u7279\uFF09",val:"oss-cn-huhehaote.aliyuncs.com"},{name:"\u534E\u5317 6\uFF08\u4E4C\u5170\u5BDF\u5E03\uFF09",val:"oss-cn-wulanchabu.aliyuncs.com"},{name:"\u534E\u5357 1\uFF08\u6DF1\u5733\uFF09",val:"oss-cn-shenzhen.aliyuncs.com"},{name:"\u534E\u5357 2\uFF08\u6CB3\u6E90\uFF09",val:"oss-cn-heyuan.aliyuncs.com"},{name:"\u534E\u5357 3\uFF08\u5E7F\u5DDE\uFF09",val:"oss-cn-guangzhou.aliyuncs.com"},{name:"\u897F\u5357 1\uFF08\u6210\u90FD\uFF09",val:"oss-cn-chengdu.aliyuncs.com"},{name:"\u4E2D\u56FD\uFF08\u9999\u6E2F\uFF09",val:"oss-cn-hongkong.aliyuncs.com"},{name:"\u65B0\u52A0\u5761",val:"oss-ap-southeast-1.aliyuncs.com"},{name:"\u65E5\u672C\uFF08\u4E1C\u4EAC\uFF09",val:"oss-ap-northeast-1.aliyuncs.com"},{name:"\u7F8E\u56FD\u897F\u90E8 1 \uFF08\u7845\u8C37\uFF09",val:"oss-us-west-1.aliyuncs.com"},{name:"\u7F8E\u56FD\u4E1C\u90E8 1 \uFF08\u5F17\u5409\u5C3C\u4E9A\uFF09",val:"oss-us-east-1.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 1 \uFF08\u65B0\u52A0\u5761\uFF09",val:"oss-ap-southeast-1.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 2 \uFF08\u6089\u5C3C\uFF09",val:"oss-ap-southeast-2.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 3 \uFF08\u5409\u9686\u5761\uFF09",val:"oss-ap-southeast-3.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 5 \uFF08\u96C5\u52A0\u8FBE\uFF09",val:"oss-ap-southeast-5.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5317 1 \uFF08\u65E5\u672C\uFF09",val:"oss-ap-northeast-1.aliyuncs.com"},{name:"\u4E9A\u592A\u5357\u90E8 1 \uFF08\u5B5F\u4E70\uFF09",val:"oss-ap-south-1.aliyuncs.com"},{name:"\u6B27\u6D32\u4E2D\u90E8 1 \uFF08\u6CD5\u5170\u514B\u798F\uFF09",val:"oss-eu-central-1.aliyuncs.com"},{name:"\u82F1\u56FD\uFF08\u4F26\u6566\uFF09",val:"oss-eu-west-1.aliyuncs.com"},{name:"\u4E2D\u4E1C\u4E1C\u90E8 1 \uFF08\u8FEA\u62DC\uFF09",val:"oss-me-east-1.aliyuncs.com"}],tencent:[{name:"\u5317\u4EAC\u4E00\u533A",val:"cos.ap-beijing-1.myqcloud.com"},{name:"\u5317\u4EAC",val:"cos.ap-beijing.myqcloud.com"},{name:"\u4E0A\u6D77",val:"cos.ap-shanghai.myqcloud.com"},{name:"\u5E7F\u5DDE",val:"cos.ap-guangzhou.myqcloud.com"},{name:"\u6210\u90FD",val:"cos.ap-chengdu.myqcloud.com"},{name:"\u91CD\u5E86",val:"cos.ap-chongqing.myqcloud.com"},{name:"\u6DF1\u5733\u91D1\u878D",val:"cos.ap-shenzhen-fsi.myqcloud.com"},{name:"\u4E0A\u6D77\u91D1\u878D",val:"cos.ap-shanghai-fsi.myqcloud.com"},{name:"\u5317\u4EAC\u91D1\u878D",val:"cos.ap-beijing-fsi.myqcloud.com"},{name:"\u4E2D\u56FD\u9999\u6E2F",val:"cos.ap-hongkong.myqcloud.com"},{name:"\u65B0\u52A0\u5761",val:"cos.ap-singapore.myqcloud.com"},{name:"\u5B5F\u4E70",val:"cos.ap-mumbai.myqcloud.com"},{name:"\u96C5\u8FBE\u52A0",val:"cos.ap-jakarta.myqcloud.com"},{name:"\u9996\u5C14",val:"cos.ap-seoul.myqcloud.com"},{name:"\u66FC\u8C37",val:"cos.ap-bangkok.myqcloud.com"},{name:"\u4E1C\u4EAC",val:"cos.ap-tokyo.myqcloud.com"},{name:"\u7845\u8C37\uFF08\u7F8E\u897F\uFF09",val:"cos.na-siliconvalley.myqcloud.com"},{name:"\u5F17\u5409\u5C3C\u4E9A\uFF08\u7F8E\u4E1C\uFF09",val:"cos.na-ashburn.myqcloud.com"},{name:"\u591A\u4F26\u591A",val:"cos.na-toronto.myqcloud.com"},{name:"\u6CD5\u5170\u514B\u798F",val:"cos.eu-frankfurt.myqcloud.com"},{name:"\u83AB\u65AF\u79D1",val:"cos.eu-moscow"}],huawei:[{name:"\u975E\u6D32-\u7EA6\u7FF0\u5185\u65AF\u5821",val:"obs.af-south-1.myhuaweicloud.com"},{name:"\u534E\u5317-\u5317\u4EAC\u56DB",val:"obs.cn-north-4.myhuaweicloud.com"},{name:"\u534E\u5317-\u5317\u4EAC\u4E00",val:"obs.cn-north-1.myhuaweicloud.com"},{name:"\u534E\u4E1C-\u4E0A\u6D77\u4E8C",val:"obs.cn-east-2.myhuaweicloud.com"},{name:"\u534E\u4E1C-\u4E0A\u6D77\u4E00",val:"obs.cn-east-3.myhuaweicloud.com"},{name:"\u534E\u5357-\u5E7F\u5DDE",val:"obs.cn-south-1.myhuaweicloud.com"},{name:"\u897F\u5357-\u8D35\u9633\u4E00",val:"obs.cn-southwest-2.myhuaweicloud.com"},{name:"\u4E9A\u592A-\u66FC\u8C37",val:"obs.ap-southeast-2.myhuaweicloud.com"},{name:"\u4E2D\u56FD-\u9999\u6E2F",val:"obs.ap-southeast-1.myhuaweicloud.com"},{name:"\u4E9A\u592A-\u65B0\u52A0\u5761",val:"obs.ap-southeast-3.myhuaweicloud.com"}],qiniu:[{name:"\u534E\u4E1C",val:"s3-cn-east-1.qiniucs.com"},{name:"\u534E\u5317",val:"s3-cn-north-1.qiniucs.com"},{name:"\u534E\u5357",val:"s3-cn-south-1.qiniucs.com"},{name:"\u5317\u7F8E",val:"s3-us-north-1.qiniucs.com"},{name:"\u4E1C\u5357\u4E9A",val:"s3-ap-southeast-1.qiniucs.com"},{name:"\u534E\u4E1C-\u6D59\u6C5F2",val:"s3-cn-east-2.qiniucs.com"}]};const Ee=g=>N({url:"/sharepoint/getSites",method:"post",data:g}),Ue=g=>N({url:"/sharepoint/getSiteLists",method:"post",data:g}),xe=g=>N({url:"/s3/getBuckets",method:"post",data:g,config:{showDefaultMsg:!1}});const B=g=>(re("data-v-2b52e2be"),g=g(),ue(),g),Te={class:"flex justify-items-center"},Le=B(()=>V("span",null,"\u5B58\u50A8\u6E90\u4FE1\u606F",-1)),Ne=h(" \u8BF7\u7EF4\u62A4\u60A8\u7684\u5B58\u50A8\u6E90\u4FE1\u606F\uFF0C\u53EF\u53C2\u8003 "),Ce=B(()=>V("a",{class:"link",target:"_blank",href:"https://docs.zfile.vip/#/example"},"ZFile \u5B58\u50A8\u6E90\u914D\u7F6E\u6587\u6863",-1)),Fe=h(" \u5B58\u50A8\u6E90\u522B\u540D\uFF0C\u7528\u4E8E URL \u4E2D\u5C55\u793A, \u5982 http://ip:port/{\u5B58\u50A8\u6E90\u522B\u540D} "),ze=h(" \u5B58\u50A8\u6E90\u5907\u6CE8\u4FE1\u606F, \u7528\u4E8E\u8F85\u52A9\u7BA1\u7406\u5458\u533A\u5206\u4E0D\u540C\u7684\u5B58\u50A8\u6E90, \u6B64\u5B57\u6BB5\u4EC5\u7BA1\u7406\u5458\u53EF\u89C1 "),Re=h(" \u5982\u4E0D\u542F\u7528\uFF0C\u5219\u5728\u524D\u53F0\u4E0D\u663E\u793A\uFF0C\u4E14\u4E0D\u53EF\u8BBF\u95EE. "),Ke=h(" \u662F\u5426\u542F\u7528\u6587\u4EF6\u4E0A\u4F20\uFF0C\u7F16\u8F91\uFF0C\u5220\u9664\u7B49\u64CD\u4F5C. "),Me=h(" \u5F00\u542F\u540E\u6240\u6709\u4EBA\u90FD\u53EF\u8FDB\u884C\u6587\u4EF6\u64CD\u4F5C\uFF0C\u53CD\u4E4B\u4EC5\u7BA1\u7406\u5458\u767B\u5F55\u540E\u53EF\u64CD\u4F5C "),Oe=h(" \u542F\u7528\u540E\uFF0C\u6BCF\u6B21\u5207\u6362\u5230\u6B64\u5B58\u50A8\u6E90\uFF0C\u662F\u5426\u9ED8\u8BA4\u6253\u5F00\u753B\u5ECA\u6A21\u5F0F "),Be={style:{float:"left"}},je={style:{float:"right",color:"#8492a6","font-size":"13px"}},De={style:{float:"left"}},Ze=h("\u9ED8\u8BA4\u7F51\u7AD9"),He=h("\u67E5\u770B\u7F51\u7AD9"),Je={style:{float:"left"}},Qe=h("\u9ED8\u8BA4\u7F51\u7AD9"),$e=h("\u67E5\u770B\u7F51\u7AD9"),Ge={style:{float:"left"}},We={class:"float-right"},Xe={key:7},Ye={key:0},ea=["innerHTML"],aa=h("\u4FDD\u5B58\u8BBE\u7F6E"),j={__name:"index",setup(g){let D=le(),Z=te(),C=null,F=_();const H=()=>{F.value.validate(p=>{p&&(E.value=!0,ve(a.value).then(()=>{U.value=!0,Ae.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:s=>{s==="confirm"&&D.push("/admin/storage-list")}})}).finally(()=>{E.value=!1}))})};let J=()=>{let p=_({orderNum:null,name:"",type:"",remark:"",alias:"",defaultSwitchToImgMode:!1,enable:!0,enableFileOperator:!0,enableFileAnnoOperator:!1,searchEnable:!1,searchIgnoreCase:!1,searchMode:"SEARCH_CACHE",enableCache:!1,autoRefreshCache:!1,storageSourceAllParam:{endPoint:"",pathStyle:"",isPrivate:!1,accessKey:null,secretKey:null,bucketName:null,host:null,port:null,filePath:null,accessToken:null,refreshToken:null,secretId:null,username:null,password:null,basePath:"",domain:"",listId:"",siteId:"",proxyDomain:"",downloadLinkType:"",clientId:"",clientSecret:"",region:"",autoConfigCors:!1}});const s=r=>{ke(r).then(n=>{n.data.type=n.data.type.key,p.value=n.data,C=n.data.key})};let f=_(!1),y=_([]);ie(()=>{_e().then(n=>{y.value=n.data});let r=Z.params.storageId;r&&(f.value=!0,s(r))});let m=_(!1),v=_({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B58\u50A8\u6E90\u540D\u79F0"}],key:[{validator:(r,n,c)=>{if(n==null||n===""){c();return}if(["admin","file","login","install"].includes(n)){c(new Error("\u4E0D\u53EF\u5360\u7528\u7CFB\u7EDF\u7EA7\u540D\u79F0\uFF0C\u8BF7\u4FEE\u6539\u3002"));return}if(!/^[\w\-]+$/.test(n)){c(new Error("\u53EA\u5141\u8BB8\u4F7F\u7528\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u4E0B\u5212\u7EBF\u3001\u6A2A\u6760"));return}if(C===n){c();return}be({storageKey:n}).then(T=>{T.data?c(new Error("\u8BE5\u5B58\u50A8\u6E90\u522B\u540D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u4FEE\u6539\u3002")):c()})}}],type:[{required:!0,message:"\u5B58\u50A8\u7B56\u7565\u4E0D\u80FD\u4E3A\u7A7A"}],"storageSourceAllParam.domain":[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D\uFF0C\u9700\u4EE5 http:// \u6216 https:// \u5F00\u5934"},{validator:(r,n,c)=>{if(n==null||n===""){c();return}if(window.location.protocol==="https:"&&n.indexOf("http://")===0){c(new Error("\u68C0\u6D4B\u5230\u5F53\u524D ZFile \u7AD9\u70B9\u662F https \u534F\u8BAE, \u53D7\u6D4F\u89C8\u5668\u9650\u5236, \u6B64\u5904\u4E5F\u5FC5\u987B\u662F https \u534F\u8BAE, \u5426\u5219\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528."));return}c()}}]});return{storageItem:p,supportStorageType:y,loading:m,rules:v,isEditMode:f}},{storageItem:a,supportStorageType:Q,loading:E,rules:$,isEditMode:U}=J(),G=()=>{let p=_([]),s=me(()=>({accessKey:a.value.storageSourceAllParam.accessKey||a.value.storageSourceAllParam.secretId,secretKey:a.value.storageSourceAllParam.secretKey,endPoint:a.value.storageSourceAllParam.endPoint,region:a.value.storageSourceAllParam.region}));I(()=>s.value,y=>{y.accessKey&&y.secretKey&&y.endPoint&&f(y)});const f=y=>{xe(y).then(m=>{p.value=m.data}).catch(m=>{p.value=[]})};return{bucketList:p}},{bucketList:z}=G(),W=()=>{let p=_([]),s=_([]);const f=r=>r.indexOf("sharepoint")!==-1,y=r=>r==="sharepoint"?"Standard":"China";I(()=>a.value.storageSourceAllParam.accessToken,r=>{r&&m()});const m=()=>{let r=a.value.type;if(f(r)){let n={type:y(r),accessToken:a.value.storageSourceAllParam.accessToken};Ee(n).then(c=>{p.value=c.data})}};I(()=>a.value.storageSourceAllParam.siteId,r=>{r&&v()});const v=()=>{let r=a.value.type;if(f(r)){let n={type:y(r),accessToken:a.value.storageSourceAllParam.accessToken,siteId:a.value.storageSourceAllParam.siteId};Ue(n).then(c=>{s.value=c.data})}};return{sharepointSites:p,sharepointSiteLists:s,isSharePoint:f}},{sharepointSites:X,sharepointSiteLists:Y,isSharePoint:R}=W(),ee=()=>{I(()=>a.value.type,f=>{s(f)});let p=_([]);const s=f=>{!f||Se({storageType:f}).then(y=>{p.value=y.data;for(let m of p.value)!U.value&&m.defaultValue&&(m.defaultValue==="true"?m.defaultValue=!0:m.defaultValue==="false"&&(m.defaultValue=!1),a.value.storageSourceAllParam[m.key]=m.defaultValue)})};return{storageSourceParamList:p}},{storageSourceParamList:ae}=ee();return(p,s)=>{const f=he,y=oe("router-link"),m=Ie,v=ye,r=fe,n=pe,c=we,q=de,x=Pe,T=ce;return u(),d(ge,{model:e(a),class:"zfile-storage-edit",rules:e($),ref_key:"storageEditForm",ref:F},{"form-title":o(()=>[V("div",Te,[i(y,{to:"/admin/storage-list"},{default:o(()=>[i(f,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),Le])]),"form-sub-title":o(()=>[Ne,Ce]),footer:o(()=>[i(T,{loading:e(E),type:"primary",size:"default",icon:e(qe),onClick:H},{default:o(()=>[aa]),_:1},8,["loading","icon"])]),default:o(()=>[i(k,{label:"\u5B58\u50A8\u6E90\u540D\u79F0",prop:"name"},{default:o(()=>[i(m,{modelValue:e(a).name,"onUpdate:modelValue":s[0]||(s[0]=l=>e(a).name=l)},null,8,["modelValue"])]),_:1}),i(k,{label:"\u5B58\u50A8\u6E90\u522B\u540D",prop:"key"},{tips:o(()=>[Fe]),default:o(()=>[i(m,{modelValue:e(a).key,"onUpdate:modelValue":s[1]||(s[1]=l=>e(a).key=l)},null,8,["modelValue"])]),_:1}),i(k,{label:"\u5B58\u50A8\u6E90\u5907\u6CE8"},{tips:o(()=>[ze]),default:o(()=>[i(m,{type:"textarea",rows:3,placeholder:"\u8BF7\u8F93\u5165\u5B58\u50A8\u6E90\u5907\u6CE8",modelValue:e(a).remark,"onUpdate:modelValue":s[2]||(s[2]=l=>e(a).remark=l)},null,8,["modelValue"])]),_:1}),i(k,{label:"\u5B58\u50A8\u7B56\u7565",prop:"type"},{default:o(()=>[i(r,{disabled:e(U),filterable:"",modelValue:e(a).type,"onUpdate:modelValue":s[3]||(s[3]=l=>e(a).type=l),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u7B56\u7565"},{default:o(()=>[(u(!0),b(P,null,w(e(Q),l=>(u(),d(v,{key:l.key,label:l.description,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),i(k,{label:"\u662F\u5426\u542F\u7528"},{tips:o(()=>[Re]),default:o(()=>[i(n,{modelValue:e(a).enable,"onUpdate:modelValue":s[4]||(s[4]=l=>e(a).enable=l)},null,8,["modelValue"])]),_:1}),i(k,{label:"\u542F\u7528\u6587\u4EF6\u64CD\u4F5C"},{tips:o(()=>[Ke]),default:o(()=>[i(n,{modelValue:e(a).enableFileOperator,"onUpdate:modelValue":s[5]||(s[5]=l=>e(a).enableFileOperator=l)},null,8,["modelValue"])]),_:1}),se(i(k,{label:"\u5141\u8BB8\u533F\u540D\u6587\u4EF6\u64CD\u4F5C"},{tips:o(()=>[Me]),default:o(()=>[i(n,{modelValue:e(a).enableFileAnnoOperator,"onUpdate:modelValue":s[6]||(s[6]=l=>e(a).enableFileAnnoOperator=l)},null,8,["modelValue"])]),_:1},512),[[ne,e(a).enableFileOperator]]),i(k,{label:"\u662F\u5426\u9ED8\u8BA4\u6253\u5F00\u753B\u5ECA\u6A21\u5F0F"},{tips:o(()=>[Oe]),default:o(()=>[i(n,{modelValue:e(a).defaultSwitchToImgMode,"onUpdate:modelValue":s[7]||(s[7]=l=>e(a).defaultSwitchToImgMode=l)},null,8,["modelValue"])]),_:1}),(u(!0),b(P,null,w(e(ae),l=>(u(),d(k,{label:l.name,key:l.name,required:l.required,prop:"storageSourceAllParam."+l.key},{tips:o(()=>[l.link?(u(),b("div",Ye,[i(q,{target:"_blank",icon:e(L),href:l.link},{default:o(()=>[h(S(l.linkName),1)]),_:2},1032,["icon","href"])])):A("",!0),l.description?(u(),b("div",{key:1,innerHTML:l.description},null,8,ea)):A("",!0)]),default:o(()=>{var K;return[l.key==="endPoint"&&e(O).hasOwnProperty(e(a).type)?(u(),d(r,{key:0,filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"},modelValue:e(a).storageSourceAllParam.endPoint,"onUpdate:modelValue":s[8]||(s[8]=t=>e(a).storageSourceAllParam.endPoint=t)},{default:o(()=>[(u(!0),b(P,null,w(e(O)[e(a).type],t=>(u(),d(v,{label:t.name,value:t.val,key:t.name},{default:o(()=>[V("span",Be,S(t.name),1),V("span",je,S(t.val),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="siteId"&&e(R)(e(a).type)?(u(),d(r,{key:1,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u7AD9\u70B9\u5217\u8868",modelValue:e(a).storageSourceAllParam.siteId,"onUpdate:modelValue":s[9]||(s[9]=t=>e(a).storageSourceAllParam.siteId=t),class:"input-with-select"},{default:o(()=>[(u(!0),b(P,null,w(e(X),t=>(u(),d(v,{key:t.id,label:t.displayName,value:t.id},{default:o(()=>[V("span",De,[h(S(t.displayName)+" ",1),t.displayName==="Communication site"?(u(),d(c,{key:0,type:"success"},{default:o(()=>[Ze]),_:1})):A("",!0)]),i(x,{placement:"right",width:"400",trigger:"hover",content:t.webUrl},{reference:o(()=>[i(q,{target:"_blank",icon:e(L),href:t.webUrl,underline:!1,class:"float-right",type:"primary"},{default:o(()=>[He]),_:2},1032,["icon","href"])]),_:2},1032,["content"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="listId"&&e(R)(e(a).type)?(u(),d(r,{key:2,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u5B50\u76EE\u5F55",modelValue:e(a).storageSourceAllParam.listId,"onUpdate:modelValue":s[10]||(s[10]=t=>e(a).storageSourceAllParam.listId=t),class:"input-with-select"},{default:o(()=>[(u(!0),b(P,null,w(e(Y),t=>(u(),d(v,{key:t.id,label:t.displayName,value:t.id},{default:o(()=>[V("span",Je,[h(S(t.displayName)+" ",1),t.displayName==="Communication site"?(u(),d(c,{key:0,type:"success"},{default:o(()=>[Qe]),_:1})):A("",!0)]),i(x,{placement:"right",width:"400",trigger:"hover",content:t.webUrl},{reference:o(()=>[i(q,{target:"_blank",icon:e(L),href:t.webUrl,underline:!1,class:"float-right",type:"primary"},{default:o(()=>[$e]),_:2},1032,["icon","href"])]),_:2},1032,["content"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="bucketName"&&((K=e(z))==null?void 0:K.length)>0?(u(),d(r,{key:3,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u5668\u5217\u8868",modelValue:e(a).storageSourceAllParam.bucketName,"onUpdate:modelValue":s[11]||(s[11]=t=>e(a).storageSourceAllParam.bucketName=t),class:"input-with-select"},{default:o(()=>[(u(!0),b(P,null,w(e(z),t=>(u(),d(v,{key:t.name,label:t.name,value:t.name},{default:o(()=>[V("span",Ge,S(t.name),1),V("span",We,S(t.date),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.type==="select"?(u(),d(r,{key:4,filterable:"","default-first-option":"",modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},{default:o(()=>[(u(!0),b(P,null,w(l.options,t=>(u(),d(v,{label:t.label,value:t.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.type==="switch"?(u(),d(n,{key:5,modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},null,8,["modelValue","onUpdate:modelValue"])):l.type==="input"?(u(),d(m,{key:6,modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},null,8,["modelValue","onUpdate:modelValue"])):(u(),b("div",Xe," \u670D\u52A1\u7AEF\u914D\u7F6E\u9519\u8BEF, \u5B57\u6BB5 "+S(l.key)+" \u7C7B\u578B\u4E3A "+S(l.type)+", \u4E0D\u652F\u6301\u6B64\u7C7B\u578B\u7684\u6E32\u67D3. ",1))]}),_:2},1032,["label","required","prop"]))),128))]),_:1},8,["model","rules"])}}};typeof M=="function"&&M(j);var Ca=Ve(j,[["__scopeId","data-v-2b52e2be"]]);export{Ca as default}; diff --git a/src/main/resources/static/assets/index.24f1077d.js b/src/main/resources/static/assets/index.88f36c37.js similarity index 96% rename from src/main/resources/static/assets/index.24f1077d.js rename to src/main/resources/static/assets/index.88f36c37.js index 5d3e4ec..baedb98 100644 --- a/src/main/resources/static/assets/index.24f1077d.js +++ b/src/main/resources/static/assets/index.88f36c37.js @@ -1 +1 @@ -import{u as R,c as Z}from"./request.3708b2c4.js";import{d as A,E as J,r,c as L,H as ee,x as Y,a as H,b as $,e as q,Q as te,R as le,p as M,n as T,u as m,i as W,T as ae,f as F,h as D,F as se,w as j,Z as U,v as oe,W as re,o as ne,ak as ie,g as ce,q as ue,k as ve,a5 as fe}from"./index.552205f5.js";import{b as O,u as I,t as me,_ as X,B as de,d as he,V as E,P as V,w as pe}from"./base.d698891e.js";const G=Symbol("scrollbarContextKey"),z=4,be={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ye=({move:d,size:n,bar:h})=>({[h.size]:n,transform:`translate${h.axis}(${d}%)`}),ge=O({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),we=A({__name:"thumb",props:ge,setup(d){const n=d,h="Thumb",l=J(G),i=I("scrollbar");l||me(h,"can not inject scrollbar context");const c=r(),s=r(),p=r({}),a=r(!1);let g=!1,w=!1,S=de?document.onselectstart:null;const t=L(()=>be[n.vertical?"vertical":"horizontal"]),B=L(()=>ye({size:n.size,move:n.move,bar:t.value})),_=L(()=>c.value[t.value.offset]**2/l.wrapElement[t.value.scrollSize]/n.ratio/s.value[t.value.offset]),N=o=>{var u;if(o.stopPropagation(),o.ctrlKey||[1,2].includes(o.button))return;(u=window.getSelection())==null||u.removeAllRanges(),x(o);const v=o.currentTarget;!v||(p.value[t.value.axis]=v[t.value.offset]-(o[t.value.client]-v.getBoundingClientRect()[t.value.direction]))},C=o=>{if(!s.value||!c.value||!l.wrapElement)return;const u=Math.abs(o.target.getBoundingClientRect()[t.value.direction]-o[t.value.client]),v=s.value[t.value.offset]/2,y=(u-v)*100*_.value/c.value[t.value.offset];l.wrapElement[t.value.scroll]=y*l.wrapElement[t.value.scrollSize]/100},x=o=>{o.stopImmediatePropagation(),g=!0,document.addEventListener("mousemove",P),document.addEventListener("mouseup",k),S=document.onselectstart,document.onselectstart=()=>!1},P=o=>{if(!c.value||!s.value||g===!1)return;const u=p.value[t.value.axis];if(!u)return;const v=(c.value.getBoundingClientRect()[t.value.direction]-o[t.value.client])*-1,y=s.value[t.value.offset]-u,Q=(v-y)*100*_.value/c.value[t.value.offset];l.wrapElement[t.value.scroll]=Q*l.wrapElement[t.value.scrollSize]/100},k=()=>{g=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",k),f(),w&&(a.value=!1)},b=()=>{w=!1,a.value=!!n.size},e=()=>{w=!0,a.value=g};ee(()=>{f(),document.removeEventListener("mouseup",k)});const f=()=>{document.onselectstart!==S&&(document.onselectstart=S)};return R(Y(l,"scrollbarElement"),"mousemove",b),R(Y(l,"scrollbarElement"),"mouseleave",e),(o,u)=>(H(),$(ae,{name:m(i).b("fade"),persisted:""},{default:q(()=>[te(M("div",{ref_key:"instance",ref:c,class:T([m(i).e("bar"),m(i).is(m(t).key)]),onMousedown:C},[M("div",{ref_key:"thumb",ref:s,class:T(m(i).e("thumb")),style:W(m(B)),onMousedown:N},null,38)],34),[[le,o.always||a.value]])]),_:1},8,["name"]))}});var K=X(we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Se=O({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ze=A({__name:"bar",props:Se,setup(d,{expose:n}){const h=d,l=r(0),i=r(0);return n({handleScroll:s=>{if(s){const p=s.offsetHeight-z,a=s.offsetWidth-z;i.value=s.scrollTop*100/p*h.ratioY,l.value=s.scrollLeft*100/a*h.ratioX}}}),(s,p)=>(H(),F(se,null,[D(K,{move:l.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),D(K,{move:i.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var _e=X(ze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const ke=O({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:he([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Ee={scroll:({scrollTop:d,scrollLeft:n})=>[d,n].every(E)},He={name:"ElScrollbar"},Te=A({...He,props:ke,emits:Ee,setup(d,{expose:n,emit:h}){const l=d,i=I("scrollbar");let c,s;const p=r(),a=r(),g=r(),w=r("0"),S=r("0"),t=r(),B=r(1),_=r(1),N=L(()=>{const e={};return l.height&&(e.height=V(l.height)),l.maxHeight&&(e.maxHeight=V(l.maxHeight)),[l.wrapStyle,e]}),C=()=>{var e;a.value&&((e=t.value)==null||e.handleScroll(a.value),h("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function x(e,f){fe(e)?a.value.scrollTo(e):E(e)&&E(f)&&a.value.scrollTo(e,f)}const P=e=>{!E(e)||(a.value.scrollTop=e)},k=e=>{!E(e)||(a.value.scrollLeft=e)},b=()=>{if(!a.value)return;const e=a.value.offsetHeight-z,f=a.value.offsetWidth-z,o=e**2/a.value.scrollHeight,u=f**2/a.value.scrollWidth,v=Math.max(o,l.minSize),y=Math.max(u,l.minSize);B.value=o/(e-o)/(v/(e-v)),_.value=u/(f-u)/(y/(f-y)),S.value=v+zl.noresize,e=>{e?(c==null||c(),s==null||s()):({stop:c}=Z(g,b),s=R("resize",b))},{immediate:!0}),j(()=>[l.maxHeight,l.height],()=>{l.native||U(()=>{var e;b(),a.value&&((e=t.value)==null||e.handleScroll(a.value))})}),oe(G,re({scrollbarElement:p,wrapElement:a})),ne(()=>{l.native||U(()=>b())}),ie(()=>b()),n({wrap$:a,update:b,scrollTo:x,setScrollTop:P,setScrollLeft:k,handleScroll:C}),(e,f)=>(H(),F("div",{ref_key:"scrollbar$",ref:p,class:T(m(i).b())},[M("div",{ref_key:"wrap$",ref:a,class:T([e.wrapClass,m(i).e("wrap"),{[m(i).em("wrap","hidden-default")]:!e.native}]),style:W(m(N)),onScroll:C},[(H(),$(ue(e.tag),{ref_key:"resize$",ref:g,class:T([m(i).e("view"),e.viewClass]),style:W(e.viewStyle)},{default:q(()=>[ce(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?ve("v-if",!0):(H(),$(_e,{key:0,ref_key:"barRef",ref:t,height:S.value,width:w.value,always:e.always,"ratio-x":_.value,"ratio-y":B.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Be=X(Te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ne=pe(Be);export{Ne as E}; +import{u as R,c as Z}from"./request.e2daed10.js";import{d as A,E as J,r,c as L,H as ee,x as Y,a as H,b as $,e as q,Q as te,R as le,p as M,n as T,u as m,i as W,T as ae,f as F,h as D,F as se,w as j,Z as U,v as oe,W as re,o as ne,ak as ie,g as ce,q as ue,k as ve,a5 as fe}from"./index.43b3cbf5.js";import{b as O,u as I,t as me,_ as X,B as de,d as he,V as E,P as V,w as pe}from"./base.4ef7f45b.js";const G=Symbol("scrollbarContextKey"),z=4,be={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ye=({move:d,size:n,bar:h})=>({[h.size]:n,transform:`translate${h.axis}(${d}%)`}),ge=O({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),we=A({__name:"thumb",props:ge,setup(d){const n=d,h="Thumb",l=J(G),i=I("scrollbar");l||me(h,"can not inject scrollbar context");const c=r(),s=r(),p=r({}),a=r(!1);let g=!1,w=!1,S=de?document.onselectstart:null;const t=L(()=>be[n.vertical?"vertical":"horizontal"]),B=L(()=>ye({size:n.size,move:n.move,bar:t.value})),_=L(()=>c.value[t.value.offset]**2/l.wrapElement[t.value.scrollSize]/n.ratio/s.value[t.value.offset]),N=o=>{var u;if(o.stopPropagation(),o.ctrlKey||[1,2].includes(o.button))return;(u=window.getSelection())==null||u.removeAllRanges(),x(o);const v=o.currentTarget;!v||(p.value[t.value.axis]=v[t.value.offset]-(o[t.value.client]-v.getBoundingClientRect()[t.value.direction]))},C=o=>{if(!s.value||!c.value||!l.wrapElement)return;const u=Math.abs(o.target.getBoundingClientRect()[t.value.direction]-o[t.value.client]),v=s.value[t.value.offset]/2,y=(u-v)*100*_.value/c.value[t.value.offset];l.wrapElement[t.value.scroll]=y*l.wrapElement[t.value.scrollSize]/100},x=o=>{o.stopImmediatePropagation(),g=!0,document.addEventListener("mousemove",P),document.addEventListener("mouseup",k),S=document.onselectstart,document.onselectstart=()=>!1},P=o=>{if(!c.value||!s.value||g===!1)return;const u=p.value[t.value.axis];if(!u)return;const v=(c.value.getBoundingClientRect()[t.value.direction]-o[t.value.client])*-1,y=s.value[t.value.offset]-u,Q=(v-y)*100*_.value/c.value[t.value.offset];l.wrapElement[t.value.scroll]=Q*l.wrapElement[t.value.scrollSize]/100},k=()=>{g=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",k),f(),w&&(a.value=!1)},b=()=>{w=!1,a.value=!!n.size},e=()=>{w=!0,a.value=g};ee(()=>{f(),document.removeEventListener("mouseup",k)});const f=()=>{document.onselectstart!==S&&(document.onselectstart=S)};return R(Y(l,"scrollbarElement"),"mousemove",b),R(Y(l,"scrollbarElement"),"mouseleave",e),(o,u)=>(H(),$(ae,{name:m(i).b("fade"),persisted:""},{default:q(()=>[te(M("div",{ref_key:"instance",ref:c,class:T([m(i).e("bar"),m(i).is(m(t).key)]),onMousedown:C},[M("div",{ref_key:"thumb",ref:s,class:T(m(i).e("thumb")),style:W(m(B)),onMousedown:N},null,38)],34),[[le,o.always||a.value]])]),_:1},8,["name"]))}});var K=X(we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Se=O({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ze=A({__name:"bar",props:Se,setup(d,{expose:n}){const h=d,l=r(0),i=r(0);return n({handleScroll:s=>{if(s){const p=s.offsetHeight-z,a=s.offsetWidth-z;i.value=s.scrollTop*100/p*h.ratioY,l.value=s.scrollLeft*100/a*h.ratioX}}}),(s,p)=>(H(),F(se,null,[D(K,{move:l.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),D(K,{move:i.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var _e=X(ze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const ke=O({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:he([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Ee={scroll:({scrollTop:d,scrollLeft:n})=>[d,n].every(E)},He={name:"ElScrollbar"},Te=A({...He,props:ke,emits:Ee,setup(d,{expose:n,emit:h}){const l=d,i=I("scrollbar");let c,s;const p=r(),a=r(),g=r(),w=r("0"),S=r("0"),t=r(),B=r(1),_=r(1),N=L(()=>{const e={};return l.height&&(e.height=V(l.height)),l.maxHeight&&(e.maxHeight=V(l.maxHeight)),[l.wrapStyle,e]}),C=()=>{var e;a.value&&((e=t.value)==null||e.handleScroll(a.value),h("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function x(e,f){fe(e)?a.value.scrollTo(e):E(e)&&E(f)&&a.value.scrollTo(e,f)}const P=e=>{!E(e)||(a.value.scrollTop=e)},k=e=>{!E(e)||(a.value.scrollLeft=e)},b=()=>{if(!a.value)return;const e=a.value.offsetHeight-z,f=a.value.offsetWidth-z,o=e**2/a.value.scrollHeight,u=f**2/a.value.scrollWidth,v=Math.max(o,l.minSize),y=Math.max(u,l.minSize);B.value=o/(e-o)/(v/(e-v)),_.value=u/(f-u)/(y/(f-y)),S.value=v+zl.noresize,e=>{e?(c==null||c(),s==null||s()):({stop:c}=Z(g,b),s=R("resize",b))},{immediate:!0}),j(()=>[l.maxHeight,l.height],()=>{l.native||U(()=>{var e;b(),a.value&&((e=t.value)==null||e.handleScroll(a.value))})}),oe(G,re({scrollbarElement:p,wrapElement:a})),ne(()=>{l.native||U(()=>b())}),ie(()=>b()),n({wrap$:a,update:b,scrollTo:x,setScrollTop:P,setScrollLeft:k,handleScroll:C}),(e,f)=>(H(),F("div",{ref_key:"scrollbar$",ref:p,class:T(m(i).b())},[M("div",{ref_key:"wrap$",ref:a,class:T([e.wrapClass,m(i).e("wrap"),{[m(i).em("wrap","hidden-default")]:!e.native}]),style:W(m(N)),onScroll:C},[(H(),$(ue(e.tag),{ref_key:"resize$",ref:g,class:T([m(i).e("view"),e.viewClass]),style:W(e.viewStyle)},{default:q(()=>[ce(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?ve("v-if",!0):(H(),$(_e,{key:0,ref_key:"barRef",ref:t,height:S.value,width:w.value,always:e.always,"ratio-x":_.value,"ratio-y":B.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Be=X(Te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ne=pe(Be);export{Ne as E}; diff --git a/src/main/resources/static/assets/index.3eb5cbdf.js b/src/main/resources/static/assets/index.9c287fed.js similarity index 89% rename from src/main/resources/static/assets/index.3eb5cbdf.js rename to src/main/resources/static/assets/index.9c287fed.js index becb531..57aa177 100644 --- a/src/main/resources/static/assets/index.3eb5cbdf.js +++ b/src/main/resources/static/assets/index.9c287fed.js @@ -1 +1 @@ -import{d as z,c as T,a as n,f as w,p as t,g as m,n as o,u as a,b as c,e as i,h as k,j as g,k as h,i as C,T as N}from"./index.552205f5.js";import{b as M,ah as V,W as $,u as I,i as b,E as y,_ as P,w as j}from"./base.d698891e.js";const W=M({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:V,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),q={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},A={name:"ElTag"},D=z({...A,props:W,emits:q,setup(l,{emit:r}){const v=l,_=$(),s=I("tag"),u=T(()=>{const{type:e,hit:f,effect:E,closable:S,round:B}=v;return[s.b(),s.is("closable",S),s.m(e),s.m(_.value),s.m(E),s.is("hit",f),s.is("round",B)]}),p=e=>{r("close",e)},d=e=>{r("click",e)};return(e,f)=>e.disableTransitions?(n(),w("span",{key:0,class:o(a(u)),style:C({backgroundColor:e.color}),onClick:d},[t("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(n(),c(a(y),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(b))]),_:1},8,["class","onClick"])):h("v-if",!0)],6)):(n(),c(N,{key:1,name:`${a(s).namespace.value}-zoom-in-center`,appear:""},{default:i(()=>[t("span",{class:o(a(u)),style:C({backgroundColor:e.color}),onClick:d},[t("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(n(),c(a(y),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(b))]),_:1},8,["class","onClick"])):h("v-if",!0)],6)]),_:3},8,["name"]))}});var F=P(D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const J=j(F);export{J as E,W as t}; +import{d as z,c as T,a as n,f as w,p as t,g as m,n as o,u as a,b as c,e as i,h as k,j as g,k as h,i as C,T as N}from"./index.43b3cbf5.js";import{b as M,ah as V,W as $,u as I,i as b,E as y,_ as P,w as j}from"./base.4ef7f45b.js";const W=M({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:V,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),q={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},A={name:"ElTag"},D=z({...A,props:W,emits:q,setup(l,{emit:r}){const v=l,_=$(),s=I("tag"),u=T(()=>{const{type:e,hit:f,effect:E,closable:S,round:B}=v;return[s.b(),s.is("closable",S),s.m(e),s.m(_.value),s.m(E),s.is("hit",f),s.is("round",B)]}),p=e=>{r("close",e)},d=e=>{r("click",e)};return(e,f)=>e.disableTransitions?(n(),w("span",{key:0,class:o(a(u)),style:C({backgroundColor:e.color}),onClick:d},[t("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(n(),c(a(y),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(b))]),_:1},8,["class","onClick"])):h("v-if",!0)],6)):(n(),c(N,{key:1,name:`${a(s).namespace.value}-zoom-in-center`,appear:""},{default:i(()=>[t("span",{class:o(a(u)),style:C({backgroundColor:e.color}),onClick:d},[t("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(n(),c(a(y),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(b))]),_:1},8,["class","onClick"])):h("v-if",!0)],6)]),_:3},8,["name"]))}});var F=P(D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const J=j(F);export{J as E,W as t}; diff --git a/src/main/resources/static/assets/index.a1ce1e68.js b/src/main/resources/static/assets/index.a1ce1e68.js new file mode 100644 index 0000000..91accdd --- /dev/null +++ b/src/main/resources/static/assets/index.a1ce1e68.js @@ -0,0 +1 @@ +import{u as d,a,E as N}from"./popper.718d36e0.js";import{b as A,C as R,u as T,P as D,_ as $,aX as O,w as V}from"./base.4ef7f45b.js";import{d as f}from"./dropdown.2ef7612f.js";import{d as z,r as H,c as n,u as p,a as u,b as I,e as c,f as L,t as v,n as J,k as b,g as m,J as U,z as X}from"./index.43b3cbf5.js";const j=A({trigger:d.trigger,placement:f.placement,disabled:d.disabled,visible:a.visible,transition:a.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:a.content,popperStyle:a.popperStyle,popperClass:a.popperClass,enterable:{...a.enterable,default:!0},effect:{...a.effect,default:"light"},teleported:a.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),q={"update:visible":t=>R(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},F={name:"ElPopover"},G=z({...F,props:j,emits:q,setup(t,{expose:o,emit:r}){const s=t,l=T("popover"),i=H(),g=n(()=>{var e;return(e=p(i))==null?void 0:e.popperRef}),w=n(()=>[{width:D(s.width)},s.popperStyle]),y=n(()=>[l.b(),s.popperClass,{[l.m("plain")]:!!s.content}]),P=n(()=>s.transition==="el-fade-in-linear"),C=()=>{var e;(e=i.value)==null||e.hide()},E=()=>{r("before-enter")},k=()=>{r("before-leave")},S=()=>{r("after-enter")},B=()=>{r("update:visible",!1),r("after-leave")};return o({popperRef:g,hide:C}),(e,Y)=>(u(),I(p(N),X({ref_key:"tooltipRef",ref:i},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(y),"popper-style":p(w),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(P),onBeforeShow:E,onBeforeHide:k,onShow:S,onHide:B}),{content:c(()=>[e.title?(u(),L("div",{key:0,class:J(p(l).e("title")),role:"title"},v(e.title),3)):b("v-if",!0),m(e.$slots,"default",{},()=>[U(v(e.content),1)])]),default:c(()=>[e.$slots.reference?m(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration"]))}});var K=$(G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h=(t,o)=>{const r=o.arg||o.value,s=r==null?void 0:r.popperRef;s&&(s.triggerRef=t)};var M={mounted(t,o){h(t,o)},updated(t,o){h(t,o)}};const Q="popover",W=O(M,Q),te=V(K,{directive:W});export{te as E}; diff --git a/src/main/resources/static/assets/index.a4c8baa8.js b/src/main/resources/static/assets/index.a4c8baa8.js deleted file mode 100644 index 55d576c..0000000 --- a/src/main/resources/static/assets/index.a4c8baa8.js +++ /dev/null @@ -1 +0,0 @@ -import{a as f,f as w,p as s,r as _,W as A,o as q,h as e,e as a,S as J,F as O,y as Q,b as W,t as h,u,U as Z,V as G,J as b}from"./index.552205f5.js";import{aQ as X,m as V,r as e1}from"./base.d698891e.js";import{E as t1}from"./dialog.04a5229a.js";import"./overlay.7eff71c7.js";import{E as o1}from"./table-column.0ede6c12.js";import{E as a1,a as l1,b as n1,c as s1,z as i1,g as r1,d as d1,e as c1}from"./zh-cn.4ccaa6e9.js";/* empty css */import"./scrollbar.97fa2ffd.js";import{E as p1,a as m1}from"./select.ff52a9e1.js";import{E as _1}from"./popper.14a92806.js";import{E as u1,a as f1}from"./checkbox.cfb94aee.js";import"./tooltip.f118fcb0.js";/* empty css */import{E as g1,a as h1}from"./form-item.1544fca0.js";/* empty css */import v1 from"./basic-setting.06f7761c.js";import{l as w1}from"./admin-storage.260bbac1.js";import{b as C}from"./route-block.9b0645f8.js";import{_ as b1}from"./plugin-vue_export-helper.21dcd24c.js";import{E as v}from"./request.3708b2c4.js";import{E as y1}from"./index.11692625.js";import{E as E1}from"./index.4ab44dc8.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./index.1e624cbf.js";import"./focus-trap.58847c97.js";import"./refs.4597d917.js";import"./event.776e7e11.js";import"./dayjs.min.79223755.js";import"./index.24f1077d.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./debounce.32892d61.js";import"./isEqual.fe8e5f6f.js";import"./index.3eb5cbdf.js";import"./validator.6f3b33db.js";import"./index.c92ded65.js";/* empty css */import"./ZFormItem.7a4b4758.js";import"./radio.427cda7a.js";import"./switch.2393edfd.js";import"./useLinkSetting.49293b3b.js";import"./admin-setting.158855e4.js";import"./directive.e250a256.js";const k1={t:"1654510398523",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3907","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},x1=s("defs",null,null,-1),V1=s("path",{d:"M511.998 1023.988c-71.133166 0-129.004488-57.871322-129.004488-129.002488v-8.793897a393.981383 393.981383 0 0 1-44.34948-18.399784l-6.241927 6.239926c-24.283715 24.287715-56.677336 37.665559-91.216931 37.665559s-66.933216-13.377843-91.222931-37.665559c-50.293411-50.299411-50.293411-132.140451 0-182.441862l6.239927-6.235926a394.031382 394.031382 0 0 1-18.397785-44.349481h-8.793897C57.875322 641.002488 0.004 583.129166 0.004 511.996s57.873322-129.004488 129.004488-129.004488h8.789897a393.827385 393.827385 0 0 1 18.399785-44.34948l-6.239927-6.239927c-50.293411-50.299411-50.293411-132.140451 0-182.439862 24.289715-24.289715 56.683336-37.667559 91.222931-37.667559s66.933216 13.377843 91.218931 37.667559l6.239927 6.235927a393.981383 393.981383 0 0 1 44.34948-18.399785v-8.789897c0-71.133166 57.873322-129.004488 129.004488-129.004488s129.004488 57.873322 129.004488 129.004488V137.798385a394.727374 394.727374 0 0 1 44.349481 18.399785l6.239926-6.239927c24.287715-24.287715 56.681336-37.665559 91.218931-37.665559s66.933216 13.377843 91.222931 37.665559c50.293411 50.299411 50.293411 132.140451 0 182.441862-11.501865 11.501865-30.155647 11.501865-41.665511 0-11.503865-11.503865-11.503865-30.155647 0-41.661512 27.32368-27.32768 27.32368-71.791159 0-99.118839-13.159846-13.161846-30.75964-20.409761-49.55742-20.40976s-36.395573 7.247915-49.555419 20.40976l-21.547747 21.547748a29.449655 29.449655 0 0 1-35.243587 4.859943 334.960075 334.960075 0 0 0-72.911146-30.249646 29.457655 29.457655 0 0 1-21.469748-28.355667V129.010488c0-38.645547-31.439632-70.085179-70.085179-70.085179s-70.085179 31.439632-70.085179 70.085179v30.423644a29.461655 29.461655 0 0 1-21.469748 28.355667 335.000074 335.000074 0 0 0-72.911146 30.249646 29.459655 29.459655 0 0 1-35.243587-4.859943l-21.547747-21.547748c-13.159846-13.161846-30.75564-20.409761-49.555419-20.409761s-36.397573 7.247915-49.55742 20.409761c-27.32368 27.32368-27.32368 71.787159 0 99.118839l21.547748 21.543747a29.455655 29.455655 0 0 1 4.859943 35.243587 334.836076 334.836076 0 0 0-30.249646 72.911146 29.453655 29.453655 0 0 1-28.355667 21.469748H129.008488c-38.645547 0-70.085179 31.439632-70.085179 70.085179s31.439632 70.085179 70.085179 70.085179h30.423644a29.459655 29.459655 0 0 1 28.355667 21.467748 335.156072 335.156072 0 0 0 30.249646 72.913146 29.461655 29.461655 0 0 1-4.863943 35.243587l-21.547748 21.543747c-27.32168 27.32368-27.32168 71.787159 0.002 99.114839 13.159846 13.161846 30.75964 20.409761 49.55742 20.40976s36.395573-7.247915 49.555419-20.40976l21.549747-21.543748a29.457655 29.457655 0 0 1 35.237587-4.863943 335.180072 335.180072 0 0 0 72.913146 30.249646 29.457655 29.457655 0 0 1 21.469748 28.355667v30.425644c0 38.643547 31.439632 70.083179 70.085179 70.083178s70.085179-31.439632 70.085179-70.083178V864.569868a29.461655 29.461655 0 0 1 21.469748-28.355667 335.138073 335.138073 0 0 0 72.913146-30.249646 29.459655 29.459655 0 0 1 35.237587 4.863943l21.547747 21.543748c13.161846 13.161846 30.75964 20.409761 49.557419 20.40976s36.397573-7.247915 49.55742-20.40976c27.32368-27.32368 27.32368-71.789159 0-99.118839l-21.543748-21.543747a29.455655 29.455655 0 0 1-4.863943-35.243587 335.156072 335.156072 0 0 0 30.249646-72.913146 29.459655 29.459655 0 0 1 28.355667-21.467748h30.423644c38.645547 0 70.085179-31.439632 70.085179-70.085179 0-19.269774-8.171904-37.939555-22.419738-51.2194-11.903861-11.09387-12.561853-29.733652-1.467982-41.635512 11.09387-11.901861 29.739651-12.555853 41.635512-1.467983C1008.984176 442.06082 1023.992 476.438417 1023.992 512c0 71.133166-57.873322 129.004488-129.004488 129.004488H886.193615a394.777374 394.777374 0 0 1-18.397784 44.349481l6.235926 6.235926c50.297411 50.299411 50.297411 132.140451 0.002 182.439862-24.289715 24.289715-56.683336 37.667559-91.222931 37.667559s-66.933216-13.377843-91.220931-37.667559l-6.239926-6.235926a393.239392 393.239392 0 0 1-44.349481 18.399784v8.793897C641.002488 966.120678 583.129166 1023.988 511.998 1023.988z",fill:"#2D527C","p-id":"3908"},null,-1),C1=s("path",{d:"M511.99 511.988m-235.149244 0a235.149244 235.149244 0 1 0 470.298488 0 235.149244 235.149244 0 1 0-470.298488 0Z",fill:"#CEE8FA","p-id":"3909"},null,-1),z1=s("path",{d:"M511.998 776.614899c-145.91029 0-264.614899-118.706609-264.614899-264.614899S366.08771 247.381101 511.998 247.381101s264.614899 118.708609 264.614899 264.618899S657.90829 776.614899 511.998 776.614899z m0-470.316488c-113.420671 0-205.69559 92.274919-205.695589 205.697589 0 113.420671 92.274919 205.69559 205.695589 205.69559s205.69559-92.274919 205.69559-205.69559c0-113.422671-92.274919-205.697589-205.69559-205.697589z",fill:"#2D527C","p-id":"3910"},null,-1),S1=[x1,V1,C1,z1];function D1(d,p){return f(),w("svg",k1,S1)}var L1={name:"custom-settings",render:D1};const T1=d=>(Z("data-v-1670c199"),d=d(),G(),d),I1={class:"zfile-admin-down-link"},F1={class:"flex justify-between"},M1=T1(()=>s("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u76F4\u94FE\u7BA1\u7406 ",-1)),U1={class:"flex space-x-1.5 justify-center items-center cursor-pointer"},$1={class:"mt-4"},B1={class:"flex justify-between space-x-20"},R1={class:"text-gray-400"},P1=b("\u67E5\u8BE2"),j1=b("\u6279\u91CF\u5220\u9664"),H1=b("\u5220\u9664"),z={__name:"index",setup(d){const p=_(!1),S=()=>{p.value=!0},t=A({storageId:null,page:1,limit:10,key:"",url:"",date:"",dateFrom:"",dateTo:"",total:0}),D=n=>{t.limit=n,t.page=1,i()},L=n=>{t.page=n,i()},y=_(),i=()=>{t.date instanceof Array?(t.dateFrom=t.date[0],t.dateTo=t.date[1]):(t.dateFrom="",t.dateTo=""),r1(t).then(n=>{y.value=n.data,t.total=n.dataCount})};q(()=>{i(),T()});const E=_(),T=()=>{w1().then(n=>{E.value=n.data})},I=n=>{d1(n).then(l=>{v.success("\u5220\u9664\u6210\u529F"),i()})},k=_(),F=()=>{let n=k.value.getSelectionRows();if(n.length===0){v.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u6761\u6570\u636E");return}y1.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{type:"warning"}).then(()=>{let l=n.map(m=>m.id);c1({id:l}).then(m=>{v.success("\u5220\u9664\u6210\u529F"),i()})})};return(n,l)=>{const m=L1,M=p1,U=m1,c=g1,x=E1,$=a1,g=e1,B=h1,r=u1,R=_1,P=l1,j=f1,H=n1,N=s1,Y=o1,K=t1;return f(),w("div",I1,[e(Y,null,{default:a(()=>[s("div",F1,[M1,s("div",U1,[s("span",{onClick:S},[e(m,{class:"text-xl"})])])]),s("div",$1,[e(B,{inline:"",modelValue:t,"onUpdate:modelValue":l[4]||(l[4]=o=>J(t)?t.value=o:null)},{default:a(()=>[e(c,{label:"\u5B58\u50A8\u6E90"},{default:a(()=>[e(U,{clearable:"",teleported:!1,modelValue:t.storageId,"onUpdate:modelValue":l[0]||(l[0]=o=>t.storageId=o)},{default:a(()=>[(f(!0),w(O,null,Q(E.value,o=>(f(),W(M,{key:o.id,label:o.name,value:o.id},{default:a(()=>[s("div",B1,[s("span",null,h(o.name),1),s("span",R1,h(o.type.description),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u6587\u4EF6\u540D"},{default:a(()=>[e(x,{modelValue:t.url,"onUpdate:modelValue":l[1]||(l[1]=o=>t.url=o)},null,8,["modelValue"])]),_:1}),e(c,{label:"\u77ED\u94FE Key"},{default:a(()=>[e(x,{modelValue:t.key,"onUpdate:modelValue":l[2]||(l[2]=o=>t.key=o)},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e($,{modelValue:t.date,"onUpdate:modelValue":l[3]||(l[3]=o=>t.date=o),type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,2,1,23,59,59)],"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue","default-time"])]),_:1}),e(c,null,{default:a(()=>[e(g,{type:"primary",icon:u(X),onClick:i},{default:a(()=>[P1]),_:1},8,["icon"])]),_:1})]),_:1},8,["modelValue"]),s("div",null,[e(g,{onClick:F,icon:u(V),type:"danger"},{default:a(()=>[j1]),_:1},8,["icon"])]),e(j,{ref_key:"linkTableRef",ref:k,size:"large",data:y.value},{default:a(()=>[e(r,{type:"selection",width:"55"}),e(r,{width:"120",label:"\u5B58\u50A8\u6E90\u540D\u79F0"},{default:a(o=>[e(R,{content:o.row.storageType.description,placement:"right"},{default:a(()=>[s("span",null,h(o.row.storageName),1)]),_:2},1032,["content"])]),_:1}),e(r,{width:"110",prop:"shortKey",label:"\u77ED\u94FE Key"}),e(r,{"show-tooltip-when-overflow":"",prop:"url",label:"\u8DEF\u5F84"}),e(r,{width:"180",prop:"createDate",label:"\u521B\u5EFA\u65F6\u95F4"}),e(r,{width:"100",label:"\u64CD\u4F5C"},{default:a(o=>[e(P,{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onConfirm:N1=>I(o.row.id)},{reference:a(()=>[e(g,{icon:u(V),type:"danger"},{default:a(()=>[H1]),_:1},8,["icon"])]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),e(N,{locale:u(i1)},{default:a(()=>[e(H,{class:"mt-3","page-size":t.limit,background:"",layout:"total, sizes, prev, pager, next, jumper",onCurrentChange:L,onSizeChange:D,"current-page":t.page,"onUpdate:current-page":l[5]||(l[5]=o=>t.page=o),"default-current-page":10,"page-sizes":[10,50,100,200,1e3,99999999],total:t.total},null,8,["page-size","current-page","total"])]),_:1},8,["locale"])])]),_:1}),e(K,{modelValue:p.value,"onUpdate:modelValue":l[6]||(l[6]=o=>p.value=o),"destroy-on-close":!0,title:"\u76F4\u94FE\u8BBE\u7F6E","custom-class":"zfile-admin-down-link-dialog",draggable:"",top:"5vh",width:"80%"},{default:a(()=>[e(v1)]),_:1},8,["modelValue"])])}}};typeof C=="function"&&C(z);var F9=b1(z,[["__scopeId","data-v-1670c199"]]);export{F9 as default}; diff --git a/src/main/resources/static/assets/index.d10d6412.css b/src/main/resources/static/assets/index.d10d6412.css deleted file mode 100644 index 90bc975..0000000 --- a/src/main/resources/static/assets/index.d10d6412.css +++ /dev/null @@ -1 +0,0 @@ -.el-drive-form-col[data-v-2b52e2be]{padding-left:0!important}.zfile-site-id-input-site-type-select[data-v-2b52e2be]{width:100px}.zfile-info-tooltip[data-v-2b52e2be]{line-height:32px}.zfile-storage-edit[data-v-2b52e2be] .z-form-item-input>.el-select{width:100%} diff --git a/src/main/resources/static/assets/index.0f572ca8.js b/src/main/resources/static/assets/index.d46124aa.js similarity index 95% rename from src/main/resources/static/assets/index.0f572ca8.js rename to src/main/resources/static/assets/index.d46124aa.js index 422de9d..29acb21 100644 --- a/src/main/resources/static/assets/index.0f572ca8.js +++ b/src/main/resources/static/assets/index.d46124aa.js @@ -1 +1 @@ -import{P as L,t as B,B as I,a0 as b,a2 as C,$ as g,a1 as h,b as X,d as Y,u as G}from"./base.d698891e.js";import{o as U,am as z,H as W,S as K,w as $,a4 as V,N as p,d as j,h as q,g as w,al as J}from"./index.552205f5.js";import{a as Q}from"./scroll.cbf731df.js";var c=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(c||{});const se=(e,o,n)=>{let s={offsetX:0,offsetY:0};const d=i=>{const r=i.clientX,A=i.clientY,{offsetX:l,offsetY:m}=s,a=e.value.getBoundingClientRect(),f=a.left,E=a.top,N=a.width,O=a.height,x=document.documentElement.clientWidth,D=document.documentElement.clientHeight,R=-f+l,k=-E+m,H=x-f-N+l,_=D-E-O+m,v=T=>{const S=Math.min(Math.max(l+T.clientX-r,R),H),M=Math.min(Math.max(m+T.clientY-A,k),_);s={offsetX:S,offsetY:M},e.value.style.transform=`translate(${L(S)}, ${L(M)})`},y=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},u=()=>{o.value&&e.value&&o.value.addEventListener("mousedown",d)},t=()=>{o.value&&e.value&&o.value.removeEventListener("mousedown",d)};U(()=>{z(()=>{n.value?u():t()})}),W(()=>{t()})},de=e=>{if(K(e)||B("[useLockscreen]","You need to pass a ref param to this function"),!I||b(document.body,"el-popup-parent--hidden"))return;let o=0,n=!1,s="0",d=0;const u=()=>{h(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=s)};$(e,t=>{if(!t){u();return}n=!b(document.body,"el-popup-parent--hidden"),n&&(s=document.body.style.paddingRight,d=Number.parseInt(C(document.body,"paddingRight"),10)),o=Q();const i=document.documentElement.clientHeight0&&(i||r==="scroll")&&n&&(document.body.style.paddingRight=`${d+o}px`),g(document.body,"el-popup-parent--hidden")}),V(()=>u())},Z=e=>{if(!e)return{onClick:p,onMousedown:p,onMouseup:p};let o=!1,n=!1;return{onClick:t=>{o&&n&&e(t),o=n=!1},onMousedown:t=>{o=t.target===t.currentTarget},onMouseup:t=>{n=t.target===t.currentTarget}}},P=X({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Y([String,Array,Object])},zIndex:{type:Y([String,Number])}}),F={click:e=>e instanceof MouseEvent};var ee=j({name:"ElOverlay",props:P,emits:F,setup(e,{slots:o,emit:n}){const s=G("overlay"),d=r=>{n("click",r)},{onClick:u,onMousedown:t,onMouseup:i}=Z(e.customMaskEvent?void 0:d);return()=>e.mask?q("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:u,onMousedown:t,onMouseup:i},[w(o,"default")],c.STYLE|c.CLASS|c.PROPS,["onClick","onMouseup","onMousedown"]):J("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[w(o,"default")])}});const ue=ee;export{ue as E,Z as a,de as b,se as u}; +import{P as L,t as B,B as I,a0 as b,a2 as C,$ as g,a1 as h,b as X,d as Y,u as G}from"./base.4ef7f45b.js";import{o as U,am as z,H as W,S as K,w as $,a4 as V,N as p,d as j,h as q,g as w,al as J}from"./index.43b3cbf5.js";import{a as Q}from"./scroll.90c07eee.js";var c=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(c||{});const se=(e,o,n)=>{let s={offsetX:0,offsetY:0};const d=i=>{const r=i.clientX,A=i.clientY,{offsetX:l,offsetY:m}=s,a=e.value.getBoundingClientRect(),f=a.left,E=a.top,N=a.width,O=a.height,x=document.documentElement.clientWidth,D=document.documentElement.clientHeight,R=-f+l,k=-E+m,H=x-f-N+l,_=D-E-O+m,v=T=>{const S=Math.min(Math.max(l+T.clientX-r,R),H),M=Math.min(Math.max(m+T.clientY-A,k),_);s={offsetX:S,offsetY:M},e.value.style.transform=`translate(${L(S)}, ${L(M)})`},y=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},u=()=>{o.value&&e.value&&o.value.addEventListener("mousedown",d)},t=()=>{o.value&&e.value&&o.value.removeEventListener("mousedown",d)};U(()=>{z(()=>{n.value?u():t()})}),W(()=>{t()})},de=e=>{if(K(e)||B("[useLockscreen]","You need to pass a ref param to this function"),!I||b(document.body,"el-popup-parent--hidden"))return;let o=0,n=!1,s="0",d=0;const u=()=>{h(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=s)};$(e,t=>{if(!t){u();return}n=!b(document.body,"el-popup-parent--hidden"),n&&(s=document.body.style.paddingRight,d=Number.parseInt(C(document.body,"paddingRight"),10)),o=Q();const i=document.documentElement.clientHeight0&&(i||r==="scroll")&&n&&(document.body.style.paddingRight=`${d+o}px`),g(document.body,"el-popup-parent--hidden")}),V(()=>u())},Z=e=>{if(!e)return{onClick:p,onMousedown:p,onMouseup:p};let o=!1,n=!1;return{onClick:t=>{o&&n&&e(t),o=n=!1},onMousedown:t=>{o=t.target===t.currentTarget},onMouseup:t=>{n=t.target===t.currentTarget}}},P=X({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Y([String,Array,Object])},zIndex:{type:Y([String,Number])}}),F={click:e=>e instanceof MouseEvent};var ee=j({name:"ElOverlay",props:P,emits:F,setup(e,{slots:o,emit:n}){const s=G("overlay"),d=r=>{n("click",r)},{onClick:u,onMousedown:t,onMouseup:i}=Z(e.customMaskEvent?void 0:d);return()=>e.mask?q("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:u,onMousedown:t,onMouseup:i},[w(o,"default")],c.STYLE|c.CLASS|c.PROPS,["onClick","onMouseup","onMousedown"]):J("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[w(o,"default")])}});const ue=ee;export{ue as E,Z as a,de as b,se as u}; diff --git a/src/main/resources/static/assets/index.6cd9e943.js b/src/main/resources/static/assets/index.d4ff9f04.js similarity index 85% rename from src/main/resources/static/assets/index.6cd9e943.js rename to src/main/resources/static/assets/index.d4ff9f04.js index ae58541..fea7a26 100644 --- a/src/main/resources/static/assets/index.6cd9e943.js +++ b/src/main/resources/static/assets/index.d4ff9f04.js @@ -1 +1 @@ -import{P as w,r as f,W as y,a1 as V,$ as z,a as k,f as I,p as s,h as l,e as i,u as a,j as U,U as E,V as N,ay as S,J as C}from"./index.552205f5.js";import{aO as M,aL as q,aM as R,x as B,r as F}from"./base.d698891e.js";import{E as j,a as D}from"./form-item.1544fca0.js";/* empty css *//* empty css */import{_ as L}from"./zfile-basic.74fe23dd.js";import{i as $,a as G}from"./install.3dbc19b3.js";import{_ as J}from"./plugin-vue_export-helper.21dcd24c.js";import{r as O}from"./BadgeCheckIcon.09c2c42b.js";import{E as _}from"./request.3708b2c4.js";import{E as P}from"./index.4ab44dc8.js";import"./index.c92ded65.js";import"./isEqual.fe8e5f6f.js";import"./event.776e7e11.js";const T=d=>(E("data-v-defaa902"),d=d(),N(),d),W={class:"h-full min-h-screen bg-gray-100 text-gray-900 flex justify-center items-center"},A={class:"h-full lg:h-auto max-w-screen-lg bg-white shadow-xl sm:rounded-xl flex flex-1"},H=T(()=>s("div",{class:"flex-1 bg-gray-50 text-center hidden lg:flex rounded-l-xl"},[s("div",{class:"m-12 xl:m-16 w-full bg-contain bg-center bg-no-repeat zfile-install-logo"})],-1)),K={class:"w-full lg:w-1/2 xl:w-1/2 mt-10 p-6 sm:p-12"},Q={class:"mt-0 flex flex-col items-center"},X={class:"text-2xl mt-0 xl:text-3xl font-extrabold box animate__animated animate__fadeInDown"},Y={class:"w-full flex-1"},Z=S('
    \u7CFB\u7EDF\u521D\u59CB\u5316
    ',1),ee=C(" \u7CFB\u7EDF\u521D\u59CB\u5316 "),ae={__name:"index",setup(d){let p=w(),u=f(!1),c=f(),t=y({siteName:"",username:"",password:"",domain:""}),g=f({siteName:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0",trigger:["change","blur"]}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u8D26\u53F7",trigger:["change","blur"]}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u5BC6\u7801",trigger:["change","blur"]}],domain:[{required:!0,type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D\uFF0C\u9700\u4EE5 http:// \u6216 https:// \u5F00\u5934",trigger:"change"}]});const x=r=>{window.open(r)},v=async()=>{await c.value.validate(r=>{r?(u.value=!0,G(t).then(e=>{_({message:"\u521D\u59CB\u5316\u6210\u529F",type:e.code===0?"success":"error",duration:1500,onClose(){p.push("/")}})}).finally(()=>{u.value=!1})):_.warning("\u8BF7\u6B63\u786E\u8F93\u5165\u521D\u59CB\u5316\u503C!")})};return V(()=>{const r=z();t.domain=r.zfileConfig.baseUrl||window.location.origin,$().then(e=>{e.data&&p.push("/")})}),(r,e)=>{const m=P,n=j,h=F,b=D;return k(),I("div",W,[s("div",A,[H,s("div",K,[s("div",Q,[s("h1",X,[s("img",{class:"w-16 cursor-pointer",onClick:e[0]||(e[0]=o=>x("https://github.com/zhaojun1998/zfile")),src:L})]),s("div",Y,[Z,l(b,{onSubmit:e[5]||(e[5]=U(()=>{},["prevent"])),ref_key:"installFormRef",ref:c,rules:a(g),model:a(t),class:"zfile-install-form",size:"large"},{default:i(()=>[l(n,{class:"box animate__animated animate__fadeInUp",prop:"siteName"},{default:i(()=>[l(m,{placeholder:"\u7AD9\u70B9\u540D\u79F0","prefix-icon":a(M),modelValue:a(t).siteName,"onUpdate:modelValue":e[1]||(e[1]=o=>a(t).siteName=o)},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"username"},{default:i(()=>[l(m,{placeholder:"\u7BA1\u7406\u5458\u8D26\u53F7","prefix-icon":a(q),modelValue:a(t).username,"onUpdate:modelValue":e[2]||(e[2]=o=>a(t).username=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"password"},{default:i(()=>[l(m,{placeholder:"\u7BA1\u7406\u5458\u5BC6\u7801",type:"password","show-password":"","prefix-icon":a(R),modelValue:a(t).password,"onUpdate:modelValue":e[3]||(e[3]=o=>a(t).password=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"domain"},{default:i(()=>[l(m,{placeholder:"\u7AD9\u70B9\u5730\u5740/\u57DF\u540D","prefix-icon":a(B),modelValue:a(t).domain,"onUpdate:modelValue":e[4]||(e[4]=o=>a(t).domain=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,null,{default:i(()=>[l(h,{"native-type":"submit",loading:a(u),class:"w-full",type:"primary",icon:a(O),onClick:v},{default:i(()=>[ee]),_:1},8,["loading","icon"])]),_:1})]),_:1},8,["rules","model"])])])])])])}}};var ge=J(ae,[["__scopeId","data-v-defaa902"]]);export{ge as default}; +import{P as w,r as f,W as y,a1 as z,$ as V,a as k,f as I,p as s,h as l,e as i,u as a,j as U,U as E,V as N,az as S,J as C}from"./index.43b3cbf5.js";import{aO as M,aL as q,aM as R,x as B,r as F}from"./base.4ef7f45b.js";import{E as j,a as D}from"./form-item.2dea3b0a.js";/* empty css *//* empty css */import{_ as L}from"./zfile-basic.e44d95f5.js";import{i as $,a as G}from"./install.29b84ed7.js";import{_ as J}from"./plugin-vue_export-helper.21dcd24c.js";import{r as O}from"./BadgeCheckIcon.8153a115.js";import{E as _}from"./request.e2daed10.js";import{E as P}from"./index.da7dbe5d.js";import"./index.5cf4e3bb.js";import"./isEqual.2263846a.js";import"./event.776e7e11.js";const T=d=>(E("data-v-defaa902"),d=d(),N(),d),W={class:"h-full min-h-screen bg-gray-100 text-gray-900 flex justify-center items-center"},A={class:"h-full lg:h-auto max-w-screen-lg bg-white shadow-xl sm:rounded-xl flex flex-1"},H=T(()=>s("div",{class:"flex-1 bg-gray-50 text-center hidden lg:flex rounded-l-xl"},[s("div",{class:"m-12 xl:m-16 w-full bg-contain bg-center bg-no-repeat zfile-install-logo"})],-1)),K={class:"w-full lg:w-1/2 xl:w-1/2 mt-10 p-6 sm:p-12"},Q={class:"mt-0 flex flex-col items-center"},X={class:"text-2xl mt-0 xl:text-3xl font-extrabold box animate__animated animate__fadeInDown"},Y={class:"w-full flex-1"},Z=S('
    \u7CFB\u7EDF\u521D\u59CB\u5316
    ',1),ee=C(" \u7CFB\u7EDF\u521D\u59CB\u5316 "),ae={__name:"index",setup(d){let p=w(),u=f(!1),c=f(),t=y({siteName:"",username:"",password:"",domain:""}),g=f({siteName:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0",trigger:["change","blur"]}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u8D26\u53F7",trigger:["change","blur"]}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u5BC6\u7801",trigger:["change","blur"]}],domain:[{required:!0,type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D\uFF0C\u9700\u4EE5 http:// \u6216 https:// \u5F00\u5934",trigger:"change"}]});const x=r=>{window.open(r)},v=async()=>{await c.value.validate(r=>{r?(u.value=!0,G(t).then(e=>{_({message:"\u521D\u59CB\u5316\u6210\u529F",type:e.code===0?"success":"error",duration:1500,onClose(){p.push("/")}})}).finally(()=>{u.value=!1})):_.warning("\u8BF7\u6B63\u786E\u8F93\u5165\u521D\u59CB\u5316\u503C!")})};return z(()=>{const r=V();t.domain=r.zfileConfig.baseUrl||window.location.origin,$().then(e=>{e.data&&p.push("/")})}),(r,e)=>{const m=P,n=j,h=F,b=D;return k(),I("div",W,[s("div",A,[H,s("div",K,[s("div",Q,[s("h1",X,[s("img",{class:"w-16 cursor-pointer",onClick:e[0]||(e[0]=o=>x("https://github.com/zhaojun1998/zfile")),src:L})]),s("div",Y,[Z,l(b,{onSubmit:e[5]||(e[5]=U(()=>{},["prevent"])),ref_key:"installFormRef",ref:c,rules:a(g),model:a(t),class:"zfile-install-form",size:"large"},{default:i(()=>[l(n,{class:"box animate__animated animate__fadeInUp",prop:"siteName"},{default:i(()=>[l(m,{placeholder:"\u7AD9\u70B9\u540D\u79F0","prefix-icon":a(M),modelValue:a(t).siteName,"onUpdate:modelValue":e[1]||(e[1]=o=>a(t).siteName=o)},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"username"},{default:i(()=>[l(m,{placeholder:"\u7BA1\u7406\u5458\u8D26\u53F7","prefix-icon":a(q),modelValue:a(t).username,"onUpdate:modelValue":e[2]||(e[2]=o=>a(t).username=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"password"},{default:i(()=>[l(m,{placeholder:"\u7BA1\u7406\u5458\u5BC6\u7801",type:"password","show-password":"","prefix-icon":a(R),modelValue:a(t).password,"onUpdate:modelValue":e[3]||(e[3]=o=>a(t).password=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,{class:"box animate__animated animate__fadeInUp",prop:"domain"},{default:i(()=>[l(m,{placeholder:"\u7AD9\u70B9\u5730\u5740/\u57DF\u540D","prefix-icon":a(B),modelValue:a(t).domain,"onUpdate:modelValue":e[4]||(e[4]=o=>a(t).domain=o),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),l(n,null,{default:i(()=>[l(h,{"native-type":"submit",loading:a(u),class:"w-full",type:"primary",icon:a(O),onClick:v},{default:i(()=>[ee]),_:1},8,["loading","icon"])]),_:1})]),_:1},8,["rules","model"])])])])])])}}};var ge=J(ae,[["__scopeId","data-v-defaa902"]]);export{ge as default}; diff --git a/src/main/resources/static/assets/index.4ab44dc8.js b/src/main/resources/static/assets/index.da7dbe5d.js similarity index 97% rename from src/main/resources/static/assets/index.4ab44dc8.js rename to src/main/resources/static/assets/index.da7dbe5d.js index 32ad077..aba8da3 100644 --- a/src/main/resources/static/assets/index.4ab44dc8.js +++ b/src/main/resources/static/assets/index.da7dbe5d.js @@ -1,4 +1,4 @@ -import{c,a0 as Pe,r as V,m as Q,d as je,aw as Ke,G as We,s as J,w as ee,Z as $,o as Ue,ak as _e,x as qe,Q as Xe,R as Ye,a as d,f as x,k as v,F as te,n as y,u as t,g as K,p as N,b as w,e as B,q as W,z as ae,h as Ze,j as Ge,N as Qe,t as U,i as Je,a5 as Se}from"./index.552205f5.js";import{m as et,c as tt}from"./request.3708b2c4.js";import{ap as at,V as Ce,b as ot,S as st,d as oe,N as Ie,aq as nt,U as lt,W as rt,q as it,u as Ee,ar as ut,as as dt,at as ct,k as pt,o as ke,E as L,g as ft,_ as vt,B as mt,w as yt}from"./base.d698891e.js";import{U as se}from"./event.776e7e11.js";const ht=o=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(o),bt=["class","style"],gt=/^on[A-Z]/,xt=(o={})=>{const{excludeListeners:m=!1,excludeKeys:l}=o,a=c(()=>((l==null?void 0:l.value)||[]).concat(bt)),i=Pe();return i?c(()=>{var p;return at(Object.entries((p=i.proxy)==null?void 0:p.$attrs).filter(([r])=>!a.value.includes(r)&&!(m&>.test(r))))}):c(()=>({}))};function wt(o){const m=V();function l(){if(o.value==null)return;const{selectionStart:i,selectionEnd:p,value:r}=o.value;if(i==null||p==null)return;const g=r.slice(0,Math.max(0,i)),u=r.slice(Math.max(0,p));m.value={selectionStart:i,selectionEnd:p,value:r,beforeTxt:g,afterTxt:u}}function a(){if(o.value==null||m.value==null)return;const{value:i}=o.value,{beforeTxt:p,afterTxt:r,selectionStart:g}=m.value;if(p==null||r==null||g==null)return;let u=i.length;if(i.endsWith(r))u=i.length-r.length;else if(i.startsWith(p))u=p.length;else{const h=p[g-1],S=i.indexOf(h,g-1);S!==-1&&(u=S+1)}o.value.setSelectionRange(u,u)}return[l,a]}let b;const St=` +import{c,a0 as Pe,r as V,m as Q,d as je,ax as Ke,G as We,s as J,w as ee,Z as $,o as Ue,ak as _e,x as qe,Q as Xe,R as Ye,a as d,f as x,k as v,F as te,n as y,u as t,g as K,p as N,b as w,e as B,q as W,z as ae,h as Ze,j as Ge,N as Qe,t as U,i as Je,a5 as Se}from"./index.43b3cbf5.js";import{m as et,c as tt}from"./request.e2daed10.js";import{ap as at,V as Ce,b as ot,S as st,d as oe,N as Ie,aq as nt,U as lt,W as rt,q as it,u as Ee,ar as ut,as as dt,at as ct,k as pt,o as ke,E as L,g as ft,_ as vt,B as mt,w as yt}from"./base.4ef7f45b.js";import{U as se}from"./event.776e7e11.js";const ht=o=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(o),bt=["class","style"],gt=/^on[A-Z]/,xt=(o={})=>{const{excludeListeners:m=!1,excludeKeys:l}=o,a=c(()=>((l==null?void 0:l.value)||[]).concat(bt)),i=Pe();return i?c(()=>{var p;return at(Object.entries((p=i.proxy)==null?void 0:p.$attrs).filter(([r])=>!a.value.includes(r)&&!(m&>.test(r))))}):c(()=>({}))};function wt(o){const m=V();function l(){if(o.value==null)return;const{selectionStart:i,selectionEnd:p,value:r}=o.value;if(i==null||p==null)return;const g=r.slice(0,Math.max(0,i)),u=r.slice(Math.max(0,p));m.value={selectionStart:i,selectionEnd:p,value:r,beforeTxt:g,afterTxt:u}}function a(){if(o.value==null||m.value==null)return;const{value:i}=o.value,{beforeTxt:p,afterTxt:r,selectionStart:g}=m.value;if(p==null||r==null||g==null)return;let u=i.length;if(i.endsWith(r))u=i.length-r.length;else if(i.startsWith(p))u=p.length;else{const h=p[g-1],S=i.indexOf(h,g-1);S!==-1&&(u=S+1)}o.value.setSelectionRange(u,u)}return[l,a]}let b;const St=` height:0 !important; visibility:hidden !important; overflow:hidden !important; diff --git a/src/main/resources/static/assets/index.e168d154.js b/src/main/resources/static/assets/index.e168d154.js deleted file mode 100644 index 64e5ff9..0000000 --- a/src/main/resources/static/assets/index.e168d154.js +++ /dev/null @@ -1 +0,0 @@ -import{u as d,a,E as N}from"./popper.14a92806.js";import{b as A,C as R,u as T,P as D,_ as $,aU as O,w as V}from"./base.d698891e.js";import{d as f}from"./dropdown.d5503246.js";import{d as z,r as H,c as n,u as p,a as u,b as I,e as c,f as L,t as v,n as U,k as b,g as m,J,z as j}from"./index.552205f5.js";const q=A({trigger:d.trigger,placement:f.placement,disabled:d.disabled,visible:a.visible,transition:a.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:a.content,popperStyle:a.popperStyle,popperClass:a.popperClass,enterable:{...a.enterable,default:!0},effect:{...a.effect,default:"light"},teleported:a.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),F={"update:visible":t=>R(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},G={name:"ElPopover"},K=z({...G,props:q,emits:F,setup(t,{expose:o,emit:r}){const s=t,l=T("popover"),i=H(),g=n(()=>{var e;return(e=p(i))==null?void 0:e.popperRef}),w=n(()=>[{width:D(s.width)},s.popperStyle]),y=n(()=>[l.b(),s.popperClass,{[l.m("plain")]:!!s.content}]),P=n(()=>s.transition==="el-fade-in-linear"),C=()=>{var e;(e=i.value)==null||e.hide()},E=()=>{r("before-enter")},k=()=>{r("before-leave")},S=()=>{r("after-enter")},B=()=>{r("update:visible",!1),r("after-leave")};return o({popperRef:g,hide:C}),(e,Y)=>(u(),I(p(N),j({ref_key:"tooltipRef",ref:i},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(y),"popper-style":p(w),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(P),onBeforeShow:E,onBeforeHide:k,onShow:S,onHide:B}),{content:c(()=>[e.title?(u(),L("div",{key:0,class:U(p(l).e("title")),role:"title"},v(e.title),3)):b("v-if",!0),m(e.$slots,"default",{},()=>[J(v(e.content),1)])]),default:c(()=>[e.$slots.reference?m(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration"]))}});var M=$(K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h=(t,o)=>{const r=o.arg||o.value,s=r==null?void 0:r.popperRef;s&&(s.triggerRef=t)};var Q={mounted(t,o){h(t,o)},updated(t,o){h(t,o)}};const W="popover",X=O(Q,W),te=V(M,{directive:X});export{te as E}; diff --git a/src/main/resources/static/assets/index.e507f173.css b/src/main/resources/static/assets/index.e507f173.css new file mode 100644 index 0000000..2041429 --- /dev/null +++ b/src/main/resources/static/assets/index.e507f173.css @@ -0,0 +1 @@ +.zfile-admin-down-link[data-v-f457177c] .el-select-dropdown__item{padding-right:15px}.zfile-admin-down-link[data-v-f457177c] .el-dialog__header{text-align:center}.zfile-admin-down-link[data-v-f457177c] .el-dialog__body{height:80vh;overflow-y:auto} diff --git a/src/main/resources/static/assets/index.e784c329.js b/src/main/resources/static/assets/index.e784c329.js new file mode 100644 index 0000000..8d7caaf --- /dev/null +++ b/src/main/resources/static/assets/index.e784c329.js @@ -0,0 +1 @@ +import{P as le,L as te,r as _,ae as oe,a as r,b as m,e as o,p as V,h as c,u as e,f as k,y as P,F as w,Q as se,R as ne,J as f,t as S,k as A,U as re,V as ue,o as ie,c as ce,w as I}from"./index.43b3cbf5.js";import{x as U,r as me}from"./base.4ef7f45b.js";/* empty css *//* empty css */import"./popper.718d36e0.js";import{E as de}from"./link.e398aca7.js";/* empty css */import{E as pe}from"./switch.87050cd5.js";/* empty css */import{E as ye,a as fe}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{S as he}from"./SvgIcon.eefd5347.js";import{Z as b,a as ge}from"./ZFormItem.899c4541.js";import{f as ve,g as _e,h as ke,i as Se,e as be}from"./admin-storage.442a3cb6.js";import{e as N}from"./request.e2daed10.js";import{b as M}from"./route-block.9b0645f8.js";import{_ as Ve}from"./plugin-vue_export-helper.21dcd24c.js";import{E as Pe}from"./index.9c287fed.js";import{E as we}from"./index.a1ce1e68.js";import{r as qe}from"./BadgeCheckIcon.8153a115.js";import{E as Ae}from"./index.439070da.js";import{E as Ie}from"./index.da7dbe5d.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./validator.b1ae6965.js";import"./event.776e7e11.js";import"./index.88f36c37.js";import"./index.566ad052.js";import"./scroll.90c07eee.js";import"./isEqual.2263846a.js";import"./debounce.014e7b6e.js";import"./index.5cf4e3bb.js";import"./dropdown.2ef7612f.js";import"./index.d46124aa.js";let O={aliyun:[{name:"\u534E\u4E1C 1\uFF08\u676D\u5DDE\uFF09",val:"oss-cn-hangzhou.aliyuncs.com"},{name:"\u534E\u4E1C 2\uFF08\u4E0A\u6D77\uFF09",val:"oss-cn-shanghai.aliyuncs.com"},{name:"\u534E\u5317 1\uFF08\u9752\u5C9B\uFF09",val:"oss-cn-qingdao.aliyuncs.com"},{name:"\u534E\u5317 2\uFF08\u5317\u4EAC\uFF09",val:"oss-cn-beijing.aliyuncs.com"},{name:"\u534E\u5317 3\uFF08\u5F20\u5BB6\u53E3\uFF09",val:"oss-cn-zhangjiakou.aliyuncs.com"},{name:"\u534E\u5317 5\uFF08\u547C\u548C\u6D69\u7279\uFF09",val:"oss-cn-huhehaote.aliyuncs.com"},{name:"\u534E\u5317 6\uFF08\u4E4C\u5170\u5BDF\u5E03\uFF09",val:"oss-cn-wulanchabu.aliyuncs.com"},{name:"\u534E\u5357 1\uFF08\u6DF1\u5733\uFF09",val:"oss-cn-shenzhen.aliyuncs.com"},{name:"\u534E\u5357 2\uFF08\u6CB3\u6E90\uFF09",val:"oss-cn-heyuan.aliyuncs.com"},{name:"\u534E\u5357 3\uFF08\u5E7F\u5DDE\uFF09",val:"oss-cn-guangzhou.aliyuncs.com"},{name:"\u897F\u5357 1\uFF08\u6210\u90FD\uFF09",val:"oss-cn-chengdu.aliyuncs.com"},{name:"\u4E2D\u56FD\uFF08\u9999\u6E2F\uFF09",val:"oss-cn-hongkong.aliyuncs.com"},{name:"\u65B0\u52A0\u5761",val:"oss-ap-southeast-1.aliyuncs.com"},{name:"\u65E5\u672C\uFF08\u4E1C\u4EAC\uFF09",val:"oss-ap-northeast-1.aliyuncs.com"},{name:"\u7F8E\u56FD\u897F\u90E8 1 \uFF08\u7845\u8C37\uFF09",val:"oss-us-west-1.aliyuncs.com"},{name:"\u7F8E\u56FD\u4E1C\u90E8 1 \uFF08\u5F17\u5409\u5C3C\u4E9A\uFF09",val:"oss-us-east-1.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 1 \uFF08\u65B0\u52A0\u5761\uFF09",val:"oss-ap-southeast-1.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 2 \uFF08\u6089\u5C3C\uFF09",val:"oss-ap-southeast-2.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 3 \uFF08\u5409\u9686\u5761\uFF09",val:"oss-ap-southeast-3.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5357 5 \uFF08\u96C5\u52A0\u8FBE\uFF09",val:"oss-ap-southeast-5.aliyuncs.com"},{name:"\u4E9A\u592A\u4E1C\u5317 1 \uFF08\u65E5\u672C\uFF09",val:"oss-ap-northeast-1.aliyuncs.com"},{name:"\u4E9A\u592A\u5357\u90E8 1 \uFF08\u5B5F\u4E70\uFF09",val:"oss-ap-south-1.aliyuncs.com"},{name:"\u6B27\u6D32\u4E2D\u90E8 1 \uFF08\u6CD5\u5170\u514B\u798F\uFF09",val:"oss-eu-central-1.aliyuncs.com"},{name:"\u82F1\u56FD\uFF08\u4F26\u6566\uFF09",val:"oss-eu-west-1.aliyuncs.com"},{name:"\u4E2D\u4E1C\u4E1C\u90E8 1 \uFF08\u8FEA\u62DC\uFF09",val:"oss-me-east-1.aliyuncs.com"}],tencent:[{name:"\u5317\u4EAC\u4E00\u533A",val:"cos.ap-beijing-1.myqcloud.com"},{name:"\u5317\u4EAC",val:"cos.ap-beijing.myqcloud.com"},{name:"\u4E0A\u6D77",val:"cos.ap-shanghai.myqcloud.com"},{name:"\u5E7F\u5DDE",val:"cos.ap-guangzhou.myqcloud.com"},{name:"\u6210\u90FD",val:"cos.ap-chengdu.myqcloud.com"},{name:"\u91CD\u5E86",val:"cos.ap-chongqing.myqcloud.com"},{name:"\u6DF1\u5733\u91D1\u878D",val:"cos.ap-shenzhen-fsi.myqcloud.com"},{name:"\u4E0A\u6D77\u91D1\u878D",val:"cos.ap-shanghai-fsi.myqcloud.com"},{name:"\u5317\u4EAC\u91D1\u878D",val:"cos.ap-beijing-fsi.myqcloud.com"},{name:"\u4E2D\u56FD\u9999\u6E2F",val:"cos.ap-hongkong.myqcloud.com"},{name:"\u65B0\u52A0\u5761",val:"cos.ap-singapore.myqcloud.com"},{name:"\u5B5F\u4E70",val:"cos.ap-mumbai.myqcloud.com"},{name:"\u96C5\u8FBE\u52A0",val:"cos.ap-jakarta.myqcloud.com"},{name:"\u9996\u5C14",val:"cos.ap-seoul.myqcloud.com"},{name:"\u66FC\u8C37",val:"cos.ap-bangkok.myqcloud.com"},{name:"\u4E1C\u4EAC",val:"cos.ap-tokyo.myqcloud.com"},{name:"\u7845\u8C37\uFF08\u7F8E\u897F\uFF09",val:"cos.na-siliconvalley.myqcloud.com"},{name:"\u5F17\u5409\u5C3C\u4E9A\uFF08\u7F8E\u4E1C\uFF09",val:"cos.na-ashburn.myqcloud.com"},{name:"\u591A\u4F26\u591A",val:"cos.na-toronto.myqcloud.com"},{name:"\u6CD5\u5170\u514B\u798F",val:"cos.eu-frankfurt.myqcloud.com"},{name:"\u83AB\u65AF\u79D1",val:"cos.eu-moscow"}],huawei:[{name:"\u975E\u6D32-\u7EA6\u7FF0\u5185\u65AF\u5821",val:"obs.af-south-1.myhuaweicloud.com"},{name:"\u534E\u5317-\u5317\u4EAC\u56DB",val:"obs.cn-north-4.myhuaweicloud.com"},{name:"\u534E\u5317-\u5317\u4EAC\u4E00",val:"obs.cn-north-1.myhuaweicloud.com"},{name:"\u534E\u4E1C-\u4E0A\u6D77\u4E8C",val:"obs.cn-east-2.myhuaweicloud.com"},{name:"\u534E\u4E1C-\u4E0A\u6D77\u4E00",val:"obs.cn-east-3.myhuaweicloud.com"},{name:"\u534E\u5357-\u5E7F\u5DDE",val:"obs.cn-south-1.myhuaweicloud.com"},{name:"\u897F\u5357-\u8D35\u9633\u4E00",val:"obs.cn-southwest-2.myhuaweicloud.com"},{name:"\u4E9A\u592A-\u66FC\u8C37",val:"obs.ap-southeast-2.myhuaweicloud.com"},{name:"\u4E2D\u56FD-\u9999\u6E2F",val:"obs.ap-southeast-1.myhuaweicloud.com"},{name:"\u4E9A\u592A-\u65B0\u52A0\u5761",val:"obs.ap-southeast-3.myhuaweicloud.com"}],qiniu:[{name:"\u534E\u4E1C",val:"s3-cn-east-1.qiniucs.com"},{name:"\u534E\u5317",val:"s3-cn-north-1.qiniucs.com"},{name:"\u534E\u5357",val:"s3-cn-south-1.qiniucs.com"},{name:"\u5317\u7F8E",val:"s3-us-north-1.qiniucs.com"},{name:"\u4E1C\u5357\u4E9A",val:"s3-ap-southeast-1.qiniucs.com"},{name:"\u534E\u4E1C-\u6D59\u6C5F2",val:"s3-cn-east-2.qiniucs.com"}]};const Ue=g=>N({url:"/sharepoint/getSites",method:"post",data:g}),Ee=g=>N({url:"/sharepoint/getSiteLists",method:"post",data:g}),xe=g=>N({url:"/s3/getBuckets",method:"post",data:g,config:{showDefaultMsg:!1}});const B=g=>(re("data-v-1ec1e7b8"),g=g(),ue(),g),Te={class:"flex justify-items-center"},Le=B(()=>V("span",null,"\u5B58\u50A8\u6E90\u4FE1\u606F",-1)),Ne=f(" \u8BF7\u7EF4\u62A4\u60A8\u7684\u5B58\u50A8\u6E90\u4FE1\u606F\uFF0C\u53EF\u53C2\u8003 "),Ce=B(()=>V("a",{class:"link",target:"_blank",href:"https://docs.zfile.vip/#/example"},"ZFile \u5B58\u50A8\u6E90\u914D\u7F6E\u6587\u6863",-1)),Fe=f(" \u5B58\u50A8\u6E90\u522B\u540D\uFF0C\u7528\u4E8E URL \u4E2D\u5C55\u793A, \u5982 http://ip:port/{\u5B58\u50A8\u6E90\u522B\u540D} "),ze=f(" \u5B58\u50A8\u6E90\u5907\u6CE8\u4FE1\u606F, \u7528\u4E8E\u8F85\u52A9\u7BA1\u7406\u5458\u533A\u5206\u4E0D\u540C\u7684\u5B58\u50A8\u6E90, \u6B64\u5B57\u6BB5\u4EC5\u7BA1\u7406\u5458\u53EF\u89C1 "),Re=f(" \u5982\u4E0D\u542F\u7528\uFF0C\u5219\u5728\u524D\u53F0\u4E0D\u663E\u793A\uFF0C\u4E14\u4E0D\u53EF\u8BBF\u95EE. "),Ke=f(" \u662F\u5426\u542F\u7528\u6587\u4EF6\u4E0A\u4F20\uFF0C\u7F16\u8F91\uFF0C\u5220\u9664\u7B49\u64CD\u4F5C. "),Me=f(" \u5F00\u542F\u540E\u6240\u6709\u4EBA\u90FD\u53EF\u8FDB\u884C\u6587\u4EF6\u64CD\u4F5C\uFF0C\u53CD\u4E4B\u4EC5\u7BA1\u7406\u5458\u767B\u5F55\u540E\u53EF\u64CD\u4F5C "),Oe=f(" \u542F\u7528\u540E\uFF0C\u6BCF\u6B21\u5207\u6362\u5230\u6B64\u5B58\u50A8\u6E90\uFF0C\u662F\u5426\u9ED8\u8BA4\u6253\u5F00\u753B\u5ECA\u6A21\u5F0F "),Be={style:{float:"left"}},je={style:{float:"right",color:"#8492a6","font-size":"13px"}},De={style:{float:"left"}},Ze=f("\u9ED8\u8BA4\u7F51\u7AD9"),He=f("\u67E5\u770B\u7F51\u7AD9"),Je={style:{float:"left"}},Qe=f("\u9ED8\u8BA4\u7F51\u7AD9"),$e=f("\u67E5\u770B\u7F51\u7AD9"),Ge={style:{float:"left"}},We={class:"float-right"},Xe={key:7},Ye={key:0},ea=["innerHTML"],aa=f("\u4FDD\u5B58\u8BBE\u7F6E"),j={__name:"index",setup(g){let D=le(),Z=te(),C=null,F=_();const H=()=>{F.value.validate(p=>{p&&(E.value=!0,ve(a.value).then(()=>{x.value=!0,Ae.confirm("\u4FDD\u5B58\u6210\u529F, \u662F\u5426\u8FD4\u56DE\u5B58\u50A8\u6E90\u5217\u8868\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:s=>{s==="confirm"&&D.push("/admin/storage-list")}})}).finally(()=>{E.value=!1}))})};let J=()=>{let p=_({orderNum:null,name:"",type:"",remark:"",alias:"",defaultSwitchToImgMode:!1,enable:!0,enableFileOperator:!0,enableFileAnnoOperator:!1,searchEnable:!1,searchIgnoreCase:!1,searchMode:"SEARCH_CACHE",enableCache:!1,autoRefreshCache:!1,storageSourceAllParam:{endPoint:"",pathStyle:"",isPrivate:!1,accessKey:null,secretKey:null,bucketName:null,host:null,port:null,filePath:null,accessToken:null,refreshToken:null,secretId:null,username:null,password:null,basePath:"",domain:"",listId:"",redirectUri:"",siteId:"",proxyDomain:"",downloadLinkType:"",clientId:"",clientSecret:"",region:"",autoConfigCors:!1}});const s=u=>{be(u).then(n=>{n.data.type=n.data.type.key,p.value=n.data,C=n.data.key})};let h=_(!1),y=_([]);ie(()=>{_e().then(n=>{y.value=n.data});let u=Z.params.storageId;u&&(h.value=!0,s(u))});let i=_(!1),v=_({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B58\u50A8\u6E90\u540D\u79F0"}],key:[{validator:(u,n,d)=>{if(n==null||n===""){d();return}if(["admin","file","login","install","s","onedrive","api","sharepoint","s3"].includes(n)){d(new Error("\u4E0D\u53EF\u5360\u7528\u7CFB\u7EDF\u7EA7\u540D\u79F0\uFF0C\u8BF7\u4FEE\u6539\u3002"));return}if(!/^[\w\-]+$/.test(n)){d(new Error("\u53EA\u5141\u8BB8\u4F7F\u7528\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u4E0B\u5212\u7EBF\u3001\u6A2A\u6760"));return}if(C===n){d();return}ke({storageKey:n}).then(L=>{L.data?d(new Error("\u8BE5\u5B58\u50A8\u6E90\u522B\u540D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u4FEE\u6539\u3002")):d()})}}],type:[{required:!0,message:"\u5B58\u50A8\u7B56\u7565\u4E0D\u80FD\u4E3A\u7A7A"}],"storageSourceAllParam.domain":[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D\uFF0C\u9700\u4EE5 http:// \u6216 https:// \u5F00\u5934"},{validator:(u,n,d)=>{if(n==null||n===""){d();return}if(window.location.protocol==="https:"&&n.indexOf("http://")===0){d(new Error("\u68C0\u6D4B\u5230\u5F53\u524D ZFile \u7AD9\u70B9\u662F https \u534F\u8BAE, \u53D7\u6D4F\u89C8\u5668\u9650\u5236, \u6B64\u5904\u4E5F\u5FC5\u987B\u662F https \u534F\u8BAE, \u5426\u5219\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528."));return}d()}}]});return{storageItem:p,supportStorageType:y,loading:i,rules:v,isEditMode:h}},{storageItem:a,supportStorageType:Q,loading:E,rules:$,isEditMode:x}=J(),G=()=>{let p=_([]),s=ce(()=>({accessKey:a.value.storageSourceAllParam.accessKey||a.value.storageSourceAllParam.secretId,secretKey:a.value.storageSourceAllParam.secretKey,endPoint:a.value.storageSourceAllParam.endPoint,region:a.value.storageSourceAllParam.region}));I(()=>s.value,y=>{y.accessKey&&y.secretKey&&y.endPoint&&h(y)});const h=y=>{xe(y).then(i=>{p.value=i.data}).catch(i=>{p.value=[]})};return{bucketList:p}},{bucketList:z}=G(),W=()=>{let p=_([]),s=_([]);const h=u=>u.indexOf("sharepoint")!==-1,y=u=>u==="sharepoint"?"Standard":"China";I(()=>a.value.storageSourceAllParam.accessToken,u=>{u&&i()});const i=()=>{let u=a.value.type;if(h(u)){let n={type:y(u),accessToken:a.value.storageSourceAllParam.accessToken};Ue(n).then(d=>{p.value=d.data})}};I(()=>a.value.storageSourceAllParam.siteId,u=>{u&&v()});const v=()=>{let u=a.value.type;if(h(u)){let n={type:y(u),accessToken:a.value.storageSourceAllParam.accessToken,siteId:a.value.storageSourceAllParam.siteId};Ee(n).then(d=>{s.value=d.data})}};return{sharepointSites:p,sharepointSiteLists:s,isSharePoint:h}},{sharepointSites:X,sharepointSiteLists:Y,isSharePoint:R}=W(),ee=()=>{I(()=>a.value.type,h=>{s(h)});let p=_([]);const s=h=>{!h||Se({storageType:h}).then(y=>{p.value=y.data;for(let i of p.value)!x.value&&i.defaultValue?(i.defaultValue==="true"?i.defaultValue=!0:i.defaultValue==="false"&&(i.defaultValue=!1),a.value.storageSourceAllParam[i.key]=i.defaultValue):i.key==="redirectUri"&&!a.value.storageSourceAllParam[i.key]&&(a.value.storageSourceAllParam[i.key]=i.defaultValue)})};return{storageSourceParamList:p}},{storageSourceParamList:ae}=ee();return(p,s)=>{const h=he,y=oe("router-link"),i=Ie,v=ye,u=fe,n=pe,d=Pe,q=de,T=we,L=me;return r(),m(ge,{model:e(a),class:"zfile-storage-edit",rules:e($),ref_key:"storageEditForm",ref:F},{"form-title":o(()=>[V("div",Te,[c(y,{to:"/admin/storage-list"},{default:o(()=>[c(h,{class:"inline mr-2 cursor-pointer",name:"file-type-back"})]),_:1}),Le])]),"form-sub-title":o(()=>[Ne,Ce]),footer:o(()=>[c(L,{loading:e(E),type:"primary",size:"default",icon:e(qe),onClick:H},{default:o(()=>[aa]),_:1},8,["loading","icon"])]),default:o(()=>[c(b,{label:"\u5B58\u50A8\u6E90\u540D\u79F0",prop:"name"},{default:o(()=>[c(i,{modelValue:e(a).name,"onUpdate:modelValue":s[0]||(s[0]=l=>e(a).name=l)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u5B58\u50A8\u6E90\u522B\u540D",prop:"key"},{tips:o(()=>[Fe]),default:o(()=>[c(i,{modelValue:e(a).key,"onUpdate:modelValue":s[1]||(s[1]=l=>e(a).key=l)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u5B58\u50A8\u6E90\u5907\u6CE8"},{tips:o(()=>[ze]),default:o(()=>[c(i,{type:"textarea",rows:3,placeholder:"\u8BF7\u8F93\u5165\u5B58\u50A8\u6E90\u5907\u6CE8",modelValue:e(a).remark,"onUpdate:modelValue":s[2]||(s[2]=l=>e(a).remark=l)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u5B58\u50A8\u7B56\u7565",prop:"type"},{default:o(()=>[c(u,{disabled:e(x),filterable:"",modelValue:e(a).type,"onUpdate:modelValue":s[3]||(s[3]=l=>e(a).type=l),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u7B56\u7565"},{default:o(()=>[(r(!0),k(w,null,P(e(Q),l=>(r(),m(v,{key:l.key,label:l.description,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),c(b,{label:"\u662F\u5426\u542F\u7528"},{tips:o(()=>[Re]),default:o(()=>[c(n,{modelValue:e(a).enable,"onUpdate:modelValue":s[4]||(s[4]=l=>e(a).enable=l)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u542F\u7528\u6587\u4EF6\u64CD\u4F5C"},{tips:o(()=>[Ke]),default:o(()=>[c(n,{modelValue:e(a).enableFileOperator,"onUpdate:modelValue":s[5]||(s[5]=l=>e(a).enableFileOperator=l)},null,8,["modelValue"])]),_:1}),se(c(b,{label:"\u5141\u8BB8\u533F\u540D\u6587\u4EF6\u64CD\u4F5C"},{tips:o(()=>[Me]),default:o(()=>[c(n,{modelValue:e(a).enableFileAnnoOperator,"onUpdate:modelValue":s[6]||(s[6]=l=>e(a).enableFileAnnoOperator=l)},null,8,["modelValue"])]),_:1},512),[[ne,e(a).enableFileOperator]]),c(b,{label:"\u662F\u5426\u9ED8\u8BA4\u6253\u5F00\u753B\u5ECA\u6A21\u5F0F"},{tips:o(()=>[Oe]),default:o(()=>[c(n,{modelValue:e(a).defaultSwitchToImgMode,"onUpdate:modelValue":s[7]||(s[7]=l=>e(a).defaultSwitchToImgMode=l)},null,8,["modelValue"])]),_:1}),(r(!0),k(w,null,P(e(ae),l=>(r(),m(b,{label:l.name,key:l.name,required:l.required,prop:"storageSourceAllParam."+l.key},{tips:o(()=>[l.link?(r(),k("div",Ye,[l.key==="accessToken"?(r(),m(q,{key:0,target:"_blank",icon:e(U),href:l.link+"?clientId="+e(a).storageSourceAllParam.clientId+"&clientSecret="+e(a).storageSourceAllParam.clientSecret+"&redirectUri="+e(a).storageSourceAllParam.redirectUri},{default:o(()=>[f(S(l.linkName),1)]),_:2},1032,["icon","href"])):(r(),m(q,{key:1,target:"_blank",icon:e(U),href:l.link},{default:o(()=>[f(S(l.linkName),1)]),_:2},1032,["icon","href"]))])):A("",!0),l.description?(r(),k("div",{key:1,innerHTML:l.description},null,8,ea)):A("",!0)]),default:o(()=>{var K;return[l.key==="endPoint"&&e(O).hasOwnProperty(e(a).type)?(r(),m(u,{key:0,filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"},modelValue:e(a).storageSourceAllParam.endPoint,"onUpdate:modelValue":s[8]||(s[8]=t=>e(a).storageSourceAllParam.endPoint=t)},{default:o(()=>[(r(!0),k(w,null,P(e(O)[e(a).type],t=>(r(),m(v,{label:t.name,value:t.val,key:t.name},{default:o(()=>[V("span",Be,S(t.name),1),V("span",je,S(t.val),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="siteId"&&e(R)(e(a).type)?(r(),m(u,{key:1,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u7AD9\u70B9\u5217\u8868",modelValue:e(a).storageSourceAllParam.siteId,"onUpdate:modelValue":s[9]||(s[9]=t=>e(a).storageSourceAllParam.siteId=t),class:"input-with-select"},{default:o(()=>[(r(!0),k(w,null,P(e(X),t=>(r(),m(v,{key:t.id,label:t.displayName,value:t.id},{default:o(()=>[V("span",De,[f(S(t.displayName)+" ",1),t.displayName==="Communication site"?(r(),m(d,{key:0,type:"success"},{default:o(()=>[Ze]),_:1})):A("",!0)]),c(T,{placement:"right",width:"400",trigger:"hover",content:t.webUrl},{reference:o(()=>[c(q,{target:"_blank",icon:e(U),href:t.webUrl,underline:!1,class:"float-right",type:"primary"},{default:o(()=>[He]),_:2},1032,["icon","href"])]),_:2},1032,["content"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="listId"&&e(R)(e(a).type)?(r(),m(u,{key:2,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u5B50\u76EE\u5F55",modelValue:e(a).storageSourceAllParam.listId,"onUpdate:modelValue":s[10]||(s[10]=t=>e(a).storageSourceAllParam.listId=t),class:"input-with-select"},{default:o(()=>[(r(!0),k(w,null,P(e(Y),t=>(r(),m(v,{key:t.id,label:t.displayName,value:t.id},{default:o(()=>[V("span",Je,[f(S(t.displayName)+" ",1),t.displayName==="Communication site"?(r(),m(d,{key:0,type:"success"},{default:o(()=>[Qe]),_:1})):A("",!0)]),c(T,{placement:"right",width:"400",trigger:"hover",content:t.webUrl},{reference:o(()=>[c(q,{target:"_blank",icon:e(U),href:t.webUrl,underline:!1,class:"float-right",type:"primary"},{default:o(()=>[$e]),_:2},1032,["icon","href"])]),_:2},1032,["content"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.key==="bucketName"&&((K=e(z))==null?void 0:K.length)>0?(r(),m(u,{key:3,filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u5668\u5217\u8868",modelValue:e(a).storageSourceAllParam.bucketName,"onUpdate:modelValue":s[11]||(s[11]=t=>e(a).storageSourceAllParam.bucketName=t),class:"input-with-select"},{default:o(()=>[(r(!0),k(w,null,P(e(z),t=>(r(),m(v,{key:t.name,label:t.name,value:t.name},{default:o(()=>[V("span",Ge,S(t.name),1),V("span",We,S(t.date),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):l.type==="select"?(r(),m(u,{key:4,filterable:"","default-first-option":"",modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},{default:o(()=>[(r(!0),k(w,null,P(l.options,t=>(r(),m(v,{label:t.label,value:t.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.type==="switch"?(r(),m(n,{key:5,modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},null,8,["modelValue","onUpdate:modelValue"])):l.type==="input"?(r(),m(i,{key:6,modelValue:e(a).storageSourceAllParam[l.key],"onUpdate:modelValue":t=>e(a).storageSourceAllParam[l.key]=t},null,8,["modelValue","onUpdate:modelValue"])):(r(),k("div",Xe," \u670D\u52A1\u7AEF\u914D\u7F6E\u9519\u8BEF, \u5B57\u6BB5 "+S(l.key)+" \u7C7B\u578B\u4E3A "+S(l.type)+", \u4E0D\u652F\u6301\u6B64\u7C7B\u578B\u7684\u6E32\u67D3. ",1))]}),_:2},1032,["label","required","prop"]))),128))]),_:1},8,["model","rules"])}}};typeof M=="function"&&M(j);var Fa=Ve(j,[["__scopeId","data-v-1ec1e7b8"]]);export{Fa as default}; diff --git a/src/main/resources/static/assets/index.e7e80979.js b/src/main/resources/static/assets/index.e7e80979.js new file mode 100644 index 0000000..674204a --- /dev/null +++ b/src/main/resources/static/assets/index.e7e80979.js @@ -0,0 +1 @@ +import{v as o,L as a}from"./directive.378eb0e0.js";const n={install(i){i.directive("loading",o),i.config.globalProperties.$loading=a},directive:o,service:a};export{n as E}; diff --git a/src/main/resources/static/assets/index.f41c547b.css b/src/main/resources/static/assets/index.f41c547b.css new file mode 100644 index 0000000..fa3a7f2 --- /dev/null +++ b/src/main/resources/static/assets/index.f41c547b.css @@ -0,0 +1 @@ +.el-drive-form-col[data-v-1ec1e7b8]{padding-left:0!important}.zfile-site-id-input-site-type-select[data-v-1ec1e7b8]{width:100px}.zfile-info-tooltip[data-v-1ec1e7b8]{line-height:32px}.zfile-storage-edit[data-v-1ec1e7b8] .z-form-item-input>.el-select{width:100%} diff --git a/src/main/resources/static/assets/input-number.4b8b8203.js b/src/main/resources/static/assets/input-number.4b8b8203.js new file mode 100644 index 0000000..5b160ef --- /dev/null +++ b/src/main/resources/static/assets/input-number.4b8b8203.js @@ -0,0 +1 @@ +import{d as ne,r as te,W as le,c as g,w as ie,o as ae,ak as ue,a as m,f as z,Q as W,u as n,n as C,B as V,h as F,e as Y,b as y,k as $,j as B,m as se}from"./index.43b3cbf5.js";import{E as oe}from"./index.da7dbe5d.js";import{b as pe,S as de,V as d,k as v,u as ce,aq as be,J as I,W as me,q as _e,Y as he,aQ as fe,E as j,Z as ge,aR as ve,_ as Ne,o as q,w as we}from"./base.4ef7f45b.js";import{C as xe,I as Ve,U as ye}from"./event.776e7e11.js";import{u as Ie}from"./index.566ad052.js";import{v as G}from"./index.7fa0be7b.js";const ke=pe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:de,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:i=>i===null||d(i)||["min","max"].includes(i),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:i=>i>=0&&i===Number.parseInt(`${i}`,10)}}),Ee={[xe]:(i,k)=>i!==k,blur:i=>i instanceof FocusEvent,focus:i=>i instanceof FocusEvent,[Ve]:i=>d(i)||v(i),[ye]:i=>d(i)||v(i)},Se=["aria-label","onKeydown"],Pe=["aria-label","onKeydown"],Ae={name:"ElInputNumber"},ze=ne({...Ae,props:ke,emits:Ee,setup(i,{expose:k,emit:c}){const t=i,{t:T}=Ie(),p=ce("input-number"),h=te(),u=le({currentValue:t.modelValue,userInput:null}),{formItem:_}=be(),D=g(()=>d(t.modelValue)&&N(t.modelValue,-1)d(t.modelValue)&&N(t.modelValue)>t.max),L=g(()=>{const e=U(t.step);return I(t.precision)?Math.max(U(t.modelValue),e):(e>t.precision,t.precision)}),E=g(()=>t.controls&&t.controlsPosition==="right"),M=me(),f=_e(),Q=g(()=>{if(u.userInput!==null)return u.userInput;let e=u.currentValue;if(v(e))return"";if(d(e)){if(Number.isNaN(e))return"";I(t.precision)||(e=e.toFixed(t.precision))}return e}),O=(e,r)=>{if(I(r)&&(r=L.value),r===0)return Math.round(e);let l=String(e);const a=l.indexOf(".");if(a===-1||!l.replace(".","").split("")[a+r])return e;const w=l.length;return l.charAt(w-1)==="5"&&(l=`${l.slice(0,Math.max(0,w-1))}6`),Number.parseFloat(Number(l).toFixed(r))},U=e=>{if(v(e))return 0;const r=e.toString(),l=r.indexOf(".");let a=0;return l!==-1&&(a=r.length-l-1),a},N=(e,r=1)=>d(e)?O(e+t.step*r):u.currentValue,S=()=>{if(f.value||K.value)return;const e=t.modelValue||0,r=N(e);A(r)},P=()=>{if(f.value||D.value)return;const e=t.modelValue||0,r=N(e,-1);A(r)},R=(e,r)=>{const{max:l,min:a,step:s,precision:b,stepStrictly:w,valueOnClear:x}=t;let o=Number(e);if(v(e)||Number.isNaN(o))return null;if(e===""){if(x===null)return null;o=se(x)?{min:a,max:l}[x]:x}return w&&(o=Math.round(o/s)*s),I(b)||(o=O(o,b)),(o>l||ol?l:a,r&&c("update:modelValue",o)),o},A=e=>{var r;const l=u.currentValue,a=R(e);l!==a&&(u.userInput=null,c("update:modelValue",a),c("input",a),c("change",a,l),(r=_==null?void 0:_.validate)==null||r.call(_,"change").catch(s=>q()),u.currentValue=a)},H=e=>u.userInput=e,J=e=>{const r=e!==""?Number(e):"";(d(r)&&!Number.isNaN(r)||e==="")&&A(r),u.userInput=null},Z=()=>{var e,r;(r=(e=h.value)==null?void 0:e.focus)==null||r.call(e)},X=()=>{var e,r;(r=(e=h.value)==null?void 0:e.blur)==null||r.call(e)},ee=e=>{c("focus",e)},re=e=>{var r;c("blur",e),(r=_==null?void 0:_.validate)==null||r.call(_,"blur").catch(l=>q())};return ie(()=>t.modelValue,e=>{u.currentValue=R(e,!0),u.userInput=null},{immediate:!0}),ae(()=>{var e;const{min:r,max:l,modelValue:a}=t,s=(e=h.value)==null?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(l)?s.setAttribute("aria-valuemax",String(l)):s.removeAttribute("aria-valuemax"),Number.isFinite(r)?s.setAttribute("aria-valuemin",String(r)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(u.currentValue)),s.setAttribute("aria-disabled",String(f.value)),!d(a)&&a!=null){let b=Number(a);Number.isNaN(b)&&(b=null),c("update:modelValue",b)}}),ue(()=>{var e;const r=(e=h.value)==null?void 0:e.input;r==null||r.setAttribute("aria-valuenow",`${u.currentValue}`)}),k({focus:Z,blur:X}),(e,r)=>(m(),z("div",{class:C([n(p).b(),n(p).m(n(M)),n(p).is("disabled",n(f)),n(p).is("without-controls",!e.controls),n(p).is("controls-right",n(E))]),onDragstart:r[0]||(r[0]=B(()=>{},["prevent"]))},[e.controls?W((m(),z("span",{key:0,role:"button","aria-label":n(T)("el.inputNumber.decrease"),class:C([n(p).e("decrease"),n(p).is("disabled",n(D))]),onKeydown:V(P,["enter"])},[F(n(j),null,{default:Y(()=>[n(E)?(m(),y(n(he),{key:0})):(m(),y(n(fe),{key:1}))]),_:1})],42,Se)),[[n(G),P]]):$("v-if",!0),e.controls?W((m(),z("span",{key:1,role:"button","aria-label":n(T)("el.inputNumber.increase"),class:C([n(p).e("increase"),n(p).is("disabled",n(K))]),onKeydown:V(S,["enter"])},[F(n(j),null,{default:Y(()=>[n(E)?(m(),y(n(ge),{key:0})):(m(),y(n(ve),{key:1}))]),_:1})],42,Pe)),[[n(G),S]]):$("v-if",!0),F(n(oe),{id:e.id,ref_key:"input",ref:h,type:"number",step:e.step,"model-value":n(Q),placeholder:e.placeholder,disabled:n(f),size:n(M),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[V(B(S,["prevent"]),["up"]),V(B(P,["prevent"]),["down"])],onBlur:re,onFocus:ee,onInput:H,onChange:J},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var Ce=Ne(ze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Oe=we(Ce);export{Oe as E}; diff --git a/src/main/resources/static/assets/input-number.9c618ec5.css b/src/main/resources/static/assets/input-number.9c618ec5.css new file mode 100644 index 0000000..acec4d6 --- /dev/null +++ b/src/main/resources/static/assets/input-number.9c618ec5.css @@ -0,0 +1 @@ +.el-input-number{position:relative;display:inline-block;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__increase,.el-input-number__decrease{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;user-select:none}.el-input-number__increase:hover,.el-input-number__decrease:hover{color:var(--el-color-primary)}.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color, var(--el-color-primary)) inset}.el-input-number__increase.is-disabled,.el-input-number__decrease.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__increase,.el-input-number.is-disabled .el-input-number__decrease{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__increase:hover,.el-input-number.is-disabled .el-input-number__decrease:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__increase,.el-input-number--large .el-input-number__decrease{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__increase,.el-input-number--small .el-input-number__decrease{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__increase [class*=el-icon],.el-input-number--small .el-input-number__decrease [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__increase,.el-input-number.is-controls-right .el-input-number__decrease{--el-input-number-controls-height: 15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon],.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=increase],.el-input-number.is-controls-right[class*=large] [class*=decrease]{--el-input-number-controls-height: 19px}.el-input-number.is-controls-right[class*=small] [class*=increase],.el-input-number.is-controls-right[class*=small] [class*=decrease]{--el-input-number-controls-height: 11px} diff --git a/src/main/resources/static/assets/install.3dbc19b3.js b/src/main/resources/static/assets/install.29b84ed7.js similarity index 62% rename from src/main/resources/static/assets/install.3dbc19b3.js rename to src/main/resources/static/assets/install.29b84ed7.js index 4e793c5..4685f6d 100644 --- a/src/main/resources/static/assets/install.3dbc19b3.js +++ b/src/main/resources/static/assets/install.29b84ed7.js @@ -1 +1 @@ -import{e as t}from"./request.3708b2c4.js";const l=()=>t({url:"/api/install/status",method:"get"}),e=s=>t({url:"/api/install",method:"post",data:s});export{e as a,l as i}; +import{e as t}from"./request.e2daed10.js";const l=()=>t({url:"/api/install/status",method:"get"}),e=s=>t({url:"/api/install",method:"post",data:s});export{e as a,l as i}; diff --git a/src/main/resources/static/assets/isEqual.fe8e5f6f.js b/src/main/resources/static/assets/isEqual.2263846a.js similarity index 99% rename from src/main/resources/static/assets/isEqual.fe8e5f6f.js rename to src/main/resources/static/assets/isEqual.2263846a.js index b036299..162a5e9 100644 --- a/src/main/resources/static/assets/isEqual.fe8e5f6f.js +++ b/src/main/resources/static/assets/isEqual.2263846a.js @@ -1 +1 @@ -import{aB as L,ae as $,aC as ye,ag as P,aD as M,aE as _e,ad as j,aF as be,aG as N,aH as x,aI as fe,aJ as O,af as H,aK as Ae}from"./base.d698891e.js";var Te=L($,"WeakMap"),D=Te,we=9007199254740991;function ue(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=we}function $e(e){return e!=null&&ue(e.length)&&!ye(e)}var Oe=Object.prototype;function he(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Oe;return e===t}function Pe(e,r){for(var t=-1,a=Array(e);++tu))return!1;var o=n.get(e),v=n.get(r);if(o&&v)return o==r&&v==e;var l=-1,p=!0,y=t&Zr?new I:void 0;for(n.set(e,r),n.set(r,e);++l-1&&e%1==0&&e<=we}function $e(e){return e!=null&&ue(e.length)&&!ye(e)}var Oe=Object.prototype;function he(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Oe;return e===t}function Pe(e,r){for(var t=-1,a=Array(e);++tu))return!1;var o=n.get(e),v=n.get(r);if(o&&v)return o==r&&v==e;var l=-1,p=!0,y=t&Zr?new I:void 0;for(n.set(e,r),n.set(r,e);++ln instanceof MouseEvent},C=["href"],z={name:"ElLink"},B=x({...z,props:w,emits:E,setup(n,{emit:k}){const d=n,r=h("link");function v(e){d.disabled||k("click",e)}return(e,$)=>(o(),t("a",{class:c([l(r).b(),l(r).m(e.type),l(r).is("disabled",e.disabled),l(r).is("underline",e.underline&&!e.disabled)]),href:e.disabled||!e.href?void 0:e.href,onClick:v},[e.icon?(o(),a(l(p),{key:0},{default:m(()=>[(o(),a(y(e.icon)))]),_:1})):i("v-if",!0),e.$slots.default?(o(),t("span",{key:1,class:c(l(r).e("inner"))},[s(e.$slots,"default")],2)):i("v-if",!0),e.$slots.icon?s(e.$slots,"icon",{key:2}):i("v-if",!0)],10,C))}});var _=g(B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const P=b(_);export{P as E}; +import{b as f,N as u,u as h,E as p,_ as g,w as b}from"./base.4ef7f45b.js";import{d as x,a as o,f as t,b as a,e as m,q as y,u as l,k as i,n as c,g as s}from"./index.43b3cbf5.js";const w=f({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:u,default:""}}),E={click:n=>n instanceof MouseEvent},C=["href"],z={name:"ElLink"},B=x({...z,props:w,emits:E,setup(n,{emit:k}){const d=n,r=h("link");function v(e){d.disabled||k("click",e)}return(e,$)=>(o(),t("a",{class:c([l(r).b(),l(r).m(e.type),l(r).is("disabled",e.disabled),l(r).is("underline",e.underline&&!e.disabled)]),href:e.disabled||!e.href?void 0:e.href,onClick:v},[e.icon?(o(),a(l(p),{key:0},{default:m(()=>[(o(),a(y(e.icon)))]),_:1})):i("v-if",!0),e.$slots.default?(o(),t("span",{key:1,class:c(l(r).e("inner"))},[s(e.$slots,"default")],2)):i("v-if",!0),e.$slots.icon?s(e.$slots,"icon",{key:2}):i("v-if",!0)],10,C))}});var _=g(B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const P=b(_);export{P as E}; diff --git a/src/main/resources/static/assets/log.0fd73217.js b/src/main/resources/static/assets/log.0fd73217.js new file mode 100644 index 0000000..28ee396 --- /dev/null +++ b/src/main/resources/static/assets/log.0fd73217.js @@ -0,0 +1 @@ +import{aS as q,m as x,r as J}from"./base.4ef7f45b.js";import{E as O}from"./card.d6fbde4d.js";import{E as W,a as $,b as G,c as Q,z as X,f as Z,h as ee,i as te}from"./zh-cn.19e9e150.js";/* empty css *//* empty css */import{E as oe,a as ae}from"./select.8acf8bd3.js";import"./scrollbar.83fe9165.js";import{E as le}from"./popper.718d36e0.js";import{E as ne,a as re}from"./checkbox.65d5353a.js";import"./tooltip.f118fcb0.js";/* empty css *//* empty css */import{E as se,a as ie}from"./form-item.2dea3b0a.js";/* empty css */import{E as de}from"./switch.87050cd5.js";import{u as pe}from"./useLinkSetting.acb89768.js";import{l as me}from"./admin-storage.442a3cb6.js";import{b as C}from"./route-block.9b0645f8.js";import{_ as ue}from"./plugin-vue_export-helper.21dcd24c.js";import{E as h}from"./request.e2daed10.js";import{E as ce}from"./index.439070da.js";import{E as _e}from"./index.da7dbe5d.js";import{W as fe,r as w,o as ge,a as _,f as v,h as e,e as l,p as s,u as d,k as he,S as we,F as ve,y as ye,b as be,t as y,U as Ve,V as Ee,J as b}from"./index.43b3cbf5.js";import"./dayjs.min.78646b3b.js";import"./index.566ad052.js";import"./index.88f36c37.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./debounce.014e7b6e.js";import"./isEqual.2263846a.js";import"./index.9c287fed.js";import"./event.776e7e11.js";import"./scroll.90c07eee.js";import"./validator.b1ae6965.js";import"./focus-trap.4cfde4b4.js";import"./index.5cf4e3bb.js";import"./admin-setting.28847312.js";import"./index.d46124aa.js";const D=u=>(Ve("data-v-4486763f"),u=u(),Ee(),u),ke={class:"zfile-admin-down-link"},xe={class:"flex justify-between"},Ce=D(()=>s("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u76F4\u94FE\u65E5\u5FD7 ",-1)),De={key:0,class:"flex space-x-1.5 justify-center items-center cursor-pointer"},Le=D(()=>s("span",{class:"text-gray-400 text-sm font-bold"},"\u8BB0\u5F55\u4E0B\u8F7D\u65E5\u5FD7\uFF1A",-1)),Se={class:"mt-4"},ze={class:"flex justify-between space-x-20"},Ue={class:"text-gray-400"},Te=b("\u67E5\u8BE2"),Ke=b("\u6279\u91CF\u5220\u9664"),Re=b("\u5220\u9664"),L={__name:"log",setup(u){const{data:f,saveData:S,saveLoading:Ae}=pe(),t=fe({shortKey:"",storageKey:null,page:1,limit:10,path:"",ip:"",userAgent:"",referer:"",date:"",dateFrom:"",dateTo:"",total:0}),z=n=>{t.limit=n,t.page=1,p()},U=n=>{t.page=n,p()},V=w(),p=()=>{t.date instanceof Array?(t.dateFrom=t.date[0],t.dateTo=t.date[1]):(t.dateFrom="",t.dateTo=""),Z(t).then(n=>{V.value=n.data,t.total=n.dataCount})};ge(()=>{p(),T()});const E=w(),T=()=>{me().then(n=>{E.value=n.data})},K=n=>{ee(n).then(a=>{h.success("\u5220\u9664\u6210\u529F"),p()})},k=w(),R=()=>{let n=k.value.getSelectionRows();if(n.length===0){h.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u6761\u6570\u636E");return}ce.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{type:"warning"}).then(()=>{let a=n.map(c=>c.id);te({ids:a}).then(c=>{h.success("\u5220\u9664\u6210\u529F"),p()})})};return(n,a)=>{const c=de,A=oe,F=ae,i=se,m=_e,I=W,g=J,B=ie,r=ne,P=le,M=$,N=re,j=G,Y=Q,H=O;return _(),v("div",ke,[e(H,null,{default:l(()=>[s("div",xe,[Ce,d(f)?(_(),v("div",De,[Le,e(c,{onChange:d(S),"active-text":"\u662F","inline-prompt":"","inactive-text":"\u5426",modelValue:d(f).recordDownloadLog,"onUpdate:modelValue":a[0]||(a[0]=o=>d(f).recordDownloadLog=o)},null,8,["onChange","modelValue"])])):he("",!0)]),s("div",Se,[e(B,{inline:"",modelValue:t,"onUpdate:modelValue":a[8]||(a[8]=o=>we(t)?t.value=o:null)},{default:l(()=>[e(i,{label:"\u5B58\u50A8\u6E90"},{default:l(()=>[e(F,{clearable:"",teleported:!1,modelValue:t.storageKey,"onUpdate:modelValue":a[1]||(a[1]=o=>t.storageKey=o)},{default:l(()=>[(_(!0),v(ve,null,ye(E.value,o=>(_(),be(A,{key:o.id,label:o.name,value:o.key},{default:l(()=>[s("div",ze,[s("span",null,y(o.name),1),s("span",Ue,y(o.type.description),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u77ED\u94FE Key"},{default:l(()=>[e(m,{modelValue:t.shortKey,"onUpdate:modelValue":a[2]||(a[2]=o=>t.shortKey=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6587\u4EF6\u540D"},{default:l(()=>[e(m,{modelValue:t.path,"onUpdate:modelValue":a[3]||(a[3]=o=>t.path=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BF7\u6C42 IP"},{default:l(()=>[e(m,{modelValue:t.ip,"onUpdate:modelValue":a[4]||(a[4]=o=>t.ip=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"UserAgent"},{default:l(()=>[e(m,{modelValue:t.userAgent,"onUpdate:modelValue":a[5]||(a[5]=o=>t.userAgent=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"Referer"},{default:l(()=>[e(m,{modelValue:t.referer,"onUpdate:modelValue":a[6]||(a[6]=o=>t.referer=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[e(I,{modelValue:t.date,"onUpdate:modelValue":a[7]||(a[7]=o=>t.date=o),type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,2,1,23,59,59)],"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue","default-time"])]),_:1}),e(i,null,{default:l(()=>[e(g,{type:"primary",icon:d(q),onClick:p},{default:l(()=>[Te]),_:1},8,["icon"])]),_:1})]),_:1},8,["modelValue"]),s("div",null,[e(g,{onClick:R,icon:d(x),type:"danger"},{default:l(()=>[Ke]),_:1},8,["icon"])]),e(N,{ref_key:"linkTableRef",ref:k,size:"large",data:V.value},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{width:"120",label:"\u5B58\u50A8\u6E90\u540D\u79F0"},{default:l(o=>[e(P,{content:o.row.storageType.description,placement:"right"},{default:l(()=>[s("span",null,y(o.row.storageName),1)]),_:2},1032,["content"])]),_:1}),e(r,{"show-tooltip-when-overflow":"",prop:"shortKey",label:"\u77ED\u94FE key"}),e(r,{"show-tooltip-when-overflow":"",prop:"path",label:"\u8DEF\u5F84"}),e(r,{width:"100","show-tooltip-when-overflow":"",prop:"ip",label:"\u8BF7\u6C42 ip"}),e(r,{width:"180","show-tooltip-when-overflow":"",prop:"userAgent",label:"UserAgent"}),e(r,{width:"150","show-tooltip-when-overflow":"",prop:"referer",label:"Referer"}),e(r,{width:"180",prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"}),e(r,{width:"120",label:"\u64CD\u4F5C"},{default:l(o=>[e(M,{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onConfirm:Fe=>K(o.row.id)},{reference:l(()=>[e(g,{icon:d(x),type:"danger"},{default:l(()=>[Re]),_:1},8,["icon"])]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),e(Y,{locale:d(X)},{default:l(()=>[e(j,{class:"mt-3","page-size":t.limit,background:"",layout:"total, sizes, prev, pager, next, jumper",onCurrentChange:U,onSizeChange:z,"current-page":t.page,"onUpdate:current-page":a[9]||(a[9]=o=>t.page=o),"default-current-page":10,"page-sizes":[10,50,100,200,1e3,99999999],total:t.total},null,8,["page-size","current-page","total"])]),_:1},8,["locale"])])]),_:1})])}}};typeof C=="function"&&C(L);var bt=ue(L,[["__scopeId","data-v-4486763f"]]);export{bt as default}; diff --git a/src/main/resources/static/assets/log.1de7f45f.js b/src/main/resources/static/assets/log.1de7f45f.js deleted file mode 100644 index 0bc039e..0000000 --- a/src/main/resources/static/assets/log.1de7f45f.js +++ /dev/null @@ -1 +0,0 @@ -import{aQ as q,m as x,r as J}from"./base.d698891e.js";import{E as O}from"./table-column.0ede6c12.js";import{E as Q,a as W,b as $,c as G,z as X,f as Z,h as ee,i as te}from"./zh-cn.4ccaa6e9.js";/* empty css */import"./scrollbar.97fa2ffd.js";import{E as oe,a as ae}from"./select.ff52a9e1.js";import{E as le}from"./popper.14a92806.js";import{E as ne,a as re}from"./checkbox.cfb94aee.js";import"./tooltip.f118fcb0.js";/* empty css */import{E as se,a as ie}from"./form-item.1544fca0.js";/* empty css */import{E as de}from"./switch.2393edfd.js";import{u as pe}from"./useLinkSetting.49293b3b.js";import{l as me}from"./admin-storage.260bbac1.js";import{b as C}from"./route-block.9b0645f8.js";import{_ as ue}from"./plugin-vue_export-helper.21dcd24c.js";import{E as h}from"./request.3708b2c4.js";import{E as ce}from"./index.11692625.js";import{E as _e}from"./index.4ab44dc8.js";import{W as fe,r as w,o as ge,a as _,f as b,h as e,e as l,p as s,u as d,k as he,S as we,F as be,y as ve,b as ye,t as v,U as Ve,V as Ee,J as y}from"./index.552205f5.js";import"./dayjs.min.79223755.js";import"./index.1e624cbf.js";import"./index.24f1077d.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./debounce.32892d61.js";import"./isEqual.fe8e5f6f.js";import"./index.3eb5cbdf.js";import"./event.776e7e11.js";import"./scroll.cbf731df.js";import"./validator.6f3b33db.js";import"./focus-trap.58847c97.js";import"./index.c92ded65.js";import"./admin-setting.158855e4.js";import"./index.0f572ca8.js";const D=u=>(Ve("data-v-5b654d82"),u=u(),Ee(),u),ke={class:"zfile-admin-down-link"},xe={class:"flex justify-between"},Ce=D(()=>s("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u76F4\u94FE\u65E5\u5FD7 ",-1)),De={key:0,class:"flex space-x-1.5 justify-center items-center cursor-pointer"},Le=D(()=>s("span",{class:"text-gray-400 text-sm font-bold"},"\u8BB0\u5F55\u4E0B\u8F7D\u65E5\u5FD7\uFF1A",-1)),ze={class:"mt-4"},Se={class:"flex justify-between space-x-20"},Ue={class:"text-gray-400"},Te=y("\u67E5\u8BE2"),Ke=y("\u6279\u91CF\u5220\u9664"),Re=y("\u5220\u9664"),L={__name:"log",setup(u){const{data:f,saveData:z,saveLoading:Ae}=pe(),t=fe({shortKey:"",storageKey:null,page:1,limit:10,path:"",ip:"",userAgent:"",referer:"",date:"",dateFrom:"",dateTo:"",total:0}),S=n=>{t.limit=n,t.page=1,p()},U=n=>{t.page=n,p()},V=w(),p=()=>{t.date instanceof Array?(t.dateFrom=t.date[0],t.dateTo=t.date[1]):(t.dateFrom="",t.dateTo=""),Z(t).then(n=>{V.value=n.data,t.total=n.dataCount})};ge(()=>{p(),T()});const E=w(),T=()=>{me().then(n=>{E.value=n.data})},K=n=>{ee(n).then(a=>{h.success("\u5220\u9664\u6210\u529F"),p()})},k=w(),R=()=>{let n=k.value.getSelectionRows();if(n.length===0){h.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u6761\u6570\u636E");return}ce.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{type:"warning"}).then(()=>{let a=n.map(c=>c.id);te({id:a}).then(c=>{h.success("\u5220\u9664\u6210\u529F"),p()})})};return(n,a)=>{const c=de,A=oe,F=ae,i=se,m=_e,I=Q,g=J,B=ie,r=ne,P=le,M=W,N=re,j=$,Y=G,H=O;return _(),b("div",ke,[e(H,null,{default:l(()=>[s("div",xe,[Ce,d(f)?(_(),b("div",De,[Le,e(c,{onChange:d(z),"active-text":"\u662F","inline-prompt":"","inactive-text":"\u5426",modelValue:d(f).recordDownloadLog,"onUpdate:modelValue":a[0]||(a[0]=o=>d(f).recordDownloadLog=o)},null,8,["onChange","modelValue"])])):he("",!0)]),s("div",ze,[e(B,{inline:"",modelValue:t,"onUpdate:modelValue":a[8]||(a[8]=o=>we(t)?t.value=o:null)},{default:l(()=>[e(i,{label:"\u5B58\u50A8\u6E90"},{default:l(()=>[e(F,{clearable:"",teleported:!1,modelValue:t.storageKey,"onUpdate:modelValue":a[1]||(a[1]=o=>t.storageKey=o)},{default:l(()=>[(_(!0),b(be,null,ve(E.value,o=>(_(),ye(A,{key:o.id,label:o.name,value:o.key},{default:l(()=>[s("div",Se,[s("span",null,v(o.name),1),s("span",Ue,v(o.type.description),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u77ED\u94FE Key"},{default:l(()=>[e(m,{modelValue:t.shortKey,"onUpdate:modelValue":a[2]||(a[2]=o=>t.shortKey=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6587\u4EF6\u540D"},{default:l(()=>[e(m,{modelValue:t.path,"onUpdate:modelValue":a[3]||(a[3]=o=>t.path=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BF7\u6C42 IP"},{default:l(()=>[e(m,{modelValue:t.ip,"onUpdate:modelValue":a[4]||(a[4]=o=>t.ip=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"UserAgent"},{default:l(()=>[e(m,{modelValue:t.userAgent,"onUpdate:modelValue":a[5]||(a[5]=o=>t.userAgent=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"Referer"},{default:l(()=>[e(m,{modelValue:t.referer,"onUpdate:modelValue":a[6]||(a[6]=o=>t.referer=o)},null,8,["modelValue"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[e(I,{modelValue:t.date,"onUpdate:modelValue":a[7]||(a[7]=o=>t.date=o),type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,2,1,23,59,59)],"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue","default-time"])]),_:1}),e(i,null,{default:l(()=>[e(g,{type:"primary",icon:d(q),onClick:p},{default:l(()=>[Te]),_:1},8,["icon"])]),_:1})]),_:1},8,["modelValue"]),s("div",null,[e(g,{onClick:R,icon:d(x),type:"danger"},{default:l(()=>[Ke]),_:1},8,["icon"])]),e(N,{ref_key:"linkTableRef",ref:k,size:"large",data:V.value},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{width:"120",label:"\u5B58\u50A8\u6E90\u540D\u79F0"},{default:l(o=>[e(P,{content:o.row.storageType.description,placement:"right"},{default:l(()=>[s("span",null,v(o.row.storageName),1)]),_:2},1032,["content"])]),_:1}),e(r,{"show-tooltip-when-overflow":"",prop:"shortKey",label:"\u77ED\u94FE key"}),e(r,{"show-tooltip-when-overflow":"",prop:"path",label:"\u8DEF\u5F84"}),e(r,{width:"100","show-tooltip-when-overflow":"",prop:"ip",label:"\u8BF7\u6C42 ip"}),e(r,{width:"180","show-tooltip-when-overflow":"",prop:"userAgent",label:"UserAgent"}),e(r,{width:"150","show-tooltip-when-overflow":"",prop:"referer",label:"Referer"}),e(r,{width:"180",prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"}),e(r,{width:"100",label:"\u64CD\u4F5C"},{default:l(o=>[e(M,{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onConfirm:Fe=>K(o.row.id)},{reference:l(()=>[e(g,{icon:d(x),type:"danger"},{default:l(()=>[Re]),_:1},8,["icon"])]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),e(Y,{locale:d(X)},{default:l(()=>[e(j,{class:"mt-3","page-size":t.limit,background:"",layout:"total, sizes, prev, pager, next, jumper",onCurrentChange:U,onSizeChange:S,"current-page":t.page,"onUpdate:current-page":a[9]||(a[9]=o=>t.page=o),"default-current-page":10,"page-sizes":[10,50,100,200,1e3,99999999],total:t.total},null,8,["page-size","current-page","total"])]),_:1},8,["locale"])])]),_:1})])}}};typeof C=="function"&&C(L);var bt=ue(L,[["__scopeId","data-v-5b654d82"]]);export{bt as default}; diff --git a/src/main/resources/static/assets/log.58b0a816.css b/src/main/resources/static/assets/log.58b0a816.css new file mode 100644 index 0000000..f5c7df4 --- /dev/null +++ b/src/main/resources/static/assets/log.58b0a816.css @@ -0,0 +1 @@ +.zfile-admin-down-link[data-v-4486763f] .el-select-dropdown__item{padding-right:15px}.zfile-admin-down-link[data-v-4486763f] .el-dialog__header{text-align:center}.zfile-admin-down-link[data-v-4486763f] .el-dialog__body{height:80vh;overflow-y:auto} diff --git a/src/main/resources/static/assets/log.bbc48b3b.css b/src/main/resources/static/assets/log.bbc48b3b.css deleted file mode 100644 index 1d54992..0000000 --- a/src/main/resources/static/assets/log.bbc48b3b.css +++ /dev/null @@ -1 +0,0 @@ -.zfile-admin-down-link[data-v-5b654d82] .el-select-dropdown__item{padding-right:15px}.zfile-admin-down-link[data-v-5b654d82] .el-dialog__header{text-align:center}.zfile-admin-down-link[data-v-5b654d82] .el-dialog__body{height:80vh;overflow-y:auto} diff --git a/src/main/resources/static/assets/login.0b908c08.js b/src/main/resources/static/assets/login.aea646be.js similarity index 85% rename from src/main/resources/static/assets/login.0b908c08.js rename to src/main/resources/static/assets/login.aea646be.js index c5f7341..224effb 100644 --- a/src/main/resources/static/assets/login.0b908c08.js +++ b/src/main/resources/static/assets/login.aea646be.js @@ -1 +1 @@ -import{a as p,b as v,h as o,P as R,r as d,o as B,f as L,p as s,e as i,u as e,k as S,j as D,U as N,V as j,ay as F,J as h}from"./index.552205f5.js";import{aL as $,aM as T,h as H,aN as J,r as P}from"./base.d698891e.js";import{E as A,a as G}from"./form-item.1544fca0.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as K}from"./popper.14a92806.js";import{E as O}from"./link.0fb91bad.js";import{E as Q}from"./image-viewer.65ed4853.js";/* empty css */import{_ as W}from"./zfile-basic.74fe23dd.js";import{l as X,c as Y,a as Z,b as ee}from"./login.e9105da0.js";import{i as te}from"./install.3dbc19b3.js";import{_ as oe}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ae}from"./BadgeCheckIcon.09c2c42b.js";import{E as k}from"./request.3708b2c4.js";import{E as le}from"./index.4ab44dc8.js";import"./index.c92ded65.js";import"./isEqual.fe8e5f6f.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./index.1e624cbf.js";import"./debounce.32892d61.js";import"./scroll.cbf731df.js";import"./event.776e7e11.js";function ie(m,f){return p(),v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])}const x=m=>(N("data-v-03172336"),m=m(),j(),m),se={class:"h-full min-h-screen bg-gray-100 text-gray-900 flex justify-center items-center"},re={class:"h-full lg:h-auto max-w-screen-lg bg-white shadow-xl sm:rounded-xl flex flex-1"},ne=x(()=>s("div",{class:"flex-1 bg-gray-50 text-center hidden lg:flex rounded-l-xl"},[s("div",{class:"m-12 xl:m-16 w-full bg-contain bg-center bg-no-repeat zfile-login-logo"})],-1)),de={class:"w-full lg:w-1/2 xl:w-1/2 mt-10 p-6 sm:p-12"},me={class:"mt-0 flex flex-col items-center"},fe={class:"text-2xl mt-0 xl:text-3xl font-extrabold box animate__animated animate__fadeInDown"},ue={class:"w-full flex-1"},pe=F('
    \u7BA1\u7406\u5458\u767B\u5F55
    ',1),ce={class:"flex space-x-5 w-full"},_e=h(" \u5C06\u914D\u7F6E\u6587\u4EF6 application.properties \u4E2D zfile.debug \u4FEE\u6539\u4E3A true, \u91CD\u542F\u540E\u8BBF\u95EE\u9996\u9875\u5373\u53EF\u91CD\u7F6E\u5BC6\u7801 "),ge=x(()=>s("br",null,null,-1)),ve=x(()=>s("a",{target:"_blank",class:"text-blue-400",href:"https://docs.zfile.vip/#/question?id=reset-pwd"},"\u70B9\u51FB\u53EF\u524D\u5F80\u6587\u6863\u67E5\u770B\u64CD\u4F5C\u65B9\u5F0F",-1)),he=h("\u5FD8\u8BB0\u5BC6\u7801"),xe=h("\u767B\u5F55"),be={__name:"login",setup(m){let f=R(),c=d(!1),b=d(),l=d({username:"",password:"",verifyCode:"",verifyCodeUUID:""});const V=a=>{window.open(a)};let z=d({username:[{required:!0,message:"\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:["change","blur"]}],password:[{required:!0,message:"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:["change","blur"]}]});const I=()=>{b.value.validate(a=>{a?(c.value=!0,Z(l.value).then(t=>{window.localStorage.setItem("zfile-token",t.data),k({message:"\u767B\u5F55\u6210\u529F",type:"success",duration:1e3,onClose(){f.push("/admin")}})}).catch(()=>{c.value=!1,g()})):k.warning("\u8BF7\u8F93\u5165\u8D26\u53F7\u5BC6\u7801!")})},_=d("");X().then(a=>{_.value=a.data});const w=d({}),g=()=>{ee().then(a=>{w.value=a.data,l.value.verifyCodeUUID=a.data.uuid})};return g(),B(()=>{te().then(a=>{a.data||f.push("/install")}),Y().then(a=>{a.data&&f.push("/admin")})}),(a,t)=>{const u=le,n=A,C=Q,E=O,U=K,M=P,q=G;return p(),L("div",se,[s("div",re,[ne,s("div",de,[s("div",me,[s("h1",fe,[s("img",{class:"w-16 cursor-pointer",onClick:t[0]||(t[0]=r=>V("https://github.com/zhaojun1998/zfile")),src:W})]),s("div",ue,[pe,o(q,{onSubmit:t[6]||(t[6]=D(()=>{},["prevent"])),ref_key:"loginFormRef",ref:b,rules:e(z),model:e(l),class:"zfile-login-form",size:"large"},{default:i(()=>[o(n,{class:"box animate__animated animate__fadeInUp",prop:"username"},{default:i(()=>[o(u,{placeholder:"\u7BA1\u7406\u5458\u8D26\u53F7","prefix-icon":e($),modelValue:e(l).username,"onUpdate:modelValue":t[1]||(t[1]=r=>e(l).username=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),o(n,{class:"box animate__animated animate__fadeInUp",prop:"password"},{default:i(()=>[o(u,{placeholder:"\u7BA1\u7406\u5458\u5BC6\u7801",type:"password","show-password":"","prefix-icon":e(T),modelValue:e(l).password,"onUpdate:modelValue":t[2]||(t[2]=r=>e(l).password=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),_.value==="2fa"?(p(),v(n,{key:0,class:"box animate__animated animate__fadeInUp",prop:"verifyCode"},{default:i(()=>[o(u,{placeholder:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u9A8C\u8BC1\u7801","prefix-icon":e(H),modelValue:e(l).verifyCode,"onUpdate:modelValue":t[3]||(t[3]=r=>e(l).verifyCode=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1})):_.value==="image"?(p(),v(n,{key:1,class:"box animate__animated animate__fadeInUp",prop:"verifyCode"},{default:i(()=>{var r;return[s("div",ce,[o(u,{class:"flex-1",placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","prefix-icon":e(ie),modelValue:e(l).verifyCode,"onUpdate:modelValue":t[4]||(t[4]=y=>e(l).verifyCode=y),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"]),o(C,{src:(r=w.value)==null?void 0:r.imgBase64,onClick:t[5]||(t[5]=y=>g())},null,8,["src"])])]}),_:1})):S("",!0),o(n,{class:"box animate__animated animate__fadeInUp float-right"},{default:i(()=>[o(U,{class:"item",effect:"dark",placement:"left"},{content:i(()=>[_e,ge,ve]),default:i(()=>[o(E,{icon:e(J),underline:!1,class:"zfile-float-right"},{default:i(()=>[he]),_:1},8,["icon"])]),_:1})]),_:1}),o(n,{class:"clear-right"},{default:i(()=>[o(M,{loading:e(c),class:"w-full mb-0","native-type":"submit",type:"primary",icon:e(ae),onClick:I},{default:i(()=>[xe]),_:1},8,["loading","icon"])]),_:1})]),_:1},8,["rules","model"])])])])])])}}};var Ae=oe(be,[["__scopeId","data-v-03172336"]]);export{Ae as default}; +import{a as p,b as v,h as o,P as R,r as d,o as B,f as L,p as s,e as i,u as e,k as S,j as D,U as N,V as j,az as F,J as h}from"./index.43b3cbf5.js";import{aL as $,aM as T,h as H,aN as J,r as P}from"./base.4ef7f45b.js";import{E as A,a as G}from"./form-item.2dea3b0a.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as K}from"./popper.718d36e0.js";import{E as O}from"./link.e398aca7.js";import{E as Q}from"./image-viewer.ed2baaff.js";/* empty css */import{_ as W}from"./zfile-basic.e44d95f5.js";import{l as X,c as Y,a as Z,b as ee}from"./login.f53d8f04.js";import{i as te}from"./install.29b84ed7.js";import{_ as oe}from"./plugin-vue_export-helper.21dcd24c.js";import{r as ae}from"./BadgeCheckIcon.8153a115.js";import{E as k}from"./request.e2daed10.js";import{E as le}from"./index.da7dbe5d.js";import"./index.5cf4e3bb.js";import"./isEqual.2263846a.js";import"./focus-trap.4cfde4b4.js";import"./event.3ec63147.js";import"./index.566ad052.js";import"./debounce.014e7b6e.js";import"./scroll.90c07eee.js";import"./event.776e7e11.js";function ie(m,f){return p(),v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])}const x=m=>(N("data-v-03172336"),m=m(),j(),m),se={class:"h-full min-h-screen bg-gray-100 text-gray-900 flex justify-center items-center"},re={class:"h-full lg:h-auto max-w-screen-lg bg-white shadow-xl sm:rounded-xl flex flex-1"},ne=x(()=>s("div",{class:"flex-1 bg-gray-50 text-center hidden lg:flex rounded-l-xl"},[s("div",{class:"m-12 xl:m-16 w-full bg-contain bg-center bg-no-repeat zfile-login-logo"})],-1)),de={class:"w-full lg:w-1/2 xl:w-1/2 mt-10 p-6 sm:p-12"},me={class:"mt-0 flex flex-col items-center"},fe={class:"text-2xl mt-0 xl:text-3xl font-extrabold box animate__animated animate__fadeInDown"},ue={class:"w-full flex-1"},pe=F('
    \u7BA1\u7406\u5458\u767B\u5F55
    ',1),ce={class:"flex space-x-5 w-full"},_e=h(" \u5C06\u914D\u7F6E\u6587\u4EF6 application.properties \u4E2D zfile.debug \u4FEE\u6539\u4E3A true, \u91CD\u542F\u540E\u8BBF\u95EE\u9996\u9875\u5373\u53EF\u91CD\u7F6E\u5BC6\u7801 "),ge=x(()=>s("br",null,null,-1)),ve=x(()=>s("a",{target:"_blank",class:"text-blue-400",href:"https://docs.zfile.vip/#/question?id=reset-pwd"},"\u70B9\u51FB\u53EF\u524D\u5F80\u6587\u6863\u67E5\u770B\u64CD\u4F5C\u65B9\u5F0F",-1)),he=h("\u5FD8\u8BB0\u5BC6\u7801"),xe=h("\u767B\u5F55"),be={__name:"login",setup(m){let f=R(),c=d(!1),b=d(),l=d({username:"",password:"",verifyCode:"",verifyCodeUUID:""});const V=a=>{window.open(a)};let z=d({username:[{required:!0,message:"\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:["change","blur"]}],password:[{required:!0,message:"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:["change","blur"]}]});const I=()=>{b.value.validate(a=>{a?(c.value=!0,Z(l.value).then(t=>{window.localStorage.setItem("zfile-token",t.data),k({message:"\u767B\u5F55\u6210\u529F",type:"success",duration:1e3,onClose(){f.push("/admin")}})}).catch(()=>{c.value=!1,g()})):k.warning("\u8BF7\u8F93\u5165\u8D26\u53F7\u5BC6\u7801!")})},_=d("");X().then(a=>{_.value=a.data});const w=d({}),g=()=>{ee().then(a=>{w.value=a.data,l.value.verifyCodeUUID=a.data.uuid})};return g(),B(()=>{te().then(a=>{a.data||f.push("/install")}),Y().then(a=>{a.data&&f.push("/admin")})}),(a,t)=>{const u=le,n=A,C=Q,E=O,U=K,M=P,q=G;return p(),L("div",se,[s("div",re,[ne,s("div",de,[s("div",me,[s("h1",fe,[s("img",{class:"w-16 cursor-pointer",onClick:t[0]||(t[0]=r=>V("https://github.com/zhaojun1998/zfile")),src:W})]),s("div",ue,[pe,o(q,{onSubmit:t[6]||(t[6]=D(()=>{},["prevent"])),ref_key:"loginFormRef",ref:b,rules:e(z),model:e(l),class:"zfile-login-form",size:"large"},{default:i(()=>[o(n,{class:"box animate__animated animate__fadeInUp",prop:"username"},{default:i(()=>[o(u,{placeholder:"\u7BA1\u7406\u5458\u8D26\u53F7","prefix-icon":e($),modelValue:e(l).username,"onUpdate:modelValue":t[1]||(t[1]=r=>e(l).username=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),o(n,{class:"box animate__animated animate__fadeInUp",prop:"password"},{default:i(()=>[o(u,{placeholder:"\u7BA1\u7406\u5458\u5BC6\u7801",type:"password","show-password":"","prefix-icon":e(T),modelValue:e(l).password,"onUpdate:modelValue":t[2]||(t[2]=r=>e(l).password=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),_.value==="2fa"?(p(),v(n,{key:0,class:"box animate__animated animate__fadeInUp",prop:"verifyCode"},{default:i(()=>[o(u,{placeholder:"\u53CC\u56E0\u7D20\u8BA4\u8BC1\u9A8C\u8BC1\u7801","prefix-icon":e(H),modelValue:e(l).verifyCode,"onUpdate:modelValue":t[3]||(t[3]=r=>e(l).verifyCode=r),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1})):_.value==="image"?(p(),v(n,{key:1,class:"box animate__animated animate__fadeInUp",prop:"verifyCode"},{default:i(()=>{var r;return[s("div",ce,[o(u,{class:"flex-1",placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","prefix-icon":e(ie),modelValue:e(l).verifyCode,"onUpdate:modelValue":t[4]||(t[4]=y=>e(l).verifyCode=y),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"]),o(C,{src:(r=w.value)==null?void 0:r.imgBase64,onClick:t[5]||(t[5]=y=>g())},null,8,["src"])])]}),_:1})):S("",!0),o(n,{class:"box animate__animated animate__fadeInUp float-right"},{default:i(()=>[o(U,{class:"item",effect:"dark",placement:"left"},{content:i(()=>[_e,ge,ve]),default:i(()=>[o(E,{icon:e(J),underline:!1,class:"zfile-float-right"},{default:i(()=>[he]),_:1},8,["icon"])]),_:1})]),_:1}),o(n,{class:"clear-right"},{default:i(()=>[o(M,{loading:e(c),class:"w-full mb-0","native-type":"submit",type:"primary",icon:e(ae),onClick:I},{default:i(()=>[xe]),_:1},8,["loading","icon"])]),_:1})]),_:1},8,["rules","model"])])])])])])}}};var Ae=oe(be,[["__scopeId","data-v-03172336"]]);export{Ae as default}; diff --git a/src/main/resources/static/assets/login.e9105da0.js b/src/main/resources/static/assets/login.f53d8f04.js similarity index 81% rename from src/main/resources/static/assets/login.e9105da0.js rename to src/main/resources/static/assets/login.f53d8f04.js index 5cf23f8..30df60c 100644 --- a/src/main/resources/static/assets/login.e9105da0.js +++ b/src/main/resources/static/assets/login.f53d8f04.js @@ -1 +1 @@ -import{e as o}from"./request.3708b2c4.js";const n=e=>o({url:"/admin/login",method:"post",data:e}),r=()=>o({url:"/admin/login/verify-mode",method:"get"}),i=()=>o({url:"/admin/login/captcha",method:"get"}),a=()=>o({url:"/admin/logout",method:"post"}),l=()=>o({url:"/admin/login/check",method:"get"});export{n as a,i as b,l as c,a as d,r as l}; +import{e as o}from"./request.e2daed10.js";const n=e=>o({url:"/admin/login",method:"post",data:e}),r=()=>o({url:"/admin/login/verify-mode",method:"get"}),i=()=>o({url:"/admin/login/captcha",method:"get"}),a=()=>o({url:"/admin/logout",method:"post"}),l=()=>o({url:"/admin/login/check",method:"get"});export{n as a,i as b,l as c,a as d,r as l}; diff --git a/src/main/resources/static/assets/notFound.f776ca6e.js b/src/main/resources/static/assets/notFound.97bc4a2d.js similarity index 72% rename from src/main/resources/static/assets/notFound.f776ca6e.js rename to src/main/resources/static/assets/notFound.97bc4a2d.js index 2d0e7d5..b795fd8 100644 --- a/src/main/resources/static/assets/notFound.f776ca6e.js +++ b/src/main/resources/static/assets/notFound.97bc4a2d.js @@ -1 +1 @@ -import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";import{ae as r,a as t,b as n}from"./index.552205f5.js";const c={};function a(_,s){const e=r("router-view");return t(),n(e)}var p=o(c,[["render",a]]);export{p as default}; +import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";import{ae as r,a as t,b as n}from"./index.43b3cbf5.js";const c={};function a(_,s){const e=r("router-view");return t(),n(e)}var p=o(c,[["render",a]]);export{p as default}; diff --git a/src/main/resources/static/assets/overlay.7eff71c7.js b/src/main/resources/static/assets/overlay.533d94fc.js similarity index 90% rename from src/main/resources/static/assets/overlay.7eff71c7.js rename to src/main/resources/static/assets/overlay.533d94fc.js index bf436ca..c1af181 100644 --- a/src/main/resources/static/assets/overlay.7eff71c7.js +++ b/src/main/resources/static/assets/overlay.533d94fc.js @@ -1 +1 @@ -import{b as x,N as z,d as M,C as L,H as V,K as g,O as U,P as Z,Q as $,R as B,B as q}from"./base.d698891e.js";import{U as D}from"./event.776e7e11.js";import{b as _}from"./index.0f572ca8.js";import{r as c,c as G,w as h,Z as H,o as K,a0 as Q}from"./index.552205f5.js";const j=x({center:{type:Boolean,default:!1},closeIcon:{type:z,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),ee={close:()=>!0},oe=x({...j,appendToBody:{type:Boolean,default:!1},beforeClose:{type:M(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),le={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[D]:e=>L(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},te=(e,a)=>{const l=Q().emit,{nextZIndex:m}=V();let p="";const I=g(),P=g(),t=c(!1),f=c(!1),u=c(!1),d=c(e.zIndex||m());let n,s;const O=U("namespace",$),T=G(()=>{const o={},i=`--${O.value}-dialog`;return e.fullscreen||(e.top&&(o[`${i}-margin-top`]=e.top),e.width&&(o[`${i}-width`]=Z(e.width))),o});function E(){l("opened")}function F(){l("closed"),l(D,!1),e.destroyOnClose&&(u.value=!1)}function k(){l("close")}function C(){s==null||s(),n==null||n(),e.openDelay&&e.openDelay>0?{stop:n}=B(()=>b(),e.openDelay):b()}function r(){n==null||n(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=B(()=>v(),e.closeDelay):v()}function y(){function o(i){i||(f.value=!0,t.value=!1)}e.beforeClose?e.beforeClose(o):r()}function w(){e.closeOnClickModal&&y()}function b(){!q||(t.value=!0)}function v(){t.value=!1}function A(){l("openAutoFocus")}function N(){l("closeAutoFocus")}e.lockScroll&&_(t);function S(){e.closeOnPressEscape&&y()}return h(()=>e.modelValue,o=>{o?(f.value=!1,C(),u.value=!0,l("open"),d.value=e.zIndex?d.value++:m(),H(()=>{a.value&&(a.value.scrollTop=0)})):t.value&&r()}),h(()=>e.fullscreen,o=>{!a.value||(o?(p=a.value.style.transform,a.value.style.transform=""):a.value.style.transform=p)}),K(()=>{e.modelValue&&(t.value=!0,u.value=!0,C())}),{afterEnter:E,afterLeave:F,beforeLeave:k,handleClose:y,onModalClick:w,close:r,doClose:v,onOpenAutoFocus:A,onCloseAutoFocus:N,onCloseRequested:S,titleId:I,bodyId:P,closed:f,style:T,rendered:u,visible:t,zIndex:d}};export{ee as a,oe as b,le as c,j as d,te as u}; +import{b as x,N as z,d as M,C as L,H as V,K as g,O as U,P as Z,Q as $,R as B,B as q}from"./base.4ef7f45b.js";import{U as D}from"./event.776e7e11.js";import{b as _}from"./index.d46124aa.js";import{r as c,c as G,w as h,Z as H,o as K,a0 as Q}from"./index.43b3cbf5.js";const j=x({center:{type:Boolean,default:!1},closeIcon:{type:z,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),ee={close:()=>!0},oe=x({...j,appendToBody:{type:Boolean,default:!1},beforeClose:{type:M(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),le={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[D]:e=>L(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},te=(e,a)=>{const l=Q().emit,{nextZIndex:m}=V();let p="";const I=g(),P=g(),t=c(!1),f=c(!1),u=c(!1),d=c(e.zIndex||m());let n,s;const O=U("namespace",$),T=G(()=>{const o={},i=`--${O.value}-dialog`;return e.fullscreen||(e.top&&(o[`${i}-margin-top`]=e.top),e.width&&(o[`${i}-width`]=Z(e.width))),o});function E(){l("opened")}function F(){l("closed"),l(D,!1),e.destroyOnClose&&(u.value=!1)}function k(){l("close")}function C(){s==null||s(),n==null||n(),e.openDelay&&e.openDelay>0?{stop:n}=B(()=>b(),e.openDelay):b()}function r(){n==null||n(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=B(()=>v(),e.closeDelay):v()}function y(){function o(i){i||(f.value=!0,t.value=!1)}e.beforeClose?e.beforeClose(o):r()}function w(){e.closeOnClickModal&&y()}function b(){!q||(t.value=!0)}function v(){t.value=!1}function A(){l("openAutoFocus")}function N(){l("closeAutoFocus")}e.lockScroll&&_(t);function S(){e.closeOnPressEscape&&y()}return h(()=>e.modelValue,o=>{o?(f.value=!1,C(),u.value=!0,l("open"),d.value=e.zIndex?d.value++:m(),H(()=>{a.value&&(a.value.scrollTop=0)})):t.value&&r()}),h(()=>e.fullscreen,o=>{!a.value||(o?(p=a.value.style.transform,a.value.style.transform=""):a.value.style.transform=p)}),K(()=>{e.modelValue&&(t.value=!0,u.value=!0,C())}),{afterEnter:E,afterLeave:F,beforeLeave:k,handleClose:y,onModalClick:w,close:r,doClose:v,onOpenAutoFocus:A,onCloseAutoFocus:N,onCloseRequested:S,titleId:I,bodyId:P,closed:f,style:T,rendered:u,visible:t,zIndex:d}};export{ee as a,oe as b,le as c,j as d,te as u}; diff --git a/src/main/resources/static/assets/popper.14a92806.js b/src/main/resources/static/assets/popper.718d36e0.js similarity index 99% rename from src/main/resources/static/assets/popper.14a92806.js rename to src/main/resources/static/assets/popper.718d36e0.js index 32a54b9..c127864 100644 --- a/src/main/resources/static/assets/popper.14a92806.js +++ b/src/main/resources/static/assets/popper.718d36e0.js @@ -1 +1 @@ -import{A as It,d as $,B as Ae,C as Ue,D as go,b as Q,_ as ue,u as We,F as Ne,k as jt,G as yt,H as ho,w as Dt,I as wt,J as Ot,K as bo}from"./base.d698891e.js";import{c as _,l as De,w as L,o as Ze,a0 as yo,a1 as wo,u as E,v as ke,d as oe,r as B,g as le,E as pe,H as ze,a as U,f as He,n as Ye,N as Je,Q as $t,ab as Oo,a5 as Eo,F as Co,h as Re,aa as To,ac as Ao,b as he,e as te,z as Lt,k as ge,ad as xo,i as Po,ae as me,R as ko,T as Ro,X as So,D as _o,x as Ge,af as Bo,ag as Mo,t as Io}from"./index.552205f5.js";import{b as Nt,o as jo}from"./request.3708b2c4.js";import{E as Do}from"./focus-trap.58847c97.js";import{c as Z}from"./event.3ec63147.js";const $o=()=>Math.floor(Math.random()*1e4),Qe=Symbol("popper"),Ht=Symbol("popperContent"),Lo=It({type:$(Boolean),default:null}),No=It({type:$(Function)}),Ho=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,r=[t],n={[e]:Lo,[o]:No};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:p,onShow:u,onHide:m})=>{const g=yo(),{emit:c}=g,v=g.props,f=_(()=>De(v[o])),d=_(()=>v[e]===null),h=y=>{a.value!==!0&&(a.value=!0,s&&(s.value=y),De(u)&&u(y))},b=y=>{a.value!==!1&&(a.value=!1,s&&(s.value=y),De(m)&&m(y))},C=y=>{if(v.disabled===!0||De(p)&&!p())return;const P=f.value&&Ae;P&&c(t,!0),(d.value||!P)&&h(y)},O=y=>{if(v.disabled===!0||!Ae)return;const P=f.value&&Ae;P&&c(t,!1),(d.value||!P)&&b(y)},A=y=>{!Ue(y)||(v.disabled&&y?f.value&&c(t,!1):a.value!==y&&(y?h():b()))},x=()=>{a.value?O():C()};return L(()=>v[e],A),l&&g.appContext.config.globalProperties.$route!==void 0&&L(()=>({...g.proxy.$route}),()=>{l.value&&a.value&&O()}),Ze(()=>{A(v[e])}),{hide:O,show:C,toggle:x}},useModelToggleProps:n,useModelToggleEmits:r}};function Fo(){let e;const t=(r,n)=>{o(),e=window.setTimeout(r,n)},o=()=>window.clearTimeout(e);return go(()=>o()),{registerTimeout:t,cancelTimeout:o}}let Et;const Ft=`el-popper-container-${$o()}`,Wt=`#${Ft}`,Wo=()=>{const e=document.createElement("div");return e.id=Ft,document.body.appendChild(e),e},zo=()=>{wo(()=>{!Ae||(!Et||!document.body.querySelector(Wt))&&(Et=Wo())})},Ko=Q({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),qo=({showAfter:e,hideAfter:t,open:o,close:r})=>{const{registerTimeout:n}=Fo();return{onOpen:s=>{n(()=>{o(s)},E(e))},onClose:s=>{n(()=>{r(s)},E(t))}}},zt=Symbol("elForwardRef"),Vo=e=>{ke(zt,{setForwardRef:o=>{e.value=o}})},Uo=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Kt=Q({role:{type:String,default:"tooltip"}}),Jo={name:"ElPopperRoot",inheritAttrs:!1},Go=oe({...Jo,props:Kt,setup(e,{expose:t}){const o=e,r=B(),n=B(),i=B(),a=B(),s=_(()=>o.role),l={triggerRef:r,popperInstanceRef:n,contentRef:i,referenceRef:a,role:s};return t(l),ke(Qe,l),(p,u)=>le(p.$slots,"default")}});var Xo=ue(Go,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const qt=Q({arrowOffset:{type:Number,default:5}}),Zo={name:"ElPopperArrow",inheritAttrs:!1},Yo=oe({...Zo,props:qt,setup(e,{expose:t}){const o=e,r=We("popper"),{arrowOffset:n,arrowRef:i}=pe(Ht,void 0);return L(()=>o.arrowOffset,a=>{n.value=a}),ze(()=>{i.value=void 0}),t({arrowRef:i}),(a,s)=>(U(),He("span",{ref_key:"arrowRef",ref:i,class:Ye(E(r).e("arrow")),"data-popper-arrow":""},null,2))}});var Qo=ue(Yo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const er="ElOnlyChild",tr=oe({name:er,setup(e,{slots:t,attrs:o}){var r;const n=pe(zt),i=Uo((r=n==null?void 0:n.setForwardRef)!=null?r:Je);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,o);if(!s||s.length>1)return null;const l=Vt(s);return l?$t(Oo(l,o),[[i]]):null}}});function Vt(e){if(!e)return null;const t=e;for(const o of t){if(Eo(o))switch(o.type){case Ao:continue;case To:case"svg":return Ct(o);case Co:return Vt(o.children);default:return o}return Ct(o)}return null}function Ct(e){return Re("span",{class:"el-only-child__content"},[e])}const Ut=Q({virtualRef:{type:$(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),or={name:"ElPopperTrigger",inheritAttrs:!1},rr=oe({...or,props:Ut,setup(e,{expose:t}){const o=e,{role:r,triggerRef:n}=pe(Qe,void 0);Vo(n);const i=_(()=>s.value?o.id:void 0),a=_(()=>{if(r&&r.value==="tooltip")return o.open&&o.id?o.id:void 0}),s=_(()=>{if(r&&r.value!=="tooltip")return r.value}),l=_(()=>s.value?`${o.open}`:void 0);let p;return Ze(()=>{L(()=>o.virtualRef,u=>{u&&(n.value=Nt(u))},{immediate:!0}),L(()=>n.value,(u,m)=>{p==null||p(),p=void 0,Ne(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var c;const v=o[g];v&&(u.addEventListener(g.slice(2).toLowerCase(),v),(c=m==null?void 0:m.removeEventListener)==null||c.call(m,g.slice(2).toLowerCase(),v))}),p=L([i,a,s,l],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((c,v)=>{jt(g[v])?u.removeAttribute(c):u.setAttribute(c,g[v])})},{immediate:!0})),Ne(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>m.removeAttribute(g))},{immediate:!0})}),ze(()=>{p==null||p(),p=void 0}),t({triggerRef:n}),(u,m)=>u.virtualTriggering?ge("v-if",!0):(U(),he(E(tr),Lt({key:0},u.$attrs,{"aria-controls":E(i),"aria-describedby":E(a),"aria-expanded":E(l),"aria-haspopup":E(s)}),{default:te(()=>[le(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var nr=ue(rr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),N="top",W="bottom",z="right",H="left",et="auto",Be=[N,W,z,H],be="start",Se="end",ar="clippingParents",Jt="viewport",Te="popper",ir="reference",Tt=Be.reduce(function(e,t){return e.concat([t+"-"+be,t+"-"+Se])},[]),tt=[].concat(Be,[et]).reduce(function(e,t){return e.concat([t,t+"-"+be,t+"-"+Se])},[]),sr="beforeRead",lr="read",pr="afterRead",ur="beforeMain",fr="main",cr="afterMain",dr="beforeWrite",vr="write",mr="afterWrite",gr=[sr,lr,pr,ur,fr,cr,dr,vr,mr];function G(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=q(e).Element;return e instanceof t||e instanceof Element}function F(e){var t=q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ot(e){if(typeof ShadowRoot=="undefined")return!1;var t=q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hr(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},n=t.attributes[o]||{},i=t.elements[o];!F(i)||!G(i)||(Object.assign(i.style,r),Object.keys(n).forEach(function(a){var s=n[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function br(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var n=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),s=a.reduce(function(l,p){return l[p]="",l},{});!F(n)||!G(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(l){n.removeAttribute(l)}))})}}var Gt={name:"applyStyles",enabled:!0,phase:"write",fn:hr,effect:br,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var se=Math.max,Fe=Math.min,we=Math.round;function Oe(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),r=1,n=1;if(F(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=we(o.width)/a||1),i>0&&(n=we(o.height)/i||1)}return{width:o.width/r,height:o.height/n,top:o.top/n,right:o.right/r,bottom:o.bottom/n,left:o.left/r,x:o.left/r,y:o.top/n}}function rt(e){var t=Oe(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Xt(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&ot(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Y(e){return q(e).getComputedStyle(e)}function yr(e){return["table","td","th"].indexOf(G(e))>=0}function re(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ke(e){return G(e)==="html"?e:e.assignedSlot||e.parentNode||(ot(e)?e.host:null)||re(e)}function At(e){return!F(e)||Y(e).position==="fixed"?null:e.offsetParent}function wr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&F(e)){var r=Y(e);if(r.position==="fixed")return null}var n=Ke(e);for(ot(n)&&(n=n.host);F(n)&&["html","body"].indexOf(G(n))<0;){var i=Y(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Me(e){for(var t=q(e),o=At(e);o&&yr(o)&&Y(o).position==="static";)o=At(o);return o&&(G(o)==="html"||G(o)==="body"&&Y(o).position==="static")?t:o||wr(e)||t}function nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xe(e,t,o){return se(e,Fe(t,o))}function Or(e,t,o){var r=xe(e,t,o);return r>o?o:r}function Zt(){return{top:0,right:0,bottom:0,left:0}}function Yt(e){return Object.assign({},Zt(),e)}function Qt(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var Er=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Yt(typeof e!="number"?e:Qt(e,Be))};function Cr(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,s=J(o.placement),l=nt(s),p=[H,z].indexOf(s)>=0,u=p?"height":"width";if(!(!i||!a)){var m=Er(n.padding,o),g=rt(i),c=l==="y"?N:H,v=l==="y"?W:z,f=o.rects.reference[u]+o.rects.reference[l]-a[l]-o.rects.popper[u],d=a[l]-o.rects.reference[l],h=Me(i),b=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-d/2,O=m[c],A=b-g[u]-m[v],x=b/2-g[u]/2+C,y=xe(O,x,A),P=l;o.modifiersData[r]=(t={},t[P]=y,t.centerOffset=y-x,t)}}function Tr(e){var t=e.state,o=e.options,r=o.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||!Xt(t.elements.popper,n)||(t.elements.arrow=n))}var Ar={name:"arrow",enabled:!0,phase:"main",fn:Cr,effect:Tr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ee(e){return e.split("-")[1]}var xr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pr(e){var t=e.x,o=e.y,r=window,n=r.devicePixelRatio||1;return{x:we(t*n)/n||0,y:we(o*n)/n||0}}function xt(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,m=e.isFixed,g=a.x,c=g===void 0?0:g,v=a.y,f=v===void 0?0:v,d=typeof u=="function"?u({x:c,y:f}):{x:c,y:f};c=d.x,f=d.y;var h=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),C=H,O=N,A=window;if(p){var x=Me(o),y="clientHeight",P="clientWidth";if(x===q(o)&&(x=re(o),Y(x).position!=="static"&&s==="absolute"&&(y="scrollHeight",P="scrollWidth")),x=x,n===N||(n===H||n===z)&&i===Se){O=W;var I=m&&x===A&&A.visualViewport?A.visualViewport.height:x[y];f-=I-r.height,f*=l?1:-1}if(n===H||(n===N||n===W)&&i===Se){C=z;var j=m&&x===A&&A.visualViewport?A.visualViewport.width:x[P];c-=j-r.width,c*=l?1:-1}}var S=Object.assign({position:s},p&&xr),D=u===!0?Pr({x:c,y:f}):{x:c,y:f};if(c=D.x,f=D.y,l){var M;return Object.assign({},S,(M={},M[O]=b?"0":"",M[C]=h?"0":"",M.transform=(A.devicePixelRatio||1)<=1?"translate("+c+"px, "+f+"px)":"translate3d("+c+"px, "+f+"px, 0)",M))}return Object.assign({},S,(t={},t[O]=b?f+"px":"",t[C]=h?c+"px":"",t.transform="",t))}function kr(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=r===void 0?!0:r,i=o.adaptive,a=i===void 0?!0:i,s=o.roundOffsets,l=s===void 0?!0:s,p={placement:J(t.placement),variation:Ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var eo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kr,data:{}},$e={passive:!0};function Rr(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=n===void 0?!0:n,a=r.resize,s=a===void 0?!0:a,l=q(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(u){u.addEventListener("scroll",o.update,$e)}),s&&l.addEventListener("resize",o.update,$e),function(){i&&p.forEach(function(u){u.removeEventListener("scroll",o.update,$e)}),s&&l.removeEventListener("resize",o.update,$e)}}var to={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rr,data:{}},Sr={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,function(t){return Sr[t]})}var _r={start:"end",end:"start"};function Pt(e){return e.replace(/start|end/g,function(t){return _r[t]})}function at(e){var t=q(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function it(e){return Oe(re(e)).left+at(e).scrollLeft}function Br(e){var t=q(e),o=re(e),r=t.visualViewport,n=o.clientWidth,i=o.clientHeight,a=0,s=0;return r&&(n=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:n,height:i,x:a+it(e),y:s}}function Mr(e){var t,o=re(e),r=at(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=se(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=se(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-r.scrollLeft+it(e),l=-r.scrollTop;return Y(n||o).direction==="rtl"&&(s+=se(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function st(e){var t=Y(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function oo(e){return["html","body","#document"].indexOf(G(e))>=0?e.ownerDocument.body:F(e)&&st(e)?e:oo(Ke(e))}function Pe(e,t){var o;t===void 0&&(t=[]);var r=oo(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),i=q(r),a=n?[i].concat(i.visualViewport||[],st(r)?r:[]):r,s=t.concat(a);return n?s:s.concat(Pe(Ke(a)))}function Xe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ir(e){var t=Oe(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kt(e,t){return t===Jt?Xe(Br(e)):ye(t)?Ir(t):Xe(Mr(re(e)))}function jr(e){var t=Pe(Ke(e)),o=["absolute","fixed"].indexOf(Y(e).position)>=0,r=o&&F(e)?Me(e):e;return ye(r)?t.filter(function(n){return ye(n)&&Xt(n,r)&&G(n)!=="body"}):[]}function Dr(e,t,o){var r=t==="clippingParents"?jr(e):[].concat(t),n=[].concat(r,[o]),i=n[0],a=n.reduce(function(s,l){var p=kt(e,l);return s.top=se(p.top,s.top),s.right=Fe(p.right,s.right),s.bottom=Fe(p.bottom,s.bottom),s.left=se(p.left,s.left),s},kt(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ro(e){var t=e.reference,o=e.element,r=e.placement,n=r?J(r):null,i=r?Ee(r):null,a=t.x+t.width/2-o.width/2,s=t.y+t.height/2-o.height/2,l;switch(n){case N:l={x:a,y:t.y-o.height};break;case W:l={x:a,y:t.y+t.height};break;case z:l={x:t.x+t.width,y:s};break;case H:l={x:t.x-o.width,y:s};break;default:l={x:t.x,y:t.y}}var p=n?nt(n):null;if(p!=null){var u=p==="y"?"height":"width";switch(i){case be:l[p]=l[p]-(t[u]/2-o[u]/2);break;case Se:l[p]=l[p]+(t[u]/2-o[u]/2);break}}return l}function _e(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=r===void 0?e.placement:r,i=o.boundary,a=i===void 0?ar:i,s=o.rootBoundary,l=s===void 0?Jt:s,p=o.elementContext,u=p===void 0?Te:p,m=o.altBoundary,g=m===void 0?!1:m,c=o.padding,v=c===void 0?0:c,f=Yt(typeof v!="number"?v:Qt(v,Be)),d=u===Te?ir:Te,h=e.rects.popper,b=e.elements[g?d:u],C=Dr(ye(b)?b:b.contextElement||re(e.elements.popper),a,l),O=Oe(e.elements.reference),A=ro({reference:O,element:h,strategy:"absolute",placement:n}),x=Xe(Object.assign({},h,A)),y=u===Te?x:O,P={top:C.top-y.top+f.top,bottom:y.bottom-C.bottom+f.bottom,left:C.left-y.left+f.left,right:y.right-C.right+f.right},I=e.modifiersData.offset;if(u===Te&&I){var j=I[n];Object.keys(P).forEach(function(S){var D=[z,W].indexOf(S)>=0?1:-1,M=[N,W].indexOf(S)>=0?"y":"x";P[S]+=j[M]*D})}return P}function $r(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,s=o.flipVariations,l=o.allowedAutoPlacements,p=l===void 0?tt:l,u=Ee(r),m=u?s?Tt:Tt.filter(function(v){return Ee(v)===u}):Be,g=m.filter(function(v){return p.indexOf(v)>=0});g.length===0&&(g=m);var c=g.reduce(function(v,f){return v[f]=_e(e,{placement:f,boundary:n,rootBoundary:i,padding:a})[J(f)],v},{});return Object.keys(c).sort(function(v,f){return c[v]-c[f]})}function Lr(e){if(J(e)===et)return[];var t=Le(e);return[Pt(e),t,Pt(t)]}function Nr(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=n===void 0?!0:n,a=o.altAxis,s=a===void 0?!0:a,l=o.fallbackPlacements,p=o.padding,u=o.boundary,m=o.rootBoundary,g=o.altBoundary,c=o.flipVariations,v=c===void 0?!0:c,f=o.allowedAutoPlacements,d=t.options.placement,h=J(d),b=h===d,C=l||(b||!v?[Le(d)]:Lr(d)),O=[d].concat(C).reduce(function(ae,X){return ae.concat(J(X)===et?$r(t,{placement:X,boundary:u,rootBoundary:m,padding:p,flipVariations:v,allowedAutoPlacements:f}):X)},[]),A=t.rects.reference,x=t.rects.popper,y=new Map,P=!0,I=O[0],j=0;j=0,T=w?"width":"height",k=_e(t,{placement:S,boundary:u,rootBoundary:m,altBoundary:g,padding:p}),R=w?M?z:H:M?W:N;A[T]>x[T]&&(R=Le(R));var V=Le(R),K=[];if(i&&K.push(k[D]<=0),s&&K.push(k[R]<=0,k[V]<=0),K.every(function(ae){return ae})){I=S,P=!1;break}y.set(S,K)}if(P)for(var fe=v?3:1,ce=function(ae){var X=O.find(function(Ie){var Ce=y.get(Ie);if(Ce)return Ce.slice(0,ae).every(function(de){return de})});if(X)return I=X,"break"},ee=fe;ee>0;ee--){var ne=ce(ee);if(ne==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var Hr={name:"flip",enabled:!0,phase:"main",fn:Nr,requiresIfExists:["offset"],data:{_skip:!1}};function Rt(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function St(e){return[N,z,W,H].some(function(t){return e[t]>=0})}function Fr(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=_e(t,{elementContext:"reference"}),s=_e(t,{altBoundary:!0}),l=Rt(a,r),p=Rt(s,n,i),u=St(l),m=St(p);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}var Wr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fr};function zr(e,t,o){var r=J(e),n=[H,N].indexOf(r)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=i[0],s=i[1];return a=a||0,s=(s||0)*n,[H,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Kr(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=n===void 0?[0,0]:n,a=tt.reduce(function(u,m){return u[m]=zr(m,t.rects,i),u},{}),s=a[t.placement],l=s.x,p=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}var qr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kr};function Vr(e){var t=e.state,o=e.name;t.modifiersData[o]=ro({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var no={name:"popperOffsets",enabled:!0,phase:"read",fn:Vr,data:{}};function Ur(e){return e==="x"?"y":"x"}function Jr(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=n===void 0?!0:n,a=o.altAxis,s=a===void 0?!1:a,l=o.boundary,p=o.rootBoundary,u=o.altBoundary,m=o.padding,g=o.tether,c=g===void 0?!0:g,v=o.tetherOffset,f=v===void 0?0:v,d=_e(t,{boundary:l,rootBoundary:p,padding:m,altBoundary:u}),h=J(t.placement),b=Ee(t.placement),C=!b,O=nt(h),A=Ur(O),x=t.modifiersData.popperOffsets,y=t.rects.reference,P=t.rects.popper,I=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(i){var M,w=O==="y"?N:H,T=O==="y"?W:z,k=O==="y"?"height":"width",R=x[O],V=R+d[w],K=R-d[T],fe=c?-P[k]/2:0,ce=b===be?y[k]:P[k],ee=b===be?-P[k]:-y[k],ne=t.elements.arrow,ae=c&&ne?rt(ne):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zt(),Ie=X[w],Ce=X[T],de=xe(0,y[k],ae[k]),lo=C?y[k]/2-fe-de-Ie-j.mainAxis:ce-de-Ie-j.mainAxis,po=C?-y[k]/2+fe+de+Ce+j.mainAxis:ee+de+Ce+j.mainAxis,qe=t.elements.arrow&&Me(t.elements.arrow),uo=qe?O==="y"?qe.clientTop||0:qe.clientLeft||0:0,ut=(M=S==null?void 0:S[O])!=null?M:0,fo=R+lo-ut-uo,co=R+po-ut,ft=xe(c?Fe(V,fo):V,R,c?se(K,co):K);x[O]=ft,D[O]=ft-R}if(s){var ct,vo=O==="x"?N:H,mo=O==="x"?W:z,ie=x[A],je=A==="y"?"height":"width",dt=ie+d[vo],vt=ie-d[mo],Ve=[N,H].indexOf(h)!==-1,mt=(ct=S==null?void 0:S[A])!=null?ct:0,gt=Ve?dt:ie-y[je]-P[je]-mt+j.altAxis,ht=Ve?ie+y[je]+P[je]-mt-j.altAxis:vt,bt=c&&Ve?Or(gt,ie,ht):xe(c?gt:dt,ie,c?ht:vt);x[A]=bt,D[A]=bt-ie}t.modifiersData[r]=D}}var Gr={name:"preventOverflow",enabled:!0,phase:"main",fn:Jr,requiresIfExists:["offset"]};function Xr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zr(e){return e===q(e)||!F(e)?at(e):Xr(e)}function Yr(e){var t=e.getBoundingClientRect(),o=we(t.width)/e.offsetWidth||1,r=we(t.height)/e.offsetHeight||1;return o!==1||r!==1}function Qr(e,t,o){o===void 0&&(o=!1);var r=F(t),n=F(t)&&Yr(t),i=re(t),a=Oe(e,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!o)&&((G(t)!=="body"||st(i))&&(s=Zr(t)),F(t)?(l=Oe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(e){var t=new Map,o=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function n(i){o.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!o.has(s)){var l=t.get(s);l&&n(l)}}),r.push(i)}return e.forEach(function(i){o.has(i.name)||n(i)}),r}function tn(e){var t=en(e);return gr.reduce(function(o,r){return o.concat(t.filter(function(n){return n.phase===r}))},[])}function on(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function rn(e){var t=e.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var _t={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var e=arguments.length,t=new Array(e),o=0;o[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:tt,default:"bottom"},popperOptions:{type:$(Object),default:()=>({})},strategy:{type:String,values:ln,default:"absolute"}}),ao=Q({...pn,id:String,style:{type:$([String,Array,Object])},className:{type:$([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:$([String,Array,Object])},popperStyle:{type:$([String,Array,Object])},referenceEl:{type:$(Object)},triggerTargetEl:{type:$(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),un=["mouseenter","mouseleave","focus","blur","close"],Mt=(e,t)=>{const{placement:o,strategy:r,popperOptions:n}=e,i={placement:o,strategy:r,...n,modifiers:cn(e)};return dn(i,t),vn(i,n==null?void 0:n.modifiers),i},fn=e=>{if(!!Ae)return Nt(e)};function cn(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r!=null?r:[]}},{name:"computeStyles",options:{gpuAcceleration:o,adaptive:o}}]}function dn(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o!=null?o:5}})}function vn(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const mn={name:"ElPopperContent"},gn=oe({...mn,props:ao,emits:un,setup(e,{expose:t,emit:o}){const r=e,{popperInstanceRef:n,contentRef:i,triggerRef:a,role:s}=pe(Qe,void 0),l=pe(yt,void 0),{nextZIndex:p}=ho(),u=We("popper"),m=B(),g=B("first"),c=B(),v=B();ke(Ht,{arrowRef:c,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&ke(yt,{...l,addInputId:Je,removeInputId:Je});const f=B(r.zIndex||p()),d=B(!1);let h;const b=_(()=>fn(r.referenceEl)||E(a)),C=_(()=>[{zIndex:E(f)},r.popperStyle]),O=_(()=>[u.b(),u.is("pure",r.pure),u.is(r.effect),r.popperClass]),A=_(()=>s&&s.value==="dialog"?"false":void 0),x=({referenceEl:w,popperContentEl:T,arrowEl:k})=>{const R=Mt(r,{arrowEl:k,arrowOffset:E(v)});return sn(w,T,R)},y=(w=!0)=>{var T;(T=E(n))==null||T.update(),w&&(f.value=r.zIndex||p())},P=()=>{var w,T;const k={name:"eventListeners",enabled:r.visible};(T=(w=E(n))==null?void 0:w.setOptions)==null||T.call(w,R=>({...R,modifiers:[...R.modifiers||[],k]})),y(!1),r.visible&&r.focusOnShow?d.value=!0:r.visible===!1&&(d.value=!1)},I=()=>{o("focus")},j=()=>{g.value="first",o("blur")},S=w=>{var T;r.visible&&!d.value&&(w.relatedTarget&&((T=w.relatedTarget)==null||T.focus()),w.target&&(g.value=w.target),d.value=!0)},D=()=>{r.trapping||(d.value=!1)},M=()=>{d.value=!1,o("close")};return Ze(()=>{let w;L(b,T=>{var k;w==null||w();const R=E(n);if((k=R==null?void 0:R.destroy)==null||k.call(R),T){const V=E(m);i.value=V,n.value=x({referenceEl:T,popperContentEl:V,arrowEl:E(c)}),w=L(()=>T.getBoundingClientRect(),()=>y(),{immediate:!0})}else n.value=void 0},{immediate:!0}),L(()=>r.triggerTargetEl,(T,k)=>{h==null||h(),h=void 0;const R=E(T||m.value),V=E(k||m.value);if(Ne(R)){const{ariaLabel:K,id:fe}=xo(r);h=L([s,K,A,fe],ce=>{["role","aria-label","aria-modal","id"].forEach((ee,ne)=>{jt(ce[ne])?R.removeAttribute(ee):R.setAttribute(ee,ce[ne])})},{immediate:!0})}Ne(V)&&["role","aria-label","aria-modal","id"].forEach(K=>{V.removeAttribute(K)})},{immediate:!0}),L(()=>r.visible,P,{immediate:!0}),L(()=>Mt(r,{arrowEl:E(c),arrowOffset:E(v)}),T=>{var k;return(k=n.value)==null?void 0:k.setOptions(T)})}),ze(()=>{h==null||h(),h=void 0}),t({popperContentRef:m,popperInstanceRef:n,updatePopper:y,contentStyle:C}),(w,T)=>(U(),He("div",{ref_key:"popperContentRef",ref:m,style:Po(E(C)),class:Ye(E(O)),tabindex:"-1",onMouseenter:T[0]||(T[0]=k=>w.$emit("mouseenter",k)),onMouseleave:T[1]||(T[1]=k=>w.$emit("mouseleave",k))},[Re(E(Do),{trapped:d.value,"trap-on-focus-in":!0,"focus-trap-el":m.value,"focus-start-el":g.value,onFocusAfterTrapped:I,onFocusAfterReleased:j,onFocusin:S,onFocusoutPrevented:D,onReleaseRequested:M},{default:te(()=>[le(w.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var hn=ue(gn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bn=Dt(Xo),yn=We("tooltip"),io=Q({...Ko,...ao,appendTo:{type:$([String,Object]),default:Wt},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:$(Boolean),default:null},transition:{type:String,default:`${yn.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),so=Q({...Ut,disabled:Boolean,trigger:{type:$([String,Array]),default:"hover"},triggerKeys:{type:$(Array),default:()=>[wt.enter,wt.space]}}),wn=Q({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),pt=Symbol("elTooltip"),On=oe({name:"ElTooltipContent",components:{ElPopperContent:hn},inheritAttrs:!1,props:io,setup(e){const t=B(null),o=B(!1),r=B(!1),n=B(!1),i=B(!1),{controlled:a,id:s,open:l,trigger:p,onClose:u,onOpen:m,onShow:g,onHide:c,onBeforeShow:v,onBeforeHide:f}=pe(pt,void 0),d=_(()=>e.persistent);ze(()=>{i.value=!0});const h=_(()=>E(d)?!0:E(l)),b=_(()=>e.disabled?!1:E(l)),C=_(()=>{var w;return(w=e.style)!=null?w:{}}),O=_(()=>!E(l)),A=()=>{c()},x=()=>{if(E(a))return!0},y=Z(x,()=>{e.enterable&&E(p)==="hover"&&m()}),P=Z(x,()=>{E(p)==="hover"&&u()}),I=()=>{var w,T;(T=(w=t.value)==null?void 0:w.updatePopper)==null||T.call(w),v==null||v()},j=()=>{f==null||f()},S=()=>{g(),M=jo(_(()=>{var w;return(w=t.value)==null?void 0:w.popperContentRef}),()=>{if(E(a))return;E(p)!=="hover"&&u()})},D=()=>{e.virtualTriggering||u()};let M;return L(()=>E(l),w=>{w||M==null||M()},{flush:"post"}),{ariaHidden:O,entering:r,leaving:n,id:s,intermediateOpen:o,contentStyle:C,contentRef:t,destroyed:i,shouldRender:h,shouldShow:b,onClose:u,open:l,onAfterShow:S,onBeforeEnter:I,onBeforeLeave:j,onContentEnter:y,onContentLeave:P,onTransitionLeave:A,onBlur:D}}});function En(e,t,o,r,n,i){const a=me("el-popper-content");return U(),he(So,{disabled:!e.teleported,to:e.appendTo},[Re(Ro,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:te(()=>[e.shouldRender?$t((U(),he(a,Lt({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:te(()=>[ge(" Workaround bug #6378 "),e.destroyed?ge("v-if",!0):le(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ko,e.shouldShow]]):ge("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var Cn=ue(On,[["render",En],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Tn=(e,t)=>_o(e)?e.includes(t):e===t,ve=(e,t,o)=>r=>{Tn(E(e),t)&&o(r)},An=oe({name:"ElTooltipTrigger",components:{ElPopperTrigger:nr},props:so,setup(e){const t=We("tooltip"),{controlled:o,id:r,open:n,onOpen:i,onClose:a,onToggle:s}=pe(pt,void 0),l=B(null),p=()=>{if(E(o)||e.disabled)return!0},u=Ge(e,"trigger"),m=Z(p,ve(u,"hover",i)),g=Z(p,ve(u,"hover",a)),c=Z(p,ve(u,"click",b=>{b.button===0&&s(b)})),v=Z(p,ve(u,"focus",i)),f=Z(p,ve(u,"focus",a)),d=Z(p,ve(u,"contextmenu",b=>{b.preventDefault(),s(b)})),h=Z(p,b=>{const{code:C}=b;e.triggerKeys.includes(C)&&(b.preventDefault(),s(b))});return{onBlur:f,onContextMenu:d,onFocus:v,onMouseenter:m,onMouseleave:g,onClick:c,onKeydown:h,open:n,id:r,triggerRef:l,ns:t}}});function xn(e,t,o,r,n,i){const a=me("el-popper-trigger");return U(),he(a,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:Ye(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:te(()=>[le(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var Pn=ue(An,[["render",xn],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:kn,useModelToggle:Rn,useModelToggleEmits:Sn}=Ho("visible"),_n=oe({name:"ElTooltip",components:{ElPopper:bn,ElPopperArrow:Qo,ElTooltipContent:Cn,ElTooltipTrigger:Pn},props:{...Kt,...kn,...io,...so,...qt,...wn},emits:[...Sn,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){zo();const o=_(()=>(Ot(e.openDelay),e.openDelay||e.showAfter)),r=_(()=>(Ot(e.visibleArrow),Ue(e.visibleArrow)?e.visibleArrow:e.showArrow)),n=bo(),i=B(null),a=B(null),s=()=>{var d;const h=E(i);h&&((d=h.popperInstanceRef)==null||d.update())},l=B(!1),p=B(void 0),{show:u,hide:m}=Rn({indicator:l,toggleReason:p}),{onOpen:g,onClose:c}=qo({showAfter:o,hideAfter:Ge(e,"hideAfter"),open:u,close:m}),v=_(()=>Ue(e.visible));ke(pt,{controlled:v,id:n,open:Bo(l),trigger:Ge(e,"trigger"),onOpen:d=>{g(d)},onClose:d=>{c(d)},onToggle:d=>{E(l)?c(d):g(d)},onShow:()=>{t("show",p.value)},onHide:()=>{t("hide",p.value)},onBeforeShow:()=>{t("before-show",p.value)},onBeforeHide:()=>{t("before-hide",p.value)},updatePopper:s}),L(()=>e.disabled,d=>{d&&l.value&&(l.value=!1)});const f=()=>{var d,h;const b=(h=(d=a.value)==null?void 0:d.contentRef)==null?void 0:h.popperContentRef;return b&&b.contains(document.activeElement)};return Mo(()=>l.value&&m()),{compatShowAfter:o,compatShowArrow:r,popperRef:i,contentRef:a,open:l,hide:m,isFocusInsideContent:f,updatePopper:s,onOpen:g,onClose:c}}}),Bn=["innerHTML"],Mn={key:1};function In(e,t,o,r,n,i){const a=me("el-tooltip-trigger"),s=me("el-popper-arrow"),l=me("el-tooltip-content"),p=me("el-popper");return U(),he(p,{ref:"popperRef",role:e.role},{default:te(()=>[Re(a,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:te(()=>[e.$slots.default?le(e.$slots,"default",{key:0}):ge("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Re(l,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:te(()=>[le(e.$slots,"content",{},()=>[e.rawContent?(U(),He("span",{key:0,innerHTML:e.content},null,8,Bn)):(U(),He("span",Mn,Io(e.content),1))]),e.compatShowArrow?(U(),he(s,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ge("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var jn=ue(_n,[["render",In],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Fn=Dt(jn);export{Fn as E,tr as O,pt as T,io as a,so as u,sn as y}; +import{A as It,d as $,B as Ae,C as Ue,D as go,b as Q,_ as ue,u as We,F as Ne,k as jt,G as yt,H as ho,w as Dt,I as wt,J as Ot,K as bo}from"./base.4ef7f45b.js";import{c as _,l as De,w as L,o as Ze,a0 as yo,a1 as wo,u as E,v as ke,d as oe,r as B,g as le,E as pe,H as ze,a as U,f as He,n as Ye,N as Je,Q as $t,ab as Oo,a5 as Eo,F as Co,h as Re,aa as To,ac as Ao,b as he,e as te,z as Lt,k as ge,ad as xo,i as Po,ae as me,R as ko,T as Ro,X as So,D as _o,x as Ge,af as Bo,ag as Mo,t as Io}from"./index.43b3cbf5.js";import{b as Nt,o as jo}from"./request.e2daed10.js";import{E as Do}from"./focus-trap.4cfde4b4.js";import{c as Z}from"./event.3ec63147.js";const $o=()=>Math.floor(Math.random()*1e4),Qe=Symbol("popper"),Ht=Symbol("popperContent"),Lo=It({type:$(Boolean),default:null}),No=It({type:$(Function)}),Ho=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,r=[t],n={[e]:Lo,[o]:No};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:p,onShow:u,onHide:m})=>{const g=yo(),{emit:c}=g,v=g.props,f=_(()=>De(v[o])),d=_(()=>v[e]===null),h=y=>{a.value!==!0&&(a.value=!0,s&&(s.value=y),De(u)&&u(y))},b=y=>{a.value!==!1&&(a.value=!1,s&&(s.value=y),De(m)&&m(y))},C=y=>{if(v.disabled===!0||De(p)&&!p())return;const P=f.value&&Ae;P&&c(t,!0),(d.value||!P)&&h(y)},O=y=>{if(v.disabled===!0||!Ae)return;const P=f.value&&Ae;P&&c(t,!1),(d.value||!P)&&b(y)},A=y=>{!Ue(y)||(v.disabled&&y?f.value&&c(t,!1):a.value!==y&&(y?h():b()))},x=()=>{a.value?O():C()};return L(()=>v[e],A),l&&g.appContext.config.globalProperties.$route!==void 0&&L(()=>({...g.proxy.$route}),()=>{l.value&&a.value&&O()}),Ze(()=>{A(v[e])}),{hide:O,show:C,toggle:x}},useModelToggleProps:n,useModelToggleEmits:r}};function Fo(){let e;const t=(r,n)=>{o(),e=window.setTimeout(r,n)},o=()=>window.clearTimeout(e);return go(()=>o()),{registerTimeout:t,cancelTimeout:o}}let Et;const Ft=`el-popper-container-${$o()}`,Wt=`#${Ft}`,Wo=()=>{const e=document.createElement("div");return e.id=Ft,document.body.appendChild(e),e},zo=()=>{wo(()=>{!Ae||(!Et||!document.body.querySelector(Wt))&&(Et=Wo())})},Ko=Q({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),qo=({showAfter:e,hideAfter:t,open:o,close:r})=>{const{registerTimeout:n}=Fo();return{onOpen:s=>{n(()=>{o(s)},E(e))},onClose:s=>{n(()=>{r(s)},E(t))}}},zt=Symbol("elForwardRef"),Vo=e=>{ke(zt,{setForwardRef:o=>{e.value=o}})},Uo=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Kt=Q({role:{type:String,default:"tooltip"}}),Jo={name:"ElPopperRoot",inheritAttrs:!1},Go=oe({...Jo,props:Kt,setup(e,{expose:t}){const o=e,r=B(),n=B(),i=B(),a=B(),s=_(()=>o.role),l={triggerRef:r,popperInstanceRef:n,contentRef:i,referenceRef:a,role:s};return t(l),ke(Qe,l),(p,u)=>le(p.$slots,"default")}});var Xo=ue(Go,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const qt=Q({arrowOffset:{type:Number,default:5}}),Zo={name:"ElPopperArrow",inheritAttrs:!1},Yo=oe({...Zo,props:qt,setup(e,{expose:t}){const o=e,r=We("popper"),{arrowOffset:n,arrowRef:i}=pe(Ht,void 0);return L(()=>o.arrowOffset,a=>{n.value=a}),ze(()=>{i.value=void 0}),t({arrowRef:i}),(a,s)=>(U(),He("span",{ref_key:"arrowRef",ref:i,class:Ye(E(r).e("arrow")),"data-popper-arrow":""},null,2))}});var Qo=ue(Yo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const er="ElOnlyChild",tr=oe({name:er,setup(e,{slots:t,attrs:o}){var r;const n=pe(zt),i=Uo((r=n==null?void 0:n.setForwardRef)!=null?r:Je);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,o);if(!s||s.length>1)return null;const l=Vt(s);return l?$t(Oo(l,o),[[i]]):null}}});function Vt(e){if(!e)return null;const t=e;for(const o of t){if(Eo(o))switch(o.type){case Ao:continue;case To:case"svg":return Ct(o);case Co:return Vt(o.children);default:return o}return Ct(o)}return null}function Ct(e){return Re("span",{class:"el-only-child__content"},[e])}const Ut=Q({virtualRef:{type:$(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),or={name:"ElPopperTrigger",inheritAttrs:!1},rr=oe({...or,props:Ut,setup(e,{expose:t}){const o=e,{role:r,triggerRef:n}=pe(Qe,void 0);Vo(n);const i=_(()=>s.value?o.id:void 0),a=_(()=>{if(r&&r.value==="tooltip")return o.open&&o.id?o.id:void 0}),s=_(()=>{if(r&&r.value!=="tooltip")return r.value}),l=_(()=>s.value?`${o.open}`:void 0);let p;return Ze(()=>{L(()=>o.virtualRef,u=>{u&&(n.value=Nt(u))},{immediate:!0}),L(()=>n.value,(u,m)=>{p==null||p(),p=void 0,Ne(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var c;const v=o[g];v&&(u.addEventListener(g.slice(2).toLowerCase(),v),(c=m==null?void 0:m.removeEventListener)==null||c.call(m,g.slice(2).toLowerCase(),v))}),p=L([i,a,s,l],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((c,v)=>{jt(g[v])?u.removeAttribute(c):u.setAttribute(c,g[v])})},{immediate:!0})),Ne(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>m.removeAttribute(g))},{immediate:!0})}),ze(()=>{p==null||p(),p=void 0}),t({triggerRef:n}),(u,m)=>u.virtualTriggering?ge("v-if",!0):(U(),he(E(tr),Lt({key:0},u.$attrs,{"aria-controls":E(i),"aria-describedby":E(a),"aria-expanded":E(l),"aria-haspopup":E(s)}),{default:te(()=>[le(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var nr=ue(rr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),N="top",W="bottom",z="right",H="left",et="auto",Be=[N,W,z,H],be="start",Se="end",ar="clippingParents",Jt="viewport",Te="popper",ir="reference",Tt=Be.reduce(function(e,t){return e.concat([t+"-"+be,t+"-"+Se])},[]),tt=[].concat(Be,[et]).reduce(function(e,t){return e.concat([t,t+"-"+be,t+"-"+Se])},[]),sr="beforeRead",lr="read",pr="afterRead",ur="beforeMain",fr="main",cr="afterMain",dr="beforeWrite",vr="write",mr="afterWrite",gr=[sr,lr,pr,ur,fr,cr,dr,vr,mr];function G(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=q(e).Element;return e instanceof t||e instanceof Element}function F(e){var t=q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ot(e){if(typeof ShadowRoot=="undefined")return!1;var t=q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hr(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},n=t.attributes[o]||{},i=t.elements[o];!F(i)||!G(i)||(Object.assign(i.style,r),Object.keys(n).forEach(function(a){var s=n[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function br(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var n=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),s=a.reduce(function(l,p){return l[p]="",l},{});!F(n)||!G(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(l){n.removeAttribute(l)}))})}}var Gt={name:"applyStyles",enabled:!0,phase:"write",fn:hr,effect:br,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var se=Math.max,Fe=Math.min,we=Math.round;function Oe(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),r=1,n=1;if(F(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=we(o.width)/a||1),i>0&&(n=we(o.height)/i||1)}return{width:o.width/r,height:o.height/n,top:o.top/n,right:o.right/r,bottom:o.bottom/n,left:o.left/r,x:o.left/r,y:o.top/n}}function rt(e){var t=Oe(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Xt(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&ot(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Y(e){return q(e).getComputedStyle(e)}function yr(e){return["table","td","th"].indexOf(G(e))>=0}function re(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ke(e){return G(e)==="html"?e:e.assignedSlot||e.parentNode||(ot(e)?e.host:null)||re(e)}function At(e){return!F(e)||Y(e).position==="fixed"?null:e.offsetParent}function wr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&F(e)){var r=Y(e);if(r.position==="fixed")return null}var n=Ke(e);for(ot(n)&&(n=n.host);F(n)&&["html","body"].indexOf(G(n))<0;){var i=Y(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Me(e){for(var t=q(e),o=At(e);o&&yr(o)&&Y(o).position==="static";)o=At(o);return o&&(G(o)==="html"||G(o)==="body"&&Y(o).position==="static")?t:o||wr(e)||t}function nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xe(e,t,o){return se(e,Fe(t,o))}function Or(e,t,o){var r=xe(e,t,o);return r>o?o:r}function Zt(){return{top:0,right:0,bottom:0,left:0}}function Yt(e){return Object.assign({},Zt(),e)}function Qt(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var Er=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Yt(typeof e!="number"?e:Qt(e,Be))};function Cr(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,s=J(o.placement),l=nt(s),p=[H,z].indexOf(s)>=0,u=p?"height":"width";if(!(!i||!a)){var m=Er(n.padding,o),g=rt(i),c=l==="y"?N:H,v=l==="y"?W:z,f=o.rects.reference[u]+o.rects.reference[l]-a[l]-o.rects.popper[u],d=a[l]-o.rects.reference[l],h=Me(i),b=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-d/2,O=m[c],A=b-g[u]-m[v],x=b/2-g[u]/2+C,y=xe(O,x,A),P=l;o.modifiersData[r]=(t={},t[P]=y,t.centerOffset=y-x,t)}}function Tr(e){var t=e.state,o=e.options,r=o.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||!Xt(t.elements.popper,n)||(t.elements.arrow=n))}var Ar={name:"arrow",enabled:!0,phase:"main",fn:Cr,effect:Tr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ee(e){return e.split("-")[1]}var xr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pr(e){var t=e.x,o=e.y,r=window,n=r.devicePixelRatio||1;return{x:we(t*n)/n||0,y:we(o*n)/n||0}}function xt(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,m=e.isFixed,g=a.x,c=g===void 0?0:g,v=a.y,f=v===void 0?0:v,d=typeof u=="function"?u({x:c,y:f}):{x:c,y:f};c=d.x,f=d.y;var h=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),C=H,O=N,A=window;if(p){var x=Me(o),y="clientHeight",P="clientWidth";if(x===q(o)&&(x=re(o),Y(x).position!=="static"&&s==="absolute"&&(y="scrollHeight",P="scrollWidth")),x=x,n===N||(n===H||n===z)&&i===Se){O=W;var I=m&&x===A&&A.visualViewport?A.visualViewport.height:x[y];f-=I-r.height,f*=l?1:-1}if(n===H||(n===N||n===W)&&i===Se){C=z;var j=m&&x===A&&A.visualViewport?A.visualViewport.width:x[P];c-=j-r.width,c*=l?1:-1}}var S=Object.assign({position:s},p&&xr),D=u===!0?Pr({x:c,y:f}):{x:c,y:f};if(c=D.x,f=D.y,l){var M;return Object.assign({},S,(M={},M[O]=b?"0":"",M[C]=h?"0":"",M.transform=(A.devicePixelRatio||1)<=1?"translate("+c+"px, "+f+"px)":"translate3d("+c+"px, "+f+"px, 0)",M))}return Object.assign({},S,(t={},t[O]=b?f+"px":"",t[C]=h?c+"px":"",t.transform="",t))}function kr(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=r===void 0?!0:r,i=o.adaptive,a=i===void 0?!0:i,s=o.roundOffsets,l=s===void 0?!0:s,p={placement:J(t.placement),variation:Ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var eo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kr,data:{}},$e={passive:!0};function Rr(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=n===void 0?!0:n,a=r.resize,s=a===void 0?!0:a,l=q(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(u){u.addEventListener("scroll",o.update,$e)}),s&&l.addEventListener("resize",o.update,$e),function(){i&&p.forEach(function(u){u.removeEventListener("scroll",o.update,$e)}),s&&l.removeEventListener("resize",o.update,$e)}}var to={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rr,data:{}},Sr={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,function(t){return Sr[t]})}var _r={start:"end",end:"start"};function Pt(e){return e.replace(/start|end/g,function(t){return _r[t]})}function at(e){var t=q(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function it(e){return Oe(re(e)).left+at(e).scrollLeft}function Br(e){var t=q(e),o=re(e),r=t.visualViewport,n=o.clientWidth,i=o.clientHeight,a=0,s=0;return r&&(n=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:n,height:i,x:a+it(e),y:s}}function Mr(e){var t,o=re(e),r=at(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=se(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=se(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-r.scrollLeft+it(e),l=-r.scrollTop;return Y(n||o).direction==="rtl"&&(s+=se(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function st(e){var t=Y(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function oo(e){return["html","body","#document"].indexOf(G(e))>=0?e.ownerDocument.body:F(e)&&st(e)?e:oo(Ke(e))}function Pe(e,t){var o;t===void 0&&(t=[]);var r=oo(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),i=q(r),a=n?[i].concat(i.visualViewport||[],st(r)?r:[]):r,s=t.concat(a);return n?s:s.concat(Pe(Ke(a)))}function Xe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ir(e){var t=Oe(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kt(e,t){return t===Jt?Xe(Br(e)):ye(t)?Ir(t):Xe(Mr(re(e)))}function jr(e){var t=Pe(Ke(e)),o=["absolute","fixed"].indexOf(Y(e).position)>=0,r=o&&F(e)?Me(e):e;return ye(r)?t.filter(function(n){return ye(n)&&Xt(n,r)&&G(n)!=="body"}):[]}function Dr(e,t,o){var r=t==="clippingParents"?jr(e):[].concat(t),n=[].concat(r,[o]),i=n[0],a=n.reduce(function(s,l){var p=kt(e,l);return s.top=se(p.top,s.top),s.right=Fe(p.right,s.right),s.bottom=Fe(p.bottom,s.bottom),s.left=se(p.left,s.left),s},kt(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ro(e){var t=e.reference,o=e.element,r=e.placement,n=r?J(r):null,i=r?Ee(r):null,a=t.x+t.width/2-o.width/2,s=t.y+t.height/2-o.height/2,l;switch(n){case N:l={x:a,y:t.y-o.height};break;case W:l={x:a,y:t.y+t.height};break;case z:l={x:t.x+t.width,y:s};break;case H:l={x:t.x-o.width,y:s};break;default:l={x:t.x,y:t.y}}var p=n?nt(n):null;if(p!=null){var u=p==="y"?"height":"width";switch(i){case be:l[p]=l[p]-(t[u]/2-o[u]/2);break;case Se:l[p]=l[p]+(t[u]/2-o[u]/2);break}}return l}function _e(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=r===void 0?e.placement:r,i=o.boundary,a=i===void 0?ar:i,s=o.rootBoundary,l=s===void 0?Jt:s,p=o.elementContext,u=p===void 0?Te:p,m=o.altBoundary,g=m===void 0?!1:m,c=o.padding,v=c===void 0?0:c,f=Yt(typeof v!="number"?v:Qt(v,Be)),d=u===Te?ir:Te,h=e.rects.popper,b=e.elements[g?d:u],C=Dr(ye(b)?b:b.contextElement||re(e.elements.popper),a,l),O=Oe(e.elements.reference),A=ro({reference:O,element:h,strategy:"absolute",placement:n}),x=Xe(Object.assign({},h,A)),y=u===Te?x:O,P={top:C.top-y.top+f.top,bottom:y.bottom-C.bottom+f.bottom,left:C.left-y.left+f.left,right:y.right-C.right+f.right},I=e.modifiersData.offset;if(u===Te&&I){var j=I[n];Object.keys(P).forEach(function(S){var D=[z,W].indexOf(S)>=0?1:-1,M=[N,W].indexOf(S)>=0?"y":"x";P[S]+=j[M]*D})}return P}function $r(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,s=o.flipVariations,l=o.allowedAutoPlacements,p=l===void 0?tt:l,u=Ee(r),m=u?s?Tt:Tt.filter(function(v){return Ee(v)===u}):Be,g=m.filter(function(v){return p.indexOf(v)>=0});g.length===0&&(g=m);var c=g.reduce(function(v,f){return v[f]=_e(e,{placement:f,boundary:n,rootBoundary:i,padding:a})[J(f)],v},{});return Object.keys(c).sort(function(v,f){return c[v]-c[f]})}function Lr(e){if(J(e)===et)return[];var t=Le(e);return[Pt(e),t,Pt(t)]}function Nr(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=n===void 0?!0:n,a=o.altAxis,s=a===void 0?!0:a,l=o.fallbackPlacements,p=o.padding,u=o.boundary,m=o.rootBoundary,g=o.altBoundary,c=o.flipVariations,v=c===void 0?!0:c,f=o.allowedAutoPlacements,d=t.options.placement,h=J(d),b=h===d,C=l||(b||!v?[Le(d)]:Lr(d)),O=[d].concat(C).reduce(function(ae,X){return ae.concat(J(X)===et?$r(t,{placement:X,boundary:u,rootBoundary:m,padding:p,flipVariations:v,allowedAutoPlacements:f}):X)},[]),A=t.rects.reference,x=t.rects.popper,y=new Map,P=!0,I=O[0],j=0;j=0,T=w?"width":"height",k=_e(t,{placement:S,boundary:u,rootBoundary:m,altBoundary:g,padding:p}),R=w?M?z:H:M?W:N;A[T]>x[T]&&(R=Le(R));var V=Le(R),K=[];if(i&&K.push(k[D]<=0),s&&K.push(k[R]<=0,k[V]<=0),K.every(function(ae){return ae})){I=S,P=!1;break}y.set(S,K)}if(P)for(var fe=v?3:1,ce=function(ae){var X=O.find(function(Ie){var Ce=y.get(Ie);if(Ce)return Ce.slice(0,ae).every(function(de){return de})});if(X)return I=X,"break"},ee=fe;ee>0;ee--){var ne=ce(ee);if(ne==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var Hr={name:"flip",enabled:!0,phase:"main",fn:Nr,requiresIfExists:["offset"],data:{_skip:!1}};function Rt(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function St(e){return[N,z,W,H].some(function(t){return e[t]>=0})}function Fr(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=_e(t,{elementContext:"reference"}),s=_e(t,{altBoundary:!0}),l=Rt(a,r),p=Rt(s,n,i),u=St(l),m=St(p);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}var Wr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fr};function zr(e,t,o){var r=J(e),n=[H,N].indexOf(r)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=i[0],s=i[1];return a=a||0,s=(s||0)*n,[H,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Kr(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=n===void 0?[0,0]:n,a=tt.reduce(function(u,m){return u[m]=zr(m,t.rects,i),u},{}),s=a[t.placement],l=s.x,p=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}var qr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kr};function Vr(e){var t=e.state,o=e.name;t.modifiersData[o]=ro({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var no={name:"popperOffsets",enabled:!0,phase:"read",fn:Vr,data:{}};function Ur(e){return e==="x"?"y":"x"}function Jr(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=n===void 0?!0:n,a=o.altAxis,s=a===void 0?!1:a,l=o.boundary,p=o.rootBoundary,u=o.altBoundary,m=o.padding,g=o.tether,c=g===void 0?!0:g,v=o.tetherOffset,f=v===void 0?0:v,d=_e(t,{boundary:l,rootBoundary:p,padding:m,altBoundary:u}),h=J(t.placement),b=Ee(t.placement),C=!b,O=nt(h),A=Ur(O),x=t.modifiersData.popperOffsets,y=t.rects.reference,P=t.rects.popper,I=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(i){var M,w=O==="y"?N:H,T=O==="y"?W:z,k=O==="y"?"height":"width",R=x[O],V=R+d[w],K=R-d[T],fe=c?-P[k]/2:0,ce=b===be?y[k]:P[k],ee=b===be?-P[k]:-y[k],ne=t.elements.arrow,ae=c&&ne?rt(ne):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zt(),Ie=X[w],Ce=X[T],de=xe(0,y[k],ae[k]),lo=C?y[k]/2-fe-de-Ie-j.mainAxis:ce-de-Ie-j.mainAxis,po=C?-y[k]/2+fe+de+Ce+j.mainAxis:ee+de+Ce+j.mainAxis,qe=t.elements.arrow&&Me(t.elements.arrow),uo=qe?O==="y"?qe.clientTop||0:qe.clientLeft||0:0,ut=(M=S==null?void 0:S[O])!=null?M:0,fo=R+lo-ut-uo,co=R+po-ut,ft=xe(c?Fe(V,fo):V,R,c?se(K,co):K);x[O]=ft,D[O]=ft-R}if(s){var ct,vo=O==="x"?N:H,mo=O==="x"?W:z,ie=x[A],je=A==="y"?"height":"width",dt=ie+d[vo],vt=ie-d[mo],Ve=[N,H].indexOf(h)!==-1,mt=(ct=S==null?void 0:S[A])!=null?ct:0,gt=Ve?dt:ie-y[je]-P[je]-mt+j.altAxis,ht=Ve?ie+y[je]+P[je]-mt-j.altAxis:vt,bt=c&&Ve?Or(gt,ie,ht):xe(c?gt:dt,ie,c?ht:vt);x[A]=bt,D[A]=bt-ie}t.modifiersData[r]=D}}var Gr={name:"preventOverflow",enabled:!0,phase:"main",fn:Jr,requiresIfExists:["offset"]};function Xr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zr(e){return e===q(e)||!F(e)?at(e):Xr(e)}function Yr(e){var t=e.getBoundingClientRect(),o=we(t.width)/e.offsetWidth||1,r=we(t.height)/e.offsetHeight||1;return o!==1||r!==1}function Qr(e,t,o){o===void 0&&(o=!1);var r=F(t),n=F(t)&&Yr(t),i=re(t),a=Oe(e,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!o)&&((G(t)!=="body"||st(i))&&(s=Zr(t)),F(t)?(l=Oe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(e){var t=new Map,o=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function n(i){o.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!o.has(s)){var l=t.get(s);l&&n(l)}}),r.push(i)}return e.forEach(function(i){o.has(i.name)||n(i)}),r}function tn(e){var t=en(e);return gr.reduce(function(o,r){return o.concat(t.filter(function(n){return n.phase===r}))},[])}function on(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function rn(e){var t=e.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var _t={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var e=arguments.length,t=new Array(e),o=0;o[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:tt,default:"bottom"},popperOptions:{type:$(Object),default:()=>({})},strategy:{type:String,values:ln,default:"absolute"}}),ao=Q({...pn,id:String,style:{type:$([String,Array,Object])},className:{type:$([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:$([String,Array,Object])},popperStyle:{type:$([String,Array,Object])},referenceEl:{type:$(Object)},triggerTargetEl:{type:$(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),un=["mouseenter","mouseleave","focus","blur","close"],Mt=(e,t)=>{const{placement:o,strategy:r,popperOptions:n}=e,i={placement:o,strategy:r,...n,modifiers:cn(e)};return dn(i,t),vn(i,n==null?void 0:n.modifiers),i},fn=e=>{if(!!Ae)return Nt(e)};function cn(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r!=null?r:[]}},{name:"computeStyles",options:{gpuAcceleration:o,adaptive:o}}]}function dn(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o!=null?o:5}})}function vn(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const mn={name:"ElPopperContent"},gn=oe({...mn,props:ao,emits:un,setup(e,{expose:t,emit:o}){const r=e,{popperInstanceRef:n,contentRef:i,triggerRef:a,role:s}=pe(Qe,void 0),l=pe(yt,void 0),{nextZIndex:p}=ho(),u=We("popper"),m=B(),g=B("first"),c=B(),v=B();ke(Ht,{arrowRef:c,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&ke(yt,{...l,addInputId:Je,removeInputId:Je});const f=B(r.zIndex||p()),d=B(!1);let h;const b=_(()=>fn(r.referenceEl)||E(a)),C=_(()=>[{zIndex:E(f)},r.popperStyle]),O=_(()=>[u.b(),u.is("pure",r.pure),u.is(r.effect),r.popperClass]),A=_(()=>s&&s.value==="dialog"?"false":void 0),x=({referenceEl:w,popperContentEl:T,arrowEl:k})=>{const R=Mt(r,{arrowEl:k,arrowOffset:E(v)});return sn(w,T,R)},y=(w=!0)=>{var T;(T=E(n))==null||T.update(),w&&(f.value=r.zIndex||p())},P=()=>{var w,T;const k={name:"eventListeners",enabled:r.visible};(T=(w=E(n))==null?void 0:w.setOptions)==null||T.call(w,R=>({...R,modifiers:[...R.modifiers||[],k]})),y(!1),r.visible&&r.focusOnShow?d.value=!0:r.visible===!1&&(d.value=!1)},I=()=>{o("focus")},j=()=>{g.value="first",o("blur")},S=w=>{var T;r.visible&&!d.value&&(w.relatedTarget&&((T=w.relatedTarget)==null||T.focus()),w.target&&(g.value=w.target),d.value=!0)},D=()=>{r.trapping||(d.value=!1)},M=()=>{d.value=!1,o("close")};return Ze(()=>{let w;L(b,T=>{var k;w==null||w();const R=E(n);if((k=R==null?void 0:R.destroy)==null||k.call(R),T){const V=E(m);i.value=V,n.value=x({referenceEl:T,popperContentEl:V,arrowEl:E(c)}),w=L(()=>T.getBoundingClientRect(),()=>y(),{immediate:!0})}else n.value=void 0},{immediate:!0}),L(()=>r.triggerTargetEl,(T,k)=>{h==null||h(),h=void 0;const R=E(T||m.value),V=E(k||m.value);if(Ne(R)){const{ariaLabel:K,id:fe}=xo(r);h=L([s,K,A,fe],ce=>{["role","aria-label","aria-modal","id"].forEach((ee,ne)=>{jt(ce[ne])?R.removeAttribute(ee):R.setAttribute(ee,ce[ne])})},{immediate:!0})}Ne(V)&&["role","aria-label","aria-modal","id"].forEach(K=>{V.removeAttribute(K)})},{immediate:!0}),L(()=>r.visible,P,{immediate:!0}),L(()=>Mt(r,{arrowEl:E(c),arrowOffset:E(v)}),T=>{var k;return(k=n.value)==null?void 0:k.setOptions(T)})}),ze(()=>{h==null||h(),h=void 0}),t({popperContentRef:m,popperInstanceRef:n,updatePopper:y,contentStyle:C}),(w,T)=>(U(),He("div",{ref_key:"popperContentRef",ref:m,style:Po(E(C)),class:Ye(E(O)),tabindex:"-1",onMouseenter:T[0]||(T[0]=k=>w.$emit("mouseenter",k)),onMouseleave:T[1]||(T[1]=k=>w.$emit("mouseleave",k))},[Re(E(Do),{trapped:d.value,"trap-on-focus-in":!0,"focus-trap-el":m.value,"focus-start-el":g.value,onFocusAfterTrapped:I,onFocusAfterReleased:j,onFocusin:S,onFocusoutPrevented:D,onReleaseRequested:M},{default:te(()=>[le(w.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var hn=ue(gn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bn=Dt(Xo),yn=We("tooltip"),io=Q({...Ko,...ao,appendTo:{type:$([String,Object]),default:Wt},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:$(Boolean),default:null},transition:{type:String,default:`${yn.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),so=Q({...Ut,disabled:Boolean,trigger:{type:$([String,Array]),default:"hover"},triggerKeys:{type:$(Array),default:()=>[wt.enter,wt.space]}}),wn=Q({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),pt=Symbol("elTooltip"),On=oe({name:"ElTooltipContent",components:{ElPopperContent:hn},inheritAttrs:!1,props:io,setup(e){const t=B(null),o=B(!1),r=B(!1),n=B(!1),i=B(!1),{controlled:a,id:s,open:l,trigger:p,onClose:u,onOpen:m,onShow:g,onHide:c,onBeforeShow:v,onBeforeHide:f}=pe(pt,void 0),d=_(()=>e.persistent);ze(()=>{i.value=!0});const h=_(()=>E(d)?!0:E(l)),b=_(()=>e.disabled?!1:E(l)),C=_(()=>{var w;return(w=e.style)!=null?w:{}}),O=_(()=>!E(l)),A=()=>{c()},x=()=>{if(E(a))return!0},y=Z(x,()=>{e.enterable&&E(p)==="hover"&&m()}),P=Z(x,()=>{E(p)==="hover"&&u()}),I=()=>{var w,T;(T=(w=t.value)==null?void 0:w.updatePopper)==null||T.call(w),v==null||v()},j=()=>{f==null||f()},S=()=>{g(),M=jo(_(()=>{var w;return(w=t.value)==null?void 0:w.popperContentRef}),()=>{if(E(a))return;E(p)!=="hover"&&u()})},D=()=>{e.virtualTriggering||u()};let M;return L(()=>E(l),w=>{w||M==null||M()},{flush:"post"}),{ariaHidden:O,entering:r,leaving:n,id:s,intermediateOpen:o,contentStyle:C,contentRef:t,destroyed:i,shouldRender:h,shouldShow:b,onClose:u,open:l,onAfterShow:S,onBeforeEnter:I,onBeforeLeave:j,onContentEnter:y,onContentLeave:P,onTransitionLeave:A,onBlur:D}}});function En(e,t,o,r,n,i){const a=me("el-popper-content");return U(),he(So,{disabled:!e.teleported,to:e.appendTo},[Re(Ro,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:te(()=>[e.shouldRender?$t((U(),he(a,Lt({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:te(()=>[ge(" Workaround bug #6378 "),e.destroyed?ge("v-if",!0):le(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ko,e.shouldShow]]):ge("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var Cn=ue(On,[["render",En],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Tn=(e,t)=>_o(e)?e.includes(t):e===t,ve=(e,t,o)=>r=>{Tn(E(e),t)&&o(r)},An=oe({name:"ElTooltipTrigger",components:{ElPopperTrigger:nr},props:so,setup(e){const t=We("tooltip"),{controlled:o,id:r,open:n,onOpen:i,onClose:a,onToggle:s}=pe(pt,void 0),l=B(null),p=()=>{if(E(o)||e.disabled)return!0},u=Ge(e,"trigger"),m=Z(p,ve(u,"hover",i)),g=Z(p,ve(u,"hover",a)),c=Z(p,ve(u,"click",b=>{b.button===0&&s(b)})),v=Z(p,ve(u,"focus",i)),f=Z(p,ve(u,"focus",a)),d=Z(p,ve(u,"contextmenu",b=>{b.preventDefault(),s(b)})),h=Z(p,b=>{const{code:C}=b;e.triggerKeys.includes(C)&&(b.preventDefault(),s(b))});return{onBlur:f,onContextMenu:d,onFocus:v,onMouseenter:m,onMouseleave:g,onClick:c,onKeydown:h,open:n,id:r,triggerRef:l,ns:t}}});function xn(e,t,o,r,n,i){const a=me("el-popper-trigger");return U(),he(a,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:Ye(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:te(()=>[le(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var Pn=ue(An,[["render",xn],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:kn,useModelToggle:Rn,useModelToggleEmits:Sn}=Ho("visible"),_n=oe({name:"ElTooltip",components:{ElPopper:bn,ElPopperArrow:Qo,ElTooltipContent:Cn,ElTooltipTrigger:Pn},props:{...Kt,...kn,...io,...so,...qt,...wn},emits:[...Sn,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){zo();const o=_(()=>(Ot(e.openDelay),e.openDelay||e.showAfter)),r=_(()=>(Ot(e.visibleArrow),Ue(e.visibleArrow)?e.visibleArrow:e.showArrow)),n=bo(),i=B(null),a=B(null),s=()=>{var d;const h=E(i);h&&((d=h.popperInstanceRef)==null||d.update())},l=B(!1),p=B(void 0),{show:u,hide:m}=Rn({indicator:l,toggleReason:p}),{onOpen:g,onClose:c}=qo({showAfter:o,hideAfter:Ge(e,"hideAfter"),open:u,close:m}),v=_(()=>Ue(e.visible));ke(pt,{controlled:v,id:n,open:Bo(l),trigger:Ge(e,"trigger"),onOpen:d=>{g(d)},onClose:d=>{c(d)},onToggle:d=>{E(l)?c(d):g(d)},onShow:()=>{t("show",p.value)},onHide:()=>{t("hide",p.value)},onBeforeShow:()=>{t("before-show",p.value)},onBeforeHide:()=>{t("before-hide",p.value)},updatePopper:s}),L(()=>e.disabled,d=>{d&&l.value&&(l.value=!1)});const f=()=>{var d,h;const b=(h=(d=a.value)==null?void 0:d.contentRef)==null?void 0:h.popperContentRef;return b&&b.contains(document.activeElement)};return Mo(()=>l.value&&m()),{compatShowAfter:o,compatShowArrow:r,popperRef:i,contentRef:a,open:l,hide:m,isFocusInsideContent:f,updatePopper:s,onOpen:g,onClose:c}}}),Bn=["innerHTML"],Mn={key:1};function In(e,t,o,r,n,i){const a=me("el-tooltip-trigger"),s=me("el-popper-arrow"),l=me("el-tooltip-content"),p=me("el-popper");return U(),he(p,{ref:"popperRef",role:e.role},{default:te(()=>[Re(a,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:te(()=>[e.$slots.default?le(e.$slots,"default",{key:0}):ge("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Re(l,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:te(()=>[le(e.$slots,"content",{},()=>[e.rawContent?(U(),He("span",{key:0,innerHTML:e.content},null,8,Bn)):(U(),He("span",Mn,Io(e.content),1))]),e.compatShowArrow?(U(),he(s,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ge("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var jn=ue(_n,[["render",In],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Fn=Dt(jn);export{Fn as E,tr as O,pt as T,io as a,so as u,sn as y}; diff --git a/src/main/resources/static/assets/preview.551a4e73.js b/src/main/resources/static/assets/preview.5ef64261.js similarity index 99% rename from src/main/resources/static/assets/preview.551a4e73.js rename to src/main/resources/static/assets/preview.5ef64261.js index 2de8d80..a3a4c0d 100644 --- a/src/main/resources/static/assets/preview.551a4e73.js +++ b/src/main/resources/static/assets/preview.5ef64261.js @@ -1,4 +1,4 @@ -import{K as J,O as q}from"./index.552205f5.js";import{r as _}from"./vue.runtime.esm-bundler.39244c60.js";function ee(V,Y){return Y.forEach(function(M){M&&typeof M!="string"&&!Array.isArray(M)&&Object.keys(M).forEach(function(A){if(A!=="default"&&!(A in V)){var l=Object.getOwnPropertyDescriptor(M,A);Object.defineProperty(V,A,l.get?l:{enumerable:!0,get:function(){return M[A]}})}})}),Object.freeze(Object.defineProperty(V,Symbol.toStringTag,{value:"Module"}))}var Q={exports:{}};(function(V,Y){(function(A,l){V.exports=l(_)})(typeof self!="undefined"?self:q,function(M){return function(A){var l={};function r(a){if(l[a])return l[a].exports;var o=l[a]={i:a,l:!1,exports:{}};return A[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=A,r.c=l,r.d=function(a,o,i){r.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:i})},r.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,o){if(o&1&&(a=r(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var f in a)r.d(i,f,function(e){return a[e]}.bind(null,f));return i},r.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(o,"a",o),o},r.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},r.p="",r(r.s=9)}([function(A,l){A.exports=M},,function(A,l,r){r.d(l,"f",function(){return o}),r.d(l,"a",function(){return f}),r.d(l,"c",function(){return e}),r.d(l,"d",function(){return s}),r.d(l,"e",function(){return g}),r.d(l,"b",function(){return u});var a=Object.prototype.toString,o=function(c){return a.call(c)==="[object Object]"};function i(d,c){return Object.keys(c).forEach(function(t){d[t]=c[t]}),d}function f(d){for(var c={},t=0;te?"down":"up",h=(s-e)*(d/100),n,m=function y(){e+=h,t==="down"&&e>=s||t==="up"&&e<=s?(g(s),window.cancelAnimationFrame(n),c&&window.requestAnimationFrame(c)):(g(e),window.requestAnimationFrame(y))};window.requestAnimationFrame(m)}function i(f){var e=f.scrollTarget,s=f.scrollToTop,g=f.percent,u=g===void 0?10:g,d=f.onScrollEnd,c=Object(a.a)(e);o({currentScrollTop:c,scrollToTop:s,scrollFn:function(h){return Object(a.b)(e,h)},percent:u,onScrollEnd:d})}},function(A,l,r){r.r(l);var a=r(0);function o(n,m,y,p,b,v){return Object(a.openBlock)(),Object(a.createBlock)("div",{class:"v-md-editor-preview",style:{tabSize:n.tabSize,"-moz-tab-size":n.tabSize,"-o-tab-size":n.tabSize},onClick:m[1]||(m[1]=function(){return n.handlePreviewClick.apply(n,arguments)})},[Object(a.createVNode)("div",{class:[n.previewClass],innerHTML:n.html},null,10,["innerHTML"])],4)}var i=r(7),f=r(13),e=function(){function n(){this.lang=new f.a}var m=n.prototype;return m.defaultMarkdownLoader=function(p){return p},m.use=function(p,b){return typeof p=="function"?p(this,b):p.install(this,b),this},m.theme=function(p){this.themeConfig=p},m.extendMarkdown=function(p){if(!this.themeConfig)return console.error("Please use theme before using plugins");var b=this.themeConfig.markdownParser;p(b)},m.parse=function(p){var b,v=this.themeConfig.markdownParser,S=(v==null||(b=v.render)==null?void 0:b.bind(v))||this.defaultMarkdownLoader;return(typeof S!="function"||S===this.defaultMarkdownLoader)&&console.error("Please configure your markdown parser"),S(p)},n}(),s=r(16),g={name:"v-md-preview",mixins:[s.a],props:{text:{type:String,default:""},theme:Object,beforeChange:Function},emits:["change"],data:function(){return{html:""}},watch:{text:function(){this.handleTextChange()},langConfig:function(){this.handleTextChange()}},computed:{vMdParser:function(){return this.$options.vMdParser},previewClass:function(){return this.vMdParser.themeConfig.previewClass},langConfig:function(){return this.vMdParser.lang.langConfig}},created:function(){this.handleTextChange()},methods:{handleTextChange:function(){var m=this,y=function(b){m.html=i.a.process(m.$options.vMdParser.parse(b)),m.$emit("change",b,m.html)};this.beforeChange?this.beforeChange(this.text,y):y(this.text)}}},u=new e;u.lang.config=Object(a.reactive)(u.lang.config),g.vMdParser=new e;var d=g;d.render=o;var c=d;r(18);var t="2.3.15",h=function(m){m.component(c.name,c)};c.version=t,c.install=h,c.xss=i.a,c.use=function(n,m){return typeof n=="function"?n(c,m):n.install(c,m),c},l.default=c},,function(A,l,r){var a=r(19),o=r(22),i=r(26);function f(g,u){var d=new i(u);return d.process(g)}l=A.exports=f,l.filterXSS=f,l.FilterXSS=i;for(var e in a)l[e]=a[e];for(var e in o)l[e]=o[e];typeof window!="undefined"&&(window.filterXSS=A.exports);function s(){return typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=A.exports)},,function(A,l,r){r.d(l,"a",function(){return e});var a=r(2),o=Object.prototype.hasOwnProperty;function i(s,g,u){var d=g[u];d!=null&&(!o.call(s,u)||!Object(a.f)(d)?s[u]=d:s[u]=f(Object(s[u]),g[u]))}function f(s,g){return Object.keys(g).forEach(function(u){i(s,g,u)}),s}var e=function(){function s(u){u===void 0&&(u={}),this.config={lang:"zh-CN",langConfig:{"zh-CN":{}}},this.options=u}var g=s.prototype;return g.use=function(d,c){var t;this.config.lang=d,this.add((t={},t[d]=c,t)),this.options.afterUse&&this.options.afterUse(d,c)},g.add=function(d){d===void 0&&(d={}),f(this.config.langConfig,d)},s}()},function(A,l,r){var a=r(20),o=r(24);function i(e,s){var g=new o(s);return g.process(e)}l=A.exports=i,l.FilterCSS=o;for(var f in a)l[f]=a[f];typeof window!="undefined"&&(window.filterCSS=A.exports)},function(A,l){A.exports={indexOf:function(r,a){var o,i;if(Array.prototype.indexOf)return r.indexOf(a);for(o=0,i=r.length;o/g,m=/"/g,y=/"/g,p=/&#([a-zA-Z0-9]*);?/gim,b=/:?/gim,v=/&newline;?/gim,S=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,E=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,O=/u\s*r\s*l\s*\(.*/gi;function C(w){return w.replace(m,""")}function k(w){return w.replace(y,'"')}function P(w){return w.replace(p,function(T,x){return x[0]==="x"||x[0]==="X"?String.fromCharCode(parseInt(x.substr(1),16)):String.fromCharCode(parseInt(x,10))})}function U(w){return w.replace(b,":").replace(v," ")}function I(w){for(var L="",T=0,x=w.length;T/g;function H(w){var L=w.split("");return L=L.filter(function(T){var x=T.charCodeAt(0);return x===127?!1:x<=31?x===10||x===13:!0}),L.join("")}l.whiteList=f(),l.getDefaultWhiteList=f,l.onTag=s,l.onIgnoreTag=g,l.onTagAttr=u,l.onIgnoreTagAttr=d,l.safeAttrValue=t,l.escapeHtml=c,l.escapeQuote=C,l.unescapeQuote=k,l.escapeHtmlEntities=P,l.escapeDangerHtml5Entities=U,l.clearNonPrintableCharacter=I,l.friendlyAttrValue=j,l.escapeAttrValue=X,l.onIgnoreTagStripAll=W,l.StripTagBody=D,l.stripCommentTag=N,l.stripBlankChar=H,l.cssFilter=e,l.getDefaultCSSWhiteList=o},function(A,l){function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function a(e,s,g){}function o(e,s,g){}var i=/javascript\s*\:/img;function f(e,s){return i.test(s)?"":s}l.whiteList=r(),l.getDefaultWhiteList=r,l.onAttr=a,l.onIgnoreAttr=o,l.safeAttrValue=f},function(A,l){A.exports={indexOf:function(r,a){var o,i;if(Array.prototype.indexOf)return r.indexOf(a);for(o=0,i=r.length;o"){m+=n(t.slice(y,p)),O=t.slice(p,v+1),E=o(O),m+=h(p,m.length,E,O,i(O)),y=v+1,p=!1;continue}if(C==='"'||C==="'")for(var k=1,P=t.charAt(v-k);P.trim()===""||P==="=";){if(P==="="){b=C;continue e}P=t.charAt(v-++k)}}else if(C===b){b=!1;continue}}return y0;h--){var n=t[h];if(n!==" ")return n==="="?h:-1}}function d(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function c(t){return d(t)?t.substr(1,t.length-2):t}l.parseTag=f,l.parseAttr=s},,function(A,l,r){var a=r(20),o=r(25);r(21);function i(s){return s==null}function f(s){var g={};for(var u in s)g[u]=s[u];return g}function e(s){s=f(s||{}),s.whiteList=s.whiteList||a.whiteList,s.onAttr=s.onAttr||a.onAttr,s.onIgnoreAttr=s.onIgnoreAttr||a.onIgnoreAttr,s.safeAttrValue=s.safeAttrValue||a.safeAttrValue,this.options=s}e.prototype.process=function(s){if(s=s||"",s=s.toString(),!s)return"";var g=this,u=g.options,d=u.whiteList,c=u.onAttr,t=u.onIgnoreAttr,h=u.safeAttrValue,n=o(s,function(m,y,p,b,v){var S=d[p],E=!1;if(S===!0?E=S:typeof S=="function"?E=S(b):S instanceof RegExp&&(E=S.test(b)),E!==!0&&(E=!1),b=h(p,b),!!b){var O={position:y,sourcePosition:m,source:v,isWhite:E};if(E){var C=c(p,b,O);return i(C)?p+":"+b:C}else{var C=t(p,b,O);if(!i(C))return C}}});return n},A.exports=e},function(A,l,r){var a=r(21);function o(i,f){i=a.trimRight(i),i[i.length-1]!==";"&&(i+=";");var e=i.length,s=!1,g=0,u=0,d="";function c(){if(!s){var n=a.trim(i.slice(g,u)),m=n.indexOf(":");if(m!==-1){var y=a.trim(n.slice(0,m)),p=a.trim(n.slice(m+1));if(y){var b=f(g,d.length,y,p,n);b&&(d+=b+"; ")}}}g=u+1}for(;u diff --git a/src/main/resources/static/assets/python.40a33355.js b/src/main/resources/static/assets/python.98ee2666.js similarity index 79% rename from src/main/resources/static/assets/python.40a33355.js rename to src/main/resources/static/assets/python.98ee2666.js index b5c163d..91894bb 100644 --- a/src/main/resources/static/assets/python.40a33355.js +++ b/src/main/resources/static/assets/python.98ee2666.js @@ -1,6 +1,6 @@ -import{m as s}from"./TextViewer.3239c454.js";import"./index.552205f5.js";import"./common.c93e08d7.js";import"./request.3708b2c4.js";import"./base.d698891e.js";import"./useFileUpload.b18c246f.js";import"./common.0f75f163.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./event.776e7e11.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./directive.e250a256.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./TextViewer.0c511786.js";import"./index.43b3cbf5.js";import"./common.e7f4d4d2.js";import"./request.e2daed10.js";import"./base.4ef7f45b.js";import"./useFileUpload.72c71760.js";import"./common.72335e7c.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./event.776e7e11.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./event.3ec63147.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";import"./index.566ad052.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,m=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!c.call(t,r)&&(i||r!=="default")&&a(t,r,{get:()=>e[r],enumerable:!(o=l(e,r))||o.enumerable});return t},n={};m(n,s);var S={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:n.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},z={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{S as conf,z as language}; + *-----------------------------------------------------------------------------*/var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,m=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!c.call(t,r)&&(i||r!=="default")&&a(t,r,{get:()=>e[r],enumerable:!(o=l(e,r))||o.enumerable});return t},n={};m(n,s);var z={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:n.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},A={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{z as conf,A as language}; diff --git a/src/main/resources/static/assets/radio.427cda7a.js b/src/main/resources/static/assets/radio.35753592.js similarity index 64% rename from src/main/resources/static/assets/radio.427cda7a.js rename to src/main/resources/static/assets/radio.35753592.js index 67d0c75..d4cf4f6 100644 --- a/src/main/resources/static/assets/radio.427cda7a.js +++ b/src/main/resources/static/assets/radio.35753592.js @@ -1 +1 @@ -import{m as $,r as w,E as X,c as v,d as k,aw as Y,a as z,f as S,p as h,Q as P,aC as F,u as e,z as C,S as K,n as g,g as E,J as T,t as U,j as D,Z as L,i as ee,o as oe,v as re,W as ae,ad as le,w as ie}from"./index.552205f5.js";import{b as y,S as j,V as G,C as N,W as de,q as se,u as R,_ as B,K as ne,aq as te,U as ue,o as pe,w as ce,j as M}from"./base.d698891e.js";import{U as I,C as be}from"./event.776e7e11.js";import{u as A}from"./index.4ab44dc8.js";const q=Symbol("radioGroupKey"),W=y({size:j,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),ve=y({...W,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),O={[I]:a=>$(a)||G(a)||N(a),[be]:a=>$(a)||G(a)||N(a)},H=(a,p)=>{const l=w(),d=X(q,void 0),n=v(()=>!!d),c=v({get(){return n.value?d.modelValue:a.modelValue},set(s){n.value?d.changeEvent(s):p&&p(I,s),l.value.checked=a.modelValue===a.label}}),u=de(v(()=>d==null?void 0:d.size)),o=se(v(()=>d==null?void 0:d.disabled)),i=w(!1),m=v(()=>o.value||n.value&&c.value!==a.label?-1:0);return{radioRef:l,isGroup:n,radioGroup:d,focus:i,size:u,disabled:o,tabIndex:m,modelValue:c}},fe=["value","name","disabled"],me={name:"ElRadio",inheritAttrs:!1},_e=k({...me,props:ve,emits:O,setup(a,{emit:p}){const l=a,d=Y(),n=v(()=>d.style),c=A({excludeListeners:!0}),u=A({excludeKeys:v(()=>Object.keys(c.value))}),o=R("radio"),{radioRef:i,radioGroup:m,focus:s,size:r,disabled:b,modelValue:t}=H(l,p);function Z(){L(()=>p("change",t.value))}return(_,f)=>{var V;return z(),S("label",C({class:[e(o).b(),e(o).is("disabled",e(b)),e(o).is("focus",e(s)),e(o).is("bordered",_.border),e(o).is("checked",e(t)===_.label),e(o).m(e(r)),e(d).class],style:e(n)},e(u)),[h("span",{class:g([e(o).e("input"),e(o).is("disabled",e(b)),e(o).is("checked",e(t)===_.label)])},[P(h("input",C({ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=x=>K(t)?t.value=x:null),class:e(o).e("original"),value:_.label,name:_.name||((V=e(m))==null?void 0:V.name),disabled:e(b),type:"radio"},e(c),{onFocus:f[1]||(f[1]=x=>s.value=!0),onBlur:f[2]||(f[2]=x=>s.value=!1),onChange:Z}),null,16,fe),[[F,e(t)]]),h("span",{class:g(e(o).e("inner"))},null,2)],2),h("span",{class:g(e(o).e("label")),onKeydown:f[3]||(f[3]=D(()=>{},["stop"]))},[E(_.$slots,"default",{},()=>[T(U(_.label),1)])],34)],16)}}});var ge=B(_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const he=y({...W,name:{type:String,default:""}}),ye=["value","name","disabled"],xe={name:"ElRadioButton"},we=k({...xe,props:he,setup(a){const p=a,l=R("radio"),{radioRef:d,focus:n,size:c,disabled:u,modelValue:o,radioGroup:i}=H(p),m=v(()=>({backgroundColor:(i==null?void 0:i.fill)||"",borderColor:(i==null?void 0:i.fill)||"",boxShadow:i!=null&&i.fill?`-1px 0 0 0 ${i.fill}`:"",color:(i==null?void 0:i.textColor)||""}));return(s,r)=>{var b;return z(),S("label",{class:g([e(l).b("button"),e(l).is("active",e(o)===s.label),e(l).is("disabled",e(u)),e(l).is("focus",e(n)),e(l).bm("button",e(c))])},[P(h("input",{ref_key:"radioRef",ref:d,"onUpdate:modelValue":r[0]||(r[0]=t=>K(o)?o.value=t:null),class:g(e(l).be("button","original-radio")),value:s.label,type:"radio",name:s.name||((b=e(i))==null?void 0:b.name),disabled:e(u),onFocus:r[1]||(r[1]=t=>n.value=!0),onBlur:r[2]||(r[2]=t=>n.value=!1)},null,42,ye),[[F,e(o)]]),h("span",{class:g(e(l).be("button","inner")),style:ee(e(o)===s.label?e(m):{}),onKeydown:r[3]||(r[3]=D(()=>{},["stop"]))},[E(s.$slots,"default",{},()=>[T(U(s.label),1)])],38)],2)}}});var J=B(we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const ke=y({id:{type:String,default:void 0},size:j,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0}}),ze=O,Se=["id","aria-label","aria-labelledby"],Ee={name:"ElRadioGroup"},Re=k({...Ee,props:ke,emits:ze,setup(a,{emit:p}){const l=a,d=R("radio"),n=ne(),c=w(),{formItem:u}=te(),{inputId:o,isLabeledByFormItem:i}=ue(l,{formItemContext:u}),m=r=>{p(I,r),L(()=>p("change",r))};oe(()=>{const r=c.value.querySelectorAll("[type=radio]"),b=r[0];!Array.from(r).some(t=>t.checked)&&b&&(b.tabIndex=0)});const s=v(()=>l.name||n.value);return re(q,ae({...le(l),changeEvent:m,name:s})),ie(()=>l.modelValue,()=>u==null?void 0:u.validate("change").catch(r=>pe())),(r,b)=>(z(),S("div",{id:e(o),ref_key:"radioGroupRef",ref:c,class:g(e(d).b("group")),role:"radiogroup","aria-label":e(i)?void 0:r.label||"radio-group","aria-labelledby":e(i)?e(u).labelId:void 0},[E(r.$slots,"default")],10,Se))}});var Q=B(Re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Ce=ce(ge,{RadioButton:J,RadioGroup:Q});M(Q);M(J);export{Ce as E}; +import{m as $,r as w,E as X,c as v,d as k,ax as Y,a as z,f as S,p as h,Q as P,aD as D,u as e,z as G,S as F,n as g,g as E,J as K,t as T,j as U,Z as L,i as ee,o as oe,v as re,W as ae,ad as le,w as ie}from"./index.43b3cbf5.js";import{b as x,S as j,V as C,C as N,W as de,q as se,u as R,_ as B,K as ne,aq as te,U as ue,o as pe,w as ce,j as M}from"./base.4ef7f45b.js";import{U as I,C as be}from"./event.776e7e11.js";import{u as A}from"./index.da7dbe5d.js";const q=Symbol("radioGroupKey"),W=x({size:j,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),ve=x({...W,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),O={[I]:a=>$(a)||C(a)||N(a),[be]:a=>$(a)||C(a)||N(a)},H=(a,p)=>{const l=w(),d=X(q,void 0),n=v(()=>!!d),c=v({get(){return n.value?d.modelValue:a.modelValue},set(s){n.value?d.changeEvent(s):p&&p(I,s),l.value.checked=a.modelValue===a.label}}),u=de(v(()=>d==null?void 0:d.size)),o=se(v(()=>d==null?void 0:d.disabled)),i=w(!1),m=v(()=>o.value||n.value&&c.value!==a.label?-1:0);return{radioRef:l,isGroup:n,radioGroup:d,focus:i,size:u,disabled:o,tabIndex:m,modelValue:c}},fe=["value","name","disabled"],me={name:"ElRadio",inheritAttrs:!1},_e=k({...me,props:ve,emits:O,setup(a,{emit:p}){const l=a,d=Y(),n=v(()=>d.style),c=A({excludeListeners:!0}),u=A({excludeKeys:v(()=>Object.keys(c.value))}),o=R("radio"),{radioRef:i,radioGroup:m,focus:s,size:r,disabled:b,modelValue:t}=H(l,p);function Z(){L(()=>p("change",t.value))}return(_,f)=>{var V;return z(),S("label",G({class:[e(o).b(),e(o).is("disabled",e(b)),e(o).is("focus",e(s)),e(o).is("bordered",_.border),e(o).is("checked",e(t)===_.label),e(o).m(e(r)),e(d).class],style:e(n)},e(u)),[h("span",{class:g([e(o).e("input"),e(o).is("disabled",e(b)),e(o).is("checked",e(t)===_.label)])},[P(h("input",G({ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=y=>F(t)?t.value=y:null),class:e(o).e("original"),value:_.label,name:_.name||((V=e(m))==null?void 0:V.name),disabled:e(b),type:"radio"},e(c),{onFocus:f[1]||(f[1]=y=>s.value=!0),onBlur:f[2]||(f[2]=y=>s.value=!1),onChange:Z}),null,16,fe),[[D,e(t)]]),h("span",{class:g(e(o).e("inner"))},null,2)],2),h("span",{class:g(e(o).e("label")),onKeydown:f[3]||(f[3]=U(()=>{},["stop"]))},[E(_.$slots,"default",{},()=>[K(T(_.label),1)])],34)],16)}}});var ge=B(_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const he=x({...W,name:{type:String,default:""}}),xe=["value","name","disabled"],ye={name:"ElRadioButton"},we=k({...ye,props:he,setup(a){const p=a,l=R("radio"),{radioRef:d,focus:n,size:c,disabled:u,modelValue:o,radioGroup:i}=H(p),m=v(()=>({backgroundColor:(i==null?void 0:i.fill)||"",borderColor:(i==null?void 0:i.fill)||"",boxShadow:i!=null&&i.fill?`-1px 0 0 0 ${i.fill}`:"",color:(i==null?void 0:i.textColor)||""}));return(s,r)=>{var b;return z(),S("label",{class:g([e(l).b("button"),e(l).is("active",e(o)===s.label),e(l).is("disabled",e(u)),e(l).is("focus",e(n)),e(l).bm("button",e(c))])},[P(h("input",{ref_key:"radioRef",ref:d,"onUpdate:modelValue":r[0]||(r[0]=t=>F(o)?o.value=t:null),class:g(e(l).be("button","original-radio")),value:s.label,type:"radio",name:s.name||((b=e(i))==null?void 0:b.name),disabled:e(u),onFocus:r[1]||(r[1]=t=>n.value=!0),onBlur:r[2]||(r[2]=t=>n.value=!1)},null,42,xe),[[D,e(o)]]),h("span",{class:g(e(l).be("button","inner")),style:ee(e(o)===s.label?e(m):{}),onKeydown:r[3]||(r[3]=U(()=>{},["stop"]))},[E(s.$slots,"default",{},()=>[K(T(s.label),1)])],38)],2)}}});var J=B(we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const ke=x({id:{type:String,default:void 0},size:j,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0}}),ze=O,Se=["id","aria-label","aria-labelledby"],Ee={name:"ElRadioGroup"},Re=k({...Ee,props:ke,emits:ze,setup(a,{emit:p}){const l=a,d=R("radio"),n=ne(),c=w(),{formItem:u}=te(),{inputId:o,isLabeledByFormItem:i}=ue(l,{formItemContext:u}),m=r=>{p(I,r),L(()=>p("change",r))};oe(()=>{const r=c.value.querySelectorAll("[type=radio]"),b=r[0];!Array.from(r).some(t=>t.checked)&&b&&(b.tabIndex=0)});const s=v(()=>l.name||n.value);return re(q,ae({...le(l),changeEvent:m,name:s})),ie(()=>l.modelValue,()=>u==null?void 0:u.validate("change").catch(r=>pe())),(r,b)=>(z(),S("div",{id:e(o),ref_key:"radioGroupRef",ref:c,class:g(e(d).b("group")),role:"radiogroup","aria-label":e(i)?void 0:r.label||"radio-group","aria-labelledby":e(i)?e(u).labelId:void 0},[E(r.$slots,"default")],10,Se))}});var Q=B(Re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Ge=ce(ge,{RadioButton:J,RadioGroup:Q});M(Q);M(J);export{Ge as E}; diff --git a/src/main/resources/static/assets/readme-editor-dialog.a4ecf68a.js b/src/main/resources/static/assets/readme-editor-dialog.5b0917f1.js similarity index 55% rename from src/main/resources/static/assets/readme-editor-dialog.a4ecf68a.js rename to src/main/resources/static/assets/readme-editor-dialog.5b0917f1.js index 3365110..5861389 100644 --- a/src/main/resources/static/assets/readme-editor-dialog.a4ecf68a.js +++ b/src/main/resources/static/assets/readme-editor-dialog.5b0917f1.js @@ -1 +1 @@ -import{_ as h,a2 as r,r as E,o as g,a as w,b as y,e as s,p as b,h as u,u as D,J as c}from"./index.552205f5.js";import{r as P}from"./base.d698891e.js";import{E as T}from"./dialog.04a5229a.js";import"./overlay.7eff71c7.js";/* empty css */import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./index.1e624cbf.js";import"./focus-trap.58847c97.js";import"./refs.4597d917.js";import"./event.776e7e11.js";const A={class:"dialog-footer"},x=c("\u53D6\u6D88"),B=c("\u4FDD\u5B58"),J={__name:"readme-editor-dialog",props:{visible:{type:Boolean,required:!0},title:{type:String,default:""},modelValue:{type:String,default:""}},emits:["update:modelValue","update:visible"],setup(f,{emit:l}){const d=f,v=h(()=>new Promise((m,t)=>{(async function(){try{const e=await r(()=>import("./base-editor.6f9b1ad4.js").then(function(a){return a.b}),["assets/base-editor.6f9b1ad4.js","assets/index.552205f5.js","assets/index.3520fb77.css","assets/vue.runtime.esm-bundler.39244c60.js"]);await r(()=>Promise.resolve({}),["assets/base-editor.59951ec0.css"]),await r(()=>Promise.resolve({}),["assets/vuepress.5dbd54dc.css"]);const n=await r(()=>import("./vuepress.7e5dfb6f.js").then(function(a){return a.v}),["assets/vuepress.7e5dfb6f.js","assets/index.552205f5.js","assets/index.3520fb77.css"]),o=await r(()=>import("./prism.0241c608.js").then(function(a){return a.p}),["assets/prism.0241c608.js","assets/index.552205f5.js","assets/index.3520fb77.css"]);e.use(n,{Prism:o}),m(e)}catch(e){t(e)}})()})),i=E(""),_=!0;g(()=>{i.value=d.modelValue});const p=()=>{l("update:visible",!1)},V=()=>{l("update:modelValue",i.value),l("update:visible",!1)};return(m,t)=>{const e=P,n=T;return w(),y(n,{modelValue:_,"onUpdate:modelValue":t[1]||(t[1]=o=>_=o),"destroy-on-close":!0,onClose:p,title:d.title,"show-close":!1,draggable:"",top:"5vh",width:"80%"},{footer:s(()=>[b("span",A,[u(e,{onClick:p},{default:s(()=>[x]),_:1}),u(e,{type:"primary",onClick:V},{default:s(()=>[B]),_:1})])]),default:s(()=>[u(D(v),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=o=>i.value=o),height:"70vh"},null,8,["modelValue"])]),_:1},8,["title"])}}};export{J as default}; +import{_ as h,a2 as r,r as E,o as g,a as w,b as y,e as s,p as b,h as u,u as D,J as c}from"./index.43b3cbf5.js";import{r as P}from"./base.4ef7f45b.js";import{E as T}from"./dialog.0ab1ba1d.js";import"./overlay.533d94fc.js";/* empty css */import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./index.566ad052.js";import"./focus-trap.4cfde4b4.js";import"./refs.f6f7d296.js";import"./event.776e7e11.js";const A={class:"dialog-footer"},x=c("\u53D6\u6D88"),B=c("\u4FDD\u5B58"),J={__name:"readme-editor-dialog",props:{visible:{type:Boolean,required:!0},title:{type:String,default:""},modelValue:{type:String,default:""}},emits:["update:modelValue","update:visible"],setup(f,{emit:l}){const d=f,v=h(()=>new Promise((m,t)=>{(async function(){try{const e=await r(()=>import("./base-editor.1e65d904.js").then(function(a){return a.b}),["assets/base-editor.1e65d904.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css","assets/vue.runtime.esm-bundler.196f46c4.js"]);await r(()=>Promise.resolve({}),["assets/base-editor.59951ec0.css"]),await r(()=>Promise.resolve({}),["assets/vuepress.5dbd54dc.css"]);const n=await r(()=>import("./vuepress.9d7fea63.js").then(function(a){return a.v}),["assets/vuepress.9d7fea63.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css"]),o=await r(()=>import("./prism.5ebc80eb.js").then(function(a){return a.p}),["assets/prism.5ebc80eb.js","assets/index.43b3cbf5.js","assets/index.6c6f5d5b.css"]);e.use(n,{Prism:o}),m(e)}catch(e){t(e)}})()})),i=E(""),_=!0;g(()=>{i.value=d.modelValue});const p=()=>{l("update:visible",!1)},V=()=>{l("update:modelValue",i.value),l("update:visible",!1)};return(m,t)=>{const e=P,n=T;return w(),y(n,{modelValue:_,"onUpdate:modelValue":t[1]||(t[1]=o=>_=o),"destroy-on-close":!0,onClose:p,title:d.title,"show-close":!1,draggable:"",top:"5vh",width:"80%"},{footer:s(()=>[b("span",A,[u(e,{onClick:p},{default:s(()=>[x]),_:1}),u(e,{type:"primary",onClick:V},{default:s(()=>[B]),_:1})])]),default:s(()=>[u(D(v),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=o=>i.value=o),height:"70vh"},null,8,["modelValue"])]),_:1},8,["title"])}}};export{J as default}; diff --git a/src/main/resources/static/assets/refs.4597d917.js b/src/main/resources/static/assets/refs.4597d917.js deleted file mode 100644 index 4b14024..0000000 --- a/src/main/resources/static/assets/refs.4597d917.js +++ /dev/null @@ -1 +0,0 @@ -import{l as t}from"./index.552205f5.js";const e=(...c)=>s=>{c.forEach(o=>{t(o)?o(s):o.value=s})};export{e as c}; diff --git a/src/main/resources/static/assets/refs.f6f7d296.js b/src/main/resources/static/assets/refs.f6f7d296.js new file mode 100644 index 0000000..653b6e5 --- /dev/null +++ b/src/main/resources/static/assets/refs.f6f7d296.js @@ -0,0 +1 @@ +import{l as t}from"./index.43b3cbf5.js";const e=(...c)=>s=>{c.forEach(o=>{t(o)?o(s):o.value=s})};export{e as c}; diff --git a/src/main/resources/static/assets/request.3708b2c4.js b/src/main/resources/static/assets/request.e2daed10.js similarity index 85% rename from src/main/resources/static/assets/request.3708b2c4.js rename to src/main/resources/static/assets/request.e2daed10.js index 703a40a..beca9a9 100644 --- a/src/main/resources/static/assets/request.3708b2c4.js +++ b/src/main/resources/static/assets/request.e2daed10.js @@ -1 +1 @@ -import{s as _e,r as b,u as m,c as O,w as N,W as ne,af as Ce,a3 as Oe,a0 as Ee,d as Y,a as $,f as J,g as X,h as ee,e as W,Q as de,R as fe,p as q,n as x,t as pe,T as me,ax as Te,o as Ne,b as F,k as H,q as Me,F as Pe,j as $e,i as xe,m as oe,Y as ge,l as ve,ao as ae,as as ze,$ as je}from"./index.552205f5.js";import{B as D,au as Ie,av as Le,aw as ye,ax as U,D as A,ay as Be,b as te,u as he,V as G,_ as be,w as Re,d as L,S as De,az as ke,N as Fe,a7 as re,E as ie,a8 as He,R as Ve,I as We,H as Ue,F as Ae,a9 as Je}from"./base.d698891e.js";function z(e){var n;const t=m(e);return(n=t==null?void 0:t.$el)!=null?n:t}const M=D?window:void 0,se=D?window.document:void 0;D&&window.navigator;D&&window.location;function h(...e){let n,t,s,o;if(ye(e[0])?([t,s,o]=e,n=M):[n,t,s,o]=e,!n)return U;let i=U;const r=N(()=>z(n),a=>{i(),a&&(a.addEventListener(t,s,o),i=()=>{a.removeEventListener(t,s,o),i=U})},{immediate:!0,flush:"post"}),l=()=>{r(),i()};return A(l),l}function xt(e,n,t={}){const{window:s=M,ignore:o,capture:i=!0}=t;if(!s)return;const r=b(!0);let l;const a=c=>{s.clearTimeout(l);const v=z(e),d=c.composedPath();!v||v===c.target||d.includes(v)||!r.value||o&&o.length>0&&o.some(f=>{const S=z(f);return S&&(c.target===S||d.includes(S))})||n(c)},u=[h(s,"click",a,{passive:!0,capture:i}),h(s,"pointerdown",c=>{const v=z(e);r.value=!!v&&!c.composedPath().includes(v)},{passive:!0}),h(s,"pointerup",c=>{if(c.button===0){const v=c.composedPath();c.composedPath=()=>v,l=s.setTimeout(()=>a(c),50)}},{passive:!0})];return()=>u.forEach(c=>c())}const K=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Z="__vueuse_ssr_handlers__";K[Z]=K[Z]||{};const qe=K[Z];function Ge(e,n){return qe[e]||n}function Ke(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"||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const Ze={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()}};function zt(e,n,t,s={}){var o;const{flush:i="pre",deep:r=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,shallow:u,window:g=M,eventFilter:c,onError:v=y=>{console.error(y)}}=s,d=(u?_e:b)(n);if(!t)try{t=Ge("getDefaultStorage",()=>{var y;return(y=M)==null?void 0:y.localStorage})()}catch(y){v(y)}if(!t)return d;const f=m(n),S=Ke(f),_=(o=s.serializer)!=null?o:Ze[S],{pause:T,resume:C}=Ie(d,()=>j(d.value),{flush:i,deep:r,eventFilter:c});return g&&l&&h(g,"storage",k),k(),d;function j(y){try{y==null?t.removeItem(e):t.setItem(e,_.write(y))}catch(P){v(P)}}function p(y){if(!(y&&y.key!==e)){T();try{const P=y?y.newValue:t.getItem(e);return P==null?(a&&f!==null&&t.setItem(e,_.write(f)),f):typeof P!="string"?P:_.read(P)}catch(P){v(P)}finally{C()}}}function k(y){y&&y.key!==e||(d.value=p(y))}}var le=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Xe=(e,n)=>{var t={};for(var s in e)Qe.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&le)for(var s of le(e))n.indexOf(s)<0&&Ye.call(e,s)&&(t[s]=e[s]);return t};function et(e,n,t={}){const s=t,{window:o=M}=s,i=Xe(s,["window"]);let r;const l=o&&"ResizeObserver"in o,a=()=>{r&&(r.disconnect(),r=void 0)},u=N(()=>z(e),c=>{a(),l&&o&&c&&(r=new ResizeObserver(n),r.observe(c,i))},{immediate:!0,flush:"post"}),g=()=>{a(),u()};return A(g),{isSupported:l,stop:g}}const I=new Map;function jt(e){const n=Oe();function t(l){var a;const u=I.get(e)||[];u.push(l),I.set(e,u);const g=()=>o(l);return(a=n==null?void 0:n.cleanups)==null||a.push(g),g}function s(l){function a(...u){o(a),l(...u)}return t(a)}function o(l){const a=I.get(e);if(!a)return;const u=a.indexOf(l);u>-1&&a.splice(u,1),a.length||I.delete(e)}function i(){I.delete(e)}function r(l,a){var u;(u=I.get(e))==null||u.forEach(g=>g(l,a))}return{on:t,once:s,off:o,emit:r,reset:i}}const tt=["mousedown","mouseup","keydown","keyup"];function It(e,n={}){const{events:t=tt,document:s=se,initial:o=null}=n,i=b(o);return s&&t.forEach(r=>{h(s,r,l=>{typeof l.getModifierState=="function"&&(i.value=l.getModifierState(e))})}),i}const st={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Lt(e={}){const{reactive:n=!1,target:t=M,aliasMap:s=st,passive:o=!0,onEventFired:i=U}=e,r=ne(new Set),l={toJSON(){return{}},current:r},a=n?ne(l):l,u=new Set;function g(d,f){d in a&&(n?a[d]=f:a[d].value=f)}function c(d,f){var S,_;const T=(S=d.key)==null?void 0:S.toLowerCase(),C=(_=d.code)==null?void 0:_.toLowerCase(),j=[C,T].filter(Boolean);C&&(f?r.add(d.code):r.delete(d.code));for(const p of j)g(p,f);T==="meta"&&!f?(u.forEach(p=>{r.delete(p),g(p,!1)}),u.clear()):typeof d.getModifierState=="function"&&d.getModifierState("Meta")&&f&&[...r,...j].forEach(p=>u.add(p))}t&&(h(t,"keydown",d=>(c(d,!0),i(d)),{passive:o}),h(t,"keyup",d=>(c(d,!1),i(d)),{passive:o}));const v=new Proxy(a,{get(d,f,S){if(typeof f!="string")return Reflect.get(d,f,S);if(f=f.toLowerCase(),f in s&&(f=s[f]),!(f in a))if(/[+_-]/.test(f)){const T=f.split(/[+_-]/g).map(C=>C.trim());a[f]=O(()=>T.every(C=>m(v[C])))}else a[f]=b(!1);const _=Reflect.get(d,f,S);return n?m(_):_}});return v}function Bt(e={}){const{touch:n=!0,drag:t=!0,initialValue:s=!1,window:o=M}=e,i=b(s),r=b(null);if(!o)return{pressed:i,sourceType:r};const l=g=>()=>{i.value=!0,r.value=g},a=()=>{i.value=!1,r.value=null},u=O(()=>z(e.target)||o);return h(u,"mousedown",l("mouse"),{passive:!0}),h(o,"mouseleave",a,{passive:!0}),h(o,"mouseup",a,{passive:!0}),t&&(h(u,"dragstart",l("mouse"),{passive:!0}),h(o,"drop",a,{passive:!0}),h(o,"dragend",a,{passive:!0})),n&&(h(u,"touchstart",l("touch"),{passive:!0}),h(o,"touchend",a,{passive:!0}),h(o,"touchcancel",a,{passive:!0})),{pressed:i,sourceType:r}}var ue=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,at=(e,n)=>{var t={};for(var s in e)nt.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&ue)for(var s of ue(e))n.indexOf(s)<0&&ot.call(e,s)&&(t[s]=e[s]);return t};function rt(e,n,t={}){const s=t,{window:o=M}=s,i=at(s,["window"]);let r;const l=o&&"MutationObserver"in o,a=()=>{r&&(r.disconnect(),r=void 0)},u=N(()=>z(e),c=>{a(),l&&o&&c&&(r=new MutationObserver(n),r.observe(c,i))},{immediate:!0}),g=()=>{a(),u()};return A(g),{isSupported:l,stop:g}}var ce;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ce||(ce={}));let it=0;function Rt(e,n={}){const t=b(!1),{document:s=se,immediate:o=!0,manual:i=!1,id:r=`vueuse_styletag_${++it}`}=n,l=b(e);let a=()=>{};const u=()=>{if(!s)return;const c=s.getElementById(r)||s.createElement("style");c.type="text/css",c.id=r,n.media&&(c.media=n.media),s.head.appendChild(c),!t.value&&(a=N(l,v=>{c.innerText=v},{immediate:!0}),t.value=!0)},g=()=>{!s||!t.value||(a(),s.head.removeChild(s.getElementById(r)),t.value=!1)};return o&&!i&&u(),i||A(g),{id:r,css:l,unload:g,load:u,isLoaded:Ce(t)}}function Dt(e=null,n={}){var t,s;const{document:o=se,observe:i=!1,titleTemplate:r="%s"}=n,l=b((t=e!=null?e:o==null?void 0:o.title)!=null?t:null);return N(l,(a,u)=>{ye(a)&&a!==u&&o&&(o.title=r.replace("%s",a))},{immediate:!0}),i&&o&&rt((s=o.head)==null?void 0:s.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=r.replace("%s",o.title))},{childList:!0}),l}function kt(e,n,t,s={}){var o;const{passive:i=!1,eventName:r,deep:l=!1,defaultValue:a}=s,u=Ee(),g=t||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u));let c=r;n||(n="modelValue"),c=r||c||`update:${n.toString()}`;const v=()=>Be(e[n])?e[n]:a;if(i){const d=b(v());return N(()=>e[n],f=>d.value=f),N(d,f=>{(f!==e[n]||l)&&g(c,f)},{deep:l}),d}else return O({get(){return v()},set(d){g(c,d)}})}function Ft({window:e=M,initialWidth:n=1/0,initialHeight:t=1/0}={}){const s=b(n),o=b(t),i=()=>{e&&(s.value=e.innerWidth,o.value=e.innerHeight)};return i(),Le(i),h("resize",i,{passive:!0}),{width:s,height:o}}const lt=e=>e,ut=te({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),ct=["textContent"],dt={name:"ElBadge"},ft=Y({...dt,props:ut,setup(e,{expose:n}){const t=e,s=he("badge"),o=O(()=>t.isDot?"":G(t.value)&&G(t.max)?t.max($(),J("div",{class:x(m(s).b())},[X(i.$slots,"default"),ee(me,{name:`${m(s).namespace.value}-zoom-in-center`,persisted:""},{default:W(()=>[de(q("sup",{class:x([m(s).e("content"),m(s).em("content",i.type),m(s).is("fixed",!!i.$slots.default),m(s).is("dot",i.isDot)]),textContent:pe(m(o))},null,10,ct),[[fe,!i.hidden&&(m(o)||i.isDot)]])]),_:1},8,["name"])],2))}});var pt=be(ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const mt=Re(pt),Q={},gt=te({a11y:{type:Boolean,default:!0},locale:{type:L(Object)},size:De,button:{type:L(Object)},experimentalFeatures:{type:L(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:L(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Ht=Y({name:"ElConfigProvider",props:gt,setup(e,{slots:n}){N(()=>e.message,s=>{Object.assign(Q,s!=null?s:{})},{immediate:!0,deep:!0});const t=ke(e);return()=>X(n,"default",{config:t==null?void 0:t.value})}}),we=["success","info","warning","error"],w=lt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:D?document.body:void 0}),vt=te({customClass:{type:String,default:w.customClass},center:{type:Boolean,default:w.center},dangerouslyUseHTMLString:{type:Boolean,default:w.dangerouslyUseHTMLString},duration:{type:Number,default:w.duration},icon:{type:Fe,default:w.icon},id:{type:String,default:w.id},message:{type:L([String,Object,Function]),default:w.message},onClose:{type:L(Function),required:!1},showClose:{type:Boolean,default:w.showClose},type:{type:String,values:we,default:w.type},offset:{type:Number,default:w.offset},zIndex:{type:Number,default:w.zIndex},grouping:{type:Boolean,default:w.grouping},repeatNum:{type:Number,default:w.repeatNum}}),yt={destroy:()=>!0},E=Te([]),ht=e=>{const n=E.findIndex(o=>o.id===e),t=E[n];let s;return n>0&&(s=E[n-1]),{current:t,prev:s}},bt=e=>{const{prev:n}=ht(e);return n?n.vm.exposeProxy.bottom:0},wt=["id"],St=["innerHTML"],_t={name:"ElMessage"},Ct=Y({..._t,props:vt,emits:yt,setup(e,{expose:n}){const t=e,{Close:s}=He,o=he("message"),i=b(),r=b(!1),l=b(0);let a;const u=O(()=>t.type?t.type==="error"?"danger":t.type:"info"),g=O(()=>{const p=t.type;return{[o.bm("icon",p)]:p&&re[p]}}),c=O(()=>t.icon||re[t.type]||""),v=O(()=>bt(t.id)),d=O(()=>t.offset+v.value),f=O(()=>l.value+d.value),S=O(()=>({top:`${d.value}px`,zIndex:t.zIndex}));function _(){t.duration!==0&&({stop:a}=Ve(()=>{C()},t.duration))}function T(){a==null||a()}function C(){r.value=!1}function j({code:p}){p===We.esc&&C()}return Ne(()=>{_(),r.value=!0}),N(()=>t.repeatNum,()=>{T(),_()}),h(document,"keydown",j),et(i,()=>{l.value=i.value.getBoundingClientRect().height}),n({visible:r,bottom:f,close:C}),(p,k)=>($(),F(me,{name:m(o).b("fade"),onBeforeLeave:p.onClose,onAfterLeave:k[0]||(k[0]=y=>p.$emit("destroy")),persisted:""},{default:W(()=>[de(q("div",{id:p.id,ref_key:"messageRef",ref:i,class:x([m(o).b(),{[m(o).m(p.type)]:p.type&&!p.icon},m(o).is("center",p.center),m(o).is("closable",p.showClose),p.customClass]),style:xe(m(S)),role:"alert",onMouseenter:T,onMouseleave:_},[p.repeatNum>1?($(),F(m(mt),{key:0,value:p.repeatNum,type:m(u),class:x(m(o).e("badge"))},null,8,["value","type","class"])):H("v-if",!0),m(c)?($(),F(m(ie),{key:1,class:x([m(o).e("icon"),m(g)])},{default:W(()=>[($(),F(Me(m(c))))]),_:1},8,["class"])):H("v-if",!0),X(p.$slots,"default",{},()=>[p.dangerouslyUseHTMLString?($(),J(Pe,{key:1},[H(" Caution here, message could've been compromised, never use user's input as message "),q("p",{class:x(m(o).e("content")),innerHTML:p.message},null,10,St)],2112)):($(),J("p",{key:0,class:x(m(o).e("content"))},pe(p.message),3))]),p.showClose?($(),F(m(ie),{key:2,class:x(m(o).e("closeBtn")),onClick:$e(C,["stop"])},{default:W(()=>[ee(m(s))]),_:1},8,["class","onClick"])):H("v-if",!0)],46,wt),[[fe,r.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ot=be(Ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Et=1;const Se=e=>{const n=!e||oe(e)||ge(e)||ve(e)?{message:e}:e,t={...w,...n};if(oe(t.appendTo)){let s=document.querySelector(t.appendTo);Ae(s)||(s=document.body),t.appendTo=s}return t},Tt=e=>{const n=E.indexOf(e);if(n===-1)return;E.splice(n,1);const{handler:t}=e;t.close()},Nt=({appendTo:e,...n},t)=>{const{nextZIndex:s}=Ue(),o=`message_${Et++}`,i=n.onClose,r=document.createElement("div"),l={...n,zIndex:s()+n.zIndex,id:o,onClose:()=>{i==null||i(),Tt(c)},onDestroy:()=>{ae(null,r)}},a=ee(Ot,l,ve(l.message)||ge(l.message)?{default:l.message}:null);a.appContext=t||R._context,ae(a,r),e.appendChild(r.firstElementChild);const u=a.component,c={id:o,vnode:a,vm:u,handler:{close:()=>{u.exposeProxy.visible=!1}},props:a.component.props};return c},R=(e={},n)=>{if(!D)return{close:()=>{}};if(G(Q.max)&&E.length>=Q.max)return{close:()=>{}};const t=Se(e);if(t.grouping&&E.length){const o=E.find(({vnode:i})=>{var r;return((r=i.props)==null?void 0:r.message)===t.message});if(o)return o.props.repeatNum+=1,o.props.type=t.type,o.handler}const s=Nt(t,n);return E.push(s),s.handler};we.forEach(e=>{R[e]=(n={},t)=>{const s=Se(n);return R({...s,type:e},t)}});function Mt(e){for(const n of E)(!e||e===n.props.type)&&n.handler.close()}R.closeAll=Mt;R._context=null;const V=Je(R,"$message"),B=ze.create({baseURL:je().zfileConfig.baseUrl,timeout:0,headers:{"Content-Type":"application/json;charset=UTF-8;"}});B.interceptors.request.use(e=>{const n=window.localStorage.getItem("zfile-token");return e.url.startsWith("http")||(n&&(e.headers["zfile-token"]=n),e.headers["axios-request"]=!0),console.time(e.url),e},e=>Promise.reject(e));B.interceptors.response.use(e=>{if(console.timeEnd(e.config.url),e.config.responseIntercept===!1)return e;if(e.data.code!==0){if(e.data.code===401&&router.push("/login"),e.config.showDefaultMsg!==!1)if(e.data.code===400){let n=e.data.data,t=Object.keys(n),s;t.length>1?(s="\u975E\u6CD5\u53C2\u6570\uFF01
    ",t.forEach(o=>{s+=`\u5B57\u6BB5[${o}]: ${n[o]}
    `})):s=n[t[0]],V({type:"error",dangerouslyUseHTMLString:!0,grouping:!0,message:s})}else V({type:"error",dangerouslyUseHTMLString:!0,grouping:!0,message:e.data.msg});return Promise.reject(e)}return e.data},e=>{if(e.response&&e.response.status){const n=e.response.data.code;return n===401&&(window.location.href="/login"),e.response.config.showDefaultMsg!==!1&&V(n?{type:"error",grouping:!0,message:e.response.data.msg}:{type:"error",grouping:!0,message:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458"}),Promise.reject(e)}return Promise.reject(e)});const Vt=({method:e,url:n,data:t,config:s})=>(e=e.toLowerCase(),e==="get"?B.get(n,{params:t,...s}):e==="post"?B.post(n,t,{...s}):e==="put"?B.put(n,t,{...s}):e==="delete"?B.delete(n,{params:t,...s}):(console.error("\u672A\u77E5\u7684 method:"+e),Promise.reject("\u4E0D\u652F\u6301\u7684 Method")));export{Ht as C,V as E,kt as a,z as b,et as c,Ft as d,Vt as e,zt as f,Dt as g,It as h,Bt as i,jt as j,mt as k,Rt as l,lt as m,Lt as n,xt as o,h as u}; +import{s as _e,r as b,u as m,c as O,w as N,W as ne,af as Ce,a3 as Oe,a0 as Ee,d as Y,a as $,f as J,g as X,h as ee,e as W,Q as de,R as fe,p as q,n as z,t as pe,T as me,ay as Te,o as Ne,b as F,k as H,q as Me,F as Pe,j as $e,i as ze,m as oe,Y as ge,l as ve,ao as ae,at as je,$ as xe}from"./index.43b3cbf5.js";import{B as D,au as Ie,av as Le,aw as ye,ax as U,D as A,ay as Be,b as te,u as he,V as G,_ as be,w as Re,d as L,S as De,az as ke,N as Fe,a7 as re,E as ie,a8 as He,R as Ve,I as We,H as Ue,F as Ae,a9 as Je}from"./base.4ef7f45b.js";function j(e){var n;const t=m(e);return(n=t==null?void 0:t.$el)!=null?n:t}const M=D?window:void 0,se=D?window.document:void 0;D&&window.navigator;D&&window.location;function h(...e){let n,t,s,o;if(ye(e[0])?([t,s,o]=e,n=M):[n,t,s,o]=e,!n)return U;let i=U;const r=N(()=>j(n),a=>{i(),a&&(a.addEventListener(t,s,o),i=()=>{a.removeEventListener(t,s,o),i=U})},{immediate:!0,flush:"post"}),l=()=>{r(),i()};return A(l),l}function zt(e,n,t={}){const{window:s=M,ignore:o,capture:i=!0}=t;if(!s)return;const r=b(!0);let l;const a=c=>{s.clearTimeout(l);const v=j(e),d=c.composedPath();!v||v===c.target||d.includes(v)||!r.value||o&&o.length>0&&o.some(f=>{const S=j(f);return S&&(c.target===S||d.includes(S))})||n(c)},u=[h(s,"click",a,{passive:!0,capture:i}),h(s,"pointerdown",c=>{const v=j(e);r.value=!!v&&!c.composedPath().includes(v)},{passive:!0}),h(s,"pointerup",c=>{if(c.button===0){const v=c.composedPath();c.composedPath=()=>v,l=s.setTimeout(()=>a(c),50)}},{passive:!0})];return()=>u.forEach(c=>c())}const K=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Z="__vueuse_ssr_handlers__";K[Z]=K[Z]||{};const qe=K[Z];function Ge(e,n){return qe[e]||n}function Ke(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"||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const Ze={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()}};function jt(e,n,t,s={}){var o;const{flush:i="pre",deep:r=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,shallow:u,window:g=M,eventFilter:c,onError:v=y=>{console.error(y)}}=s,d=(u?_e:b)(n);if(!t)try{t=Ge("getDefaultStorage",()=>{var y;return(y=M)==null?void 0:y.localStorage})()}catch(y){v(y)}if(!t)return d;const f=m(n),S=Ke(f),_=(o=s.serializer)!=null?o:Ze[S],{pause:T,resume:C}=Ie(d,()=>x(d.value),{flush:i,deep:r,eventFilter:c});return g&&l&&h(g,"storage",k),k(),d;function x(y){try{y==null?t.removeItem(e):t.setItem(e,_.write(y))}catch(P){v(P)}}function p(y){if(!(y&&y.key!==e)){T();try{const P=y?y.newValue:t.getItem(e);return P==null?(a&&f!==null&&t.setItem(e,_.write(f)),f):typeof P!="string"?P:_.read(P)}catch(P){v(P)}finally{C()}}}function k(y){y&&y.key!==e||(d.value=p(y))}}var le=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Xe=(e,n)=>{var t={};for(var s in e)Qe.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&le)for(var s of le(e))n.indexOf(s)<0&&Ye.call(e,s)&&(t[s]=e[s]);return t};function et(e,n,t={}){const s=t,{window:o=M}=s,i=Xe(s,["window"]);let r;const l=o&&"ResizeObserver"in o,a=()=>{r&&(r.disconnect(),r=void 0)},u=N(()=>j(e),c=>{a(),l&&o&&c&&(r=new ResizeObserver(n),r.observe(c,i))},{immediate:!0,flush:"post"}),g=()=>{a(),u()};return A(g),{isSupported:l,stop:g}}const I=new Map;function xt(e){const n=Oe();function t(l){var a;const u=I.get(e)||[];u.push(l),I.set(e,u);const g=()=>o(l);return(a=n==null?void 0:n.cleanups)==null||a.push(g),g}function s(l){function a(...u){o(a),l(...u)}return t(a)}function o(l){const a=I.get(e);if(!a)return;const u=a.indexOf(l);u>-1&&a.splice(u,1),a.length||I.delete(e)}function i(){I.delete(e)}function r(l,a){var u;(u=I.get(e))==null||u.forEach(g=>g(l,a))}return{on:t,once:s,off:o,emit:r,reset:i}}const tt=["mousedown","mouseup","keydown","keyup"];function It(e,n={}){const{events:t=tt,document:s=se,initial:o=null}=n,i=b(o);return s&&t.forEach(r=>{h(s,r,l=>{typeof l.getModifierState=="function"&&(i.value=l.getModifierState(e))})}),i}const st={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Lt(e={}){const{reactive:n=!1,target:t=M,aliasMap:s=st,passive:o=!0,onEventFired:i=U}=e,r=ne(new Set),l={toJSON(){return{}},current:r},a=n?ne(l):l,u=new Set;function g(d,f){d in a&&(n?a[d]=f:a[d].value=f)}function c(d,f){var S,_;const T=(S=d.key)==null?void 0:S.toLowerCase(),C=(_=d.code)==null?void 0:_.toLowerCase(),x=[C,T].filter(Boolean);C&&(f?r.add(d.code):r.delete(d.code));for(const p of x)g(p,f);T==="meta"&&!f?(u.forEach(p=>{r.delete(p),g(p,!1)}),u.clear()):typeof d.getModifierState=="function"&&d.getModifierState("Meta")&&f&&[...r,...x].forEach(p=>u.add(p))}t&&(h(t,"keydown",d=>(c(d,!0),i(d)),{passive:o}),h(t,"keyup",d=>(c(d,!1),i(d)),{passive:o}));const v=new Proxy(a,{get(d,f,S){if(typeof f!="string")return Reflect.get(d,f,S);if(f=f.toLowerCase(),f in s&&(f=s[f]),!(f in a))if(/[+_-]/.test(f)){const T=f.split(/[+_-]/g).map(C=>C.trim());a[f]=O(()=>T.every(C=>m(v[C])))}else a[f]=b(!1);const _=Reflect.get(d,f,S);return n?m(_):_}});return v}function Bt(e={}){const{touch:n=!0,drag:t=!0,initialValue:s=!1,window:o=M}=e,i=b(s),r=b(null);if(!o)return{pressed:i,sourceType:r};const l=g=>()=>{i.value=!0,r.value=g},a=()=>{i.value=!1,r.value=null},u=O(()=>j(e.target)||o);return h(u,"mousedown",l("mouse"),{passive:!0}),h(o,"mouseleave",a,{passive:!0}),h(o,"mouseup",a,{passive:!0}),t&&(h(u,"dragstart",l("mouse"),{passive:!0}),h(o,"drop",a,{passive:!0}),h(o,"dragend",a,{passive:!0})),n&&(h(u,"touchstart",l("touch"),{passive:!0}),h(o,"touchend",a,{passive:!0}),h(o,"touchcancel",a,{passive:!0})),{pressed:i,sourceType:r}}var ue=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,at=(e,n)=>{var t={};for(var s in e)nt.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&ue)for(var s of ue(e))n.indexOf(s)<0&&ot.call(e,s)&&(t[s]=e[s]);return t};function rt(e,n,t={}){const s=t,{window:o=M}=s,i=at(s,["window"]);let r;const l=o&&"MutationObserver"in o,a=()=>{r&&(r.disconnect(),r=void 0)},u=N(()=>j(e),c=>{a(),l&&o&&c&&(r=new MutationObserver(n),r.observe(c,i))},{immediate:!0}),g=()=>{a(),u()};return A(g),{isSupported:l,stop:g}}var ce;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ce||(ce={}));let it=0;function Rt(e,n={}){const t=b(!1),{document:s=se,immediate:o=!0,manual:i=!1,id:r=`vueuse_styletag_${++it}`}=n,l=b(e);let a=()=>{};const u=()=>{if(!s)return;const c=s.getElementById(r)||s.createElement("style");c.type="text/css",c.id=r,n.media&&(c.media=n.media),s.head.appendChild(c),!t.value&&(a=N(l,v=>{c.innerText=v},{immediate:!0}),t.value=!0)},g=()=>{!s||!t.value||(a(),s.head.removeChild(s.getElementById(r)),t.value=!1)};return o&&!i&&u(),i||A(g),{id:r,css:l,unload:g,load:u,isLoaded:Ce(t)}}function Dt(e=null,n={}){var t,s;const{document:o=se,observe:i=!1,titleTemplate:r="%s"}=n,l=b((t=e!=null?e:o==null?void 0:o.title)!=null?t:null);return N(l,(a,u)=>{ye(a)&&a!==u&&o&&(o.title=r.replace("%s",a))},{immediate:!0}),i&&o&&rt((s=o.head)==null?void 0:s.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=r.replace("%s",o.title))},{childList:!0}),l}function kt(e,n,t,s={}){var o;const{passive:i=!1,eventName:r,deep:l=!1,defaultValue:a}=s,u=Ee(),g=t||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u));let c=r;n||(n="modelValue"),c=r||c||`update:${n.toString()}`;const v=()=>Be(e[n])?e[n]:a;if(i){const d=b(v());return N(()=>e[n],f=>d.value=f),N(d,f=>{(f!==e[n]||l)&&g(c,f)},{deep:l}),d}else return O({get(){return v()},set(d){g(c,d)}})}function Ft({window:e=M,initialWidth:n=1/0,initialHeight:t=1/0}={}){const s=b(n),o=b(t),i=()=>{e&&(s.value=e.innerWidth,o.value=e.innerHeight)};return i(),Le(i),h("resize",i,{passive:!0}),{width:s,height:o}}const lt=e=>e,ut=te({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),ct=["textContent"],dt={name:"ElBadge"},ft=Y({...dt,props:ut,setup(e,{expose:n}){const t=e,s=he("badge"),o=O(()=>t.isDot?"":G(t.value)&&G(t.max)?t.max($(),J("div",{class:z(m(s).b())},[X(i.$slots,"default"),ee(me,{name:`${m(s).namespace.value}-zoom-in-center`,persisted:""},{default:W(()=>[de(q("sup",{class:z([m(s).e("content"),m(s).em("content",i.type),m(s).is("fixed",!!i.$slots.default),m(s).is("dot",i.isDot)]),textContent:pe(m(o))},null,10,ct),[[fe,!i.hidden&&(m(o)||i.isDot)]])]),_:1},8,["name"])],2))}});var pt=be(ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const mt=Re(pt),Q={},gt=te({a11y:{type:Boolean,default:!0},locale:{type:L(Object)},size:De,button:{type:L(Object)},experimentalFeatures:{type:L(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:L(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Ht=Y({name:"ElConfigProvider",props:gt,setup(e,{slots:n}){N(()=>e.message,s=>{Object.assign(Q,s!=null?s:{})},{immediate:!0,deep:!0});const t=ke(e);return()=>X(n,"default",{config:t==null?void 0:t.value})}}),we=["success","info","warning","error"],w=lt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:D?document.body:void 0}),vt=te({customClass:{type:String,default:w.customClass},center:{type:Boolean,default:w.center},dangerouslyUseHTMLString:{type:Boolean,default:w.dangerouslyUseHTMLString},duration:{type:Number,default:w.duration},icon:{type:Fe,default:w.icon},id:{type:String,default:w.id},message:{type:L([String,Object,Function]),default:w.message},onClose:{type:L(Function),required:!1},showClose:{type:Boolean,default:w.showClose},type:{type:String,values:we,default:w.type},offset:{type:Number,default:w.offset},zIndex:{type:Number,default:w.zIndex},grouping:{type:Boolean,default:w.grouping},repeatNum:{type:Number,default:w.repeatNum}}),yt={destroy:()=>!0},E=Te([]),ht=e=>{const n=E.findIndex(o=>o.id===e),t=E[n];let s;return n>0&&(s=E[n-1]),{current:t,prev:s}},bt=e=>{const{prev:n}=ht(e);return n?n.vm.exposeProxy.bottom:0},wt=["id"],St=["innerHTML"],_t={name:"ElMessage"},Ct=Y({..._t,props:vt,emits:yt,setup(e,{expose:n}){const t=e,{Close:s}=He,o=he("message"),i=b(),r=b(!1),l=b(0);let a;const u=O(()=>t.type?t.type==="error"?"danger":t.type:"info"),g=O(()=>{const p=t.type;return{[o.bm("icon",p)]:p&&re[p]}}),c=O(()=>t.icon||re[t.type]||""),v=O(()=>bt(t.id)),d=O(()=>t.offset+v.value),f=O(()=>l.value+d.value),S=O(()=>({top:`${d.value}px`,zIndex:t.zIndex}));function _(){t.duration!==0&&({stop:a}=Ve(()=>{C()},t.duration))}function T(){a==null||a()}function C(){r.value=!1}function x({code:p}){p===We.esc&&C()}return Ne(()=>{_(),r.value=!0}),N(()=>t.repeatNum,()=>{T(),_()}),h(document,"keydown",x),et(i,()=>{l.value=i.value.getBoundingClientRect().height}),n({visible:r,bottom:f,close:C}),(p,k)=>($(),F(me,{name:m(o).b("fade"),onBeforeLeave:p.onClose,onAfterLeave:k[0]||(k[0]=y=>p.$emit("destroy")),persisted:""},{default:W(()=>[de(q("div",{id:p.id,ref_key:"messageRef",ref:i,class:z([m(o).b(),{[m(o).m(p.type)]:p.type&&!p.icon},m(o).is("center",p.center),m(o).is("closable",p.showClose),p.customClass]),style:ze(m(S)),role:"alert",onMouseenter:T,onMouseleave:_},[p.repeatNum>1?($(),F(m(mt),{key:0,value:p.repeatNum,type:m(u),class:z(m(o).e("badge"))},null,8,["value","type","class"])):H("v-if",!0),m(c)?($(),F(m(ie),{key:1,class:z([m(o).e("icon"),m(g)])},{default:W(()=>[($(),F(Me(m(c))))]),_:1},8,["class"])):H("v-if",!0),X(p.$slots,"default",{},()=>[p.dangerouslyUseHTMLString?($(),J(Pe,{key:1},[H(" Caution here, message could've been compromised, never use user's input as message "),q("p",{class:z(m(o).e("content")),innerHTML:p.message},null,10,St)],2112)):($(),J("p",{key:0,class:z(m(o).e("content"))},pe(p.message),3))]),p.showClose?($(),F(m(ie),{key:2,class:z(m(o).e("closeBtn")),onClick:$e(C,["stop"])},{default:W(()=>[ee(m(s))]),_:1},8,["class","onClick"])):H("v-if",!0)],46,wt),[[fe,r.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ot=be(Ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Et=1;const Se=e=>{const n=!e||oe(e)||ge(e)||ve(e)?{message:e}:e,t={...w,...n};if(oe(t.appendTo)){let s=document.querySelector(t.appendTo);Ae(s)||(s=document.body),t.appendTo=s}return t},Tt=e=>{const n=E.indexOf(e);if(n===-1)return;E.splice(n,1);const{handler:t}=e;t.close()},Nt=({appendTo:e,...n},t)=>{const{nextZIndex:s}=Ue(),o=`message_${Et++}`,i=n.onClose,r=document.createElement("div"),l={...n,zIndex:s()+n.zIndex,id:o,onClose:()=>{i==null||i(),Tt(c)},onDestroy:()=>{ae(null,r)}},a=ee(Ot,l,ve(l.message)||ge(l.message)?{default:l.message}:null);a.appContext=t||R._context,ae(a,r),e.appendChild(r.firstElementChild);const u=a.component,c={id:o,vnode:a,vm:u,handler:{close:()=>{u.exposeProxy.visible=!1}},props:a.component.props};return c},R=(e={},n)=>{if(!D)return{close:()=>{}};if(G(Q.max)&&E.length>=Q.max)return{close:()=>{}};const t=Se(e);if(t.grouping&&E.length){const o=E.find(({vnode:i})=>{var r;return((r=i.props)==null?void 0:r.message)===t.message});if(o)return o.props.repeatNum+=1,o.props.type=t.type,o.handler}const s=Nt(t,n);return E.push(s),s.handler};we.forEach(e=>{R[e]=(n={},t)=>{const s=Se(n);return R({...s,type:e},t)}});function Mt(e){for(const n of E)(!e||e===n.props.type)&&n.handler.close()}R.closeAll=Mt;R._context=null;const V=Je(R,"$message"),B=je.create({baseURL:xe().zfileConfig.baseUrl,timeout:0,headers:{"Content-Type":"application/json;charset=UTF-8;"}});B.interceptors.request.use(e=>{const n=window.localStorage.getItem("zfile-token");return e.url.startsWith("http")||(n&&(e.headers["zfile-token"]=n),e.headers["axios-request"]=!0),console.time(e.url),e},e=>Promise.reject(e));B.interceptors.response.use(e=>{if(console.timeEnd(e.config.url),e.config.responseIntercept===!1)return e;if(e.data.code!==0){if(e.data.code===401&&router.push("/login"),e.config.showDefaultMsg!==!1)if(e.data.code===400){let n=e.data.data,t=Object.keys(n),s;t.length>1?(s="\u975E\u6CD5\u53C2\u6570\uFF01
    ",t.forEach(o=>{s+=`\u5B57\u6BB5[${o}]: ${n[o]}
    `})):s=n[t[0]],V({type:"error",dangerouslyUseHTMLString:!0,grouping:!0,message:s})}else V({type:"error",dangerouslyUseHTMLString:!0,grouping:!0,message:e.data.msg});return Promise.reject(e)}return e.data},e=>{if(e.response&&e.response.status){const n=e.response.data.code;return n===401&&(window.location.href="/login"),e.response.config.showDefaultMsg!==!1&&V(n?{type:"error",grouping:!0,message:e.response.data.msg}:{type:"error",grouping:!0,message:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458"}),Promise.reject(e)}return Promise.reject(e)});const Vt=({method:e,url:n,data:t,config:s})=>(e=e.toLowerCase(),e==="get"?B.get(n,{params:t,...s}):e==="post"?B.post(n,t,{...s}):e==="put"?B.put(n,t,{...s}):e==="delete"?B.delete(n,{params:t,...s}):(console.error("\u672A\u77E5\u7684 method:"+e),Promise.reject("\u4E0D\u652F\u6301\u7684 Method")));export{Ht as C,V as E,kt as a,j as b,et as c,Ft as d,Vt as e,jt as f,Dt as g,It as h,Bt as i,xt as j,mt as k,Rt as l,lt as m,Lt as n,zt as o,h as u}; diff --git a/src/main/resources/static/assets/scroll.cbf731df.js b/src/main/resources/static/assets/scroll.90c07eee.js similarity index 94% rename from src/main/resources/static/assets/scroll.cbf731df.js rename to src/main/resources/static/assets/scroll.90c07eee.js index 7d474ea..2d33187 100644 --- a/src/main/resources/static/assets/scroll.cbf731df.js +++ b/src/main/resources/static/assets/scroll.90c07eee.js @@ -1 +1 @@ -import{B as n,a2 as a}from"./base.d698891e.js";const p=(e,t)=>{if(!n)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],l=a(e,o);return["scroll","auto","overlay"].some(r=>l.includes(r))},w=(e,t)=>{if(!n)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(p(o,t))return o;o=o.parentNode}return o};let s;const m=()=>{var e;if(!n)return 0;if(s!==void 0)return s;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const o=t.offsetWidth;t.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",t.appendChild(l);const r=l.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),s=o-r,s};function v(e,t){if(!n)return;if(!t){e.scrollTop=0;return}const o=[];let l=t.offsetParent;for(;l!==null&&e!==l&&e.contains(l);)o.push(l),l=l.offsetParent;const r=t.offsetTop+o.reduce((d,u)=>d+u.offsetTop,0),i=r+t.offsetHeight,c=e.scrollTop,f=c+e.clientHeight;rf&&(e.scrollTop=i-e.clientHeight)}export{m as a,w as g,v as s}; +import{B as n,a2 as a}from"./base.4ef7f45b.js";const p=(e,t)=>{if(!n)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],l=a(e,o);return["scroll","auto","overlay"].some(r=>l.includes(r))},w=(e,t)=>{if(!n)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(p(o,t))return o;o=o.parentNode}return o};let s;const m=()=>{var e;if(!n)return 0;if(s!==void 0)return s;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const o=t.offsetWidth;t.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",t.appendChild(l);const r=l.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),s=o-r,s};function v(e,t){if(!n)return;if(!t){e.scrollTop=0;return}const o=[];let l=t.offsetParent;for(;l!==null&&e!==l&&e.contains(l);)o.push(l),l=l.offsetParent;const r=t.offsetTop+o.reduce((d,u)=>d+u.offsetTop,0),i=r+t.offsetHeight,c=e.scrollTop,f=c+e.clientHeight;rf&&(e.scrollTop=i-e.clientHeight)}export{m as a,w as g,v as s}; diff --git a/src/main/resources/static/assets/scrollbar.193d2636.css b/src/main/resources/static/assets/scrollbar.193d2636.css new file mode 100644 index 0000000..426c3f1 --- /dev/null +++ b/src/main/resources/static/assets/scrollbar.193d2636.css @@ -0,0 +1 @@ +.el-scrollbar{--el-scrollbar-opacity: .3;--el-scrollbar-bg-color: var(--el-text-color-secondary);--el-scrollbar-hover-opacity: .5;--el-scrollbar-hover-bg-color: var(--el-text-color-secondary);overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color, var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity, .3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color, var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity, .5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0} diff --git a/src/main/resources/static/assets/scrollbar.83fe9165.js b/src/main/resources/static/assets/scrollbar.83fe9165.js new file mode 100644 index 0000000..c718f18 --- /dev/null +++ b/src/main/resources/static/assets/scrollbar.83fe9165.js @@ -0,0 +1 @@ +import{B as _,F as y}from"./base.4ef7f45b.js";const l=new Map;let d;_&&(document.addEventListener("mousedown",e=>d=e),document.addEventListener("mouseup",e=>{for(const r of l.values())for(const{documentHandler:o}of r)o(e,d)}));function u(e,r){let o=[];return Array.isArray(r.arg)?o=r.arg:y(r.arg)&&o.push(r.arg),function(t,a){const s=r.instance.popperRef,c=t.target,n=a==null?void 0:a.target,p=!r||!r.instance,b=!c||!n,h=e.contains(c)||e.contains(n),v=e===c,f=o.length&&o.some(i=>i==null?void 0:i.contains(c))||o.length&&o.includes(n),g=s&&(s.contains(c)||s.contains(n));p||b||h||v||f||g||r.value(t,a)}}const m={beforeMount(e,r){l.has(e)||l.set(e,[]),l.get(e).push({documentHandler:u(e,r),bindingFn:r.value})},updated(e,r){l.has(e)||l.set(e,[]);const o=l.get(e),t=o.findIndex(s=>s.bindingFn===r.oldValue),a={documentHandler:u(e,r),bindingFn:r.value};t>=0?o.splice(t,1,a):o.push(a)},unmounted(e){l.delete(e)}};export{m as C}; diff --git a/src/main/resources/static/assets/scrollbar.97fa2ffd.js b/src/main/resources/static/assets/scrollbar.97fa2ffd.js deleted file mode 100644 index 19e49df..0000000 --- a/src/main/resources/static/assets/scrollbar.97fa2ffd.js +++ /dev/null @@ -1 +0,0 @@ -import{B as x,F as m}from"./base.d698891e.js";const e=new Map;let s;x&&(document.addEventListener("mousedown",r=>s=r),document.addEventListener("mouseup",r=>{for(const l of e.values())for(const{documentHandler:o}of l)o(r,s)}));function d(r,l){let o=[];return Array.isArray(l.arg)?o=l.arg:m(l.arg)&&o.push(l.arg),function(t,a){const c=l.instance.popperRef,g=t.target,i=a==null?void 0:a.target,v=!l||!l.instance,b=!g||!i,h=r.contains(g)||r.contains(i),p=r===g,u=o.length&&o.some(n=>n==null?void 0:n.contains(g))||o.length&&o.includes(i),f=c&&(c.contains(g)||c.contains(i));v||b||h||p||u||f||l.value(t,a)}}const w={beforeMount(r,l){e.has(r)||e.set(r,[]),e.get(r).push({documentHandler:d(r,l),bindingFn:l.value})},updated(r,l){e.has(r)||e.set(r,[]);const o=e.get(r),t=o.findIndex(c=>c.bindingFn===l.oldValue),a={documentHandler:d(r,l),bindingFn:l.value};t>=0?o.splice(t,1,a):o.push(a)},unmounted(r){e.delete(r)}};export{w as C}; diff --git a/src/main/resources/static/assets/select.ff52a9e1.js b/src/main/resources/static/assets/select.8acf8bd3.js similarity index 89% rename from src/main/resources/static/assets/select.ff52a9e1.js rename to src/main/resources/static/assets/select.8acf8bd3.js index 951f0a5..83ec656 100644 --- a/src/main/resources/static/assets/select.ff52a9e1.js +++ b/src/main/resources/static/assets/select.8acf8bd3.js @@ -1 +1 @@ -import{E as te,c,w as q,aE as fl,u as _e,a0 as el,d as ke,W as Ee,ad as ll,H as wl,Z as T,Q as fe,R as ol,a as v,f as $,g as oe,p as M,t as G,n as m,j as Q,r as A,o as tl,i as le,s as rl,aF as pe,aG as Xe,a5 as al,v as vl,ae as _,aj as Cl,h as ce,e as E,b as K,F as Je,y as sl,k as B,T as Sl,B as D,aH as Ol,I as kl,q as ul}from"./index.552205f5.js";import{c as ml}from"./request.3708b2c4.js";import{i as El,E as zl}from"./index.4ab44dc8.js";import{E as Ll,a as Il}from"./popper.14a92806.js";import{E as Tl}from"./index.24f1077d.js";import{E as $l,t as Vl}from"./index.3eb5cbdf.js";import{a$ as Ml,X as P,u as ne,_ as ze,T as Bl,G as Dl,W as Pl,o as ql,B as Wl,I as Fl,E as Kl,g as Al,Z as Rl,w as Nl,j as gl}from"./base.d698891e.js";import{u as nl}from"./index.1e624cbf.js";import{U,C as hl}from"./event.776e7e11.js";import{s as Hl}from"./scroll.cbf731df.js";import{l as dl}from"./isEqual.fe8e5f6f.js";import{d as pl}from"./debounce.32892d61.js";import{C as jl}from"./scrollbar.97fa2ffd.js";import{i as xl}from"./validator.6f3b33db.js";const Ql=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Gl=e=>Ml[e||"default"],Ul=e=>({focus:()=>{var l,i;(i=(l=e.value)==null?void 0:l.focus)==null||i.call(l)}}),bl="ElSelectGroup",Le="ElSelect";function Yl(e,l){const i=te(Le),g=te(bl,{disabled:!1}),h=c(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),u=c(()=>i.props.multiple?S(i.props.modelValue,e.value):z(e.value,i.props.modelValue)),a=c(()=>{if(i.props.multiple){const p=i.props.modelValue||[];return!u.value&&p.length>=i.props.multipleLimit&&i.props.multipleLimit>0}else return!1}),d=c(()=>e.label||(h.value?"":e.value)),C=c(()=>e.value||e.label||""),O=c(()=>e.disabled||l.groupDisabled||a.value),f=el(),S=(p=[],b)=>{if(h.value){const y=i.props.valueKey;return p&&p.some(W=>P(W,y)===P(b,y))}else return p&&p.includes(b)},z=(p,b)=>{if(h.value){const{valueKey:y}=i.props;return P(p,y)===P(b,y)}else return p===b},L=()=>{!e.disabled&&!g.disabled&&(i.hoverIndex=i.optionsArray.indexOf(f.proxy))};q(()=>d.value,()=>{!e.created&&!i.props.remote&&i.setSelected()}),q(()=>e.value,(p,b)=>{const{remote:y,valueKey:W}=i.props;if(!e.created&&!y){if(W&&typeof p=="object"&&typeof b=="object"&&p[W]===b[W])return;i.setSelected()}}),q(()=>g.disabled,()=>{l.groupDisabled=g.disabled},{immediate:!0});const{queryChange:n}=fl(i);return q(n,p=>{const{query:b}=_e(p),y=new RegExp(Ql(b),"i");l.visible=y.test(d.value)||e.created,l.visible||i.filteredOptionsCount--}),{select:i,currentLabel:d,currentValue:C,itemSelected:u,isDisabled:O,hoverItem:L}}const Zl=ke({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const l=ne("select"),i=Ee({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:g,itemSelected:h,isDisabled:u,select:a,hoverItem:d}=Yl(e,i),{visible:C,hover:O}=ll(i),f=el().proxy,S=f.value;a.onOptionCreate(f),wl(()=>{const{selected:L}=a,p=(a.props.multiple?L:[L]).some(b=>b.value===f.value);a.cachedOptions.get(S)===f&&!p&&T(()=>{a.cachedOptions.delete(S)}),a.onOptionDestroy(S,f)});function z(){e.disabled!==!0&&i.groupDisabled!==!0&&a.handleOptionSelect(f,!0)}return{ns:l,currentLabel:g,itemSelected:h,isDisabled:u,select:a,hoverItem:d,visible:C,hover:O,selectOptionClick:z,states:i}}});function Xl(e,l,i,g,h,u){return fe((v(),$("li",{class:m([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:l[0]||(l[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:l[1]||(l[1]=Q((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[oe(e.$slots,"default",{},()=>[M("span",null,G(e.currentLabel),1)])],34)),[[ol,e.visible]])}var il=ze(Zl,[["render",Xl],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Jl=ke({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=te(Le),l=ne("select"),i=c(()=>e.props.popperClass),g=c(()=>e.props.multiple),h=c(()=>e.props.fitInputWidth),u=A("");function a(){var d;u.value=`${(d=e.selectWrapper)==null?void 0:d.offsetWidth}px`}return tl(()=>{a(),ml(e.selectWrapper,a)}),{ns:l,minWidth:u,popperClass:i,isMultiple:g,isFitInputWidth:h}}});function _l(e,l,i,g,h,u){return v(),$("div",{class:m([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:le({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[oe(e.$slots,"default")],6)}var eo=ze(Jl,[["render",_l],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function lo(e){const{t:l}=nl();return Ee({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:l("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const oo=(e,l,i)=>{const{t:g}=nl(),h=ne("select"),u=A(null),a=A(null),d=A(null),C=A(null),O=A(null),f=A(null),S=A(-1),z=rl({query:""}),L=rl(""),n=te(Bl,{}),p=te(Dl,{}),b=c(()=>!e.filterable||e.multiple||!l.visible),y=c(()=>e.disabled||n.disabled),W=c(()=>{const o=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!y.value&&l.inputHovering&&o}),ie=c(()=>e.remote&&e.filterable?"":e.suffixIcon),Ie=c(()=>h.is("reverse",ie.value&&l.visible)),ve=c(()=>e.remote?300:0),re=c(()=>e.loading?e.loadingText||g("el.select.loading"):e.remote&&l.query===""&&l.options.size===0?!1:e.filterable&&l.query&&l.options.size>0&&l.filteredOptionsCount===0?e.noMatchText||g("el.select.noMatch"):l.options.size===0?e.noDataText||g("el.select.noData"):null),k=c(()=>Array.from(l.options.values())),Te=c(()=>Array.from(l.cachedOptions.values())),$e=c(()=>{const o=k.value.filter(t=>!t.created).some(t=>t.currentLabel===l.query);return e.filterable&&e.allowCreate&&l.query!==""&&!o}),ee=Pl(),Ve=c(()=>["small"].includes(ee.value)?"small":"default"),Me=c({get(){return l.visible&&re.value!==!1},set(o){l.visible=o}});q([()=>y.value,()=>ee.value,()=>n.size],()=>{T(()=>{F()})}),q(()=>e.placeholder,o=>{l.cachedPlaceHolder=l.currentPlaceholder=o}),q(()=>e.modelValue,(o,t)=>{var r;e.multiple&&(F(),o&&o.length>0||a.value&&l.query!==""?l.currentPlaceholder="":l.currentPlaceholder=l.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(l.query="",N(l.query))),ae(),e.filterable&&!e.multiple&&(l.inputLength=20),dl(o,t)||(r=p.validate)==null||r.call(p,"change").catch(s=>ql())},{flush:"post",deep:!0}),q(()=>l.visible,o=>{var t,r,s;o?((r=(t=d.value)==null?void 0:t.updatePopper)==null||r.call(t),e.filterable&&(l.filteredOptionsCount=l.optionsCount,l.query=e.remote?"":l.selectedLabel,e.multiple?(s=a.value)==null||s.focus():l.selectedLabel&&(l.currentPlaceholder=`${l.selectedLabel}`,l.selectedLabel=""),N(l.query),!e.multiple&&!e.remote&&(z.value.query="",pe(z),pe(L)))):(a.value&&a.value.blur(),l.query="",l.previousQuery=null,l.selectedLabel="",l.inputLength=20,l.menuVisibleOnFocus=!1,Be(),T(()=>{a.value&&a.value.value===""&&l.selected.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)}),e.multiple||(l.selected&&(e.filterable&&e.allowCreate&&l.createdSelected&&l.createdLabel?l.selectedLabel=l.createdLabel:l.selectedLabel=l.selected.currentLabel,e.filterable&&(l.query=l.selectedLabel)),e.filterable&&(l.currentPlaceholder=l.cachedPlaceHolder))),i.emit("visible-change",o)}),q(()=>l.options.entries(),()=>{var o,t,r;if(!Wl)return;(t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o),e.multiple&&F();const s=((r=O.value)==null?void 0:r.querySelectorAll("input"))||[];Array.from(s).includes(document.activeElement)||ae(),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ge()},{flush:"post"}),q(()=>l.hoverIndex,o=>{typeof o=="number"&&o>-1&&(S.value=k.value[o]||{}),k.value.forEach(t=>{t.hover=S.value===t})});const F=()=>{e.collapseTags&&!e.filterable||T(()=>{var o,t;if(!u.value)return;const r=u.value.$el.querySelector("input"),s=C.value,w=Gl(ee.value||n.size);r.style.height=`${(l.selected.length===0?w:Math.max(s?s.clientHeight+(s.clientHeight>w?6:0):0,w))-2}px`,l.tagInMultiLine=Number.parseFloat(r.style.height)>=w,l.visible&&re.value!==!1&&((t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o))})},N=o=>{if(!(l.previousQuery===o||l.isOnComposition)){if(l.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){l.previousQuery=o;return}l.previousQuery=o,T(()=>{var t,r;l.visible&&((r=(t=d.value)==null?void 0:t.updatePopper)==null||r.call(t))}),l.hoverIndex=-1,e.multiple&&e.filterable&&T(()=>{const t=a.value.value.length*15+20;l.inputLength=e.collapseTags?Math.min(50,t):t,me(),F()}),e.remote&&typeof e.remoteMethod=="function"?(l.hoverIndex=-1,e.remoteMethod(o)):typeof e.filterMethod=="function"?(e.filterMethod(o),pe(L)):(l.filteredOptionsCount=l.optionsCount,z.value.query=o,pe(z),pe(L)),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ge()}},me=()=>{l.currentPlaceholder!==""&&(l.currentPlaceholder=a.value.value?"":l.cachedPlaceHolder)},ge=()=>{const o=k.value.filter(s=>s.visible&&!s.disabled&&!s.states.groupDisabled),t=o.find(s=>s.created),r=o[0];l.hoverIndex=se(k.value,t||r)},ae=()=>{var o;if(e.multiple)l.selectedLabel="";else{const r=he(e.modelValue);(o=r.props)!=null&&o.created?(l.createdLabel=r.props.value,l.createdSelected=!0):l.createdSelected=!1,l.selectedLabel=r.currentLabel,l.selected=r,e.filterable&&(l.query=l.selectedLabel);return}const t=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(r=>{t.push(he(r))}),l.selected=t,T(()=>{F()})},he=o=>{let t;const r=Xe(o).toLowerCase()==="object",s=Xe(o).toLowerCase()==="null",w=Xe(o).toLowerCase()==="undefined";for(let R=l.cachedOptions.size-1;R>=0;R--){const V=Te.value[R];if(r?P(V.value,e.valueKey)===P(o,e.valueKey):V.value===o){t={value:o,currentLabel:V.currentLabel,isDisabled:V.isDisabled};break}}if(t)return t;const j=r?o.label:!s&&!w?o:"",x={value:o,currentLabel:j};return e.multiple&&(x.hitState=!1),x},Be=()=>{setTimeout(()=>{const o=e.valueKey;e.multiple?l.selected.length>0?l.hoverIndex=Math.min.apply(null,l.selected.map(t=>k.value.findIndex(r=>P(r,o)===P(t,o)))):l.hoverIndex=-1:l.hoverIndex=k.value.findIndex(t=>X(t)===X(l.selected))},300)},De=()=>{var o,t;Pe(),(t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o),e.multiple&&!e.filterable&&F()},Pe=()=>{var o;l.inputWidth=(o=u.value)==null?void 0:o.$el.getBoundingClientRect().width},qe=()=>{e.filterable&&l.query!==l.selectedLabel&&(l.query=l.selectedLabel,N(l.query))},We=pl(()=>{qe()},ve.value),Fe=pl(o=>{N(o.target.value)},ve.value),Y=o=>{dl(e.modelValue,o)||i.emit(hl,o)},Ke=o=>{if(o.target.value.length<=0&&!ue()){const t=e.modelValue.slice();t.pop(),i.emit(U,t),Y(t)}o.target.value.length===1&&e.modelValue.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)},Ae=(o,t)=>{const r=l.selected.indexOf(t);if(r>-1&&!y.value){const s=e.modelValue.slice();s.splice(r,1),i.emit(U,s),Y(s),i.emit("remove-tag",t.value)}o.stopPropagation()},Z=o=>{o.stopPropagation();const t=e.multiple?[]:"";if(typeof t!="string")for(const r of l.selected)r.isDisabled&&t.push(r.value);i.emit(U,t),Y(t),l.visible=!1,i.emit("clear")},be=(o,t)=>{var r;if(e.multiple){const s=(e.modelValue||[]).slice(),w=se(s,o.value);w>-1?s.splice(w,1):(e.multipleLimit<=0||s.length{H(o)})},se=(o=[],t)=>{if(!al(t))return o.indexOf(t);const r=e.valueKey;let s=-1;return o.some((w,j)=>P(w,r)===P(t,r)?(s=j,!0):!1),s},Re=()=>{l.softFocus=!0;const o=a.value||u.value;o&&(o==null||o.focus())},H=o=>{var t,r,s,w,j;const x=Array.isArray(o)?o[0]:o;let R=null;if(x!=null&&x.value){const V=k.value.filter(I=>I.value===x.value);V.length>0&&(R=V[0].$el)}if(d.value&&R){const V=(w=(s=(r=(t=d.value)==null?void 0:t.popperRef)==null?void 0:r.contentRef)==null?void 0:s.querySelector)==null?void 0:w.call(s,`.${h.be("dropdown","wrap")}`);V&&Hl(V,R)}(j=f.value)==null||j.handleScroll()},Ne=o=>{l.optionsCount++,l.filteredOptionsCount++,l.options.set(o.value,o),l.cachedOptions.set(o.value,o)},He=(o,t)=>{l.options.get(o)===t&&(l.optionsCount--,l.filteredOptionsCount--,l.options.delete(o))},je=o=>{o.code!==Fl.backspace&&ue(!1),l.inputLength=a.value.value.length*15+20,F()},ue=o=>{if(!Array.isArray(l.selected))return;const t=l.selected[l.selected.length-1];if(!!t)return o===!0||o===!1?(t.hitState=o,o):(t.hitState=!t.hitState,t.hitState)},de=o=>{const t=o.target.value;if(o.type==="compositionend")l.isOnComposition=!1,T(()=>N(t));else{const r=t[t.length-1]||"";l.isOnComposition=!El(r)}},ye=()=>{T(()=>H(l.selected))},xe=o=>{l.softFocus?l.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!l.visible&&(l.menuVisibleOnFocus=!0),l.visible=!0),i.emit("focus",o))},we=()=>{var o;l.visible=!1,(o=u.value)==null||o.blur()},Qe=o=>{T(()=>{l.isSilentBlur?l.isSilentBlur=!1:i.emit("blur",o)}),l.softFocus=!1},Ge=o=>{Z(o)},Ue=()=>{l.visible=!1},Ce=o=>{l.visible&&(o.preventDefault(),o.stopPropagation(),l.visible=!1)},Se=()=>{var o;e.automaticDropdown||y.value||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:l.visible=!l.visible,l.visible&&((o=a.value||u.value)==null||o.focus()))},Ye=()=>{l.visible?k.value[l.hoverIndex]&&be(k.value[l.hoverIndex],void 0):Se()},X=o=>al(o.value)?P(o.value,e.valueKey):o.value,Ze=c(()=>k.value.filter(o=>o.visible).every(o=>o.disabled)),Oe=o=>{if(!l.visible){l.visible=!0;return}if(!(l.options.size===0||l.filteredOptionsCount===0)&&!l.isOnComposition&&!Ze.value){o==="next"?(l.hoverIndex++,l.hoverIndex===l.options.size&&(l.hoverIndex=0)):o==="prev"&&(l.hoverIndex--,l.hoverIndex<0&&(l.hoverIndex=l.options.size-1));const t=k.value[l.hoverIndex];(t.disabled===!0||t.states.groupDisabled===!0||!t.visible)&&Oe(o),T(()=>H(S.value))}};return{optionsArray:k,selectSize:ee,handleResize:De,debouncedOnInputChange:We,debouncedQueryChange:Fe,deletePrevTag:Ke,deleteTag:Ae,deleteSelected:Z,handleOptionSelect:be,scrollToOption:H,readonly:b,resetInputHeight:F,showClose:W,iconComponent:ie,iconReverse:Ie,showNewOption:$e,collapseTagSize:Ve,setSelected:ae,managePlaceholder:me,selectDisabled:y,emptyText:re,toggleLastOptionHitState:ue,resetInputState:je,handleComposition:de,onOptionCreate:Ne,onOptionDestroy:He,handleMenuEnter:ye,handleFocus:xe,blur:we,handleBlur:Qe,handleClearClick:Ge,handleClose:Ue,handleKeydownEscape:Ce,toggleMenu:Se,selectOption:Ye,getValueKey:X,navigateOptions:Oe,dropMenuVisible:Me,queryChange:z,groupQueryChange:L,reference:u,input:a,tooltipRef:d,tags:C,selectWrapper:O,scrollbar:f}},cl="ElSelect",to=ke({name:cl,componentName:cl,components:{ElInput:zl,ElSelectMenu:eo,ElOption:il,ElTag:$l,ElScrollbar:Tl,ElTooltip:Ll,ElIcon:Kl},directives:{ClickOutside:jl},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:xl},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Il.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Al},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Rl},tagType:{...Vl.type,default:"info"}},emits:[U,hl,"remove-tag","clear","visible-change","focus","blur"],setup(e,l){const i=ne("select"),g=ne("input"),{t:h}=nl(),u=lo(e),{optionsArray:a,selectSize:d,readonly:C,handleResize:O,collapseTagSize:f,debouncedOnInputChange:S,debouncedQueryChange:z,deletePrevTag:L,deleteTag:n,deleteSelected:p,handleOptionSelect:b,scrollToOption:y,setSelected:W,resetInputHeight:ie,managePlaceholder:Ie,showClose:ve,selectDisabled:re,iconComponent:k,iconReverse:Te,showNewOption:$e,emptyText:ee,toggleLastOptionHitState:Ve,resetInputState:Me,handleComposition:F,onOptionCreate:N,onOptionDestroy:me,handleMenuEnter:ge,handleFocus:ae,blur:he,handleBlur:Be,handleClearClick:De,handleClose:Pe,handleKeydownEscape:qe,toggleMenu:We,selectOption:Fe,getValueKey:Y,navigateOptions:Ke,dropMenuVisible:Ae,reference:Z,input:be,tooltipRef:se,tags:Re,selectWrapper:H,scrollbar:Ne,queryChange:He,groupQueryChange:je}=oo(e,u,l),{focus:ue}=Ul(Z),{inputWidth:de,selected:ye,inputLength:xe,filteredOptionsCount:we,visible:Qe,softFocus:Ge,selectedLabel:Ue,hoverIndex:Ce,query:Se,inputHovering:Ye,currentPlaceholder:X,menuVisibleOnFocus:Ze,isOnComposition:Oe,isSilentBlur:o,options:t,cachedOptions:r,optionsCount:s,prefixWidth:w,tagInMultiLine:j}=ll(u),x=c(()=>{const I=[i.b()],J=_e(d);return J&&I.push(i.m(J)),e.disabled&&I.push(i.m("disabled")),I}),R=c(()=>({maxWidth:`${_e(de)-32}px`,width:"100%"}));vl(Le,Ee({props:e,options:t,optionsArray:a,cachedOptions:r,optionsCount:s,filteredOptionsCount:we,hoverIndex:Ce,handleOptionSelect:b,onOptionCreate:N,onOptionDestroy:me,selectWrapper:H,selected:ye,setSelected:W,queryChange:He,groupQueryChange:je})),tl(()=>{u.cachedPlaceHolder=X.value=e.placeholder||h("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(X.value=""),ml(H,O),e.remote&&e.multiple&&ie(),T(()=>{const I=Z.value&&Z.value.$el;if(!!I&&(de.value=I.getBoundingClientRect().width,l.slots.prefix)){const J=I.querySelector(`.${g.e("prefix")}`);w.value=Math.max(J.getBoundingClientRect().width+5,30)}}),W()}),e.multiple&&!Array.isArray(e.modelValue)&&l.emit(U,[]),!e.multiple&&Array.isArray(e.modelValue)&&l.emit(U,"");const V=c(()=>{var I,J;return(J=(I=se.value)==null?void 0:I.popperRef)==null?void 0:J.contentRef});return{tagInMultiLine:j,prefixWidth:w,selectSize:d,readonly:C,handleResize:O,collapseTagSize:f,debouncedOnInputChange:S,debouncedQueryChange:z,deletePrevTag:L,deleteTag:n,deleteSelected:p,handleOptionSelect:b,scrollToOption:y,inputWidth:de,selected:ye,inputLength:xe,filteredOptionsCount:we,visible:Qe,softFocus:Ge,selectedLabel:Ue,hoverIndex:Ce,query:Se,inputHovering:Ye,currentPlaceholder:X,menuVisibleOnFocus:Ze,isOnComposition:Oe,isSilentBlur:o,options:t,resetInputHeight:ie,managePlaceholder:Ie,showClose:ve,selectDisabled:re,iconComponent:k,iconReverse:Te,showNewOption:$e,emptyText:ee,toggleLastOptionHitState:Ve,resetInputState:Me,handleComposition:F,handleMenuEnter:ge,handleFocus:ae,blur:he,handleBlur:Be,handleClearClick:De,handleClose:Pe,handleKeydownEscape:qe,toggleMenu:We,selectOption:Fe,getValueKey:Y,navigateOptions:Ke,dropMenuVisible:Ae,focus:ue,reference:Z,input:be,tooltipRef:se,popperPaneRef:V,tags:Re,selectWrapper:H,scrollbar:Ne,wrapperKls:x,selectTagsStyle:R,nsSelect:i}}}),no={class:"select-trigger"},io=["disabled","autocomplete"],ro={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ao(e,l,i,g,h,u){const a=_("el-tag"),d=_("el-tooltip"),C=_("el-icon"),O=_("el-input"),f=_("el-option"),S=_("el-scrollbar"),z=_("el-select-menu"),L=Cl("click-outside");return fe((v(),$("div",{ref:"selectWrapper",class:m(e.wrapperKls),onClick:l[23]||(l[23]=Q((...n)=>e.toggleMenu&&e.toggleMenu(...n),["stop"]))},[ce(d,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":l[22]||(l[22]=n=>e.dropMenuVisible=n),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:E(()=>[M("div",no,[e.multiple?(v(),$("div",{key:0,ref:"tags",class:m(e.nsSelect.e("tags")),style:le(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(v(),$("span",{key:0,class:m([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ce(a,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:l[0]||(l[0]=n=>e.deleteTag(n,e.selected[0]))},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-123+"px"})},G(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(v(),K(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:E(()=>[e.collapseTagsTooltip?(v(),K(d,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text"))},"+ "+G(e.selected.length-1),3)]),content:E(()=>[M("div",{class:m(e.nsSelect.e("collapse-tags"))},[(v(!0),$(Je,null,sl(e.selected.slice(1),(n,p)=>(v(),$("div",{key:p,class:m(e.nsSelect.e("collapse-tag"))},[(v(),K(a,{key:e.getValueKey(n),class:"in-tooltip",closable:!e.selectDisabled&&!n.isDisabled,size:e.collapseTagSize,hit:n.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:b=>e.deleteTag(b,n)},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-75+"px"})},G(n.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(v(),$("span",{key:1,class:m(e.nsSelect.e("tags-text"))},"+ "+G(e.selected.length-1),3))]),_:1},8,["size","type"])):B("v-if",!0)],2)):B("v-if",!0),B("
    "),e.collapseTags?B("v-if",!0):(v(),K(Sl,{key:1,onAfterLeave:e.resetInputHeight},{default:E(()=>[M("span",{class:m([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(v(!0),$(Je,null,sl(e.selected,n=>(v(),K(a,{key:e.getValueKey(n),closable:!e.selectDisabled&&!n.isDisabled,size:e.collapseTagSize,hit:n.hitState,type:e.tagType,"disable-transitions":"",onClose:p=>e.deleteTag(p,n)},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-75+"px"})},G(n.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),B("
    "),e.filterable?fe((v(),$("input",{key:2,ref:"input","onUpdate:modelValue":l[1]||(l[1]=n=>e.query=n),type:"text",class:m([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:le({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:l[2]||(l[2]=(...n)=>e.handleFocus&&e.handleFocus(...n)),onBlur:l[3]||(l[3]=(...n)=>e.handleBlur&&e.handleBlur(...n)),onKeyup:l[4]||(l[4]=(...n)=>e.managePlaceholder&&e.managePlaceholder(...n)),onKeydown:[l[5]||(l[5]=(...n)=>e.resetInputState&&e.resetInputState(...n)),l[6]||(l[6]=D(Q(n=>e.navigateOptions("next"),["prevent"]),["down"])),l[7]||(l[7]=D(Q(n=>e.navigateOptions("prev"),["prevent"]),["up"])),l[8]||(l[8]=D((...n)=>e.handleKeydownEscape&&e.handleKeydownEscape(...n),["esc"])),l[9]||(l[9]=D(Q((...n)=>e.selectOption&&e.selectOption(...n),["stop","prevent"]),["enter"])),l[10]||(l[10]=D((...n)=>e.deletePrevTag&&e.deletePrevTag(...n),["delete"])),l[11]||(l[11]=D(n=>e.visible=!1,["tab"]))],onCompositionstart:l[12]||(l[12]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onCompositionupdate:l[13]||(l[13]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onCompositionend:l[14]||(l[14]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onInput:l[15]||(l[15]=(...n)=>e.debouncedQueryChange&&e.debouncedQueryChange(...n))},null,46,io)),[[Ol,e.query]]):B("v-if",!0)],6)):B("v-if",!0),ce(O,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":l[16]||(l[16]=n=>e.selectedLabel=n),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:m([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[l[17]||(l[17]=D(Q(n=>e.navigateOptions("next"),["stop","prevent"]),["down"])),l[18]||(l[18]=D(Q(n=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),D(Q(e.selectOption,["stop","prevent"]),["enter"]),D(e.handleKeydownEscape,["esc"]),l[19]||(l[19]=D(n=>e.visible=!1,["tab"]))],onMouseenter:l[20]||(l[20]=n=>e.inputHovering=!0),onMouseleave:l[21]||(l[21]=n=>e.inputHovering=!1)},kl({suffix:E(()=>[e.iconComponent&&!e.showClose?(v(),K(C,{key:0,class:m([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:E(()=>[(v(),K(ul(e.iconComponent)))]),_:1},8,["class"])):B("v-if",!0),e.showClose&&e.clearIcon?(v(),K(C,{key:1,class:m([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:E(()=>[(v(),K(ul(e.clearIcon)))]),_:1},8,["class","onClick"])):B("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:E(()=>[M("div",ro,[oe(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:E(()=>[ce(z,null,{default:E(()=>[fe(ce(S,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:m([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:E(()=>[e.showNewOption?(v(),K(f,{key:0,value:e.query,created:!0},null,8,["value"])):B("v-if",!0),oe(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[ol,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(v(),$(Je,{key:0},[e.$slots.empty?oe(e.$slots,"empty",{key:0}):(v(),$("p",{key:1,class:m(e.nsSelect.be("dropdown","empty"))},G(e.emptyText),3))],64)):B("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[L,e.handleClose,e.popperPaneRef]])}var so=ze(to,[["render",ao],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const uo=ke({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const l=ne("select"),i=A(!0),g=el(),h=A([]);vl(bl,Ee({...ll(e)}));const u=te(Le);tl(()=>{h.value=a(g.subTree)});const a=C=>{const O=[];return Array.isArray(C.children)&&C.children.forEach(f=>{var S;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?O.push(f.component.proxy):(S=f.children)!=null&&S.length&&O.push(...a(f))}),O},{groupQueryChange:d}=fl(u);return q(d,()=>{i.value=h.value.some(C=>C.visible===!0)}),{visible:i,ns:l}}});function po(e,l,i,g,h,u){return fe((v(),$("ul",{class:m(e.ns.be("group","wrap"))},[M("li",{class:m(e.ns.be("group","title"))},G(e.label),3),M("li",null,[M("ul",{class:m(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[ol,e.visible]])}var yl=ze(uo,[["render",po],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const zo=Nl(so,{Option:il,OptionGroup:yl}),Lo=gl(il);gl(yl);export{Lo as E,zo as a}; +import{E as te,c,w as q,aF as fl,u as _e,a0 as el,d as ke,W as Ee,ad as ll,H as wl,Z as T,Q as fe,R as ol,a as v,f as V,g as oe,p as M,t as G,n as m,j as Q,r as A,o as tl,i as le,s as rl,aG as pe,aH as Xe,a5 as al,v as vl,ae as _,aj as Cl,h as ce,e as E,b as K,F as Je,y as sl,k as B,T as Sl,B as D,aI as Ol,I as kl,q as ul}from"./index.43b3cbf5.js";import{c as ml}from"./request.e2daed10.js";import{i as El,E as zl}from"./index.da7dbe5d.js";import{E as Ll,a as Il}from"./popper.718d36e0.js";import{E as Tl}from"./index.88f36c37.js";import{E as Vl,t as $l}from"./index.9c287fed.js";import{b1 as Ml,X as P,u as ne,_ as ze,T as Bl,G as Dl,W as Pl,o as ql,B as Wl,I as Fl,E as Kl,g as Al,Z as Rl,w as Nl,j as gl}from"./base.4ef7f45b.js";import{u as nl}from"./index.566ad052.js";import{U,C as hl}from"./event.776e7e11.js";import{s as Hl}from"./scroll.90c07eee.js";import{l as dl}from"./isEqual.2263846a.js";import{d as pl}from"./debounce.014e7b6e.js";import{C as jl}from"./scrollbar.83fe9165.js";import{i as xl}from"./validator.b1ae6965.js";const Ql=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Gl=e=>Ml[e||"default"],Ul=e=>({focus:()=>{var l,i;(i=(l=e.value)==null?void 0:l.focus)==null||i.call(l)}}),bl="ElSelectGroup",Le="ElSelect";function Yl(e,l){const i=te(Le),g=te(bl,{disabled:!1}),h=c(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),u=c(()=>i.props.multiple?S(i.props.modelValue,e.value):z(e.value,i.props.modelValue)),a=c(()=>{if(i.props.multiple){const p=i.props.modelValue||[];return!u.value&&p.length>=i.props.multipleLimit&&i.props.multipleLimit>0}else return!1}),d=c(()=>e.label||(h.value?"":e.value)),C=c(()=>e.value||e.label||""),O=c(()=>e.disabled||l.groupDisabled||a.value),f=el(),S=(p=[],b)=>{if(h.value){const y=i.props.valueKey;return p&&p.some(W=>P(W,y)===P(b,y))}else return p&&p.includes(b)},z=(p,b)=>{if(h.value){const{valueKey:y}=i.props;return P(p,y)===P(b,y)}else return p===b},L=()=>{!e.disabled&&!g.disabled&&(i.hoverIndex=i.optionsArray.indexOf(f.proxy))};q(()=>d.value,()=>{!e.created&&!i.props.remote&&i.setSelected()}),q(()=>e.value,(p,b)=>{const{remote:y,valueKey:W}=i.props;if(!e.created&&!y){if(W&&typeof p=="object"&&typeof b=="object"&&p[W]===b[W])return;i.setSelected()}}),q(()=>g.disabled,()=>{l.groupDisabled=g.disabled},{immediate:!0});const{queryChange:n}=fl(i);return q(n,p=>{const{query:b}=_e(p),y=new RegExp(Ql(b),"i");l.visible=y.test(d.value)||e.created,l.visible||i.filteredOptionsCount--}),{select:i,currentLabel:d,currentValue:C,itemSelected:u,isDisabled:O,hoverItem:L}}const Zl=ke({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const l=ne("select"),i=Ee({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:g,itemSelected:h,isDisabled:u,select:a,hoverItem:d}=Yl(e,i),{visible:C,hover:O}=ll(i),f=el().proxy,S=f.value;a.onOptionCreate(f),wl(()=>{const{selected:L}=a,p=(a.props.multiple?L:[L]).some(b=>b.value===f.value);a.cachedOptions.get(S)===f&&!p&&T(()=>{a.cachedOptions.delete(S)}),a.onOptionDestroy(S,f)});function z(){e.disabled!==!0&&i.groupDisabled!==!0&&a.handleOptionSelect(f,!0)}return{ns:l,currentLabel:g,itemSelected:h,isDisabled:u,select:a,hoverItem:d,visible:C,hover:O,selectOptionClick:z,states:i}}});function Xl(e,l,i,g,h,u){return fe((v(),V("li",{class:m([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:l[0]||(l[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:l[1]||(l[1]=Q((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[oe(e.$slots,"default",{},()=>[M("span",null,G(e.currentLabel),1)])],34)),[[ol,e.visible]])}var il=ze(Zl,[["render",Xl],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Jl=ke({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=te(Le),l=ne("select"),i=c(()=>e.props.popperClass),g=c(()=>e.props.multiple),h=c(()=>e.props.fitInputWidth),u=A("");function a(){var d;u.value=`${(d=e.selectWrapper)==null?void 0:d.offsetWidth}px`}return tl(()=>{a(),ml(e.selectWrapper,a)}),{ns:l,minWidth:u,popperClass:i,isMultiple:g,isFitInputWidth:h}}});function _l(e,l,i,g,h,u){return v(),V("div",{class:m([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:le({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[oe(e.$slots,"default")],6)}var eo=ze(Jl,[["render",_l],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function lo(e){const{t:l}=nl();return Ee({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:l("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const oo=(e,l,i)=>{const{t:g}=nl(),h=ne("select"),u=A(null),a=A(null),d=A(null),C=A(null),O=A(null),f=A(null),S=A(-1),z=rl({query:""}),L=rl(""),n=te(Bl,{}),p=te(Dl,{}),b=c(()=>!e.filterable||e.multiple||!l.visible),y=c(()=>e.disabled||n.disabled),W=c(()=>{const o=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!y.value&&l.inputHovering&&o}),ie=c(()=>e.remote&&e.filterable?"":e.suffixIcon),Ie=c(()=>h.is("reverse",ie.value&&l.visible)),ve=c(()=>e.remote?300:0),re=c(()=>e.loading?e.loadingText||g("el.select.loading"):e.remote&&l.query===""&&l.options.size===0?!1:e.filterable&&l.query&&l.options.size>0&&l.filteredOptionsCount===0?e.noMatchText||g("el.select.noMatch"):l.options.size===0?e.noDataText||g("el.select.noData"):null),k=c(()=>Array.from(l.options.values())),Te=c(()=>Array.from(l.cachedOptions.values())),Ve=c(()=>{const o=k.value.filter(t=>!t.created).some(t=>t.currentLabel===l.query);return e.filterable&&e.allowCreate&&l.query!==""&&!o}),ee=Pl(),$e=c(()=>["small"].includes(ee.value)?"small":"default"),Me=c({get(){return l.visible&&re.value!==!1},set(o){l.visible=o}});q([()=>y.value,()=>ee.value,()=>n.size],()=>{T(()=>{F()})}),q(()=>e.placeholder,o=>{l.cachedPlaceHolder=l.currentPlaceholder=o}),q(()=>e.modelValue,(o,t)=>{var r;e.multiple&&(F(),o&&o.length>0||a.value&&l.query!==""?l.currentPlaceholder="":l.currentPlaceholder=l.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(l.query="",N(l.query))),ae(),e.filterable&&!e.multiple&&(l.inputLength=20),dl(o,t)||(r=p.validate)==null||r.call(p,"change").catch(s=>ql())},{flush:"post",deep:!0}),q(()=>l.visible,o=>{var t,r,s;o?((r=(t=d.value)==null?void 0:t.updatePopper)==null||r.call(t),e.filterable&&(l.filteredOptionsCount=l.optionsCount,l.query=e.remote?"":l.selectedLabel,e.multiple?(s=a.value)==null||s.focus():l.selectedLabel&&(l.currentPlaceholder=`${l.selectedLabel}`,l.selectedLabel=""),N(l.query),!e.multiple&&!e.remote&&(z.value.query="",pe(z),pe(L)))):(a.value&&a.value.blur(),l.query="",l.previousQuery=null,l.selectedLabel="",l.inputLength=20,l.menuVisibleOnFocus=!1,Be(),T(()=>{a.value&&a.value.value===""&&l.selected.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)}),e.multiple||(l.selected&&(e.filterable&&e.allowCreate&&l.createdSelected&&l.createdLabel?l.selectedLabel=l.createdLabel:l.selectedLabel=l.selected.currentLabel,e.filterable&&(l.query=l.selectedLabel)),e.filterable&&(l.currentPlaceholder=l.cachedPlaceHolder))),i.emit("visible-change",o)}),q(()=>l.options.entries(),()=>{var o,t,r;if(!Wl)return;(t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o),e.multiple&&F();const s=((r=O.value)==null?void 0:r.querySelectorAll("input"))||[];Array.from(s).includes(document.activeElement)||ae(),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ge()},{flush:"post"}),q(()=>l.hoverIndex,o=>{typeof o=="number"&&o>-1&&(S.value=k.value[o]||{}),k.value.forEach(t=>{t.hover=S.value===t})});const F=()=>{e.collapseTags&&!e.filterable||T(()=>{var o,t;if(!u.value)return;const r=u.value.$el.querySelector("input"),s=C.value,w=Gl(ee.value||n.size);r.style.height=`${(l.selected.length===0?w:Math.max(s?s.clientHeight+(s.clientHeight>w?6:0):0,w))-2}px`,l.tagInMultiLine=Number.parseFloat(r.style.height)>=w,l.visible&&re.value!==!1&&((t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o))})},N=o=>{if(!(l.previousQuery===o||l.isOnComposition)){if(l.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){l.previousQuery=o;return}l.previousQuery=o,T(()=>{var t,r;l.visible&&((r=(t=d.value)==null?void 0:t.updatePopper)==null||r.call(t))}),l.hoverIndex=-1,e.multiple&&e.filterable&&T(()=>{const t=a.value.value.length*15+20;l.inputLength=e.collapseTags?Math.min(50,t):t,me(),F()}),e.remote&&typeof e.remoteMethod=="function"?(l.hoverIndex=-1,e.remoteMethod(o)):typeof e.filterMethod=="function"?(e.filterMethod(o),pe(L)):(l.filteredOptionsCount=l.optionsCount,z.value.query=o,pe(z),pe(L)),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ge()}},me=()=>{l.currentPlaceholder!==""&&(l.currentPlaceholder=a.value.value?"":l.cachedPlaceHolder)},ge=()=>{const o=k.value.filter(s=>s.visible&&!s.disabled&&!s.states.groupDisabled),t=o.find(s=>s.created),r=o[0];l.hoverIndex=se(k.value,t||r)},ae=()=>{var o;if(e.multiple)l.selectedLabel="";else{const r=he(e.modelValue);(o=r.props)!=null&&o.created?(l.createdLabel=r.props.value,l.createdSelected=!0):l.createdSelected=!1,l.selectedLabel=r.currentLabel,l.selected=r,e.filterable&&(l.query=l.selectedLabel);return}const t=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(r=>{t.push(he(r))}),l.selected=t,T(()=>{F()})},he=o=>{let t;const r=Xe(o).toLowerCase()==="object",s=Xe(o).toLowerCase()==="null",w=Xe(o).toLowerCase()==="undefined";for(let R=l.cachedOptions.size-1;R>=0;R--){const $=Te.value[R];if(r?P($.value,e.valueKey)===P(o,e.valueKey):$.value===o){t={value:o,currentLabel:$.currentLabel,isDisabled:$.isDisabled};break}}if(t)return t;const j=r?o.label:!s&&!w?o:"",x={value:o,currentLabel:j};return e.multiple&&(x.hitState=!1),x},Be=()=>{setTimeout(()=>{const o=e.valueKey;e.multiple?l.selected.length>0?l.hoverIndex=Math.min.apply(null,l.selected.map(t=>k.value.findIndex(r=>P(r,o)===P(t,o)))):l.hoverIndex=-1:l.hoverIndex=k.value.findIndex(t=>X(t)===X(l.selected))},300)},De=()=>{var o,t;Pe(),(t=(o=d.value)==null?void 0:o.updatePopper)==null||t.call(o),e.multiple&&!e.filterable&&F()},Pe=()=>{var o;l.inputWidth=(o=u.value)==null?void 0:o.$el.getBoundingClientRect().width},qe=()=>{e.filterable&&l.query!==l.selectedLabel&&(l.query=l.selectedLabel,N(l.query))},We=pl(()=>{qe()},ve.value),Fe=pl(o=>{N(o.target.value)},ve.value),Y=o=>{dl(e.modelValue,o)||i.emit(hl,o)},Ke=o=>{if(o.target.value.length<=0&&!ue()){const t=e.modelValue.slice();t.pop(),i.emit(U,t),Y(t)}o.target.value.length===1&&e.modelValue.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)},Ae=(o,t)=>{const r=l.selected.indexOf(t);if(r>-1&&!y.value){const s=e.modelValue.slice();s.splice(r,1),i.emit(U,s),Y(s),i.emit("remove-tag",t.value)}o.stopPropagation()},Z=o=>{o.stopPropagation();const t=e.multiple?[]:"";if(typeof t!="string")for(const r of l.selected)r.isDisabled&&t.push(r.value);i.emit(U,t),Y(t),l.visible=!1,i.emit("clear")},be=(o,t)=>{var r;if(e.multiple){const s=(e.modelValue||[]).slice(),w=se(s,o.value);w>-1?s.splice(w,1):(e.multipleLimit<=0||s.length{H(o)})},se=(o=[],t)=>{if(!al(t))return o.indexOf(t);const r=e.valueKey;let s=-1;return o.some((w,j)=>P(w,r)===P(t,r)?(s=j,!0):!1),s},Re=()=>{l.softFocus=!0;const o=a.value||u.value;o&&(o==null||o.focus())},H=o=>{var t,r,s,w,j;const x=Array.isArray(o)?o[0]:o;let R=null;if(x!=null&&x.value){const $=k.value.filter(I=>I.value===x.value);$.length>0&&(R=$[0].$el)}if(d.value&&R){const $=(w=(s=(r=(t=d.value)==null?void 0:t.popperRef)==null?void 0:r.contentRef)==null?void 0:s.querySelector)==null?void 0:w.call(s,`.${h.be("dropdown","wrap")}`);$&&Hl($,R)}(j=f.value)==null||j.handleScroll()},Ne=o=>{l.optionsCount++,l.filteredOptionsCount++,l.options.set(o.value,o),l.cachedOptions.set(o.value,o)},He=(o,t)=>{l.options.get(o)===t&&(l.optionsCount--,l.filteredOptionsCount--,l.options.delete(o))},je=o=>{o.code!==Fl.backspace&&ue(!1),l.inputLength=a.value.value.length*15+20,F()},ue=o=>{if(!Array.isArray(l.selected))return;const t=l.selected[l.selected.length-1];if(!!t)return o===!0||o===!1?(t.hitState=o,o):(t.hitState=!t.hitState,t.hitState)},de=o=>{const t=o.target.value;if(o.type==="compositionend")l.isOnComposition=!1,T(()=>N(t));else{const r=t[t.length-1]||"";l.isOnComposition=!El(r)}},ye=()=>{T(()=>H(l.selected))},xe=o=>{l.softFocus?l.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!l.visible&&(l.menuVisibleOnFocus=!0),l.visible=!0),i.emit("focus",o))},we=()=>{var o;l.visible=!1,(o=u.value)==null||o.blur()},Qe=o=>{T(()=>{l.isSilentBlur?l.isSilentBlur=!1:i.emit("blur",o)}),l.softFocus=!1},Ge=o=>{Z(o)},Ue=()=>{l.visible=!1},Ce=o=>{l.visible&&(o.preventDefault(),o.stopPropagation(),l.visible=!1)},Se=()=>{var o;e.automaticDropdown||y.value||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:l.visible=!l.visible,l.visible&&((o=a.value||u.value)==null||o.focus()))},Ye=()=>{l.visible?k.value[l.hoverIndex]&&be(k.value[l.hoverIndex],void 0):Se()},X=o=>al(o.value)?P(o.value,e.valueKey):o.value,Ze=c(()=>k.value.filter(o=>o.visible).every(o=>o.disabled)),Oe=o=>{if(!l.visible){l.visible=!0;return}if(!(l.options.size===0||l.filteredOptionsCount===0)&&!l.isOnComposition&&!Ze.value){o==="next"?(l.hoverIndex++,l.hoverIndex===l.options.size&&(l.hoverIndex=0)):o==="prev"&&(l.hoverIndex--,l.hoverIndex<0&&(l.hoverIndex=l.options.size-1));const t=k.value[l.hoverIndex];(t.disabled===!0||t.states.groupDisabled===!0||!t.visible)&&Oe(o),T(()=>H(S.value))}};return{optionsArray:k,selectSize:ee,handleResize:De,debouncedOnInputChange:We,debouncedQueryChange:Fe,deletePrevTag:Ke,deleteTag:Ae,deleteSelected:Z,handleOptionSelect:be,scrollToOption:H,readonly:b,resetInputHeight:F,showClose:W,iconComponent:ie,iconReverse:Ie,showNewOption:Ve,collapseTagSize:$e,setSelected:ae,managePlaceholder:me,selectDisabled:y,emptyText:re,toggleLastOptionHitState:ue,resetInputState:je,handleComposition:de,onOptionCreate:Ne,onOptionDestroy:He,handleMenuEnter:ye,handleFocus:xe,blur:we,handleBlur:Qe,handleClearClick:Ge,handleClose:Ue,handleKeydownEscape:Ce,toggleMenu:Se,selectOption:Ye,getValueKey:X,navigateOptions:Oe,dropMenuVisible:Me,queryChange:z,groupQueryChange:L,reference:u,input:a,tooltipRef:d,tags:C,selectWrapper:O,scrollbar:f}},cl="ElSelect",to=ke({name:cl,componentName:cl,components:{ElInput:zl,ElSelectMenu:eo,ElOption:il,ElTag:Vl,ElScrollbar:Tl,ElTooltip:Ll,ElIcon:Kl},directives:{ClickOutside:jl},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:xl},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Il.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Al},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Rl},tagType:{...$l.type,default:"info"}},emits:[U,hl,"remove-tag","clear","visible-change","focus","blur"],setup(e,l){const i=ne("select"),g=ne("input"),{t:h}=nl(),u=lo(e),{optionsArray:a,selectSize:d,readonly:C,handleResize:O,collapseTagSize:f,debouncedOnInputChange:S,debouncedQueryChange:z,deletePrevTag:L,deleteTag:n,deleteSelected:p,handleOptionSelect:b,scrollToOption:y,setSelected:W,resetInputHeight:ie,managePlaceholder:Ie,showClose:ve,selectDisabled:re,iconComponent:k,iconReverse:Te,showNewOption:Ve,emptyText:ee,toggleLastOptionHitState:$e,resetInputState:Me,handleComposition:F,onOptionCreate:N,onOptionDestroy:me,handleMenuEnter:ge,handleFocus:ae,blur:he,handleBlur:Be,handleClearClick:De,handleClose:Pe,handleKeydownEscape:qe,toggleMenu:We,selectOption:Fe,getValueKey:Y,navigateOptions:Ke,dropMenuVisible:Ae,reference:Z,input:be,tooltipRef:se,tags:Re,selectWrapper:H,scrollbar:Ne,queryChange:He,groupQueryChange:je}=oo(e,u,l),{focus:ue}=Ul(Z),{inputWidth:de,selected:ye,inputLength:xe,filteredOptionsCount:we,visible:Qe,softFocus:Ge,selectedLabel:Ue,hoverIndex:Ce,query:Se,inputHovering:Ye,currentPlaceholder:X,menuVisibleOnFocus:Ze,isOnComposition:Oe,isSilentBlur:o,options:t,cachedOptions:r,optionsCount:s,prefixWidth:w,tagInMultiLine:j}=ll(u),x=c(()=>{const I=[i.b()],J=_e(d);return J&&I.push(i.m(J)),e.disabled&&I.push(i.m("disabled")),I}),R=c(()=>({maxWidth:`${_e(de)-32}px`,width:"100%"}));vl(Le,Ee({props:e,options:t,optionsArray:a,cachedOptions:r,optionsCount:s,filteredOptionsCount:we,hoverIndex:Ce,handleOptionSelect:b,onOptionCreate:N,onOptionDestroy:me,selectWrapper:H,selected:ye,setSelected:W,queryChange:He,groupQueryChange:je})),tl(()=>{u.cachedPlaceHolder=X.value=e.placeholder||h("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(X.value=""),ml(H,O),e.remote&&e.multiple&&ie(),T(()=>{const I=Z.value&&Z.value.$el;if(!!I&&(de.value=I.getBoundingClientRect().width,l.slots.prefix)){const J=I.querySelector(`.${g.e("prefix")}`);w.value=Math.max(J.getBoundingClientRect().width+5,30)}}),W()}),e.multiple&&!Array.isArray(e.modelValue)&&l.emit(U,[]),!e.multiple&&Array.isArray(e.modelValue)&&l.emit(U,"");const $=c(()=>{var I,J;return(J=(I=se.value)==null?void 0:I.popperRef)==null?void 0:J.contentRef});return{tagInMultiLine:j,prefixWidth:w,selectSize:d,readonly:C,handleResize:O,collapseTagSize:f,debouncedOnInputChange:S,debouncedQueryChange:z,deletePrevTag:L,deleteTag:n,deleteSelected:p,handleOptionSelect:b,scrollToOption:y,inputWidth:de,selected:ye,inputLength:xe,filteredOptionsCount:we,visible:Qe,softFocus:Ge,selectedLabel:Ue,hoverIndex:Ce,query:Se,inputHovering:Ye,currentPlaceholder:X,menuVisibleOnFocus:Ze,isOnComposition:Oe,isSilentBlur:o,options:t,resetInputHeight:ie,managePlaceholder:Ie,showClose:ve,selectDisabled:re,iconComponent:k,iconReverse:Te,showNewOption:Ve,emptyText:ee,toggleLastOptionHitState:$e,resetInputState:Me,handleComposition:F,handleMenuEnter:ge,handleFocus:ae,blur:he,handleBlur:Be,handleClearClick:De,handleClose:Pe,handleKeydownEscape:qe,toggleMenu:We,selectOption:Fe,getValueKey:Y,navigateOptions:Ke,dropMenuVisible:Ae,focus:ue,reference:Z,input:be,tooltipRef:se,popperPaneRef:$,tags:Re,selectWrapper:H,scrollbar:Ne,wrapperKls:x,selectTagsStyle:R,nsSelect:i}}}),no={class:"select-trigger"},io=["disabled","autocomplete"],ro={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ao(e,l,i,g,h,u){const a=_("el-tag"),d=_("el-tooltip"),C=_("el-icon"),O=_("el-input"),f=_("el-option"),S=_("el-scrollbar"),z=_("el-select-menu"),L=Cl("click-outside");return fe((v(),V("div",{ref:"selectWrapper",class:m(e.wrapperKls),onClick:l[23]||(l[23]=Q((...n)=>e.toggleMenu&&e.toggleMenu(...n),["stop"]))},[ce(d,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":l[22]||(l[22]=n=>e.dropMenuVisible=n),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:E(()=>[M("div",no,[e.multiple?(v(),V("div",{key:0,ref:"tags",class:m(e.nsSelect.e("tags")),style:le(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(v(),V("span",{key:0,class:m([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ce(a,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:l[0]||(l[0]=n=>e.deleteTag(n,e.selected[0]))},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-123+"px"})},G(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(v(),K(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:E(()=>[e.collapseTagsTooltip?(v(),K(d,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text"))},"+ "+G(e.selected.length-1),3)]),content:E(()=>[M("div",{class:m(e.nsSelect.e("collapse-tags"))},[(v(!0),V(Je,null,sl(e.selected.slice(1),(n,p)=>(v(),V("div",{key:p,class:m(e.nsSelect.e("collapse-tag"))},[(v(),K(a,{key:e.getValueKey(n),class:"in-tooltip",closable:!e.selectDisabled&&!n.isDisabled,size:e.collapseTagSize,hit:n.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:b=>e.deleteTag(b,n)},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-75+"px"})},G(n.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(v(),V("span",{key:1,class:m(e.nsSelect.e("tags-text"))},"+ "+G(e.selected.length-1),3))]),_:1},8,["size","type"])):B("v-if",!0)],2)):B("v-if",!0),B("
    "),e.collapseTags?B("v-if",!0):(v(),K(Sl,{key:1,onAfterLeave:e.resetInputHeight},{default:E(()=>[M("span",{class:m([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(v(!0),V(Je,null,sl(e.selected,n=>(v(),K(a,{key:e.getValueKey(n),closable:!e.selectDisabled&&!n.isDisabled,size:e.collapseTagSize,hit:n.hitState,type:e.tagType,"disable-transitions":"",onClose:p=>e.deleteTag(p,n)},{default:E(()=>[M("span",{class:m(e.nsSelect.e("tags-text")),style:le({maxWidth:e.inputWidth-75+"px"})},G(n.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),B("
    "),e.filterable?fe((v(),V("input",{key:2,ref:"input","onUpdate:modelValue":l[1]||(l[1]=n=>e.query=n),type:"text",class:m([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:le({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:l[2]||(l[2]=(...n)=>e.handleFocus&&e.handleFocus(...n)),onBlur:l[3]||(l[3]=(...n)=>e.handleBlur&&e.handleBlur(...n)),onKeyup:l[4]||(l[4]=(...n)=>e.managePlaceholder&&e.managePlaceholder(...n)),onKeydown:[l[5]||(l[5]=(...n)=>e.resetInputState&&e.resetInputState(...n)),l[6]||(l[6]=D(Q(n=>e.navigateOptions("next"),["prevent"]),["down"])),l[7]||(l[7]=D(Q(n=>e.navigateOptions("prev"),["prevent"]),["up"])),l[8]||(l[8]=D((...n)=>e.handleKeydownEscape&&e.handleKeydownEscape(...n),["esc"])),l[9]||(l[9]=D(Q((...n)=>e.selectOption&&e.selectOption(...n),["stop","prevent"]),["enter"])),l[10]||(l[10]=D((...n)=>e.deletePrevTag&&e.deletePrevTag(...n),["delete"])),l[11]||(l[11]=D(n=>e.visible=!1,["tab"]))],onCompositionstart:l[12]||(l[12]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onCompositionupdate:l[13]||(l[13]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onCompositionend:l[14]||(l[14]=(...n)=>e.handleComposition&&e.handleComposition(...n)),onInput:l[15]||(l[15]=(...n)=>e.debouncedQueryChange&&e.debouncedQueryChange(...n))},null,46,io)),[[Ol,e.query]]):B("v-if",!0)],6)):B("v-if",!0),ce(O,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":l[16]||(l[16]=n=>e.selectedLabel=n),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:m([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[l[17]||(l[17]=D(Q(n=>e.navigateOptions("next"),["stop","prevent"]),["down"])),l[18]||(l[18]=D(Q(n=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),D(Q(e.selectOption,["stop","prevent"]),["enter"]),D(e.handleKeydownEscape,["esc"]),l[19]||(l[19]=D(n=>e.visible=!1,["tab"]))],onMouseenter:l[20]||(l[20]=n=>e.inputHovering=!0),onMouseleave:l[21]||(l[21]=n=>e.inputHovering=!1)},kl({suffix:E(()=>[e.iconComponent&&!e.showClose?(v(),K(C,{key:0,class:m([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:E(()=>[(v(),K(ul(e.iconComponent)))]),_:1},8,["class"])):B("v-if",!0),e.showClose&&e.clearIcon?(v(),K(C,{key:1,class:m([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:E(()=>[(v(),K(ul(e.clearIcon)))]),_:1},8,["class","onClick"])):B("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:E(()=>[M("div",ro,[oe(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:E(()=>[ce(z,null,{default:E(()=>[fe(ce(S,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:m([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:E(()=>[e.showNewOption?(v(),K(f,{key:0,value:e.query,created:!0},null,8,["value"])):B("v-if",!0),oe(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[ol,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(v(),V(Je,{key:0},[e.$slots.empty?oe(e.$slots,"empty",{key:0}):(v(),V("p",{key:1,class:m(e.nsSelect.be("dropdown","empty"))},G(e.emptyText),3))],64)):B("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[L,e.handleClose,e.popperPaneRef]])}var so=ze(to,[["render",ao],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const uo=ke({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const l=ne("select"),i=A(!0),g=el(),h=A([]);vl(bl,Ee({...ll(e)}));const u=te(Le);tl(()=>{h.value=a(g.subTree)});const a=C=>{const O=[];return Array.isArray(C.children)&&C.children.forEach(f=>{var S;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?O.push(f.component.proxy):(S=f.children)!=null&&S.length&&O.push(...a(f))}),O},{groupQueryChange:d}=fl(u);return q(d,()=>{i.value=h.value.some(C=>C.visible===!0)}),{visible:i,ns:l}}});function po(e,l,i,g,h,u){return fe((v(),V("ul",{class:m(e.ns.be("group","wrap"))},[M("li",{class:m(e.ns.be("group","title"))},G(e.label),3),M("li",null,[M("ul",{class:m(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[ol,e.visible]])}var yl=ze(uo,[["render",po],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const zo=Nl(so,{Option:il,OptionGroup:yl}),Lo=gl(il);gl(yl);export{Lo as E,zo as a}; diff --git a/src/main/resources/static/assets/setting.6f3ba85b.js b/src/main/resources/static/assets/setting.6f3ba85b.js deleted file mode 100644 index 79d83e7..0000000 --- a/src/main/resources/static/assets/setting.6f3ba85b.js +++ /dev/null @@ -1 +0,0 @@ -import t from"./basic-setting.06f7761c.js";import{b as o}from"./route-block.9b0645f8.js";import{a as r,b as m}from"./index.552205f5.js";import"./base.d698891e.js";/* empty css */import"./ZFormItem.7a4b4758.js";import"./index.c92ded65.js";import"./plugin-vue_export-helper.21dcd24c.js";/* empty css */import"./radio.427cda7a.js";import"./event.776e7e11.js";import"./index.4ab44dc8.js";import"./request.3708b2c4.js";import"./switch.2393edfd.js";import"./validator.6f3b33db.js";/* empty css */import"./useLinkSetting.49293b3b.js";import"./admin-setting.158855e4.js";import"./directive.e250a256.js";const p={__name:"setting",setup(i){return(e,a)=>(r(),m(t))}};typeof o=="function"&&o(p);export{p as default}; diff --git a/src/main/resources/static/assets/setting.86037418.js b/src/main/resources/static/assets/setting.86037418.js new file mode 100644 index 0000000..fc844f7 --- /dev/null +++ b/src/main/resources/static/assets/setting.86037418.js @@ -0,0 +1 @@ +import t from"./basic-setting.31261c22.js";import{b as o}from"./route-block.9b0645f8.js";import{a as r,b as m}from"./index.43b3cbf5.js";import"./base.4ef7f45b.js";/* empty css */import"./ZFormItem.899c4541.js";import"./index.5cf4e3bb.js";import"./plugin-vue_export-helper.21dcd24c.js";/* empty css */import"./radio.35753592.js";import"./event.776e7e11.js";import"./index.da7dbe5d.js";import"./request.e2daed10.js";import"./switch.87050cd5.js";import"./validator.b1ae6965.js";/* empty css */import"./useLinkSetting.acb89768.js";import"./admin-setting.28847312.js";import"./directive.378eb0e0.js";const p={__name:"setting",setup(i){return(e,a)=>(r(),m(t))}};typeof o=="function"&&o(p);export{p as default}; diff --git a/src/main/resources/static/assets/site-setting.45584336.css b/src/main/resources/static/assets/site-setting.45584336.css deleted file mode 100644 index d119073..0000000 --- a/src/main/resources/static/assets/site-setting.45584336.css +++ /dev/null @@ -1 +0,0 @@ -.el-button[data-v-9690cabc],.el-input[data-v-9690cabc] input{height:35px} diff --git a/src/main/resources/static/assets/site-setting.9446c34b.js b/src/main/resources/static/assets/site-setting.9446c34b.js new file mode 100644 index 0000000..d16333c --- /dev/null +++ b/src/main/resources/static/assets/site-setting.9446c34b.js @@ -0,0 +1 @@ +import{a as U,b as C,h as i,aA as w,$ as F,r as y,w as N,u as e,Q as h,e as a,k as z,J as m}from"./index.43b3cbf5.js";import{aO as L,x as D,aP as $,r as q}from"./base.4ef7f45b.js";/* empty css */import{Z as R,a as T}from"./ZFormItem.899c4541.js";/* empty css */import{E as I}from"./input-number.4b8b8203.js";/* empty css */import{l as M,u as Z}from"./admin-setting.28847312.js";import{E as A}from"./request.e2daed10.js";import{b as k}from"./route-block.9b0645f8.js";import{_ as G}from"./plugin-vue_export-helper.21dcd24c.js";import{E as S}from"./index.439070da.js";import{r as J}from"./BadgeCheckIcon.8153a115.js";import{E as O}from"./index.da7dbe5d.js";import{v as P}from"./directive.378eb0e0.js";import"./index.5cf4e3bb.js";import"./event.776e7e11.js";import"./index.566ad052.js";import"./index.7fa0be7b.js";import"./event.3ec63147.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";function Q(p,u){return U(),C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i("path",{"fill-rule":"evenodd",d:"M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function j(){const{data:p,loading:u,reload:t}=w(M,{formatResult:_=>_.data}),{loading:f,run:c}=w(Z,{manual:!0,onSuccess(){A({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}});return{data:p,dataLoading:u,reload:t,saveData:()=>{c(p.value)},saveLoading:f}}const H=m(" \u7AD9\u70B9\u4FE1\u606F "),K=m(" \u8BF7\u586B\u5199\u60A8\u7684\u7AD9\u70B9\u4FE1\u606F "),W=m("\u6B64\u5730\u5740\u7528\u4E8E\u751F\u6210\u76F4\u94FE\u53CA\u672C\u6B21\u5B58\u50A8\u4E0B\u8F7D\u4F7F\u7528\uFF0C\u8BF7\u52A1\u5FC5\u4FDD\u6301\u548C\u670D\u52A1\u7AEF\u5730\u5740\u4E00\u6837."),X=m("\u524D\u540E\u7AEF\u5206\u79BB\u540E\uFF0C\u9700\u914D\u7F6E\u6B64\u5730\u5740\uFF0C\u4F1A\u5F71\u54CD 401\u3001403\u3001404 \u9875\u9762\u7684\u8DF3\u8F6C."),Y=m("\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u53F3\u4E0A\u89D2\u5934\u50CF\u5730\u5740\uFF0C\u63A8\u8350\u5C3A\u5BF8\u4E3A 35 * 35."),ee=m("\u4FDD\u5B58\u8BBE\u7F6E"),B={__name:"site-setting",setup(p){let u=F();const{data:t,dataLoading:f,saveData:c,saveLoading:V}=j();let _=y({siteName:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}],domain:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E\u7AEF\u7AD9\u70B9\u57DF\u540D"},{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D"}],frontDomain:[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D"}],avatar:[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u5934\u50CF\u5730\u5740\uFF0C\u9700\u4EE5 http \u6216 https \u5F00\u5934"}]});const b=y(),g=()=>{b.value.validate(v=>{v&&c()})};return N(()=>f.value,(v,o)=>{if(o===!0){let l=u.zfileConfig.baseUrl||window.location.origin,r=t.value.domain;if(l!==r)S.confirm(`\u68C0\u6D4B\u5230\u670D\u52A1\u7AEF\u5730\u5740\u4E3A ${l}\uFF0C\u5F53\u524D\u914D\u7F6E\u7AD9\u70B9\u57DF\u540D\u4E3A ${r}\uFF0C\u662F\u5426\u81EA\u52A8\u8FDB\u884C\u4FEE\u6B63\uFF1F\uFF08\u4E0D\u4FEE\u6B63\u53EF\u80FD\u4F1A\u5F71\u54CD\u4E0B\u8F7D\u3001\u6587\u4EF6\u5939\u52A0\u5BC6\u548C\u6587\u6863\u9884\u89C8\u529F\u80FD\uFF09`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:s=>{s==="confirm"&&(t.value.domain=l,g())}});else{let s=t.value.frontDomain,d=window.location.origin;u.zfileConfig.baseUrl!==""&&s!==d&&S.confirm(`\u68C0\u6D4B\u5230\u5F53\u524D\u4E3A\u524D\u540E\u7AEF\u5206\u79BB\u6A21\u5F0F\uFF0C\u8BBF\u95EE\u57DF\u540D\u4E3A ${d}\uFF0C\u5F53\u524D\u914D\u7F6E\u524D\u7AEF\u7AD9\u70B9\u57DF\u540D\u4E3A ${s}\uFF0C\u662F\u5426\u81EA\u52A8\u8FDB\u884C\u4FEE\u6B63\uFF1F\uFF08\u4E0D\u4FEE\u6B63\u53EF\u80FD\u4F1A\u9632\u76D7\u94FE\u529F\u80FD\uFF09`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:x=>{x==="confirm"&&(t.value.frontDomain=d,g())}})}}}),(v,o)=>{const l=O,r=R,s=I,d=q,x=T,E=P;return e(t)?h((U(),C(x,{key:0,model:e(t),rules:e(_),ref_key:"siteSettingForm",ref:b},{"form-title":a(()=>[H]),"form-sub-title":a(()=>[K]),footer:a(()=>[i(d,{type:"primary",size:"default",icon:e(J),onClick:g},{default:a(()=>[ee]),_:1},8,["icon"])]),default:a(()=>[i(r,{prop:"siteName",label:"\u7AD9\u70B9\u540D\u79F0"},{default:a(()=>[i(l,{id:"siteName","prefix-icon":e(L),modelValue:e(t).siteName,"onUpdate:modelValue":o[0]||(o[0]=n=>e(t).siteName=n)},null,8,["prefix-icon","modelValue"])]),_:1}),i(r,{prop:"domain",label:"\u540E\u7AEF\u7AD9\u70B9\u57DF\u540D"},{tips:a(()=>[W]),default:a(()=>[i(l,{id:"domain","prefix-icon":e(D),modelValue:e(t).domain,"onUpdate:modelValue":o[1]||(o[1]=n=>e(t).domain=n)},null,8,["prefix-icon","modelValue"])]),_:1}),i(r,{prop:"frontDomain",label:"\u524D\u7AEF\u7AD9\u70B9\u57DF\u540D"},{tips:a(()=>[X]),default:a(()=>[i(l,{"prefix-icon":e(D),modelValue:e(t).frontDomain,"onUpdate:modelValue":o[2]||(o[2]=n=>e(t).frontDomain=n)},null,8,["prefix-icon","modelValue"])]),_:1}),i(r,{prop:"avatar",label:"\u5934\u50CF\u5730\u5740"},{tips:a(()=>[Y]),default:a(()=>[i(l,{id:"avatar","prefix-icon":e($),modelValue:e(t).avatar,"onUpdate:modelValue":o[3]||(o[3]=n=>e(t).avatar=n)},null,8,["prefix-icon","modelValue"])]),_:1}),i(r,{label:"\u5907\u6848\u53F7"},{default:a(()=>[i(l,{id:"icp","prefix-icon":e(Q),modelValue:e(t).icp,"onUpdate:modelValue":o[4]||(o[4]=n=>e(t).icp=n)},null,8,["prefix-icon","modelValue"])]),_:1}),i(r,{label:"\u6700\u5927\u540C\u65F6\u4E0A\u4F20\u6587\u4EF6\u6570"},{default:a(()=>[i(s,{id:"maxFileUploads",modelValue:e(t).maxFileUploads,"onUpdate:modelValue":o[5]||(o[5]=n=>e(t).maxFileUploads=n),min:1,max:99},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[E,e(V)]]):z("",!0)}}};typeof k=="function"&&k(B);var Se=G(B,[["__scopeId","data-v-121e9c7e"]]);export{Se as default}; diff --git a/src/main/resources/static/assets/site-setting.b462a513.css b/src/main/resources/static/assets/site-setting.b462a513.css new file mode 100644 index 0000000..f010430 --- /dev/null +++ b/src/main/resources/static/assets/site-setting.b462a513.css @@ -0,0 +1 @@ +.el-button[data-v-121e9c7e],.el-input[data-v-121e9c7e] input{height:35px} diff --git a/src/main/resources/static/assets/site-setting.e81161ad.js b/src/main/resources/static/assets/site-setting.e81161ad.js deleted file mode 100644 index bdced86..0000000 --- a/src/main/resources/static/assets/site-setting.e81161ad.js +++ /dev/null @@ -1 +0,0 @@ -import{a as C,b as h,h as i,az as w,$ as z,r as y,w as N,u as e,Q as E,e as o,k as U,J as m}from"./index.552205f5.js";import{aO as F,x as D,aP as L,r as $}from"./base.d698891e.js";/* empty css */import{Z as q,a as R}from"./ZFormItem.7a4b4758.js";/* empty css *//* empty css */import{l as T,u as I}from"./admin-setting.158855e4.js";import{E as M}from"./request.3708b2c4.js";import{b as k}from"./route-block.9b0645f8.js";import{_ as Z}from"./plugin-vue_export-helper.21dcd24c.js";import{E as S}from"./index.11692625.js";import{r as A}from"./BadgeCheckIcon.09c2c42b.js";import{E as G}from"./index.4ab44dc8.js";import{v as J}from"./directive.e250a256.js";import"./index.c92ded65.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./event.776e7e11.js";function O(p,u){return C(),h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i("path",{"fill-rule":"evenodd",d:"M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function P(){const{data:p,loading:u,reload:t}=w(T,{formatResult:_=>_.data}),{loading:f,run:c}=w(I,{manual:!0,onSuccess(){M({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}});return{data:p,dataLoading:u,reload:t,saveData:()=>{c(p.value)},saveLoading:f}}const Q=m(" \u7AD9\u70B9\u4FE1\u606F "),j=m(" \u8BF7\u586B\u5199\u60A8\u7684\u7AD9\u70B9\u4FE1\u606F "),H=m("\u6B64\u5730\u5740\u7528\u4E8E\u751F\u6210\u76F4\u94FE\u53CA\u672C\u6B21\u5B58\u50A8\u4E0B\u8F7D\u4F7F\u7528\uFF0C\u8BF7\u52A1\u5FC5\u4FDD\u6301\u548C\u670D\u52A1\u7AEF\u5730\u5740\u4E00\u6837."),K=m("\u524D\u540E\u7AEF\u5206\u79BB\u540E\uFF0C\u9700\u914D\u7F6E\u6B64\u5730\u5740\uFF0C\u4F1A\u5F71\u54CD 401\u3001403\u3001404 \u9875\u9762\u7684\u8DF3\u8F6C."),W=m("\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u53F3\u4E0A\u89D2\u5934\u50CF\u5730\u5740\uFF0C\u63A8\u8350\u5C3A\u5BF8\u4E3A 35 * 35."),X=m("\u4FDD\u5B58\u8BBE\u7F6E"),B={__name:"site-setting",setup(p){let u=z();const{data:t,dataLoading:f,saveData:c,saveLoading:b}=P();let _=y({siteName:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}],domain:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E\u7AEF\u7AD9\u70B9\u57DF\u540D"},{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D"}],frontDomain:[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u57DF\u540D"}],avatar:[{type:"url",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u5934\u50CF\u5730\u5740\uFF0C\u9700\u4EE5 http \u6216 https \u5F00\u5934"}]});const V=y(),g=()=>{V.value.validate(v=>{v&&c()})};return N(()=>f.value,(v,a)=>{if(a===!0){let n=u.zfileConfig.baseUrl||window.location.origin,l=t.value.domain;if(n!==l)S.confirm(`\u68C0\u6D4B\u5230\u670D\u52A1\u7AEF\u5730\u5740\u4E3A ${n}\uFF0C\u5F53\u524D\u914D\u7F6E\u7AD9\u70B9\u57DF\u540D\u4E3A ${l}\uFF0C\u662F\u5426\u81EA\u52A8\u8FDB\u884C\u4FEE\u6B63\uFF1F\uFF08\u4E0D\u4FEE\u6B63\u53EF\u80FD\u4F1A\u5F71\u54CD\u4E0B\u8F7D\u3001\u6587\u4EF6\u5939\u52A0\u5BC6\u548C\u6587\u6863\u9884\u89C8\u529F\u80FD\uFF09`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:s=>{s==="confirm"&&(t.value.domain=n,g())}});else{let s=t.value.frontDomain,d=window.location.origin;u.zfileConfig.baseUrl!==""&&s!==d&&S.confirm(`\u68C0\u6D4B\u5230\u5F53\u524D\u4E3A\u524D\u540E\u7AEF\u5206\u79BB\u6A21\u5F0F\uFF0C\u8BBF\u95EE\u57DF\u540D\u4E3A ${d}\uFF0C\u5F53\u524D\u914D\u7F6E\u524D\u7AEF\u7AD9\u70B9\u57DF\u540D\u4E3A ${s}\uFF0C\u662F\u5426\u81EA\u52A8\u8FDB\u884C\u4FEE\u6B63\uFF1F\uFF08\u4E0D\u4FEE\u6B63\u53EF\u80FD\u4F1A\u9632\u76D7\u94FE\u529F\u80FD\uFF09`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:x=>{x==="confirm"&&(t.value.frontDomain=d,g())}})}}}),(v,a)=>{const n=G,l=q,s=$,d=R,x=J;return e(t)?E((C(),h(d,{key:0,model:e(t),rules:e(_),ref_key:"siteSettingForm",ref:V},{"form-title":o(()=>[Q]),"form-sub-title":o(()=>[j]),footer:o(()=>[i(s,{type:"primary",size:"default",icon:e(A),onClick:g},{default:o(()=>[X]),_:1},8,["icon"])]),default:o(()=>[i(l,{prop:"siteName",label:"\u7AD9\u70B9\u540D\u79F0"},{default:o(()=>[i(n,{id:"siteName","prefix-icon":e(F),modelValue:e(t).siteName,"onUpdate:modelValue":a[0]||(a[0]=r=>e(t).siteName=r)},null,8,["prefix-icon","modelValue"])]),_:1}),i(l,{prop:"domain",label:"\u540E\u7AEF\u7AD9\u70B9\u57DF\u540D"},{tips:o(()=>[H]),default:o(()=>[i(n,{id:"domain","prefix-icon":e(D),modelValue:e(t).domain,"onUpdate:modelValue":a[1]||(a[1]=r=>e(t).domain=r)},null,8,["prefix-icon","modelValue"])]),_:1}),i(l,{prop:"frontDomain",label:"\u524D\u7AEF\u7AD9\u70B9\u57DF\u540D"},{tips:o(()=>[K]),default:o(()=>[i(n,{"prefix-icon":e(D),modelValue:e(t).frontDomain,"onUpdate:modelValue":a[2]||(a[2]=r=>e(t).frontDomain=r)},null,8,["prefix-icon","modelValue"])]),_:1}),i(l,{prop:"avatar",label:"\u5934\u50CF\u5730\u5740"},{tips:o(()=>[W]),default:o(()=>[i(n,{id:"avatar","prefix-icon":e(L),modelValue:e(t).avatar,"onUpdate:modelValue":a[3]||(a[3]=r=>e(t).avatar=r)},null,8,["prefix-icon","modelValue"])]),_:1}),i(l,{label:"\u5907\u6848\u53F7"},{default:o(()=>[i(n,{id:"icp","prefix-icon":e(O),modelValue:e(t).icp,"onUpdate:modelValue":a[4]||(a[4]=r=>e(t).icp=r)},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[x,e(b)]]):U("",!0)}}};typeof k=="function"&&k(B);var we=Z(B,[["__scopeId","data-v-9690cabc"]]);export{we as default}; diff --git a/src/main/resources/static/assets/storage-list.33b9c5a5.css b/src/main/resources/static/assets/storage-list.33b9c5a5.css deleted file mode 100644 index 110bf4a..0000000 --- a/src/main/resources/static/assets/storage-list.33b9c5a5.css +++ /dev/null @@ -1 +0,0 @@ -.el-row[data-v-58c8e96b]{padding:20px}.el-form-item[data-v-58c8e96b]{margin-right:50px}.card-title[data-v-58c8e96b]{color:#00000073;font-size:14px}.card-content[data-v-58c8e96b]{color:#000000d9;font-size:25px;line-height:30px}.card-title-button[data-v-58c8e96b]{float:right;padding:3px 0}.table-search-input[data-v-58c8e96b]{width:300px;float:right}#filterForm .el-row[data-v-58c8e96b]{padding:0}#cacheDialog[data-v-58c8e96b] .el-dialog__body{padding:20px}.table-edit-icon[data-v-58c8e96b]{margin-left:5px;color:#409eff;cursor:pointer}.current-layout[data-v-58c8e96b]{color:#409eff}.storage-container li[data-v-58c8e96b]{height:17rem} diff --git a/src/main/resources/static/assets/storage-list.39c47c97.js b/src/main/resources/static/assets/storage-list.39c47c97.js deleted file mode 100644 index 910b5d2..0000000 --- a/src/main/resources/static/assets/storage-list.39c47c97.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ae}from"./401.3f3777af.js";import{a as re}from"./zfile-basic.74fe23dd.js";import{_ as _e}from"./zfile-horizontal.8a0fa4a8.js";import{a as n,f as g,p as l,P as ne,o as ie,Q as d,u as s,b,e as t,n as D,h as o,S as ce,F as de,y as fe,t as v,J as a,R as u,k as L,U as ve,V as ue}from"./index.552205f5.js";import{aQ as ge,aR as I,aS as R,aT as V,l as F,as as B,aM as A,m as N,Y as q,E as pe,r as be}from"./base.d698891e.js";/* empty css */import{E as ye}from"./table-column.0ede6c12.js";import{E as me,a as Se}from"./checkbox.cfb94aee.js";import"./scrollbar.97fa2ffd.js";import"./tooltip.f118fcb0.js";import"./popper.14a92806.js";/* empty css */import{E as je,a as Oe,b as he}from"./dropdown-item.448534e1.js";/* empty css *//* empty css */import{S as Te}from"./SvgIcon.c7a5ac24.js";/* empty css */import{u as Me}from"./storage-list.66a3eccf.js";import{b as H}from"./route-block.9b0645f8.js";import{_ as ze}from"./plugin-vue_export-helper.21dcd24c.js";import{E as Pe}from"./index.3eb5cbdf.js";import{E as we}from"./index.e168d154.js";import{E as xe}from"./index.4ab44dc8.js";import{v as ke}from"./directive.e250a256.js";import"./index.24f1077d.js";import"./request.3708b2c4.js";import"./event.3ec63147.js";import"./debounce.32892d61.js";import"./event.776e7e11.js";import"./index.1e624cbf.js";import"./focus-trap.58847c97.js";import"./dropdown.d5503246.js";import"./refs.4597d917.js";import"./admin-storage.260bbac1.js";import"./sortable.esm.a99254e8.js";import"./index.11692625.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./validator.6f3b33db.js";var Ce="/assets/403.07bdf36d.svg",$e=Object.freeze(Object.defineProperty({__proto__:null,default:Ce},Symbol.toStringTag,{value:"Module"})),Ee="/assets/404.46de94fc.svg",De=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),Le="/assets/add-file.9d01a01a.svg",Ie=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"})),Re="/assets/add-folder-back.28141d7f.svg",Ve=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"})),Fe="/assets/add-folder.7ef044d1.svg",Be=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"})),Ae="/assets/add.598ba734.svg",Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Ae},Symbol.toStringTag,{value:"Module"})),qe="/assets/admin-login.db1d73c1.svg",He=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Je="/assets/aliyun.0f005258.svg",Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Je},Symbol.toStringTag,{value:"Module"})),Xe="/assets/baidu.4a11f5ee.svg",Ye=Object.freeze(Object.defineProperty({__proto__:null,default:Xe},Symbol.toStringTag,{value:"Module"})),Qe="/assets/card-layout.0aa8ea66.svg",Ke=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"})),Ze="/assets/copy.0d4a2f7b.svg",Ge=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"})),We="/assets/delete.06c9bd69.svg",et=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"})),tt="/assets/download.48c98cdb.svg",ot=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),st="/assets/edit.a2e2c356.svg",lt=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),at="/assets/empty.d5d3dec8.svg",rt=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),_t="/assets/file-type-apk.e1385fc3.svg",nt=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"})),it="/assets/file-type-archive.f4b181db.svg",ct=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"})),dt="/assets/file-type-audio.94e75894.svg",ft=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),vt="/assets/file-type-back.ca0b84c2.svg",ut=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"})),gt="/assets/file-type-css.5dfb9ed8.svg",pt=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),bt="/assets/file-type-deb.5804788b.svg",yt=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"})),mt="/assets/file-type-dll.6ea302d9.svg",St=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"})),jt="/assets/file-type-doc.a9d08313.svg",Ot=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"})),ht="/assets/file-type-document.b6e28e75.svg",Tt=Object.freeze(Object.defineProperty({__proto__:null,default:ht},Symbol.toStringTag,{value:"Module"})),Mt="/assets/file-type-doc.a9d08313.svg",zt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"})),Pt="/assets/file-type-exe.b561ed3f.svg",wt=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"})),xt="/assets/file-type-expression.3aaf04f1.svg",kt=Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})),Ct="/assets/file-type-file.47afa61a.svg",$t=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"})),Et="/assets/file-type-folder.35bcb02c.svg",Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"})),Lt="/assets/file-type-html.e37c00f9.svg",It=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"})),Rt="/assets/file-type-image.689e667c.svg",Vt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"})),Ft="/assets/file-type-java.e50a4779.svg",Bt=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"})),At="/assets/file-type-js.5c3b67c3.svg",Nt=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"})),qt="/assets/file-type-less.429d4f89.svg",Ht=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Jt="/assets/file-type-md.4dd32bf9.svg",Ut=Object.freeze(Object.defineProperty({__proto__:null,default:Jt},Symbol.toStringTag,{value:"Module"})),Xt="/assets/file-type-office.9af40573.svg",Yt=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Qt="/assets/file-type-pdf.1e018e0c.svg",Kt=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"})),Zt="/assets/file-type-php.4feb4413.svg",Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),Wt="/assets/file-type-ppt.3d3e6af9.svg",eo=Object.freeze(Object.defineProperty({__proto__:null,default:Wt},Symbol.toStringTag,{value:"Module"})),to="/assets/file-type-ppt.3d3e6af9.svg",oo=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"})),so="/assets/file-type-py.09b51350.svg",lo=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"})),ao="/assets/file-type-rb.32961396.svg",ro=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),_o="/assets/file-type-root.80ddc97b.svg",no=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),io="/assets/file-type-rpm.559b18a5.svg",co=Object.freeze(Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"})),fo="/assets/file-type-rust.69994176.svg",vo=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),uo="/assets/file-type-script.52b80ced.svg",go=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),po="/assets/file-type-text.8ff306a0.svg",bo=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),yo="/assets/file-type-vbs.22c9b0b7.svg",mo=Object.freeze(Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),So="/assets/file-type-video.888eeb7b.svg",jo=Object.freeze(Object.defineProperty({__proto__:null,default:So},Symbol.toStringTag,{value:"Module"})),Oo="/assets/file-type-xls.db6934ae.svg",ho=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),To="/assets/file-type-xls.db6934ae.svg",Mo=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),zo="/assets/file-type-xml.234b67f6.svg",Po=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),wo="/assets/file-type-yaml.c1af7aa9.svg",xo=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),ko="/assets/file-upload.65dff662.svg",Co=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),$o="/assets/files.a94428cd.svg",Eo=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"})),Do="/assets/ftp.c6a679c1.svg",Lo=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),Io="/assets/huawei.57d8824c.svg",Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Vo="/assets/image.69ca2c19.svg",Fo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),Bo="/assets/img-disable.16380239.svg",Ao=Object.freeze(Object.defineProperty({__proto__:null,default:Bo},Symbol.toStringTag,{value:"Module"})),No="/assets/img-enable.ca957fe0.svg",qo=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"})),Ho="/assets/info.54497d89.svg",Jo=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"})),Uo="/assets/install-step.28fbaa8c.svg",Xo=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"})),Yo="/assets/link.0a44cb5c.svg",Qo=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),Ko="/assets/local.f6bc02e5.svg",Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"})),Go="/assets/login.e2217ec4.svg",Wo=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),es="/assets/minio.e5474b90.svg",ts=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),os="/assets/move.897d1439.svg",ss=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),ls="/assets/new-folder.549c271c.svg",as=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),rs="/assets/next.ed93fad9.svg",_s=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),ns="/assets/onedrive-china.f477f7d4.svg",is=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),cs="/assets/onedrive.1120a54d.svg",ds=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),fs="/assets/prev.f23ef4a8.svg",vs=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),us="/assets/preview.330b1af8.svg",gs=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),ps="/assets/qiniu.6036c6bb.svg",bs=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),ys="/assets/refresh.44905e7c.svg",ms=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Ss="/assets/reset-password.b19e1ea5.svg",js=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Os="/assets/s3.280509b0.svg",hs=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Ts="/assets/search.8b68470c.svg",Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),zs="/assets/select-all.4aaccd3e.svg",Ps=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),ws="/assets/server.f8a853a2.svg",xs=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),ks="/assets/settings.b524ea2e.svg",Cs=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),$s="/assets/sftp.c71078df.svg",Es=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Ds="/assets/sharepoint-china.9907efac.svg",Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Is="/assets/sharepoint.1bd337fc.svg",Rs=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),Vs="/assets/success.ddc7b948.svg",Fs=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Bs="/assets/table-layout.e8017f7c.svg",As=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ns="/assets/target.182a531a.svg",qs=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Hs="/assets/tencent.7b52a406.svg",Js=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Us="/assets/test.b2ee4998.svg",Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys="/assets/tool-close.4c4ed1a4.svg",Qs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Ks="/assets/tool-close2.a77027c1.svg",Zs=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Gs="/assets/tool-delete.306633e9.svg",Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),el="/assets/tool-download.bf4da40f.svg",tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),ol="/assets/tool-edit.405fd9c3.svg",sl=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ll="/assets/tool-link.6a893d0f.svg",al=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),rl="/assets/tool-move.fa418958.svg",_l=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),nl="/assets/tool-preview.13c8406c.svg",il=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),cl="/assets/tool-setting.f36fb1c2.svg",dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),fl="/assets/ufile.e305639b.svg",vl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),ul="/assets/upload-1.f348e120.svg",gl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),pl="/assets/upload-folder.8e924b23.svg",bl=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),yl="/assets/upload.a9eeb994.svg",ml=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl="/assets/upyun.b24d52ea.svg",jl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Ol="/assets/warning.7093bb23.svg",hl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Tl="/assets/webdav.c885a54c.svg",Ml=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),zl="/assets/zfile.76406368.svg",Pl=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"}));const wl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},xl=l("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),kl=[xl];function Cl(f,m){return n(),g("svg",wl,kl)}var $l={name:"ep-plus",render:Cl};const El={t:"1643161753751",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2381",width:"200",height:"200"},Dl=l("path",{d:"M849.1 128 174.9 128c-25.9 0-46.9 21-46.9 46.9l0 34.2c0 25.9 21 46.9 46.9 46.9l674.2 0c25.9 0 46.9-21 46.9-46.9l0-34.2C896 149 875 128 849.1 128z","p-id":"2382"},null,-1),Ll=l("path",{d:"M849.1 768 174.9 768c-25.9 0-46.9 21-46.9 46.9l0 34.2c0 25.9 21 46.9 46.9 46.9l674.2 0c25.9 0 46.9-21 46.9-46.9l0-34.2C896 789 875 768 849.1 768z","p-id":"2383"},null,-1),Il=l("path",{d:"M849.1 448 174.9 448c-25.9 0-46.9 21-46.9 46.9l0 34.2c0 25.9 21 46.9 46.9 46.9l674.2 0c25.9 0 46.9-21 46.9-46.9l0-34.2C896 469 875 448 849.1 448z","p-id":"2384"},null,-1),Rl=[Dl,Ll,Il];function Vl(f,m){return n(),g("svg",El,Rl)}var Fl={name:"custom-table-layout",render:Vl};const Bl={t:"1643161721691",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2088",width:"200",height:"200"},Al=l("path",{d:"M433.1 480 174.9 480c-25.9 0-46.9-21-46.9-46.9L128 174.9c0-25.9 21-46.9 46.9-46.9l258.2 0c25.9 0 46.9 21 46.9 46.9l0 258.2C480 459 459 480 433.1 480z","p-id":"2089"},null,-1),Nl=l("path",{d:"M433.1 896 174.9 896c-25.9 0-46.9-21-46.9-46.9L128 590.9c0-25.9 21-46.9 46.9-46.9l258.2 0c25.9 0 46.9 21 46.9 46.9l0 258.2C480 875 459 896 433.1 896z","p-id":"2090"},null,-1),ql=l("path",{d:"M849.1 480 590.9 480c-25.9 0-46.9-21-46.9-46.9L544 174.9c0-25.9 21-46.9 46.9-46.9l258.2 0c25.9 0 46.9 21 46.9 46.9l0 258.2C896 459 875 480 849.1 480z","p-id":"2091"},null,-1),Hl=l("path",{d:"M849.1 896 590.9 896c-25.9 0-46.9-21-46.9-46.9L544 590.9c0-25.9 21-46.9 46.9-46.9l258.2 0c25.9 0 46.9 21 46.9 46.9l0 258.2C896 875 875 896 849.1 896z","p-id":"2092"},null,-1),Jl=[Al,Nl,ql,Hl];function Ul(f,m){return n(),g("svg",Bl,Jl)}var Xl={name:"custom-card-layout",render:Ul};const y=f=>(ve("data-v-58c8e96b"),f=f(),ue(),f),Yl={class:"flex justify-between"},Ql=y(()=>l("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u5B58\u50A8\u6E90\u4FE1\u606F ",-1)),Kl={class:"hidden flex space-x-1.5 justify-center items-center cursor-pointer"},Zl={class:"my-2 text-sm text-gray-500 flex justify-between flex-wrap"},Gl=y(()=>l("div",null,[a(" \u6B64\u9875\u53EF\u4EE5\u7EF4\u62A4\u60A8\u7684\u5B58\u50A8\u6E90\u4FE1\u606F\uFF0C\u53EF\u4EE5\u62D6\u52A8\u4EA4\u6362\u5B58\u50A8\u6E90\u4E4B\u95F4\u7684\u987A\u5E8F. \u914D\u7F6E\u793A\u4F8B\u53EF\u53C2\u8003\uFF1A "),l("a",{class:"link",target:"_blank",href:"https://docs.zfile.vip/#/example"},"ZFile \u5B58\u50A8\u6E90\u914D\u7F6E\u6587\u6863")],-1)),Wl={key:0,role:"list",class:"storage-container grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"},ea=["onDblclick"],ta={class:"flex-1 flex flex-col p-8 pb-4 relative"},oa=["src"],sa={class:"mt-2 text-gray-900 text-sm font-medium"},la={class:"mt-1 flex-grow flex flex-col justify-between"},aa={class:"text-gray-500 text-sm line-clamp-1"},ra={class:"mt-2 space-x-1"},_a=a("\u542F\u7528"),na=a("\u505C\u7528"),ia=a("\u7F13\u5B58"),ca=a("\u5237\u65B0\u4EE4\u724C\u6210\u529F"),da=a("\u5237\u65B0\u4EE4\u724C\u5931\u8D25"),fa={class:"mr-3 mb-3 flex justify-end"},va={class:"text-sm font-medium text-blue-500"},ua=a(" \u64CD\u4F5C "),ga=a("\u7F16\u8F91"),pa=a("\u542F\u7528"),ba=a("\u505C\u7528"),ya=y(()=>l("div",{class:"divider"},null,-1)),ma=a("\u76EE\u5F55\u6587\u6863"),Sa=a("\u6587\u4EF6\u8FC7\u6EE4"),ja=a("\u5BC6\u7801\u8BBE\u7F6E"),Oa=y(()=>l("div",{class:"divider"},null,-1)),ha=a("\u5220\u9664"),Ta={class:"flex-1 flex flex-col p-8 mx-auto justify-center"},Ma=a("\u542F\u7528"),za=a("\u505C\u7528"),Pa=a(" \u64CD\u4F5C"),wa=a("\u7F16\u8F91"),xa=a("\u542F\u7528"),ka=a("\u505C\u7528"),Ca=y(()=>l("div",{class:"divider"},null,-1)),$a=a("\u76EE\u5F55\u6587\u6863"),Ea=a("\u6587\u4EF6\u8FC7\u6EE4"),Da=a("\u5BC6\u7801\u8BBE\u7F6E"),La=y(()=>l("div",{class:"divider"},null,-1)),Ia=a("\u5220\u9664"),J={__name:"storage-list",setup(f){let m=ne();const{init:U,loading:X,layout:S,changeLayout:z,searchKey:h,storageListSearchResult:P,handleOperator:w,editStorage:Y,addStorage:x,deleteStorage:Q,switchEnableStatus:j}=Me(m);ie(()=>{U()});const K=k=>{const i=`/src/assets/icons/${k}.svg`,O={"/src/assets/icons/401.svg":ae,"/src/assets/icons/403.svg":$e,"/src/assets/icons/404.svg":De,"/src/assets/icons/add-file.svg":Ie,"/src/assets/icons/add-folder-back.svg":Ve,"/src/assets/icons/add-folder.svg":Be,"/src/assets/icons/add.svg":Ne,"/src/assets/icons/admin-login.svg":He,"/src/assets/icons/aliyun.svg":Ue,"/src/assets/icons/baidu.svg":Ye,"/src/assets/icons/card-layout.svg":Ke,"/src/assets/icons/copy.svg":Ge,"/src/assets/icons/delete.svg":et,"/src/assets/icons/download.svg":ot,"/src/assets/icons/edit.svg":lt,"/src/assets/icons/empty.svg":rt,"/src/assets/icons/file-type-apk.svg":nt,"/src/assets/icons/file-type-archive.svg":ct,"/src/assets/icons/file-type-audio.svg":ft,"/src/assets/icons/file-type-back.svg":ut,"/src/assets/icons/file-type-css.svg":pt,"/src/assets/icons/file-type-deb.svg":yt,"/src/assets/icons/file-type-dll.svg":St,"/src/assets/icons/file-type-doc.svg":Ot,"/src/assets/icons/file-type-document.svg":Tt,"/src/assets/icons/file-type-docx.svg":zt,"/src/assets/icons/file-type-exe.svg":wt,"/src/assets/icons/file-type-expression.svg":kt,"/src/assets/icons/file-type-file.svg":$t,"/src/assets/icons/file-type-folder.svg":Dt,"/src/assets/icons/file-type-html.svg":It,"/src/assets/icons/file-type-image.svg":Vt,"/src/assets/icons/file-type-java.svg":Bt,"/src/assets/icons/file-type-js.svg":Nt,"/src/assets/icons/file-type-less.svg":Ht,"/src/assets/icons/file-type-md.svg":Ut,"/src/assets/icons/file-type-office.svg":Yt,"/src/assets/icons/file-type-pdf.svg":Kt,"/src/assets/icons/file-type-php.svg":Gt,"/src/assets/icons/file-type-ppt.svg":eo,"/src/assets/icons/file-type-pptx.svg":oo,"/src/assets/icons/file-type-py.svg":lo,"/src/assets/icons/file-type-rb.svg":ro,"/src/assets/icons/file-type-root.svg":no,"/src/assets/icons/file-type-rpm.svg":co,"/src/assets/icons/file-type-rust.svg":vo,"/src/assets/icons/file-type-script.svg":go,"/src/assets/icons/file-type-text.svg":bo,"/src/assets/icons/file-type-vbs.svg":mo,"/src/assets/icons/file-type-video.svg":jo,"/src/assets/icons/file-type-xls.svg":ho,"/src/assets/icons/file-type-xlsx.svg":Mo,"/src/assets/icons/file-type-xml.svg":Po,"/src/assets/icons/file-type-yaml.svg":xo,"/src/assets/icons/file-upload.svg":Co,"/src/assets/icons/files.svg":Eo,"/src/assets/icons/ftp.svg":Lo,"/src/assets/icons/huawei.svg":Ro,"/src/assets/icons/image.svg":Fo,"/src/assets/icons/img-disable.svg":Ao,"/src/assets/icons/img-enable.svg":qo,"/src/assets/icons/info.svg":Jo,"/src/assets/icons/install-step.svg":Xo,"/src/assets/icons/link.svg":Qo,"/src/assets/icons/local.svg":Zo,"/src/assets/icons/login.svg":Wo,"/src/assets/icons/minio.svg":ts,"/src/assets/icons/move.svg":ss,"/src/assets/icons/new-folder.svg":as,"/src/assets/icons/next.svg":_s,"/src/assets/icons/onedrive-china.svg":is,"/src/assets/icons/onedrive.svg":ds,"/src/assets/icons/prev.svg":vs,"/src/assets/icons/preview.svg":gs,"/src/assets/icons/qiniu.svg":bs,"/src/assets/icons/refresh.svg":ms,"/src/assets/icons/reset-password.svg":js,"/src/assets/icons/s3.svg":hs,"/src/assets/icons/search.svg":Ms,"/src/assets/icons/select-all.svg":Ps,"/src/assets/icons/server.svg":xs,"/src/assets/icons/settings.svg":Cs,"/src/assets/icons/sftp.svg":Es,"/src/assets/icons/sharepoint-china.svg":Ls,"/src/assets/icons/sharepoint.svg":Rs,"/src/assets/icons/success.svg":Fs,"/src/assets/icons/table-layout.svg":As,"/src/assets/icons/target.svg":qs,"/src/assets/icons/tencent.svg":Js,"/src/assets/icons/test.svg":Xs,"/src/assets/icons/tool-close.svg":Qs,"/src/assets/icons/tool-close2.svg":Zs,"/src/assets/icons/tool-delete.svg":Ws,"/src/assets/icons/tool-download.svg":tl,"/src/assets/icons/tool-edit.svg":sl,"/src/assets/icons/tool-link.svg":al,"/src/assets/icons/tool-move.svg":_l,"/src/assets/icons/tool-preview.svg":il,"/src/assets/icons/tool-setting.svg":dl,"/src/assets/icons/ufile.svg":vl,"/src/assets/icons/upload-1.svg":gl,"/src/assets/icons/upload-folder.svg":bl,"/src/assets/icons/upload.svg":ml,"/src/assets/icons/upyun.svg":jl,"/src/assets/icons/warning.svg":hl,"/src/assets/icons/webdav.svg":Ml,"/src/assets/icons/zfile-basic.svg":re,"/src/assets/icons/zfile-horizontal.svg":_e,"/src/assets/icons/zfile.svg":Pl};if(O[i])return O[i].default};return(k,i)=>{const O=Xl,Z=Fl,G=xe,W=Te,c=Pe,T=we,M=pe,_=je,C=Oe,$=he,ee=$l,p=me,te=be,oe=Se,se=ye,le=ke;return n(),g("div",null,[d((n(),b(se,null,{default:t(()=>[l("div",null,[l("div",Yl,[Ql,l("div",Kl,[l("span",{class:D(s(S)==="card"?"current-layout":""),onClick:i[0]||(i[0]=e=>s(z)("card"))},[o(O)],2),l("span",{class:D(s(S)==="table"?"current-layout":""),onClick:i[1]||(i[1]=e=>s(z)("table"))},[o(Z)],2)])]),l("div",Zl,[Gl,l("div",null,[o(G,{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",modelValue:s(h),"onUpdate:modelValue":i[2]||(i[2]=e=>ce(h)?h.value=e:null),"prefix-icon":s(ge)},null,8,["modelValue","prefix-icon"])])])]),s(S)==="card"?(n(),g("ul",Wl,[(n(!0),g(de,null,fe(s(P),e=>(n(),g("li",{key:e.id,onDblclick:r=>s(Y)(e),class:"storage-item col-span-1 flex flex-col text-center bg-white rounded-lg border hover:shadow"},[l("div",ta,[o(W,{onClick:r=>s(Q)(e),name:"delete",class:"absolute right-3 top-3 cursor-pointer"},null,8,["onClick"]),l("img",{class:"w-20 h-20 flex-shrink-0 mx-auto",src:K(e.type.key)},null,8,oa),l("h3",sa,v(e.name),1),l("dl",la,[l("dd",aa,v(e.remark),1),l("dd",ra,[o(c,{type:""},{default:t(()=>[a(v(e.type.description),1)]),_:2},1024),d(o(c,{type:"success",onClick:r=>s(j)(e)},{default:t(()=>[_a]),_:2},1032,["onClick"]),[[u,e.enable]]),d(o(c,{type:"danger",onClick:r=>s(j)(e)},{default:t(()=>[na]),_:2},1032,["onClick"]),[[u,!e.enable]]),d(o(c,{type:"success"},{default:t(()=>[ia]),_:2},1536),[[u,e.enableCache]]),o(T,{placement:"top",title:"\u5237\u65B0\u4EE4\u724C\u6210\u529F",width:200,trigger:"hover"},{reference:t(()=>{var r;return[d(o(c,{type:"success"},{default:t(()=>[ca]),_:2},1536),[[u,(r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.success]])]}),default:t(()=>{var r;return[l("div",null,[l("div",null,"\u4E0A\u6B21\u5237\u65B0\u65F6\u95F4: "+v((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.lastRefreshTime),1)])]}),_:2},1024),o(T,{placement:"top",title:"\u5237\u65B0\u4EE4\u724C\u5931\u8D25",width:200,trigger:"hover"},{reference:t(()=>{var r;return[d(o(c,{type:"danger"},{default:t(()=>[da]),_:2},1536),[[u,((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.success)===!1]])]}),default:t(()=>{var r,E;return[l("div",null,[l("div",null,"\u4E0A\u6B21\u5237\u65B0\u65F6\u95F4: "+v((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.lastRefreshTime),1),l("div",null,"\u5931\u8D25\u4FE1\u606F: "+v((E=e==null?void 0:e.refreshTokenInfo)==null?void 0:E.msg),1)])]}),_:2},1024)])])]),l("div",fa,[o($,{onCommand:s(w),class:"cursor-pointer"},{dropdown:t(()=>[o(C,null,{default:t(()=>[o(_,{icon:s(I),command:{operator:"edit",storage:e}},{default:t(()=>[ga]),_:2},1032,["icon","command"]),e.enable?(n(),b(_,{key:1,icon:s(V),command:{operator:"enable",storage:e}},{default:t(()=>[ba]),_:2},1032,["icon","command"])):(n(),b(_,{key:0,icon:s(R),command:{operator:"enable",storage:e}},{default:t(()=>[pa]),_:2},1032,["icon","command"])),ya,o(_,{icon:s(F),command:{operator:"readmeManager",storage:e}},{default:t(()=>[ma]),_:2},1032,["icon","command"]),o(_,{icon:s(B),command:{operator:"filterManager",storage:e}},{default:t(()=>[Sa]),_:2},1032,["icon","command"]),o(_,{icon:s(A),command:{operator:"pwdManager",storage:e}},{default:t(()=>[ja]),_:2},1032,["icon","command"]),Oa,o(_,{icon:s(N),command:{operator:"delete",storage:e}},{default:t(()=>[ha]),_:2},1032,["icon","command"])]),_:2},1024)]),default:t(()=>[l("span",va,[ua,o(M,{class:"top-[2px] el-icon--right"},{default:t(()=>[o(s(q))]),_:1})])]),_:2},1032,["onCommand"])])],40,ea))),128)),o(T,{placement:"right",width:200,trigger:"hover",content:"\u70B9\u51FB\u6DFB\u52A0\u5B58\u50A8\u6E90"},{reference:t(()=>[l("li",{onClick:i[3]||(i[3]=(...e)=>s(x)&&s(x)(...e)),class:"add-storage-btn cursor-pointer col-span-1 flex flex-col text-center bg-white rounded-lg border hover:shadow"},[l("div",Ta,[o(M,{size:"150"},{default:t(()=>[o(ee,{class:"text-gray-300"})]),_:1})])])]),_:1})])):L("",!0),s(S)==="table"?(n(),b(oe,{key:1,data:s(P)},{default:t(()=>[o(p,{type:"index",width:"50"}),o(p,{prop:"name",label:"\u540D\u79F0"}),o(p,{prop:"key",label:"\u522B\u540D"}),o(p,{label:"\u7C7B\u578B"},{default:t(e=>[a(v(e.row.type.description),1)]),_:1}),o(p,{label:"\u72B6\u6001"},{default:t(e=>[d(o(c,{type:"success",onClick:r=>s(j)(e.row)},{default:t(()=>[Ma]),_:2},1032,["onClick"]),[[u,e.row.enable]]),d(o(c,{type:"danger",onClick:r=>s(j)(e.row)},{default:t(()=>[za]),_:2},1032,["onClick"]),[[u,!e.row.enable]])]),_:1}),o(p,{label:"\u64CD\u4F5C"},{default:t(e=>[o($,{onCommand:s(w),class:"cursor-pointer"},{dropdown:t(()=>[o(C,null,{default:t(()=>[o(_,{icon:s(I),command:{operator:"edit",storage:e.row}},{default:t(()=>[wa]),_:2},1032,["icon","command"]),e.row.enable?(n(),b(_,{key:1,icon:s(V),command:{operator:"enable",storage:e.row}},{default:t(()=>[ka]),_:2},1032,["icon","command"])):(n(),b(_,{key:0,icon:s(R),command:{operator:"enable",storage:e.row}},{default:t(()=>[xa]),_:2},1032,["icon","command"])),Ca,o(_,{icon:s(F),command:{operator:"readmeManager",storage:e.row}},{default:t(()=>[$a]),_:2},1032,["icon","command"]),o(_,{icon:s(B),command:{operator:"filterManager",storage:e.row}},{default:t(()=>[Ea]),_:2},1032,["icon","command"]),o(_,{icon:s(A),command:{operator:"pwdManager",storage:e.row}},{default:t(()=>[Da]),_:2},1032,["icon","command"]),La,o(_,{icon:s(N),command:{operator:"delete",storage:e.row}},{default:t(()=>[Ia]),_:2},1032,["icon","command"])]),_:2},1024)]),default:t(()=>[o(te,{size:"small",type:"primary"},{default:t(()=>[Pa,o(M,{class:"el-icon--right"},{default:t(()=>[o(s(q))]),_:1})]),_:1})]),_:2},1032,["onCommand"])]),_:1})]),_:1},8,["data"])):L("",!0)]),_:1})),[[le,s(X)]])])}}};typeof H=="function"&&H(J);var Or=ze(J,[["__scopeId","data-v-58c8e96b"]]);export{Or as default}; diff --git a/src/main/resources/static/assets/storage-list.66a3eccf.js b/src/main/resources/static/assets/storage-list.66a3eccf.js deleted file mode 100644 index 5f833f5..0000000 --- a/src/main/resources/static/assets/storage-list.66a3eccf.js +++ /dev/null @@ -1 +0,0 @@ -import{d as M,s as q,a as B,b as I,l as O,c as P}from"./admin-storage.260bbac1.js";import{S as T}from"./sortable.esm.a99254e8.js";import{E as l}from"./index.11692625.js";import{E as o}from"./request.3708b2c4.js";import{r,c as A}from"./index.552205f5.js";let v=r("card"),C=r(!1),S=r(),i=r(!1),t=r([]),s=r("");function z(n){const x=()=>{n.push("/admin/storage-edit")},u=e=>{n.push("/admin/storage-edit/"+e.id)},d=e=>{l.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:a=>{a==="confirm"&&M(e.id).then(c=>{o.success("\u5220\u9664\u6210\u529F"),w()})}})},L=e=>{l.confirm("\u662F\u5426\u786E\u8BA4\u5173\u95ED\uFF1F\u5173\u95ED\u540E\u586B\u5199\u7684\u6570\u636E\u4E0D\u4F1A\u4FDD\u7559\u3002",{type:"warning"}).then(a=>{e()}).catch(a=>{})},g=e=>{n.push("/admin/storage-filter/"+e.id)},h=e=>{n.push("/admin/storage-readme/"+e.id)},f=e=>{n.push("/admin/storage-password/"+e.id)},b=e=>{l.confirm(`\u662F\u5426\u786E\u8BA4${e.enable?"\u505C\u6B62":"\u542F\u7528"}\u5B58\u50A8\u6E90\u3002`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:a=>{if(a==="confirm"){let c=e.enable?"disable":"enable";q(e.id,c).then(()=>{o.success((e.enable?"\u505C\u6B62":"\u542F\u7528")+"\u6210\u529F"),e.enable=!e.enable})}}})},y=e=>{let a=e.enableCache?"enable":"disable";B(e.id,a).then(()=>{o.success("\u4FEE\u6539\u6210\u529F")})},k=e=>{let a=e.autoRefreshCache?"start":"stop";I(e.id,a).then(()=>{o.success("\u4FEE\u6539\u6210\u529F")})},p=e=>{S.value=e.id,C.value=!0},R=e=>{switch(e.operator){case"edit":u(e.storage);break;case"enable":b(e.storage);break;case"readmeManager":h(e.storage);break;case"cacheManager":p(e.storage);break;case"filterManager":g(e.storage);break;case"pwdManager":f(e.storage);break;case"delete":d(e.storage);break}},m=()=>{const e=document.querySelector(".storage-container");T.create(e,{draggable:".storage-item",filter:".add-storage-btn",onEnd:a=>{if(a.oldIndex===a.newIndex)return;const c=t.value.splice(a.oldIndex,1)[0];t.value.splice(a.newIndex,0,c),P(t.value).then(()=>{o.success("\u8C03\u6574\u6392\u5E8F\u6210\u529F")})}})},w=()=>{i.value=!0,O().then(e=>{t.value=e.data,m(),i.value=!1})},E=A(()=>s.value===""?t.value:t.value.filter(e=>!!(e.name&&e.name.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.remark&&e.remark.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.type&&e.type.description.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.type&&e.type.key.toLowerCase().indexOf(s.value.toLowerCase())!==-1)));return{init:w,loading:i,layout:v,changeLayout:e=>{v.value=e},searchKey:s,storageListSearchResult:E,handleOperator:R,addStorage:x,editStorage:u,deleteStorage:d,handleClose:L,showFilterPage:g,showReadmePage:h,showPasswordPage:f,switchEnableStatus:b,cacheManageVisible:C,currentCacheManageId:S,switchCacheEnableStatus:y,switchCacheAutoRefreshStatus:k,cacheManage:p}}export{z as u}; diff --git a/src/main/resources/static/assets/storage-list.7487c9b9.css b/src/main/resources/static/assets/storage-list.7487c9b9.css new file mode 100644 index 0000000..ea3c9f9 --- /dev/null +++ b/src/main/resources/static/assets/storage-list.7487c9b9.css @@ -0,0 +1 @@ +.el-row[data-v-100f3cc4]{padding:20px}.el-form-item[data-v-100f3cc4]{margin-right:50px}.card-title[data-v-100f3cc4]{color:#00000073;font-size:14px}.card-content[data-v-100f3cc4]{color:#000000d9;font-size:25px;line-height:30px}.card-title-button[data-v-100f3cc4]{float:right;padding:3px 0}.table-search-input[data-v-100f3cc4]{width:300px;float:right}#filterForm .el-row[data-v-100f3cc4]{padding:0}#cacheDialog[data-v-100f3cc4] .el-dialog__body{padding:20px}.table-edit-icon[data-v-100f3cc4]{margin-left:5px;color:#409eff;cursor:pointer}.current-layout[data-v-100f3cc4]{color:#409eff}.storage-container li[data-v-100f3cc4]{height:17rem} diff --git a/src/main/resources/static/assets/storage-list.84919783.js b/src/main/resources/static/assets/storage-list.84919783.js new file mode 100644 index 0000000..1848494 --- /dev/null +++ b/src/main/resources/static/assets/storage-list.84919783.js @@ -0,0 +1 @@ +import{d as E,s as M,a as q,b as B,l as I,c as O}from"./admin-storage.442a3cb6.js";import{S as P}from"./sortable.esm.a99254e8.js";import{E as l}from"./index.439070da.js";import{E as n}from"./request.e2daed10.js";import{r as o,c as T}from"./index.43b3cbf5.js";let C=o(!1),S=o(),i=o(!1),t=o([]),s=o("");function $(r){const v=()=>{r.push("/admin/storage-edit")},u=e=>{r.push("/admin/storage-edit/"+e.id)},d=e=>{l.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:a=>{a==="confirm"&&E(e.id).then(c=>{n.success("\u5220\u9664\u6210\u529F"),w()})}})},x=e=>{l.confirm("\u662F\u5426\u786E\u8BA4\u5173\u95ED\uFF1F\u5173\u95ED\u540E\u586B\u5199\u7684\u6570\u636E\u4E0D\u4F1A\u4FDD\u7559\u3002",{type:"warning"}).then(a=>{e()}).catch(a=>{})},g=e=>{r.push("/admin/storage-filter/"+e.id)},h=e=>{r.push("/admin/storage-readme/"+e.id)},f=e=>{r.push("/admin/storage-password/"+e.id)},b=e=>{l.confirm(`\u662F\u5426\u786E\u8BA4${e.enable?"\u505C\u6B62":"\u542F\u7528"}\u5B58\u50A8\u6E90\u3002`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",callback:a=>{if(a==="confirm"){let c=e.enable?"disable":"enable";M(e.id,c).then(()=>{n.success((e.enable?"\u505C\u6B62":"\u542F\u7528")+"\u6210\u529F"),e.enable=!e.enable})}}})},k=e=>{let a=e.enableCache?"enable":"disable";q(e.id,a).then(()=>{n.success("\u4FEE\u6539\u6210\u529F")})},L=e=>{let a=e.autoRefreshCache?"start":"stop";B(e.id,a).then(()=>{n.success("\u4FEE\u6539\u6210\u529F")})},p=e=>{S.value=e.id,C.value=!0},R=e=>{switch(e.operator){case"edit":u(e.storage);break;case"enable":b(e.storage);break;case"readmeManager":h(e.storage);break;case"cacheManager":p(e.storage);break;case"filterManager":g(e.storage);break;case"pwdManager":f(e.storage);break;case"delete":d(e.storage);break}},m=()=>{const e=document.querySelector(".storage-container");P.create(e,{draggable:".storage-item",filter:".add-storage-btn",onEnd:a=>{if(a.oldIndex===a.newIndex)return;const c=t.value.splice(a.oldIndex,1)[0];t.value.splice(a.newIndex,0,c),O(t.value).then(()=>{n.success("\u8C03\u6574\u6392\u5E8F\u6210\u529F")})}})},w=()=>{i.value=!0,I().then(e=>{t.value=e.data,m(),i.value=!1})},y=T(()=>s.value===""?t.value:t.value.filter(e=>!!(e.name&&e.name.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.remark&&e.remark.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.type&&e.type.description.toLowerCase().indexOf(s.value.toLowerCase())!==-1||e.type&&e.type.key.toLowerCase().indexOf(s.value.toLowerCase())!==-1)));return{init:w,loading:i,searchKey:s,storageListSearchResult:y,handleOperator:R,addStorage:v,editStorage:u,deleteStorage:d,handleClose:x,showFilterPage:g,showReadmePage:h,showPasswordPage:f,switchEnableStatus:b,cacheManageVisible:C,currentCacheManageId:S,switchCacheEnableStatus:k,switchCacheAutoRefreshStatus:L,cacheManage:p}}export{$ as u}; diff --git a/src/main/resources/static/assets/storage-list.f19a5874.js b/src/main/resources/static/assets/storage-list.f19a5874.js new file mode 100644 index 0000000..4d43b15 --- /dev/null +++ b/src/main/resources/static/assets/storage-list.f19a5874.js @@ -0,0 +1 @@ +import{a as U}from"./401.58f0cb83.js";import{a as q}from"./zfile-basic.e44d95f5.js";import{_ as J}from"./zfile-horizontal.330e1cd8.js";import{P as N,o as X,a as n,f as m,Q as d,u as l,b as S,e as o,p as t,h as s,S as H,F as K,y as Q,t as f,J as a,R as v,U as W,V as Y}from"./index.43b3cbf5.js";import{aS as Z,aT as x,aU as G,aV as ee,l as te,as as se,aM as oe,m as le,aW as ae,aR as re,E as _e}from"./base.4ef7f45b.js";/* empty css */import{E as ie}from"./card.d6fbde4d.js";import{E as ce,a as ne,b as de}from"./dropdown-item.dc1b3a74.js";/* empty css */import"./popper.718d36e0.js";/* empty css *//* empty css *//* empty css */import{S as fe}from"./SvgIcon.eefd5347.js";/* empty css */import{u as ve}from"./storage-list.84919783.js";import{b as w}from"./route-block.9b0645f8.js";import{_ as ge}from"./plugin-vue_export-helper.21dcd24c.js";import{E as ue}from"./index.9c287fed.js";import{E as be}from"./index.a1ce1e68.js";import{E as pe}from"./index.da7dbe5d.js";import{v as ye}from"./directive.378eb0e0.js";import"./index.88f36c37.js";import"./request.e2daed10.js";import"./dropdown.2ef7612f.js";import"./event.3ec63147.js";import"./index.566ad052.js";import"./refs.f6f7d296.js";import"./focus-trap.4cfde4b4.js";import"./admin-storage.442a3cb6.js";import"./sortable.esm.a99254e8.js";import"./index.439070da.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./validator.b1ae6965.js";import"./event.776e7e11.js";var me="/assets/403.07bdf36d.svg",Se=Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"})),je="/assets/404.46de94fc.svg",Oe=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"})),Te="/assets/add-file.9d01a01a.svg",he=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"})),Pe="/assets/add-folder-back.28141d7f.svg",Me=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"})),ze="/assets/add-folder.7ef044d1.svg",xe=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"})),we="/assets/add.598ba734.svg",ke=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"})),Ee="/assets/admin-login.db1d73c1.svg",Ce=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),De="/assets/aliyun.0f005258.svg",Ie=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),Fe="/assets/baidu.4a11f5ee.svg",Le=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"})),Re="/assets/cancel.ba311fb8.svg",Ve=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"})),Be="/assets/card-layout.0aa8ea66.svg",$e=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"})),Ae="/assets/check.8203fabe.svg",Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Ae},Symbol.toStringTag,{value:"Module"})),qe="/assets/clean.cc9d5116.svg",Je=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Ne="/assets/copy.0d4a2f7b.svg",Xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"})),He="/assets/delete.06c9bd69.svg",Ke=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"})),Qe="/assets/download-mult.4332fce8.svg",We=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"})),Ye="/assets/download-package.62191a76.svg",Ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"})),Ge="/assets/download.f863f7c2.svg",et=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"})),tt="/assets/edit.a2e2c356.svg",st=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),ot="/assets/empty.d5d3dec8.svg",lt=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"})),at="/assets/error.69207ff6.svg",rt=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),_t="/assets/file-type-apk.e1385fc3.svg",it=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"})),ct="/assets/file-type-archive.f4b181db.svg",nt=Object.freeze(Object.defineProperty({__proto__:null,default:ct},Symbol.toStringTag,{value:"Module"})),dt="/assets/file-type-audio.94e75894.svg",ft=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),vt="/assets/file-type-back.ca0b84c2.svg",gt=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"})),ut="/assets/file-type-css.5dfb9ed8.svg",bt=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"})),pt="/assets/file-type-deb.5804788b.svg",yt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"})),mt="/assets/file-type-dll.6ea302d9.svg",St=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"})),jt="/assets/file-type-doc.a9d08313.svg",Ot=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"})),Tt="/assets/file-type-document.b6e28e75.svg",ht=Object.freeze(Object.defineProperty({__proto__:null,default:Tt},Symbol.toStringTag,{value:"Module"})),Pt="/assets/file-type-doc.a9d08313.svg",Mt=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"})),zt="/assets/file-type-exe.b561ed3f.svg",xt=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"})),wt="/assets/file-type-expression.3aaf04f1.svg",kt=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"})),Et="/assets/file-type-file.47afa61a.svg",Ct=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"})),Dt="/assets/file-type-folder.35bcb02c.svg",It=Object.freeze(Object.defineProperty({__proto__:null,default:Dt},Symbol.toStringTag,{value:"Module"})),Ft="/assets/file-type-html.e37c00f9.svg",Lt=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"})),Rt="/assets/file-type-image.689e667c.svg",Vt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"})),Bt="/assets/file-type-java.e50a4779.svg",$t=Object.freeze(Object.defineProperty({__proto__:null,default:Bt},Symbol.toStringTag,{value:"Module"})),At="/assets/file-type-js.5c3b67c3.svg",Ut=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"})),qt="/assets/file-type-less.429d4f89.svg",Jt=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Nt="/assets/file-type-md.4dd32bf9.svg",Xt=Object.freeze(Object.defineProperty({__proto__:null,default:Nt},Symbol.toStringTag,{value:"Module"})),Ht="/assets/file-type-office.9af40573.svg",Kt=Object.freeze(Object.defineProperty({__proto__:null,default:Ht},Symbol.toStringTag,{value:"Module"})),Qt="/assets/file-type-pdf.1e018e0c.svg",Wt=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"})),Yt="/assets/file-type-php.4feb4413.svg",Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),Gt="/assets/file-type-ppt.3d3e6af9.svg",es=Object.freeze(Object.defineProperty({__proto__:null,default:Gt},Symbol.toStringTag,{value:"Module"})),ts="/assets/file-type-ppt.3d3e6af9.svg",ss=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),os="/assets/file-type-py.09b51350.svg",ls=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),as="/assets/file-type-rb.32961396.svg",rs=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),_s="/assets/file-type-root.80ddc97b.svg",is=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),cs="/assets/file-type-rpm.559b18a5.svg",ns=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),ds="/assets/file-type-rust.69994176.svg",fs=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),vs="/assets/file-type-script.52b80ced.svg",gs=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),us="/assets/file-type-text.8ff306a0.svg",bs=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),ps="/assets/file-type-vbs.22c9b0b7.svg",ys=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),ms="/assets/file-type-video.888eeb7b.svg",Ss=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),js="/assets/file-type-xls.db6934ae.svg",Os=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Ts="/assets/file-type-xls.db6934ae.svg",hs=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),Ps="/assets/file-type-xml.234b67f6.svg",Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),zs="/assets/file-type-yaml.c1af7aa9.svg",xs=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),ws="/assets/file-upload.65dff662.svg",ks=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),Es="/assets/files.a94428cd.svg",Cs=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),Ds="/assets/ftp.c6a679c1.svg",Is=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Fs="/assets/huawei.57d8824c.svg",Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Rs="/assets/image.69ca2c19.svg",Vs=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Bs="/assets/img-disable.16380239.svg",$s=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),As="/assets/img-enable.ca957fe0.svg",Us=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),qs="/assets/info.54497d89.svg",Js=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Ns="/assets/install-step.28fbaa8c.svg",Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Hs="/assets/link.0a44cb5c.svg",Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Qs="/assets/local.f6bc02e5.svg",Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ys="/assets/login.e2217ec4.svg",Zs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Gs="/assets/minio.e5474b90.svg",eo=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),to="/assets/move.897d1439.svg",so=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"})),oo="/assets/new-folder.549c271c.svg",lo=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),ao="/assets/next.ed93fad9.svg",ro=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),_o="/assets/onedrive-china.f477f7d4.svg",io=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),co="/assets/onedrive.1120a54d.svg",no=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),fo="/assets/prev.f23ef4a8.svg",vo=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),go="/assets/preview.330b1af8.svg",uo=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"})),bo="/assets/qiniu.6036c6bb.svg",po=Object.freeze(Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),yo="/assets/refresh.44905e7c.svg",mo=Object.freeze(Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),So="/assets/reset-password.b19e1ea5.svg",jo=Object.freeze(Object.defineProperty({__proto__:null,default:So},Symbol.toStringTag,{value:"Module"})),Oo="/assets/s3.280509b0.svg",To=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),ho="/assets/search.8b68470c.svg",Po=Object.freeze(Object.defineProperty({__proto__:null,default:ho},Symbol.toStringTag,{value:"Module"})),Mo="/assets/select-all.4aaccd3e.svg",zo=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"})),xo="/assets/server.f8a853a2.svg",wo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),ko="/assets/settings.b524ea2e.svg",Eo=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),Co="/assets/sftp.c71078df.svg",Do=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"})),Io="/assets/sharepoint-china.9907efac.svg",Fo=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Lo="/assets/sharepoint.1bd337fc.svg",Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"})),Vo="/assets/success.ddc7b948.svg",Bo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),$o="/assets/table-layout.e8017f7c.svg",Ao=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"})),Uo="/assets/target.182a531a.svg",qo=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"})),Jo="/assets/tencent.7b52a406.svg",No=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"})),Xo="/assets/test.b2ee4998.svg",Ho=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),Ko="/assets/tool-close.4c4ed1a4.svg",Qo=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"})),Wo="/assets/tool-close2.a77027c1.svg",Yo=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"})),Zo="/assets/tool-delete.306633e9.svg",Go=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),el="/assets/tool-download-mult.3461b3f2.svg",tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),sl="/assets/tool-download-package.0ea9ae5f.svg",ol=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ll="/assets/tool-download.b65826a2.svg",al=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),rl="/assets/tool-edit.405fd9c3.svg",_l=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il="/assets/tool-link.6a893d0f.svg",cl=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),nl="/assets/tool-move.fa418958.svg",dl=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),fl="/assets/tool-preview.13c8406c.svg",vl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),gl="/assets/tool-setting.f36fb1c2.svg",ul=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),bl="/assets/ufile.e305639b.svg",pl=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),yl="/assets/upload-1.f348e120.svg",ml=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl="/assets/upload-folder.8e924b23.svg",jl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Ol="/assets/upload.a9eeb994.svg",Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),hl="/assets/upyun.b24d52ea.svg",Pl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),Ml="/assets/warning.7093bb23.svg",zl=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),xl="/assets/webdav.c885a54c.svg",wl=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),kl="/assets/zfile.76406368.svg",El=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"}));const g=u=>(W("data-v-100f3cc4"),u=u(),Y(),u),Cl=g(()=>t("div",{class:"flex justify-between"},[t("h3",{class:"text-lg leading-6 font-medium text-gray-900"}," \u5B58\u50A8\u6E90\u4FE1\u606F ")],-1)),Dl={class:"my-2 text-sm text-gray-500 flex justify-between flex-wrap"},Il=g(()=>t("div",null,[a(" \u6B64\u9875\u53EF\u4EE5\u7EF4\u62A4\u60A8\u7684\u5B58\u50A8\u6E90\u4FE1\u606F\uFF0C\u53EF\u4EE5\u62D6\u52A8\u4EA4\u6362\u5B58\u50A8\u6E90\u4E4B\u95F4\u7684\u987A\u5E8F. \u914D\u7F6E\u793A\u4F8B\u53EF\u53C2\u8003\uFF1A "),t("a",{class:"link",target:"_blank",href:"https://docs.zfile.vip/#/example"},"ZFile \u5B58\u50A8\u6E90\u914D\u7F6E\u6587\u6863")],-1)),Fl={role:"list",class:"storage-container grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"},Ll=["onDblclick"],Rl={class:"flex-1 flex flex-col p-8 pb-4 relative"},Vl={class:"rounded-full bg-blue-50 w-fit mx-auto"},Bl=["src"],$l={class:"mt-2 text-gray-900 text-sm font-medium"},Al={class:"mt-1 flex-grow flex flex-col justify-between"},Ul={class:"text-gray-500 text-sm line-clamp-1"},ql={class:"mt-2 space-x-1"},Jl=a("\u542F\u7528"),Nl=a("\u505C\u7528"),Xl=a("\u7F13\u5B58"),Hl={class:"text-sm font-medium"},Kl=a(" \u5237\u65B0\u4EE4\u724C\u6210\u529F "),Ql={class:"text-xs text-gray-500"},Wl=a("\u5237\u65B0\u4EE4\u724C\u6210\u529F"),Yl={class:"text-sm font-medium"},Zl=a(" \u5237\u65B0\u4EE4\u724C\u5931\u8D25 "),Gl={class:"text-xs text-gray-500"},ea={class:"text-xs text-red-500"},ta=a("\u5237\u65B0\u4EE4\u724C\u5931\u8D25"),sa={class:"-mt-px border-t flex divide-x divide-gray-200"},oa=["onClick"],la={class:"hover:text-blue-500 relative -mr-px w-0 flex-1 inline-flex items-center justify-center py-2 text-sm text-gray-700 font-medium border border-transparent rounded-bl-lg hover:text-gray-500 ml-3"},aa=a(" \u7F16\u8F91 "),ra={class:"w-0 flex-1 flex cursor-pointer"},_a={class:"hover:text-blue-500 relative -mr-px w-0 flex-1 inline-flex items-center justify-center py-2 text-sm text-gray-700 font-medium border border-transparent rounded-bl-lg hover:text-gray-500 ml-3"},ia={class:"text-sm font-medium"},ca=g(()=>t("span",null,"\u66F4\u591A",-1)),na=a("\u7F16\u8F91"),da=a("\u542F\u7528"),fa=a("\u505C\u7528"),va=g(()=>t("div",{class:"divider"},null,-1)),ga=a("\u76EE\u5F55\u6587\u6863"),ua=a("\u6587\u4EF6\u8FC7\u6EE4"),ba=a("\u5BC6\u7801\u8BBE\u7F6E"),pa=g(()=>t("div",{class:"divider"},null,-1)),ya=a("\u5220\u9664"),ma={class:"flex-1 flex flex-col p-8 mx-auto justify-center"},k={__name:"storage-list",setup(u){let E=N();const{init:C,loading:D,searchKey:p,storageListSearchResult:I,handleOperator:F,editStorage:j,addStorage:O,deleteStorage:L,switchEnableStatus:T}=ve(E);X(()=>{C()});const R=h=>{const _=`/src/assets/icons/${h}.svg`,b={"/src/assets/icons/401.svg":U,"/src/assets/icons/403.svg":Se,"/src/assets/icons/404.svg":Oe,"/src/assets/icons/add-file.svg":he,"/src/assets/icons/add-folder-back.svg":Me,"/src/assets/icons/add-folder.svg":xe,"/src/assets/icons/add.svg":ke,"/src/assets/icons/admin-login.svg":Ce,"/src/assets/icons/aliyun.svg":Ie,"/src/assets/icons/baidu.svg":Le,"/src/assets/icons/cancel.svg":Ve,"/src/assets/icons/card-layout.svg":$e,"/src/assets/icons/check.svg":Ue,"/src/assets/icons/clean.svg":Je,"/src/assets/icons/copy.svg":Xe,"/src/assets/icons/delete.svg":Ke,"/src/assets/icons/download-mult.svg":We,"/src/assets/icons/download-package.svg":Ze,"/src/assets/icons/download.svg":et,"/src/assets/icons/edit.svg":st,"/src/assets/icons/empty.svg":lt,"/src/assets/icons/error.svg":rt,"/src/assets/icons/file-type-apk.svg":it,"/src/assets/icons/file-type-archive.svg":nt,"/src/assets/icons/file-type-audio.svg":ft,"/src/assets/icons/file-type-back.svg":gt,"/src/assets/icons/file-type-css.svg":bt,"/src/assets/icons/file-type-deb.svg":yt,"/src/assets/icons/file-type-dll.svg":St,"/src/assets/icons/file-type-doc.svg":Ot,"/src/assets/icons/file-type-document.svg":ht,"/src/assets/icons/file-type-docx.svg":Mt,"/src/assets/icons/file-type-exe.svg":xt,"/src/assets/icons/file-type-expression.svg":kt,"/src/assets/icons/file-type-file.svg":Ct,"/src/assets/icons/file-type-folder.svg":It,"/src/assets/icons/file-type-html.svg":Lt,"/src/assets/icons/file-type-image.svg":Vt,"/src/assets/icons/file-type-java.svg":$t,"/src/assets/icons/file-type-js.svg":Ut,"/src/assets/icons/file-type-less.svg":Jt,"/src/assets/icons/file-type-md.svg":Xt,"/src/assets/icons/file-type-office.svg":Kt,"/src/assets/icons/file-type-pdf.svg":Wt,"/src/assets/icons/file-type-php.svg":Zt,"/src/assets/icons/file-type-ppt.svg":es,"/src/assets/icons/file-type-pptx.svg":ss,"/src/assets/icons/file-type-py.svg":ls,"/src/assets/icons/file-type-rb.svg":rs,"/src/assets/icons/file-type-root.svg":is,"/src/assets/icons/file-type-rpm.svg":ns,"/src/assets/icons/file-type-rust.svg":fs,"/src/assets/icons/file-type-script.svg":gs,"/src/assets/icons/file-type-text.svg":bs,"/src/assets/icons/file-type-vbs.svg":ys,"/src/assets/icons/file-type-video.svg":Ss,"/src/assets/icons/file-type-xls.svg":Os,"/src/assets/icons/file-type-xlsx.svg":hs,"/src/assets/icons/file-type-xml.svg":Ms,"/src/assets/icons/file-type-yaml.svg":xs,"/src/assets/icons/file-upload.svg":ks,"/src/assets/icons/files.svg":Cs,"/src/assets/icons/ftp.svg":Is,"/src/assets/icons/huawei.svg":Ls,"/src/assets/icons/image.svg":Vs,"/src/assets/icons/img-disable.svg":$s,"/src/assets/icons/img-enable.svg":Us,"/src/assets/icons/info.svg":Js,"/src/assets/icons/install-step.svg":Xs,"/src/assets/icons/link.svg":Ks,"/src/assets/icons/local.svg":Ws,"/src/assets/icons/login.svg":Zs,"/src/assets/icons/minio.svg":eo,"/src/assets/icons/move.svg":so,"/src/assets/icons/new-folder.svg":lo,"/src/assets/icons/next.svg":ro,"/src/assets/icons/onedrive-china.svg":io,"/src/assets/icons/onedrive.svg":no,"/src/assets/icons/prev.svg":vo,"/src/assets/icons/preview.svg":uo,"/src/assets/icons/qiniu.svg":po,"/src/assets/icons/refresh.svg":mo,"/src/assets/icons/reset-password.svg":jo,"/src/assets/icons/s3.svg":To,"/src/assets/icons/search.svg":Po,"/src/assets/icons/select-all.svg":zo,"/src/assets/icons/server.svg":wo,"/src/assets/icons/settings.svg":Eo,"/src/assets/icons/sftp.svg":Do,"/src/assets/icons/sharepoint-china.svg":Fo,"/src/assets/icons/sharepoint.svg":Ro,"/src/assets/icons/success.svg":Bo,"/src/assets/icons/table-layout.svg":Ao,"/src/assets/icons/target.svg":qo,"/src/assets/icons/tencent.svg":No,"/src/assets/icons/test.svg":Ho,"/src/assets/icons/tool-close.svg":Qo,"/src/assets/icons/tool-close2.svg":Yo,"/src/assets/icons/tool-delete.svg":Go,"/src/assets/icons/tool-download-mult.svg":tl,"/src/assets/icons/tool-download-package.svg":ol,"/src/assets/icons/tool-download.svg":al,"/src/assets/icons/tool-edit.svg":_l,"/src/assets/icons/tool-link.svg":cl,"/src/assets/icons/tool-move.svg":dl,"/src/assets/icons/tool-preview.svg":vl,"/src/assets/icons/tool-setting.svg":ul,"/src/assets/icons/ufile.svg":pl,"/src/assets/icons/upload-1.svg":ml,"/src/assets/icons/upload-folder.svg":jl,"/src/assets/icons/upload.svg":Tl,"/src/assets/icons/upyun.svg":Pl,"/src/assets/icons/warning.svg":zl,"/src/assets/icons/webdav.svg":wl,"/src/assets/icons/zfile-basic.svg":q,"/src/assets/icons/zfile-horizontal.svg":J,"/src/assets/icons/zfile.svg":El};if(b[_])return b[_].default};return(h,_)=>{const b=pe,y=fe,c=ue,P=be,M=_e,i=ce,V=ne,B=de,$=ie,A=ye;return n(),m("div",null,[d((n(),S($,null,{default:o(()=>[t("div",null,[Cl,t("div",Dl,[Il,t("div",null,[s(b,{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",modelValue:l(p),"onUpdate:modelValue":_[0]||(_[0]=e=>H(p)?p.value=e:null),"prefix-icon":l(Z)},null,8,["modelValue","prefix-icon"])])])]),t("ul",Fl,[(n(!0),m(K,null,Q(l(I),e=>(n(),m("li",{key:e.id,onDblclick:r=>l(j)(e),class:"storage-item group col-span-1 flex flex-col text-center bg-white rounded-lg border hover:shadow"},[t("div",Rl,[s(y,{onClick:r=>l(L)(e),name:"delete",class:"absolute right-3 top-3 cursor-pointer group-hover:text-red-500"},null,8,["onClick"]),t("div",Vl,[t("img",{class:"w-20 h-20 flex-shrink-0 mx-auto p-4",src:R(e.type.key)},null,8,Bl)]),t("h3",$l,f(e.name),1),t("dl",Al,[t("dd",Ul,f(e.remark),1),t("dd",ql,[s(c,{type:""},{default:o(()=>[a(f(e.type.description),1)]),_:2},1024),d(s(c,{type:"success",onClick:r=>l(T)(e)},{default:o(()=>[Jl]),_:2},1032,["onClick"]),[[v,e.enable]]),d(s(c,{type:"danger",onClick:r=>l(T)(e)},{default:o(()=>[Nl]),_:2},1032,["onClick"]),[[v,!e.enable]]),d(s(c,{type:"success"},{default:o(()=>[Xl]),_:2},1536),[[v,e.enableCache]]),s(P,{placement:"top",width:250,trigger:"hover"},{reference:o(()=>{var r;return[d(s(c,{type:"success"},{default:o(()=>[Wl]),_:2},1536),[[v,(r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.success]])]}),default:o(()=>{var r;return[t("div",null,[t("div",Hl,[s(y,{name:"check",class:"inline text-green-500"}),Kl]),t("div",Ql,"\u4E0A\u6B21\u5237\u65B0\u65F6\u95F4: "+f((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.lastRefreshTime),1)])]}),_:2},1024),s(P,{placement:"top",width:250,trigger:"hover"},{reference:o(()=>{var r;return[d(s(c,{type:"danger"},{default:o(()=>[ta]),_:2},1536),[[v,((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.success)===!1]])]}),default:o(()=>{var r,z;return[t("div",null,[t("div",Yl,[s(y,{name:"error",class:"inline text-red-500"}),Zl]),t("div",Gl,"\u4E0A\u6B21\u5237\u65B0\u65F6\u95F4: "+f((r=e==null?void 0:e.refreshTokenInfo)==null?void 0:r.lastRefreshTime),1),t("div",ea,"\u5931\u8D25\u4FE1\u606F: "+f((z=e==null?void 0:e.refreshTokenInfo)==null?void 0:z.msg),1)])]}),_:2},1024)])])]),t("div",sa,[t("div",{onClick:r=>l(j)(e),class:"w-0 flex-1 flex cursor-pointer"},[t("span",la,[s(M,{class:"mr-2"},{default:o(()=>[s(l(x))]),_:1}),aa])],8,oa),s(B,{onCommand:l(F),class:"cursor-pointer flex-1"},{dropdown:o(()=>[s(V,null,{default:o(()=>[s(i,{icon:l(x),command:{operator:"edit",storage:e}},{default:o(()=>[na]),_:2},1032,["icon","command"]),e.enable?(n(),S(i,{key:1,icon:l(ee),command:{operator:"enable",storage:e}},{default:o(()=>[fa]),_:2},1032,["icon","command"])):(n(),S(i,{key:0,icon:l(G),command:{operator:"enable",storage:e}},{default:o(()=>[da]),_:2},1032,["icon","command"])),va,s(i,{icon:l(te),command:{operator:"readmeManager",storage:e}},{default:o(()=>[ga]),_:2},1032,["icon","command"]),s(i,{icon:l(se),command:{operator:"filterManager",storage:e}},{default:o(()=>[ua]),_:2},1032,["icon","command"]),s(i,{icon:l(oe),command:{operator:"pwdManager",storage:e}},{default:o(()=>[ba]),_:2},1032,["icon","command"]),pa,s(i,{icon:l(le),command:{operator:"delete",storage:e}},{default:o(()=>[ya]),_:2},1032,["icon","command"])]),_:2},1024)]),default:o(()=>[t("div",ra,[t("span",_a,[t("span",ia,[s(M,{class:"mr-2"},{default:o(()=>[s(l(ae))]),_:1}),ca])])])]),_:2},1032,["onCommand"])])],40,Ll))),128)),t("li",{onClick:_[1]||(_[1]=(...e)=>l(O)&&l(O)(...e)),class:"add-storage-btn cursor-pointer col-span-1 flex flex-col text-center bg-white rounded-lg border hover:shadow"},[t("div",ma,[s(l(re),{class:"h-20 text-gray-300"})])])])]),_:1})),[[A,l(D)]])])}}};typeof w=="function"&&w(k);var sr=ge(k,[["__scopeId","data-v-100f3cc4"]]);export{sr as default}; diff --git a/src/main/resources/static/assets/switch.2393edfd.js b/src/main/resources/static/assets/switch.87050cd5.js similarity index 88% rename from src/main/resources/static/assets/switch.2393edfd.js rename to src/main/resources/static/assets/switch.87050cd5.js index 49e19fc..aaee0eb 100644 --- a/src/main/resources/static/assets/switch.2393edfd.js +++ b/src/main/resources/static/assets/switch.87050cd5.js @@ -1 +1 @@ -import{m as C,d as R,c as u,r as I,w as V,o as X,a,f as h,p as S,u as i,n as r,B as Y,b as d,e as v,q as g,k as n,t as y,F as U,h as $,i as F,j as ee,a0 as ie,Z as te,aB as O}from"./index.552205f5.js";import{b as le,N as A,d as ae,C as x,V as E,aq as se,W as oe,u as ne,M as ce,U as re,q as he,P as de,o as ue,E as f,a5 as pe,_ as we,t as ve,w as fe}from"./base.d698891e.js";import{i as _e}from"./validator.6f3b33db.js";import{U as T,C as N,I as B}from"./event.776e7e11.js";const me=le({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:A,default:""},inactiveIcon:{type:A,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:ae(Function)},size:{type:String,validator:_e},tabindex:{type:[String,Number]}}),be={[T]:o=>x(o)||C(o)||E(o),[N]:o=>x(o)||C(o)||E(o),[B]:o=>x(o)||C(o)||E(o)},ge=["onClick"],ye=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],xe=["aria-hidden"],ke=["aria-hidden"],Ce=["aria-hidden"],Ie=["aria-hidden"],Ve={name:"ElSwitch"},Se=R({...Ve,props:me,emits:be,setup(o,{expose:K,emit:p}){const l=o,z="ElSwitch",j=ie(),{formItem:_}=se(),q=oe(),t=ne("switch");ce({from:'"value"',replacement:'"model-value" or "v-model"',scope:z,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},u(()=>{var e;return!!((e=j.vnode.props)!=null&&e.value)}));const{inputId:W}=re(l,{formItemContext:_}),m=he(u(()=>l.loading)),k=I(l.modelValue!==!1),w=I(),G=I(),H=u(()=>[t.b(),t.m(q.value),t.is("disabled",m.value),t.is("checked",s.value)]),L=u(()=>({width:de(l.width)}));V(()=>l.modelValue,()=>{k.value=!0}),V(()=>l.value,()=>{k.value=!1});const P=u(()=>k.value?l.modelValue:l.value),s=u(()=>P.value===l.activeValue);[l.activeValue,l.inactiveValue].includes(P.value)||(p(T,l.inactiveValue),p(N,l.inactiveValue),p(B,l.inactiveValue)),V(s,e=>{var c;w.value.checked=e,l.validateEvent&&((c=_==null?void 0:_.validate)==null||c.call(_,"change").catch(Q=>ue()))});const b=()=>{const e=s.value?l.inactiveValue:l.activeValue;p(T,e),p(N,e),p(B,e),te(()=>{w.value.checked=s.value})},D=()=>{if(m.value)return;const{beforeChange:e}=l;if(!e){b();return}const c=e();[O(c),x(c)].includes(!0)||ve(z,"beforeChange must return type `Promise` or `boolean`"),O(c)?c.then(M=>{M&&b()}).catch(M=>{}):c&&b()},Z=u(()=>t.cssVarBlock({...l.activeColor?{"on-color":l.activeColor}:null,...l.inactiveColor?{"off-color":l.inactiveColor}:null,...l.borderColor?{"border-color":l.borderColor}:null})),J=()=>{var e,c;(c=(e=w.value)==null?void 0:e.focus)==null||c.call(e)};return X(()=>{w.value.checked=s.value}),K({focus:J}),(e,c)=>(a(),h("div",{class:r(i(H)),style:F(i(Z)),onClick:ee(D,["prevent"])},[S("input",{id:i(W),ref_key:"input",ref:w,class:r(i(t).e("input")),type:"checkbox",role:"switch","aria-checked":i(s),"aria-disabled":i(m),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(m),tabindex:e.tabindex,onChange:b,onKeydown:Y(D,["enter"])},null,42,ye),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText)?(a(),h("span",{key:0,class:r([i(t).e("label"),i(t).em("label","left"),i(t).is("active",!i(s))])},[e.inactiveIcon?(a(),d(i(f),{key:0},{default:v(()=>[(a(),d(g(e.inactiveIcon)))]),_:1})):n("v-if",!0),!e.inactiveIcon&&e.inactiveText?(a(),h("span",{key:1,"aria-hidden":i(s)},y(e.inactiveText),9,xe)):n("v-if",!0)],2)):n("v-if",!0),S("span",{ref_key:"core",ref:G,class:r(i(t).e("core")),style:F(i(L))},[e.inlinePrompt?(a(),h("div",{key:0,class:r(i(t).e("inner"))},[e.activeIcon||e.inactiveIcon?(a(),h(U,{key:0},[e.activeIcon?(a(),d(i(f),{key:0,class:r([i(t).is("icon"),i(s)?i(t).is("show"):i(t).is("hide")])},{default:v(()=>[(a(),d(g(e.activeIcon)))]),_:1},8,["class"])):n("v-if",!0),e.inactiveIcon?(a(),d(i(f),{key:1,class:r([i(t).is("icon"),i(s)?i(t).is("hide"):i(t).is("show")])},{default:v(()=>[(a(),d(g(e.inactiveIcon)))]),_:1},8,["class"])):n("v-if",!0)],64)):e.activeText||e.inactiveIcon?(a(),h(U,{key:1},[e.activeText?(a(),h("span",{key:0,class:r([i(t).is("text"),i(s)?i(t).is("show"):i(t).is("hide")]),"aria-hidden":!i(s)},y(e.activeText.substring(0,3)),11,ke)):n("v-if",!0),e.inactiveText?(a(),h("span",{key:1,class:r([i(t).is("text"),i(s)?i(t).is("hide"):i(t).is("show")]),"aria-hidden":i(s)},y(e.inactiveText.substring(0,3)),11,Ce)):n("v-if",!0)],64)):n("v-if",!0)],2)):n("v-if",!0),S("div",{class:r(i(t).e("action"))},[e.loading?(a(),d(i(f),{key:0,class:r(i(t).is("loading"))},{default:v(()=>[$(i(pe))]),_:1},8,["class"])):n("v-if",!0)],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText)?(a(),h("span",{key:1,class:r([i(t).e("label"),i(t).em("label","right"),i(t).is("active",i(s))])},[e.activeIcon?(a(),d(i(f),{key:0},{default:v(()=>[(a(),d(g(e.activeIcon)))]),_:1})):n("v-if",!0),!e.activeIcon&&e.activeText?(a(),h("span",{key:1,"aria-hidden":!i(s)},y(e.activeText),9,Ie)):n("v-if",!0)],2)):n("v-if",!0)],14,ge))}});var Ee=we(Se,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Pe=fe(Ee);export{Pe as E}; +import{m as C,d as R,c as u,r as I,w as V,o as X,a,f as h,p as S,u as i,n as r,B as Y,b as d,e as v,q as g,k as n,t as y,F as U,h as $,i as F,j as ee,a0 as ie,Z as te,aC as O}from"./index.43b3cbf5.js";import{b as le,N as A,d as ae,C as x,V as E,aq as se,W as oe,u as ne,M as ce,U as re,q as he,P as de,o as ue,E as f,a5 as pe,_ as we,t as ve,w as fe}from"./base.4ef7f45b.js";import{i as _e}from"./validator.b1ae6965.js";import{U as T,C as N,I as z}from"./event.776e7e11.js";const me=le({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:A,default:""},inactiveIcon:{type:A,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:ae(Function)},size:{type:String,validator:_e},tabindex:{type:[String,Number]}}),be={[T]:o=>x(o)||C(o)||E(o),[N]:o=>x(o)||C(o)||E(o),[z]:o=>x(o)||C(o)||E(o)},ge=["onClick"],ye=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],xe=["aria-hidden"],ke=["aria-hidden"],Ce=["aria-hidden"],Ie=["aria-hidden"],Ve={name:"ElSwitch"},Se=R({...Ve,props:me,emits:be,setup(o,{expose:K,emit:p}){const l=o,B="ElSwitch",j=ie(),{formItem:_}=se(),q=oe(),t=ne("switch");ce({from:'"value"',replacement:'"model-value" or "v-model"',scope:B,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},u(()=>{var e;return!!((e=j.vnode.props)!=null&&e.value)}));const{inputId:W}=re(l,{formItemContext:_}),m=he(u(()=>l.loading)),k=I(l.modelValue!==!1),w=I(),G=I(),H=u(()=>[t.b(),t.m(q.value),t.is("disabled",m.value),t.is("checked",s.value)]),L=u(()=>({width:de(l.width)}));V(()=>l.modelValue,()=>{k.value=!0}),V(()=>l.value,()=>{k.value=!1});const P=u(()=>k.value?l.modelValue:l.value),s=u(()=>P.value===l.activeValue);[l.activeValue,l.inactiveValue].includes(P.value)||(p(T,l.inactiveValue),p(N,l.inactiveValue),p(z,l.inactiveValue)),V(s,e=>{var c;w.value.checked=e,l.validateEvent&&((c=_==null?void 0:_.validate)==null||c.call(_,"change").catch(Q=>ue()))});const b=()=>{const e=s.value?l.inactiveValue:l.activeValue;p(T,e),p(N,e),p(z,e),te(()=>{w.value.checked=s.value})},D=()=>{if(m.value)return;const{beforeChange:e}=l;if(!e){b();return}const c=e();[O(c),x(c)].includes(!0)||ve(B,"beforeChange must return type `Promise` or `boolean`"),O(c)?c.then(M=>{M&&b()}).catch(M=>{}):c&&b()},Z=u(()=>t.cssVarBlock({...l.activeColor?{"on-color":l.activeColor}:null,...l.inactiveColor?{"off-color":l.inactiveColor}:null,...l.borderColor?{"border-color":l.borderColor}:null})),J=()=>{var e,c;(c=(e=w.value)==null?void 0:e.focus)==null||c.call(e)};return X(()=>{w.value.checked=s.value}),K({focus:J}),(e,c)=>(a(),h("div",{class:r(i(H)),style:F(i(Z)),onClick:ee(D,["prevent"])},[S("input",{id:i(W),ref_key:"input",ref:w,class:r(i(t).e("input")),type:"checkbox",role:"switch","aria-checked":i(s),"aria-disabled":i(m),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(m),tabindex:e.tabindex,onChange:b,onKeydown:Y(D,["enter"])},null,42,ye),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText)?(a(),h("span",{key:0,class:r([i(t).e("label"),i(t).em("label","left"),i(t).is("active",!i(s))])},[e.inactiveIcon?(a(),d(i(f),{key:0},{default:v(()=>[(a(),d(g(e.inactiveIcon)))]),_:1})):n("v-if",!0),!e.inactiveIcon&&e.inactiveText?(a(),h("span",{key:1,"aria-hidden":i(s)},y(e.inactiveText),9,xe)):n("v-if",!0)],2)):n("v-if",!0),S("span",{ref_key:"core",ref:G,class:r(i(t).e("core")),style:F(i(L))},[e.inlinePrompt?(a(),h("div",{key:0,class:r(i(t).e("inner"))},[e.activeIcon||e.inactiveIcon?(a(),h(U,{key:0},[e.activeIcon?(a(),d(i(f),{key:0,class:r([i(t).is("icon"),i(s)?i(t).is("show"):i(t).is("hide")])},{default:v(()=>[(a(),d(g(e.activeIcon)))]),_:1},8,["class"])):n("v-if",!0),e.inactiveIcon?(a(),d(i(f),{key:1,class:r([i(t).is("icon"),i(s)?i(t).is("hide"):i(t).is("show")])},{default:v(()=>[(a(),d(g(e.inactiveIcon)))]),_:1},8,["class"])):n("v-if",!0)],64)):e.activeText||e.inactiveIcon?(a(),h(U,{key:1},[e.activeText?(a(),h("span",{key:0,class:r([i(t).is("text"),i(s)?i(t).is("show"):i(t).is("hide")]),"aria-hidden":!i(s)},y(e.activeText.substring(0,3)),11,ke)):n("v-if",!0),e.inactiveText?(a(),h("span",{key:1,class:r([i(t).is("text"),i(s)?i(t).is("hide"):i(t).is("show")]),"aria-hidden":i(s)},y(e.inactiveText.substring(0,3)),11,Ce)):n("v-if",!0)],64)):n("v-if",!0)],2)):n("v-if",!0),S("div",{class:r(i(t).e("action"))},[e.loading?(a(),d(i(f),{key:0,class:r(i(t).is("loading"))},{default:v(()=>[$(i(pe))]),_:1},8,["class"])):n("v-if",!0)],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText)?(a(),h("span",{key:1,class:r([i(t).e("label"),i(t).em("label","right"),i(t).is("active",i(s))])},[e.activeIcon?(a(),d(i(f),{key:0},{default:v(()=>[(a(),d(g(e.activeIcon)))]),_:1})):n("v-if",!0),!e.activeIcon&&e.activeText?(a(),h("span",{key:1,"aria-hidden":!i(s)},y(e.activeText),9,Ie)):n("v-if",!0)],2)):n("v-if",!0)],14,ge))}});var Ee=we(Se,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Pe=fe(Ee);export{Pe as E}; diff --git a/src/main/resources/static/assets/table-column.0ede6c12.js b/src/main/resources/static/assets/table-column.0ede6c12.js deleted file mode 100644 index 2c7bd7d..0000000 --- a/src/main/resources/static/assets/table-column.0ede6c12.js +++ /dev/null @@ -1 +0,0 @@ -import{b as i,d as s,u as n,_ as c,w as b}from"./base.d698891e.js";import{d as p,a,f as t,n as l,u as o,g as d,k as h,p as g,i as f,J as u,t as m}from"./index.552205f5.js";const v=i({header:{type:String,default:""},bodyStyle:{type:s([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),_={name:"ElCard"},x=p({..._,props:v,setup(w){const r=n("card");return(e,k)=>(a(),t("div",{class:l([o(r).b(),o(r).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?(a(),t("div",{key:0,class:l(o(r).e("header"))},[d(e.$slots,"header",{},()=>[u(m(e.header),1)])],2)):h("v-if",!0),g("div",{class:l(o(r).e("body")),style:f(e.bodyStyle)},[d(e.$slots,"default")],6)],2))}});var y=c(x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const C=b(y);export{C as E}; diff --git a/src/main/resources/static/assets/table-column.58e8e9a6.css b/src/main/resources/static/assets/table-column.58e8e9a6.css deleted file mode 100644 index 90c96a2..0000000 --- a/src/main/resources/static/assets/table-column.58e8e9a6.css +++ /dev/null @@ -1 +0,0 @@ -.el-card{--el-card-border-color: var(--el-border-color-light);--el-card-border-radius: 4px;--el-card-padding: 20px;--el-card-bg-color: var(--el-fill-color-blank);border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:hover,.el-card.is-hover-shadow:focus{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0} diff --git a/src/main/resources/static/assets/table-column.5d9b8d93.css b/src/main/resources/static/assets/table-column.5d9b8d93.css new file mode 100644 index 0000000..734c48c --- /dev/null +++ b/src/main/resources/static/assets/table-column.5d9b8d93.css @@ -0,0 +1 @@ +.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0} diff --git a/src/main/resources/static/assets/scrollbar.88366223.css b/src/main/resources/static/assets/tag.9021a61b.css similarity index 81% rename from src/main/resources/static/assets/scrollbar.88366223.css rename to src/main/resources/static/assets/tag.9021a61b.css index 5e47b4c..94979da 100644 --- a/src/main/resources/static/assets/scrollbar.88366223.css +++ b/src/main/resources/static/assets/tag.9021a61b.css @@ -1 +1 @@ -.el-tag{--el-tag-font-size: 12px;--el-tag-border-radius: 4px;--el-tag-border-radius-rounded: 9999px;--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary);--el-tag-text-color: var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size: 14px}.el-tag.el-tag--primary{--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color: var(--el-color-success-light-9);--el-tag-border-color: var(--el-color-success-light-8);--el-tag-hover-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color: var(--el-color-warning-light-9);--el-tag-border-color: var(--el-color-warning-light-8);--el-tag-hover-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color: var(--el-color-danger-light-9);--el-tag-border-color: var(--el-color-danger-light-8);--el-tag-hover-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color: var(--el-color-error-light-9);--el-tag-border-color: var(--el-color-error-light-8);--el-tag-hover-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color: var(--el-color-info-light-9);--el-tag-border-color: var(--el-color-info-light-8);--el-tag-hover-color: var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color: var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3);--el-tag-text-color: var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color: var(--el-color-success);--el-tag-border-color: var(--el-color-success);--el-tag-hover-color: var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color: var(--el-color-warning);--el-tag-border-color: var(--el-color-warning);--el-tag-hover-color: var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color: var(--el-color-danger);--el-tag-border-color: var(--el-color-danger);--el-tag-hover-color: var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color: var(--el-color-error);--el-tag-border-color: var(--el-color-error);--el-tag-hover-color: var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color: var(--el-color-info);--el-tag-border-color: var(--el-color-info);--el-tag-hover-color: var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color: var(--el-color-white)}.el-tag--plain{--el-tag-border-color: var(--el-color-primary-light-5);--el-tag-hover-color: var(--el-color-primary);--el-tag-bg-color: var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-primary-light-5);--el-tag-hover-color: var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-success-light-5);--el-tag-hover-color: var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-warning-light-5);--el-tag-hover-color: var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-danger-light-5);--el-tag-hover-color: var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-error-light-5);--el-tag-hover-color: var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-info-light-5);--el-tag-hover-color: var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size: 16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size: 12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-scrollbar{--el-scrollbar-opacity: .3;--el-scrollbar-bg-color: var(--el-text-color-secondary);--el-scrollbar-hover-opacity: .5;--el-scrollbar-hover-bg-color: var(--el-text-color-secondary);overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color, var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity, .3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color, var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity, .5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0} +.el-tag{--el-tag-font-size: 12px;--el-tag-border-radius: 4px;--el-tag-border-radius-rounded: 9999px;--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary);--el-tag-text-color: var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size: 14px}.el-tag.el-tag--primary{--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color: var(--el-color-success-light-9);--el-tag-border-color: var(--el-color-success-light-8);--el-tag-hover-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color: var(--el-color-warning-light-9);--el-tag-border-color: var(--el-color-warning-light-8);--el-tag-hover-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color: var(--el-color-danger-light-9);--el-tag-border-color: var(--el-color-danger-light-8);--el-tag-hover-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color: var(--el-color-error-light-9);--el-tag-border-color: var(--el-color-error-light-8);--el-tag-hover-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color: var(--el-color-info-light-9);--el-tag-border-color: var(--el-color-info-light-8);--el-tag-hover-color: var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color: var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3);--el-tag-text-color: var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color: var(--el-color-success);--el-tag-border-color: var(--el-color-success);--el-tag-hover-color: var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color: var(--el-color-warning);--el-tag-border-color: var(--el-color-warning);--el-tag-hover-color: var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color: var(--el-color-danger);--el-tag-border-color: var(--el-color-danger);--el-tag-hover-color: var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color: var(--el-color-error);--el-tag-border-color: var(--el-color-error);--el-tag-hover-color: var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color: var(--el-color-info);--el-tag-border-color: var(--el-color-info);--el-tag-hover-color: var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color: var(--el-color-white)}.el-tag--plain{--el-tag-border-color: var(--el-color-primary-light-5);--el-tag-hover-color: var(--el-color-primary);--el-tag-bg-color: var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-primary-light-5);--el-tag-hover-color: var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-success-light-5);--el-tag-hover-color: var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-warning-light-5);--el-tag-hover-color: var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-danger-light-5);--el-tag-hover-color: var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-error-light-5);--el-tag-hover-color: var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-info-light-5);--el-tag-hover-color: var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size: 16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size: 12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)} diff --git a/src/main/resources/static/assets/tool-download-mult.3461b3f2.svg b/src/main/resources/static/assets/tool-download-mult.3461b3f2.svg new file mode 100644 index 0000000..21af170 --- /dev/null +++ b/src/main/resources/static/assets/tool-download-mult.3461b3f2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/tool-download-package.0ea9ae5f.svg b/src/main/resources/static/assets/tool-download-package.0ea9ae5f.svg new file mode 100644 index 0000000..2dfe957 --- /dev/null +++ b/src/main/resources/static/assets/tool-download-package.0ea9ae5f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/static/assets/tool-download.bf4da40f.svg b/src/main/resources/static/assets/tool-download.b65826a2.svg similarity index 97% rename from src/main/resources/static/assets/tool-download.bf4da40f.svg rename to src/main/resources/static/assets/tool-download.b65826a2.svg index b93f7f6..70beea5 100644 --- a/src/main/resources/static/assets/tool-download.bf4da40f.svg +++ b/src/main/resources/static/assets/tool-download.b65826a2.svg @@ -1,4 +1,4 @@ - \ No newline at end of file diff --git a/src/main/resources/static/assets/typescript.2de48637.js b/src/main/resources/static/assets/typescript.eb9f23d5.js similarity index 85% rename from src/main/resources/static/assets/typescript.2de48637.js rename to src/main/resources/static/assets/typescript.eb9f23d5.js index efd914e..d2af6a8 100644 --- a/src/main/resources/static/assets/typescript.2de48637.js +++ b/src/main/resources/static/assets/typescript.eb9f23d5.js @@ -1,6 +1,6 @@ -import{m as s}from"./TextViewer.3239c454.js";import"./index.552205f5.js";import"./common.c93e08d7.js";import"./request.3708b2c4.js";import"./base.d698891e.js";import"./useFileUpload.b18c246f.js";import"./common.0f75f163.js";import"./index.11692625.js";import"./index.4ab44dc8.js";import"./event.776e7e11.js";import"./index.0f572ca8.js";import"./scroll.cbf731df.js";import"./event.3ec63147.js";import"./focus-trap.58847c97.js";import"./validator.6f3b33db.js";import"./index.1e624cbf.js";import"./directive.e250a256.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./TextViewer.0c511786.js";import"./index.43b3cbf5.js";import"./common.e7f4d4d2.js";import"./request.e2daed10.js";import"./base.4ef7f45b.js";import"./useFileUpload.72c71760.js";import"./common.72335e7c.js";import"./index.439070da.js";import"./index.da7dbe5d.js";import"./event.776e7e11.js";import"./index.d46124aa.js";import"./scroll.90c07eee.js";import"./event.3ec63147.js";import"./focus-trap.4cfde4b4.js";import"./validator.b1ae6965.js";import"./index.566ad052.js";import"./index.e7e80979.js";import"./directive.378eb0e0.js";import"./plugin-vue_export-helper.21dcd24c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(r,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!g.call(r,t)&&(i||t!=="default")&&c(r,t,{get:()=>e[t],enumerable:!(o=a(e,t))||o.enumerable});return r},n={};l(n,s);var j={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},F={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{j as conf,F as language}; + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,m=(r,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!g.call(r,t)&&(i||t!=="default")&&c(r,t,{get:()=>e[t],enumerable:!(o=a(e,t))||o.enumerable});return r},n={};m(n,s);var F={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},C={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{F as conf,C as language}; diff --git a/src/main/resources/static/assets/update-password.668901e0.js b/src/main/resources/static/assets/update-password.2ab71475.js similarity index 80% rename from src/main/resources/static/assets/update-password.668901e0.js rename to src/main/resources/static/assets/update-password.2ab71475.js index c536fae..e287a51 100644 --- a/src/main/resources/static/assets/update-password.668901e0.js +++ b/src/main/resources/static/assets/update-password.2ab71475.js @@ -1 +1 @@ -import{aL as y,aM as c,r as M}from"./base.d698891e.js";/* empty css */import{Z as P,a as q}from"./ZFormItem.7a4b4758.js";/* empty css *//* empty css */import{l as D,a as F}from"./admin-setting.158855e4.js";import{E as k}from"./request.3708b2c4.js";import{r as u,o as L,Q as R,u as o,a as h,b as z,e as r,h as a,J as f}from"./index.552205f5.js";import{b as w}from"./route-block.9b0645f8.js";import{r as B}from"./BadgeCheckIcon.09c2c42b.js";import{E as C}from"./index.4ab44dc8.js";import{v as U}from"./directive.e250a256.js";import"./index.c92ded65.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./event.776e7e11.js";const i=u({username:"",password:"",repassword:""}),Z=u({username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u8D26\u53F7"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],repassword:[{required:!0,validator:(n,e,s)=>{e===""?s(new Error("\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801")):e!==i.value.password?s(new Error("\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4E0D\u4E00\u81F4!")):s()}}]}),l=u();function I(){const n=e=>{e.value.validate(s=>{s&&(l.value=!0,F(i.value).then(()=>{k({message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),l.value=!1}))})};return L(()=>{D().then(e=>{i.value.username=e.data.username})}),{passwordData:i,updateLoading:l,updatePassword:n,passwordDataRules:Z}}const N=f(" \u5BC6\u7801\u4FE1\u606F "),J=f(" \u6B64\u5904\u53EF\u4EE5\u4FEE\u6539\u60A8\u7684\u7BA1\u7406\u5458\u767B\u5F55\u8D26\u53F7\u5BC6\u7801\uFF0C\u8BF7\u59A5\u5584\u4FDD\u7BA1 "),Q=f("\u4FDD\u5B58\u8BBE\u7F6E"),T={__name:"update-password",setup(n){const{passwordData:e,updateLoading:s,updatePassword:v,passwordDataRules:V}=I();let _=u();const x=()=>{v(_)};return(j,t)=>{const m=C,p=P,g=M,b=q,E=U;return R((h(),z(b,{model:o(e),rules:o(V),ref_key:"updatePasswordForm",ref:_},{"form-title":r(()=>[N]),"form-sub-title":r(()=>[J]),footer:r(()=>[a(g,{type:"primary",size:"default",icon:o(B),onClick:x},{default:r(()=>[Q]),_:1},8,["icon"])]),default:r(()=>[a(p,{prop:"username",label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:r(()=>[a(m,{id:"username","prefix-icon":o(y),modelValue:o(e).username,"onUpdate:modelValue":t[0]||(t[0]=d=>o(e).username=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),a(p,{prop:"password",label:"\u65B0\u5BC6\u7801"},{default:r(()=>[a(m,{id:"password","prefix-icon":o(c),modelValue:o(e).password,"onUpdate:modelValue":t[1]||(t[1]=d=>o(e).password=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),a(p,{prop:"repassword",label:"\u91CD\u590D\u65B0\u5BC6\u7801"},{default:r(()=>[a(m,{id:"repassword","prefix-icon":o(c),modelValue:o(e).repassword,"onUpdate:modelValue":t[2]||(t[2]=d=>o(e).repassword=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[E,o(s)]])}}};typeof w=="function"&&w(T);export{T as default}; +import{aL as y,aM as c,r as M}from"./base.4ef7f45b.js";/* empty css */import{Z as P,a as q}from"./ZFormItem.899c4541.js";/* empty css *//* empty css */import{l as D,a as F}from"./admin-setting.28847312.js";import{E as k}from"./request.e2daed10.js";import{r as u,o as L,Q as R,u as o,a as h,b as z,e as r,h as a,J as f}from"./index.43b3cbf5.js";import{b as w}from"./route-block.9b0645f8.js";import{r as B}from"./BadgeCheckIcon.8153a115.js";import{E as C}from"./index.da7dbe5d.js";import{v as U}from"./directive.378eb0e0.js";import"./index.5cf4e3bb.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./event.776e7e11.js";const i=u({username:"",password:"",repassword:""}),Z=u({username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u8D26\u53F7"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],repassword:[{required:!0,validator:(n,e,s)=>{e===""?s(new Error("\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801")):e!==i.value.password?s(new Error("\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4E0D\u4E00\u81F4!")):s()}}]}),l=u();function I(){const n=e=>{e.value.validate(s=>{s&&(l.value=!0,F(i.value).then(()=>{k({message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),l.value=!1}))})};return L(()=>{D().then(e=>{i.value.username=e.data.username})}),{passwordData:i,updateLoading:l,updatePassword:n,passwordDataRules:Z}}const N=f(" \u5BC6\u7801\u4FE1\u606F "),J=f(" \u6B64\u5904\u53EF\u4EE5\u4FEE\u6539\u60A8\u7684\u7BA1\u7406\u5458\u767B\u5F55\u8D26\u53F7\u5BC6\u7801\uFF0C\u8BF7\u59A5\u5584\u4FDD\u7BA1 "),Q=f("\u4FDD\u5B58\u8BBE\u7F6E"),T={__name:"update-password",setup(n){const{passwordData:e,updateLoading:s,updatePassword:v,passwordDataRules:V}=I();let _=u();const x=()=>{v(_)};return(j,t)=>{const m=C,p=P,g=M,b=q,E=U;return R((h(),z(b,{model:o(e),rules:o(V),ref_key:"updatePasswordForm",ref:_},{"form-title":r(()=>[N]),"form-sub-title":r(()=>[J]),footer:r(()=>[a(g,{type:"primary",size:"default",icon:o(B),onClick:x},{default:r(()=>[Q]),_:1},8,["icon"])]),default:r(()=>[a(p,{prop:"username",label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:r(()=>[a(m,{id:"username","prefix-icon":o(y),modelValue:o(e).username,"onUpdate:modelValue":t[0]||(t[0]=d=>o(e).username=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),a(p,{prop:"password",label:"\u65B0\u5BC6\u7801"},{default:r(()=>[a(m,{id:"password","prefix-icon":o(c),modelValue:o(e).password,"onUpdate:modelValue":t[1]||(t[1]=d=>o(e).password=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1}),a(p,{prop:"repassword",label:"\u91CD\u590D\u65B0\u5BC6\u7801"},{default:r(()=>[a(m,{id:"repassword","prefix-icon":o(c),modelValue:o(e).repassword,"onUpdate:modelValue":t[2]||(t[2]=d=>o(e).repassword=d),modelModifiers:{trim:!0}},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[E,o(s)]])}}};typeof w=="function"&&w(T);export{T as default}; diff --git a/src/main/resources/static/assets/useFileUpload.72c71760.js b/src/main/resources/static/assets/useFileUpload.72c71760.js new file mode 100644 index 0000000..835de90 --- /dev/null +++ b/src/main/resources/static/assets/useFileUpload.72c71760.js @@ -0,0 +1,137 @@ +import{u as Gn,d as Yn,e as q,f as Zn,g as Qn,E as H,h as Dt,i as Xn,j as $t}from"./request.e2daed10.js";import{d as kn,r as M,c as L,o as xn,ae as jt,a as D,b as Me,e as et,Q as Be,R as Oe,p as R,n as ge,q as Jn,k as te,t as Ut,i as Ie,g as ea,f as j,F as ta,j as tt,h as An,T as En,Y as At,m as na,ao as Nt,ap as Tn,M as Ue,w as $e,W as we,ad as Et,U as aa,V as oa,aq as ra,u as le,S as la,ar as ia,Z as at,a3 as sa,a4 as ca,$ as Bt,as as ua,at as pe}from"./index.43b3cbf5.js";import{c as se}from"./common.72335e7c.js";import{E as ne}from"./index.439070da.js";import{b as da,d as Ve,E as fa,a8 as ga,u as pa,a7 as Vt,_ as ha,R as ma,I as dt,B as va,H as ba,F as Kt,a9 as ya}from"./base.4ef7f45b.js";import{E as wa}from"./index.e7e80979.js";const Ln=["success","info","warning","error"],Sa=da({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Ve([String,Object]),default:""},id:{type:String,default:""},message:{type:Ve([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Ve(Function),default:()=>{}},onClose:{type:Ve(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Ln,""],default:""},zIndex:{type:Number,default:0}}),Ca={destroy:()=>!0},ka=kn({name:"ElNotification",components:{ElIcon:fa,...ga},props:Sa,emits:Ca,setup(e){const t=pa("notification"),n=M(!1);let a;const r=L(()=>{const f=e.type;return f&&Vt[e.type]?t.m(f):""}),s=L(()=>Vt[e.type]||e.icon||""),o=L(()=>e.position.endsWith("right")?"right":"left"),l=L(()=>e.position.startsWith("top")?"top":"bottom"),i=L(()=>({[l.value]:`${e.offset}px`,zIndex:e.zIndex}));function d(){e.duration>0&&({stop:a}=ma(()=>{n.value&&c()},e.duration))}function g(){a==null||a()}function c(){n.value=!1}function p({code:f}){f===dt.delete||f===dt.backspace?g():f===dt.esc?n.value&&c():d()}return xn(()=>{d(),n.value=!0}),Gn(document,"keydown",p),{ns:t,horizontalClass:o,typeClass:r,iconComponent:s,positionStyle:i,visible:n,close:c,clearTimer:g,startTimer:d}}}),xa=["id"],Aa=["textContent"],Ea={key:0},Ta=["innerHTML"];function La(e,t,n,a,r,s){const o=jt("el-icon"),l=jt("close");return D(),Me(En,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=i=>e.$emit("destroy")),persisted:""},{default:et(()=>[Be(R("div",{id:e.id,class:ge([e.ns.b(),e.customClass,e.horizontalClass]),style:Ie(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...i)=>e.clearTimer&&e.clearTimer(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.startTimer&&e.startTimer(...i)),onClick:t[2]||(t[2]=(...i)=>e.onClick&&e.onClick(...i))},[e.iconComponent?(D(),Me(o,{key:0,class:ge([e.ns.e("icon"),e.typeClass])},{default:et(()=>[(D(),Me(Jn(e.iconComponent)))]),_:1},8,["class"])):te("v-if",!0),R("div",{class:ge(e.ns.e("group"))},[R("h2",{class:ge(e.ns.e("title")),textContent:Ut(e.title)},null,10,Aa),Be(R("div",{class:ge(e.ns.e("content")),style:Ie(e.title?void 0:{margin:0})},[ea(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(D(),j(ta,{key:1},[te(" Caution here, message could've been compromized, nerver use user's input as message "),te(" eslint-disable-next-line "),R("p",{innerHTML:e.message},null,8,Ta)],2112)):(D(),j("p",Ea,Ut(e.message),1))])],6),[[Oe,e.message]]),e.showClose?(D(),Me(o,{key:0,class:ge(e.ns.e("closeBtn")),onClick:tt(e.close,["stop"])},{default:et(()=>[An(l)]),_:1},8,["class","onClick"])):te("v-if",!0)],2)],46,xa),[[Oe,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var Pa=ha(ka,[["render",La],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const ot={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Tt=16;let Fa=1;const Se=function(e={},t=null){if(!va)return{close:()=>{}};(typeof e=="string"||At(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;ot[n].forEach(({vm:c})=>{var p;a+=(((p=c.el)==null?void 0:p.offsetHeight)||0)+Tt}),a+=Tt;const{nextZIndex:r}=ba(),s=`notification_${Fa++}`,o=e.onClose,l={zIndex:r(),offset:a,...e,id:s,onClose:()=>{Ma(s,n,o)}};let i=document.body;Kt(e.appendTo)?i=e.appendTo:na(e.appendTo)&&(i=document.querySelector(e.appendTo)),Kt(i)||(i=document.body);const d=document.createElement("div"),g=An(Pa,l,At(l.message)?{default:()=>l.message}:null);return g.appContext=t!=null?t:Se._context,g.props.onDestroy=()=>{Nt(null,d)},Nt(g,d),ot[n].push({vm:g}),i.appendChild(d.firstElementChild),{close:()=>{g.component.proxy.visible=!1}}};Ln.forEach(e=>{Se[e]=(t={})=>((typeof t=="string"||At(t))&&(t={message:t}),Se({...t,type:e}))});function Ma(e,t,n){const a=ot[t],r=a.findIndex(({vm:d})=>{var g;return((g=d.component)==null?void 0:g.props.id)===e});if(r===-1)return;const{vm:s}=a[r];if(!s)return;n==null||n(s);const o=s.el.offsetHeight,l=t.split("-")[0];a.splice(r,1);const i=a.length;if(!(i<1))for(let d=r;d{t.component.proxy.visible=!1})}Se.closeAll=za;Se._context=null;const Ra=ya(Se,"$notify"),{width:qt,height:Da}=Yn();function Ba(){const e=L(()=>qt.value<768),t=L(()=>qt.value>=768),n=o=>{if(a(o))return"";let l="",i=-1;for(let d=0;do==null||o==="";return{isMobile:e,isNotMobile:t,height:Da,encodeAllIgnoreSlashes:n,strIsEmpty:a,strIsNotEmpty:o=>!a(o),removeDuplicateSeparator:o=>{let l="";o.indexOf("http://")===0?l="http://":o.indexOf("https://")===0&&(l="https://");for(let i=l.length;iPn.proxy.$refs.fileTableRef);function st(e){e&&(Pn=e);const t=()=>{Ke.value.clearSelection()},n=(c,p)=>{(c==null?void 0:c.type)!=="BACK"&&Ke.value.toggleRowSelection(c,p)},a=()=>{Ke.value.toggleAllSelection()},r=c=>c.type==="FILE"||c.type==="FOLDER",s=L(()=>J.value.length>0?J.value[J.value.length-1]:null),o=L(()=>J.value.filter(c=>c.type==="FILE")),l=L(()=>J.value.filter(c=>c.type==="FOLDER")),i=c=>{J.value=c},d=({row:c,rowIndex:p})=>(c.index=p,J.value.indexOf(c)!==-1?"select-row":""),g=L(()=>{let c=J.value.length,p=o.value.length,f=l.value.length,m=c===1,w=c>1;return{isSingleSelect:m,isMultiSelect:w,isAllFile:p===c,isAllFolder:f===c}});return{checkSelectable:r,tableRowClassName:d,selectRowsChange:i,selectRow:s,selectRows:J,selectFiles:o,selectFolders:l,selectStatistics:g,tableRef:Ke,clearSelection:t,toggleRowSelection:n,toggleAllSelection:a}}let{selectStatistics:ue}=st();const Ne=Tn("storageConfigStore",{state:()=>({globalConfig:{siteName:"",directLinkPrefix:"",infoEnable:!1,showLinkBtn:!1,recordDownloadLog:!1,showShortLink:!1,showPathLink:!1,tableSize:"small",rootShowStorage:!0,fileClickMode:"dbclick",showDocument:!1,debugMode:!1,domain:"",icp:"",avatar:"",announcement:"",layout:"full",showAnnouncement:!1,searchEnable:!1,showLogin:!1},folderConfig:{readmeText:null,readmeDisplayMode:null,defaultSwitchToImgMode:!1,enableFileOperator:!1}}),getters:{permission:e=>({open:ue.value.isSingleSelect&&ue.value.isAllFolder,preview:ue.value.isAllFile&&ue.value.isSingleSelect,download:ue.value.isAllFile,link:ue.value.isAllFile&&e.globalConfig.showLinkBtn&&(e.globalConfig.showShortLink||e.globalConfig.showPathLink),rename:e.folderConfig.enableFileOperator&&ue.value.isSingleSelect,delete:e.folderConfig.enableFileOperator,newFolder:e.folderConfig.enableFileOperator,upload:e.folderConfig.enableFileOperator,pathLink:e.globalConfig.showPathLink,shortLink:e.globalConfig.showShortLink})},actions:{updateGlobalConfig(e){this.globalConfig=e},updateFolderConfig(e){this.folderConfig=e}}}),Cr=e=>q({url:"/api/site/reset-password",method:"get",data:e}),Oa=e=>q({url:"/api/storage/list",method:"get",data:e}),Ce=Tn("fileDataStore",{state:()=>({currentClickRow:{},currentRightClickRow:{},currentStorageSource:{id:null,type:{description:"",key:""}},imgMode:!1,newImgMode:!1,oldStorageKey:null,searchParam:"",fileListSource:[],audioArray:[],audioIndex:0}),getters:{filterFileByType:e=>t=>e.fileListSource.filter(function(n){if(n.type==="BACK")return!1;let a=n.name,r=a.substr(a.lastIndexOf(".")+1).toLowerCase();return se.constant.fileTypeMap[t].indexOf(r)!==-1}),fileList:e=>{let t=e.fileListSource;return t.forEach(n=>{if(n.icon||(n.icon=se.getFileIconName(n)),n.preview!==null){var a=se.getFileType(n.name);a?(n.fileType=a,n.preview=se.constant.previewFileType.indexOf(a)!==-1):n.preview=!1}}),t}},actions:{updateCurrentStorageSource(e){this.currentStorageSource=e},updateAudioIndex(e){this.audioIndex=e},updateAudioList(e){this.audioArray=e},updateCurrentClickRow(e){this.currentClickRow=e},updateCurrentRightClickRow(e){this.currentRightClickRow=e},updateFileList(e){this.fileListSource=e},updateOldStorageKey(e){this.oldStorageKey=e}}});let Ht=Ce(),Wt=Ne(),{routerRef:ft,fullpath:Ia,storageKey:qe}=Ue(),ae=M([]),xe=M(),Gt=!1;function _a(){let e=Wt.globalConfig.rootShowStorage,t=()=>new Promise(l=>{Oa().then(i=>{if(ae.value=i.data,ae.value.length===0){ne.confirm("\u5F53\u524D\u65E0\u53EF\u7528\u5B58\u50A8\u6E90\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u7BA1\u7406\u5458\u9875\u9762\u6DFB\u52A0\u5B58\u50A8\u6E90\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"info",callback:d=>{d==="confirm"&&ft.value.push("/login")}});return}n(e),l(i)})});const n=l=>{qe.value?o(qe.value)?xe.value=qe.value:s():l?(Ht.updateFileList(a.value),document.title=Wt.globalConfig.siteName+" | \u9996\u9875"):s(),r()},a=L(()=>{let l=[];return ae.value.forEach(i=>{l.push({name:i.name,path:i.key,size:0,time:"-",type:"ROOT"})}),l}),r=()=>{ae.value.some(l=>{l.key===xe.value&&Ht.updateCurrentStorageSource(l)})};Gt||($e(()=>xe.value,(l,i)=>{(l&&!Ia.value||i!==void 0)&&(ft.value.push("/"+l),r())}),$e(()=>qe.value,l=>{n(!0)}),Gt=!0);const s=()=>{if(ae.value.length>0){let l=ae.value[0].key;xe.value=l,ft.value.push("/"+l)}},o=l=>ae.value.find(i=>{if(i.key==l)return i});return{loadStorageSourceList:t,storageList:ae,findStorageByKey:o,currentStorageKey:xe,storageListAsFileList:a}}var je={};Object.defineProperty(je,"__esModule",{value:!0});var rt=je.removeDuplicateSlashes=je.transform=void 0;const $a=/(?!^)\/{2,}/g;function ja(e){return e.map(t=>Fn(t))}je.transform=ja;function Fn(e){return e.replace($a,"/")}rt=je.removeDuplicateSlashes=Fn;const Ua=e=>q({url:"/api/file/operator/mkdir",method:"post",data:e}),Na=e=>q({url:"/api/file/operator/delete/file",method:"post",data:e}),Va=e=>q({url:"/api/file/operator/delete/folder",method:"post",data:e}),Ka=e=>q({url:"/api/file/operator/rename/file",method:"post",data:e}),qa=e=>q({url:"/api/file/operator/rename/folder",method:"post",data:e}),Ha=e=>q({url:"/api/file/operator/upload/file",method:"post",data:e});function Y(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Yt(e,t){for(var n="",a=0,r=-1,s=0,o,l=0;l<=e.length;++l){if(l2){var i=n.lastIndexOf("/");if(i!==n.length-1){i===-1?(n="",a=0):(n=n.slice(0,i),a=n.length-1-n.lastIndexOf("/")),r=l,s=0;continue}}else if(n.length===2||n.length===1){n="",a=0,r=l,s=0;continue}}t&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),a=l-r-1;r=l,s=0}else o===46&&s!==-1?++s:s=-1}return n}function Wa(e,t){var n=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+a:n+e+a:a}var ye={resolve:function(){for(var t="",n=!1,a,r=arguments.length-1;r>=-1&&!n;r--){var s;r>=0?s=arguments[r]:(a===void 0&&(a=process.cwd()),s=a),Y(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=Yt(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Y(t),t.length===0)return".";var n=t.charCodeAt(0)===47,a=t.charCodeAt(t.length-1)===47;return t=Yt(t,!n),t.length===0&&!n&&(t="."),t.length>0&&a&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Y(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n0&&(t===void 0?t=a:t+="/"+a)}return t===void 0?".":ye.normalize(t)},relative:function(t,n){if(Y(t),Y(n),t===n||(t=ye.resolve(t),n=ye.resolve(n),t===n))return"";for(var a=1;ad){if(n.charCodeAt(o+c)===47)return n.slice(o+c+1);if(c===0)return n.slice(o+c)}else s>d&&(t.charCodeAt(a+c)===47?g=c:c===0&&(g=0));break}var p=t.charCodeAt(a+c),f=n.charCodeAt(o+c);if(p!==f)break;p===47&&(g=c)}var m="";for(c=a+g+1;c<=r;++c)(c===r||t.charCodeAt(c)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+n.slice(o+g):(o+=g,n.charCodeAt(o)===47&&++o,n.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(Y(t),t.length===0)return".";for(var n=t.charCodeAt(0),a=n===47,r=-1,s=!0,o=t.length-1;o>=1;--o)if(n=t.charCodeAt(o),n===47){if(!s){r=o;break}}else s=!1;return r===-1?a?"/":".":a&&r===1?"//":t.slice(0,r)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Y(t);var a=0,r=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var l=n.length-1,i=-1;for(o=t.length-1;o>=0;--o){var d=t.charCodeAt(o);if(d===47){if(!s){a=o+1;break}}else i===-1&&(s=!1,i=o+1),l>=0&&(d===n.charCodeAt(l)?--l===-1&&(r=o):(l=-1,r=i))}return a===r?r=i:r===-1&&(r=t.length),t.slice(a,r)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!s){a=o+1;break}}else r===-1&&(s=!1,r=o+1);return r===-1?"":t.slice(a,r)}},extname:function(t){Y(t);for(var n=-1,a=0,r=-1,s=!0,o=0,l=t.length-1;l>=0;--l){var i=t.charCodeAt(l);if(i===47){if(!s){a=l+1;break}continue}r===-1&&(s=!1,r=l+1),i===46?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===a+1?"":t.slice(n,r)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Wa("/",t)},parse:function(t){Y(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var a=t.charCodeAt(0),r=a===47,s;r?(n.root="/",s=1):s=0;for(var o=-1,l=0,i=-1,d=!0,g=t.length-1,c=0;g>=s;--g){if(a=t.charCodeAt(g),a===47){if(!d){l=g+1;break}continue}i===-1&&(d=!1,i=g+1),a===46?o===-1?o=g:c!==1&&(c=1):o!==-1&&(c=-1)}return o===-1||i===-1||c===0||c===1&&o===i-1&&o===l+1?i!==-1&&(l===0&&r?n.base=n.name=t.slice(1,i):n.base=n.name=t.slice(l,i)):(l===0&&r?(n.name=t.slice(1,o),n.base=t.slice(1,i)):(n.name=t.slice(l,o),n.base=t.slice(l,i)),n.ext=t.slice(o,i)),l>0?n.dir=t.slice(0,l-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ye.posix=ye;var He=ye;const Ga=e=>q({url:"/api/storage/files",method:"post",data:e,config:{showDefaultMsg:!1}}),kr=e=>q({url:"/api/storage/file/item",method:"post",data:e,config:{responseIntercept:!1,showDefaultMsg:!1}}),xr=()=>q({url:"/api/site/config/global",method:"get"}),Ya=e=>q({url:"/api/site/config/storage",method:"post",data:e}),Ar=e=>q({url:"/api/short-link",method:"get",data:e}),Za=typeof process=="object"&&process&&process.platform==="win32";var Qa=Za?{sep:"\\"}:{sep:"/"},Xa=Mn;function Mn(e,t,n){e instanceof RegExp&&(e=Zt(e,n)),t instanceof RegExp&&(t=Zt(t,n));var a=zn(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function Zt(e,t){var n=t.match(e);return n?n[0]:null}Mn.range=zn;function zn(e,t,n){var a,r,s,o,l,i=n.indexOf(e),d=n.indexOf(t,i+1),g=i;if(i>=0&&d>0){if(e===t)return[i,d];for(a=[],s=n.length;g>=0&&!l;)g==i?(a.push(g),i=n.indexOf(e,g+1)):a.length==1?l=[a.pop(),d]:(r=a.pop(),r=0?i:d;a.length&&(l=[s,o])}return l}var Rn=Xa,Ja=no,Dn="\0SLASH"+Math.random()+"\0",Bn="\0OPEN"+Math.random()+"\0",Ot="\0CLOSE"+Math.random()+"\0",On="\0COMMA"+Math.random()+"\0",In="\0PERIOD"+Math.random()+"\0";function gt(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function eo(e){return e.split("\\\\").join(Dn).split("\\{").join(Bn).split("\\}").join(Ot).split("\\,").join(On).split("\\.").join(In)}function to(e){return e.split(Dn).join("\\").split(Bn).join("{").split(Ot).join("}").split(On).join(",").split(In).join(".")}function _n(e){if(!e)return[""];var t=[],n=Rn("{","}",e);if(!n)return e.split(",");var a=n.pre,r=n.body,s=n.post,o=a.split(",");o[o.length-1]+="{"+r+"}";var l=_n(s);return s.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),t.push.apply(t,o),t}function no(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),ze(eo(e),!0).map(to)):[]}function ao(e){return"{"+e+"}"}function oo(e){return/^-?0\d/.test(e)}function ro(e,t){return e<=t}function lo(e,t){return e>=t}function ze(e,t){var n=[],a=Rn("{","}",e);if(!a)return[e];var r=a.pre,s=a.post.length?ze(a.post,!1):[""];if(/\$$/.test(a.pre))for(var o=0;o=0;if(!g&&!c)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Ot+a.post,ze(e)):[e];var p;if(g)p=a.body.split(/\.\./);else if(p=_n(a.body),p.length===1&&(p=ze(p[0],!1).map(ao),p.length===1))return s.map(function(x){return a.pre+p[0]+x});var f;if(g){var m=gt(p[0]),w=gt(p[1]),E=Math.max(p[0].length,p[1].length),P=p.length==3?Math.abs(gt(p[2])):1,$=ro,k=w0){var b=new Array(v+1).join("0");u<0?h="-"+b+h.slice(1):h=b+h}}f.push(h)}}else{f=[];for(var C=0;C(lt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new ct(t,n).match(e));var $n=K;const Lt=Qa;K.sep=Lt.sep;const W=Symbol("globstar **");K.GLOBSTAR=W;const io=Ja,Qt={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Pt="[^/]",pt=Pt+"*?",so="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",co="(?:(?!(?:\\/|^)\\.).)*?",jn=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),Xt=jn("().*{}+?[]^$\\!"),uo=jn("[.("),Jt=/\/+/;K.filter=(e,t={})=>(n,a,r)=>K(n,e,t);const oe=(e,t={})=>{const n={};return Object.keys(e).forEach(a=>n[a]=e[a]),Object.keys(t).forEach(a=>n[a]=t[a]),n};K.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return K;const t=K,n=(a,r,s)=>t(a,r,oe(e,s));return n.Minimatch=class extends t.Minimatch{constructor(r,s){super(r,oe(e,s))}},n.Minimatch.defaults=a=>t.defaults(oe(e,a)).Minimatch,n.filter=(a,r)=>t.filter(a,oe(e,r)),n.defaults=a=>t.defaults(oe(e,a)),n.makeRe=(a,r)=>t.makeRe(a,oe(e,r)),n.braceExpand=(a,r)=>t.braceExpand(a,oe(e,r)),n.match=(a,r,s)=>t.match(a,r,oe(e,s)),n};K.braceExpand=(e,t)=>Un(e,t);const Un=(e,t={})=>(lt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:io(e)),fo=1024*64,lt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>fo)throw new TypeError("pattern is too long")},We=Symbol("subparse");K.makeRe=(e,t)=>new ct(e,t||{}).makeRe();K.match=(e,t,n={})=>{const a=new ct(t,n);return e=e.filter(r=>a.match(r)),a.options.nonull&&!e.length&&e.push(t),e};const go=e=>e.replace(/\\(.)/g,"$1"),po=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ct{constructor(t,n){lt(t),n||(n={}),this.options=n,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();n.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,a),a=this.globParts=a.map(r=>r.split(Jt)),this.debug(this.pattern,a),a=a.map((r,s,o)=>r.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let n=!1,a=0;for(let r=0;r>> no match, partial?`,t,c,n,p),c===l))}var m;if(typeof d=="string"?(m=g===d,this.debug("string match",d,g,m)):(m=g.match(d),this.debug("pattern match",d,g,m)),!m)return!1}if(s===l&&o===i)return!0;if(s===l)return a;if(o===i)return s===l-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return Un(this.pattern,this.options)}parse(t,n){lt(t);const a=this.options;if(t==="**")if(a.noglobstar)t="*";else return W;if(t==="")return"";let r="",s=!!a.nocase,o=!1;const l=[],i=[];let d,g=!1,c=-1,p=-1,f,m,w;const E=t.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",P=()=>{if(d){switch(d){case"*":r+=pt,s=!0;break;case"?":r+=Pt,s=!0;break;default:r+="\\"+d;break}this.debug("clearStateChar %j %j",d,r),d=!1}};for(let S=0,u;S(b||(b="\\"),v+v+b+"|")),this.debug(`tail=%j + %s`,S,S,m,r);const u=m.type==="*"?pt:m.type==="?"?Pt:"\\"+m.type;s=!0,r=r.slice(0,m.reStart)+u+"\\("+S}P(),o&&(r+="\\\\");const $=uo[r.charAt(0)];for(let S=i.length-1;S>-1;S--){const u=i[S],h=r.slice(0,u.reStart),v=r.slice(u.reStart,u.reEnd-8);let b=r.slice(u.reEnd);const C=r.slice(u.reEnd-8,u.reEnd)+b,x=h.split("(").length-1;let B=b;for(let A=0;A(o=o.map(l=>typeof l=="string"?po(l):l===W?W:l._src).reduce((l,i)=>(l[l.length-1]===W&&i===W||l.push(i),l),[]),o.forEach((l,i)=>{l!==W||o[i-1]===W||(i===0?o.length>1?o[i+1]="(?:\\/|"+a+"\\/)?"+o[i+1]:o[i]=a:i===o.length-1?o[i-1]+="(?:\\/|"+a+")?":(o[i-1]+="(?:\\/|\\/"+a+"\\/)"+o[i+1],o[i+1]=W))}),o.filter(l=>l!==W).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,r)}catch{this.regexp=!1}return this.regexp}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;const a=this.options;Lt.sep!=="/"&&(t=t.split(Lt.sep).join("/")),t=t.split(Jt),this.debug(this.pattern,"split",t);const r=this.set;this.debug(this.pattern,"set",r);let s;for(let o=t.length-1;o>=0&&(s=t[o],!s);o--);for(let o=0;o{n&&(he.value[Ge.value]||(he.value[Ge.value]={}),he.value[Ge.value][n]=a)},getPathPwd:()=>{for(let n of Object.keys(he.value))if(n===Ge.value){for(let a of Object.keys(he.value[n]))if(ho(mo.value,a))return he.value[n][a]}return""}}}const It=typeof window!="undefined",ht=()=>{};function bo(e,t=200,n={}){return function(a,r){return function(...s){a(()=>r.apply(this,s),{fn:r,thisArg:this,args:s})}}(function(a,r={}){let s,o;return l=>{const i=le(a),d=le(r.maxWait);if(s&&clearTimeout(s),i<=0||d!==void 0&&d<=0)return o&&(clearTimeout(o),o=null),l();d&&!o&&(o=setTimeout(()=>{s&&clearTimeout(s),o=null,l()},d)),s=setTimeout(()=>{o&&clearTimeout(o),o=null,l()},i)}}(t,n),e)}var yo=Object.defineProperty,wo=Object.defineProperties,So=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,tn=(e,t,n)=>t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t)=>{for(var n in t||(t={}))Co.call(t,n)&&tn(e,n,t[n]);if(en)for(var n of en(t))ko.call(t,n)&&tn(e,n,t[n]);return e};const _t=It?window:void 0;function _e(...e){let t,n,a,r;if(typeof e[0]=="string"?([n,a,r]=e,t=_t):[t,n,a,r]=e,!t)return ht;let s=ht;const o=$e(()=>function(d){var g;const c=le(d);return(g=c==null?void 0:c.$el)!=null?g:c}(t),d=>{s(),d&&(d.addEventListener(n,a,r),s=()=>{d.removeEventListener(n,a,r),s=ht})},{immediate:!0,flush:"post"}),l=()=>{o(),s()};var i;return i=l,sa()&&ca(i),l}function Ao(e,t,n={}){const{target:a=_t,eventName:r="keydown",passive:s=!1}=n,o=typeof(l=e)=="function"?l:typeof l=="string"?i=>i.key===l:Array.isArray(l)?i=>l.includes(i.key):l?()=>!0:()=>!1;var l;return _e(a,r,i=>{o(i)&&t(i)},s)}const mt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vt="__vueuse_ssr_handlers__";mt[vt]=mt[vt]||{},mt[vt];var nn,an,Eo=Object.defineProperty,To=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,rn=(e,t,n)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Mo(e,t={}){var n,a;const r=(n=t.draggingElement)!=null?n:_t,s=M((a=t.initialValue)!=null?a:{x:0,y:0}),o=M(),l=f=>!t.pointerTypes||t.pointerTypes.includes(f.pointerType),i=f=>{le(t.preventDefault)&&f.preventDefault(),le(t.stopPropagation)&&f.stopPropagation()},d=f=>{var m;l(f)&&o.value&&(s.value={x:f.pageX-o.value.x,y:f.pageY-o.value.y},(m=t.onMove)==null||m.call(t,s.value,f),i(f))},g=f=>{var m;l(f)&&o.value&&(o.value=void 0,(m=t.onEnd)==null||m.call(t,s.value,f),i(f))};return It&&(_e(e,"pointerdown",f=>{var m;if(!l(f)||le(t.exact)&&f.target!==le(e))return;const w=le(e).getBoundingClientRect(),E={x:f.pageX-w.left,y:f.pageY-w.top};((m=t.onStart)==null?void 0:m.call(t,E,f))!==!1&&(o.value=E,i(f))},!0),_e(r,"pointermove",d,!0),_e(r,"pointerup",g,!0)),c=((f,m)=>{for(var w in m||(m={}))Po.call(m,w)&&rn(f,w,m[w]);if(on)for(var w of on(m))Fo.call(m,w)&&rn(f,w,m[w]);return f})({},function(f){if(!la(f))return Et(f);const m=Array.isArray(f.value)?new Array(f.value.length):{};for(const w in f.value)m[w]=ia(()=>({get:()=>f.value[w],set(E){if(Array.isArray(f.value)){const $=[...f.value];$[w]=E,f.value=$}else f.value=(P=xo({},f.value),wo(P,So({[w]:E})));var P}}));return m}(s)),p={position:s,isDragging:L(()=>!!o.value),style:L(()=>`left:${s.value.x}px;top:${s.value.y}px;`)},To(c,Lo(p));var c,p}It&&(window==null?void 0:window.navigator)&&((nn=window==null?void 0:window.navigator)==null?void 0:nn.platform)&&/iP(ad|hone|od)/.test((an=window==null?void 0:window.navigator)==null?void 0:an.platform);const zo=["a","s","d","w","q","e","A","S","D","W","Q","E","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Escape"," "];var it=kn({name:"V3ImgPreview",props:{showToolbar:{type:Boolean,default:!0},showArrowBtn:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},url:{type:String,default:void 0},escClose:{type:Boolean,default:!0},images:{type:Array,default:()=>[]},showCloseBtn:{type:Boolean,default:!0},index:{type:Number,default:0},on_unmount_v3_ima_preview_app:{type:Function}},setup(e,t){let{emit:n}=t;const a=M(null),r=M(null),{style:s}=Mo(r),o=we({visible:!0,imgState:"loading",src:"",imgIndex:e.index}),l=L(()=>{var k;return((k=e.images)===null||k===void 0?void 0:k.length)>1&&e.showArrowBtn}),i=we({imgScale:1,imgRotate:0}),d=L(()=>{var k;return((k=e.images)===null||k===void 0?void 0:k.length)>1}),g=bo(k=>{if(!e.keyboard)return!1;k.preventDefault();const{key:S}=k;return["s","S","ArrowDown"].includes(S)?f(-.1,!1):["w","W","ArrowUp"].includes(S)?f(.1,!1):S===" "?c():S==="Escape"&&e.escClose?P():["E","e"].includes(S)?p(!0):["Q","q"].includes(S)?p(!1):["a","A","ArrowLeft"].includes(S)?$(!1):["d","D","ArrowRight"].includes(S)?$(!0):void 0},200);Ao(zo,g);const c=()=>{i.imgScale=1,i.imgRotate=0,r.value.style.top="0",r.value.style.left="0"};function p(k){i.imgRotate+=90*(k?1:-1)}function f(k){let S=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.imgScale<=.2&&k<0||(S?i.imgScale=k:i.imgScale+=k)}function m(k){k.preventDefault(),f(k.deltaY<0?.05:-.05)}function w(k){o.imgState="loading",(S=>{const u=new Image;return u.src=S,new Promise((h,v)=>{u.onload=()=>{h(S)},u.onerror=()=>{v(S)}})})(k).then(()=>{o.imgState="success",o.src=k,c()}).catch(()=>{o.imgState="error"})}function E(){at(()=>{_e(a.value,"mousewheel",m,!1),c(),at(()=>e.url!==void 0?w(e.url):Array.isArray(e.images)&&e.images.length>0?w(e.images[o.imgIndex]):console.error("images is not Array or Array length is 0"))})}function P(){var k;o.visible=!1,n("close"),(k=e.on_unmount_v3_ima_preview_app)===null||k===void 0||k.call(e)}function $(k){d.value&&(k?(o.imgIndex++,o.imgIndex>e.images.length-1&&(o.imgIndex=0)):(o.imgIndex--,o.imgIndex<0&&(o.imgIndex=e.images.length-1)),w(e.images[o.imgIndex]))}return xn(()=>{window.__V3__IMG__PREVIEW__LOAD__ICON__SVG__||function(k){k.__V3__IMG__PREVIEW__LOAD__ICON__SVG__=!0;var S,u,h,v,b,C='',x=(x=document.getElementsByTagName("script"))[x.length-1].getAttribute("data-injectcss");if(x&&!k.__iconfont__svg__cssinject__){k.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(z){console&&console.log(z)}}function B(){b||(b=!0,h())}S=function(){var z,A=document.createElement("div");A.innerHTML=C,C=null,(A=A.getElementsByTagName("svg")[0])&&(A.setAttribute("aria-hidden","true"),A.style.position="absolute",A.style.width=0,A.style.height=0,A.style.overflow="hidden",A=A,(z=document.body).firstChild?function(G,y){y.parentNode.insertBefore(G,y)}(A,z.firstChild):z.appendChild(A))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(S,0):(u=function(){document.removeEventListener("DOMContentLoaded",u,!1),S()},document.addEventListener("DOMContentLoaded",u,!1)):document.attachEvent&&(h=S,v=k.document,b=!1,function z(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(z,50)}B()}(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,B())})}(typeof window!="undefined"?window:global),E()}),Object.assign(Object.assign(Object.assign({vImagesWrap:a,imgContainer:r},Et(o)),Et(i)),{handleClose:P,toggleImg:$,initImgSize:c,dragStyle:s,handleScale:f,handleRotate:p,visibleArrowBtn:l,isMultiple:d})}});const X=e=>(aa("data-v-15ccadb3"),e=e(),oa(),e),Ro={key:0,class:"v-images-wrap",ref:"vImagesWrap"},Do={class:"icon img-loading rotate-animation","aria-hidden":"true"},Bo=[X(()=>R("use",{"xlink:href":"#v3-img-loading"},null,-1))],Oo=["src"],Io=[X(()=>R("use",{"xlink:href":"#v3-img-img-error"},null,-1))],_o=[X(()=>R("use",{"xlink:href":"#v3-img-close"},null,-1))],$o=[X(()=>R("svg",{class:"icon","aria-hidden":"true"},[R("use",{"xlink:href":"#v3-img-left"})],-1))],jo=[X(()=>R("svg",{class:"icon","aria-hidden":"true"},[R("use",{"xlink:href":"#v3-img-right"})],-1))],Uo={key:3,class:"v3-img-preview-toolbar"},No=[X(()=>R("use",{"xlink:href":"#v3-img-zoom-out"},null,-1))],Vo=[X(()=>R("use",{"xlink:href":"#v3-img-zoom-big"},null,-1))],Ko=[X(()=>R("use",{"xlink:href":"#v3-img-antetype"},null,-1))],qo=[X(()=>R("use",{"xlink:href":"#v3-img-rotate-left"},null,-1))],Ho=[X(()=>R("use",{"xlink:href":"#v3-img-rotate-right"},null,-1))];(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document!="undefined"){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})(`.icon[data-v-15ccadb3] { + width: 1em; + height: 1em; + vertical-align: -0.15em; + fill: currentColor; + overflow: hidden; +} +.v-images-wrap[data-v-15ccadb3] { + z-index: 200; + user-select: none; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + overflow: hidden; + background: rgba(0, 0, 0, 0.3); + backdrop-filter: blur(3px); + color: #fff; +} +.v-images-wrap[data-v-15ccadb3] .img-loading[data-v-15ccadb3], +.v-images-wrap[data-v-15ccadb3] .img-content[data-v-15ccadb3] { + font-size: 50px; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; + transition: all 0.2s; +} +.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] { + z-index: 201; + position: absolute; + height: 100vh; + width: 100vw; + top: 0; + left: 0; + text-align: center; +} +.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] .img-content[data-v-15ccadb3] { + max-width: 100%; + max-height: 100%; +} +.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] .img-error[data-v-15ccadb3] { + font-size: 300px; + color: #d8d8d8; +} +.v-images-wrap[data-v-15ccadb3] .rotate-animation[data-v-15ccadb3] { + animation: rotate-15ccadb3 1.5s linear infinite; +} +.v-images-wrap[data-v-15ccadb3] .arrow[data-v-15ccadb3] { + width: 42px; + height: 42px; + text-align: center; + line-height: 42px; + position: absolute; + top: 50%; + border-radius: 50%; + transform: translateY(-50%); + -ms-transform: translateY(-50%); + font-size: 24px; + cursor: pointer; + transition: all 0.2s; + z-index: 280; + background: rgba(0, 0, 0, 0.3); +} +.v-images-wrap[data-v-15ccadb3] .arrow[data-v-15ccadb3][data-v-15ccadb3]:hover { + opacity: 0.8; + transform: translateY(-50%) scale(1.2); +} +.v-images-wrap[data-v-15ccadb3] .arrow-left[data-v-15ccadb3] { + left: 50px; +} +.v-images-wrap[data-v-15ccadb3] .arrow-right[data-v-15ccadb3] { + right: 50px; +} +.v-images-wrap[data-v-15ccadb3] .close-btn[data-v-15ccadb3] { + z-index: 205; + position: absolute; + right: 50px; + top: 50px; + width: 36px; + height: 36px; + font-size: 22px; + line-height: 36px; + text-align: center; + border-radius: 50%; + cursor: pointer; + transition: all 0.2s; + color: #e7e5e5; + background: rgba(0, 0, 0, 0.3); +} +.v-images-wrap[data-v-15ccadb3] .close-btn[data-v-15ccadb3][data-v-15ccadb3]:hover { + opacity: 0.8; + transform: scale(1.2); +} +.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] { + z-index: 205; + position: absolute; + bottom: 10%; + font-size: 26px; + width: 100%; + display: flex; + justify-content: center; + cursor: pointer; +} +.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] { + height: 44px; + bottom: 10%; + padding: 0 22px; + display: flex; + align-items: center; + border-radius: 22px; + background: rgba(0, 0, 0, 0.3); + color: #c3c3c3; +} +.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] svg[data-v-15ccadb3] { + box-sizing: content-box; + padding: 0 10px; + transition: all 0.2s; +} +.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] svg[data-v-15ccadb3][data-v-15ccadb3]:hover { + transform: scale(1.2); +} +@keyframes rotate-15ccadb3 { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} +`),it.render=function(e,t,n,a,r,s){return D(),Me(En,{name:"fade"},{default:et(()=>[e.visible?(D(),j("div",Ro,[Be((D(),j("svg",Do,Bo,512)),[[Oe,e.imgState==="loading"]]),R("div",{ref:"imgContainer",style:Ie(e.dragStyle),class:"img-container"},[Be(R("img",{class:"img-content",onDragstart:t[0]||(t[0]=tt(()=>{},["prevent"])),src:e.src,style:Ie(`transform: scale(${e.imgScale}) rotate(${e.imgRotate}deg);`),alt:""},null,44,Oo),[[Oe,e.imgState==="success"]]),Be((D(),j("svg",{class:"icon img-content img-error",onDragstart:t[1]||(t[1]=tt(()=>{},["prevent"])),"aria-hidden":"true",style:Ie(`transform: scale(${e.imgScale}) rotate(${e.imgRotate}deg);`)},Io,36)),[[Oe,e.imgState==="error"]])],4),e.showCloseBtn?(D(),j("svg",{key:0,class:"icon close-btn","aria-hidden":"true",onClick:t[2]||(t[2]=tt(function(){return e.handleClose&&e.handleClose(...arguments)},["stop"]))},_o)):te("",!0),e.visibleArrowBtn?(D(),j("div",{key:1,class:"arrow arrow-left",onClick:t[3]||(t[3]=o=>e.toggleImg(!1))},$o)):te("",!0),e.visibleArrowBtn?(D(),j("div",{key:2,class:"arrow arrow-right",onClick:t[4]||(t[4]=o=>e.toggleImg(!0))},jo)):te("",!0),e.showToolbar?(D(),j("div",Uo,[R("section",null,[(D(),j("svg",{class:"icon","aria-hidden":"true",onClick:t[5]||(t[5]=o=>e.handleScale(-.1,!1))},No)),(D(),j("svg",{class:"icon","aria-hidden":"true",onClick:t[6]||(t[6]=o=>e.handleScale(.1,!1))},Vo)),(D(),j("svg",{class:"icon","aria-hidden":"true",onClick:t[7]||(t[7]=function(){return e.initImgSize&&e.initImgSize(...arguments)})},Ko)),(D(),j("svg",{class:"icon","aria-hidden":"true",onClick:t[8]||(t[8]=o=>e.handleRotate(!1))},qo)),(D(),j("svg",{class:"icon","aria-hidden":"true",onClick:t[9]||(t[9]=o=>e.handleRotate(!0))},Ho))])])):te("",!0)],512)):te("",!0)]),_:1})},it.__scopeId="data-v-15ccadb3";let Nn={};const ln="v3-img-preview-container-id";let Ae={};function Vn(e){if(Ae._instance)return!1;Array.isArray(e)&&(e={images:e}),typeof e=="string"&&(e={url:e}),e=Object.assign(Object.assign({},Nn),e);let t=document.getElementById(ln);return t||(t=document.createElement("div"),t.id=ln,document.body.appendChild(t)),Ae=ra(it,Object.assign(Object.assign({},e),{on_unmount_v3_ima_preview_app:()=>Ae.unmount()})),Ae.mount(t),Ae}(()=>{const e=it;return e.install=(t,n)=>{Nn=n,t.config.globalProperties.$v3ImgPreviewFn=Vn},e})();let sn=Bt(),bt=Ce(),cn=M(!1),un=M(!1),Wo=M(!1),dn=M(!1);function Go(){return{openVideo:()=>{cn.value=!0},dialogVideoVisible:cn,openText:()=>{un.value=!0},dialogTextVisible:un,openOffice:o=>{let l=sn.zfileConfig.officePreview.previewUrl(o.url);window.open(l)},dialogOfficeVisible:Wo,openImage:o=>{let l=[],i=0;sn.zfileConfig.imagePreview.mode==="only"?l.push(o.url):bt.filterFileByType("image").forEach((g,c)=>{o.name===g.name&&(i=c),l.push(g.url)}),Vn({images:l,index:i})},openAudio:()=>{bt.updateAudioList(bt.filterFileByType("audio"))},openPdf:()=>{dn.value=!0},dialogPdfVisible:dn}}const{encodeAllIgnoreSlashes:fn}=Ba();let{routerRef:Ee,fullpath:yt,storageKey:Z,currentPath:Ye}=Ue(),{getPathPwd:Yo,putPathPwd:Zo}=vo();const{storageListAsFileList:Qo}=_a();let Te=Ce(),be=Ne();const wt=Qn(be.globalConfig.siteName);let Ft=Bt();const{openAudio:Xo,openImage:Jo,openOffice:Tr,openPdf:er,openText:tr,openVideo:nr}=Go(),me=M(!1),gn=M(!1);let Mt=we([]);if(Mt.length===0)for(let e=0;e{Q.orderBy=l,Q.orderDirection=i==="descending"?"desc":"asc",t()},t=l=>{if(!Z.value)return;me.value=!0,Q.path=Ye.value;let i=l||{};i.storageKey=Z.value,i.path=Ye.value,i.password=i.password||Yo(),i.orderBy=Q.orderBy,i.orderDirection=Q.orderDirection;let d=Z.value;Ga(i).then(g=>{let c=g.data.passwordPattern;if(Zo(c,i.password),d!==Z.value)return;let p=g.data.files,f=Q.path;if(f!==""&&f!=="/"){let m=He.basename(He.resolve(Ye.value,"../"));p.unshift({name:m||"/",path:He.resolve(f,"../"),type:"BACK"})}Te.updateFileList(p),me.value=!1,gn.value=!0,ar.value=[],yt.value?wt.value=be.globalConfig.siteName+" | "+yt.value[yt.value.length-1]:wt.value=be.globalConfig.siteName+" | \u9996\u9875"}).catch(g=>{let c=g.response.data;c.code===se.responseCode.INVALID_PASSWORD?(H.warning("\u5BC6\u7801\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\uFF01"),o()):c.code===se.responseCode.REQUIRED_PASSWORD?(H.warning("\u6B64\u6587\u4EF6\u5939\u9700\u8981\u5BC6\u7801\uFF0C\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"),o()):H.error(c.msg)})},n=()=>{let l={storageKey:Z.value,path:Ye.value};Ya(l).then(i=>{be.updateFolderConfig(i.data),Z.value!==Te.oldStorageKey&&Te.updateOldStorageKey(Z.value)}).finally(()=>{pn.value=!0})},a=l=>{if(!!l.name)if(Te.updateCurrentClickRow(l),l.type==="FILE"){const{batchDownloadFile:i}=qn();switch(l.fileType){case"video":nr();break;case"image":Jo(l);break;case"text":tr();break;case"audio":Xo(l);break;case"pdf":er(l);break;default:i(l)}or()}else if(l.type==="ROOT")Ee.value.push(l.path);else if(l.type==="BACK"){let i=rt("/"+Z.value+"/"+l.path);i=fn(i),Ee.value.push(i)}else{let i=rt("/"+Z.value+"/"+l.path+"/"+l.name);i=fn(i),Ee.value.push(i)}};let r=L(()=>{let l=Ft.zfileConfig.skeleton.enable,i=Ft.zfileConfig.skeleton.show;return l?i==="always"?me.value:gn.value?!1:me.value:!1}),s=L(()=>r.value?!1:me.value),o=()=>{ne.prompt("\u6B64\u6587\u4EF6\u5939\u5DF2\u52A0\u5BC6\uFF0C\u8BF7\u8F93\u5165\u5BC6\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputType:"password",inputValidator(l){return!!l},inputErrorMessage:"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:l})=>{t({password:l})}).catch(()=>{if((Q.path==="/"||Q.path==="")&&be.globalConfig.rootShowStorage===!0)Te.updateFileList(Qo.value),Ee.value.push("/"),wt.value=be.globalConfig.siteName+" | \u9996\u9875",me.value=!1;else{let l=He.resolve(Q.path,"../");Ee.value.push("/"+Z.value+l)}})};return{loadFile:t,openRow:a,searchParam:Q,sortChangeMethod:e,skeletonLoading:r,skeletonData:Mt,basicLoading:s,initStorageConfig:pn,loadFileConfig:n}}let rr=Ce(),lr=Ne(),{storageKey:St,currentPath:Ze}=Ue();const ve=M([]),hn=M(!1);let{selectRows:N,selectRow:mn,selectFolders:Qe,selectFiles:Ct}=st();const vn=ua();function qn(){const{loadFile:e}=Kn(),t=c=>{if(!N.value&&N.value.length===0){H.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6587\u4EF6");return}let p;const m=(()=>{let w={isChrome:!1,tips:""},E=vn.browser,P=vn.version;return E==="Chrome"?w.isChrome=!0:w.tips=`
    \u68C0\u6D4B\u5230\u5F53\u524D\u6D4F\u89C8\u5668\u4E3A ${E}-${P}, \u53EF\u80FD\u4E0D\u652F\u6301\u6B64\u529F\u80FD\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u8C37\u6B4C\u6D4F\u89C8\u5668!`,w})();c!=null&&c.name?p=`\u662F\u5426\u786E\u8BA4\u4E0B\u8F7D\u6587\u4EF6 ${c.name} \uFF1F`:N.value.length===1?(p=`\u662F\u5426\u786E\u8BA4\u4E0B\u8F7D\u6587\u4EF6 ${N.value[0].name} \uFF1F`,c=N.value[0]):N.value.length>1&&(p=`\u662F\u5426\u786E\u8BA4\u6279\u91CF\u4E0B\u8F7D ${N.value.length} \u4E2A\u6587\u4EF6\uFF1F`,m.isChrome||(p+=m.tips)),ne.confirm(p,"\u63D0\u793A",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"info",callback:w=>{w==="confirm"&&(c!=null&&c.name?(console.log("\u8FDB\u884C\u6307\u5B9A\u6587\u4EF6\u4E0B\u8F7D, \u6587\u4EF6:",c),n(c.url)):N.value.forEach(E=>{E.type==="FILE"&&(console.log("\u6279\u91CF\u9009\u4E2D\u6587\u4EF6\u4E0B\u8F7D, \u6587\u4EF6:",E),a(E.url))}))}})},n=c=>{window.open(c)},a=c=>{const p=document.createElement("iframe");p.style.display="none",p.style.height=0,p.src=c,document.body.appendChild(p),setTimeout(()=>{p.remove()},5*60*1e3)},r=()=>{ne.prompt(`\u5728 ${Ze.value} \u4E0B\u521B\u5EFA\u6587\u4EF6\u5939\uFF0C\u8BF7\u8F93\u5165\u8981\u521B\u5EFA\u7684\u6587\u4EF6\u5939\u540D\u79F0`,"\u63D0\u793A",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",draggable:!0,inputValidator(c){return c?c.includes("/")?"\u6587\u4EF6\u5939\u540D\u79F0\u4E0D\u80FD\u5305\u542B /":!0:"\u6587\u4EF6\u5939\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}}).then(({value:c})=>{let p={storageKey:St.value,path:Ze.value,name:c};Ua(p).then(()=>{H.success("\u521B\u5EFA\u6210\u529F")}).finally(()=>{e()})})},s=()=>{let c=mn.value;if(c===null){H.warning("\u8BF7\u5148\u9009\u4E2D\u4E00\u4E2A\u6587\u4EF6\u6216\u6587\u4EF6\u5939\uFF01");return}ne.prompt(`\u5C06 ${c.name} \u4FEE\u6539\u4E3A\uFF1A`,"\u63D0\u793A",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputValue:c.name,inputValidator(p){return!!p},inputErrorMessage:"\u6A21\u677F\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:p})=>{let f={storageKey:St.value,path:Ze.value,name:c.name,newName:p},m;c.type==="FILE"?m=Ka:c.type==="FOLDER"&&(m=qa),m(f).then(()=>{H.success("\u91CD\u547D\u540D\u6210\u529F")}).finally(()=>{e()})})},o=()=>{H.warning("\u6682\u672A\u5B9E\u73B0")},l=()=>{H.warning("\u6682\u672A\u5B9E\u73B0")},i=()=>{if(!lr.permission.delete)return;if(N.value.length===0){H.warning("\u8BF7\u5148\u81F3\u5C11\u9009\u4E2D\u4E00\u4E2A\u6587\u4EF6\u6216\u6587\u4EF6\u5939\uFF01");return}let c=N.value.length===1?"\u662F\u5426\u786E\u8BA4\u5220\u9664 ":"\u662F\u5426\u786E\u8BA4\u6279\u91CF\u5220\u9664 ",p=["s3","tencent","aliyun","qiniu","minio","huawei","upyun"];Qe.value.length>0&&(c+=" "+Qe.value.length+" \u4E2A\u6587\u4EF6\u5939"),Qe.value.length>0&&Ct.value.length>0&&(c+="\uFF0C"),Ct.value.length>0&&(c+=Ct.value.length+" \u4E2A\u6587\u4EF6"),Qe.value.length>0&&p.includes(rr.currentStorageSource.type.key)&&(c+=" (\u4E0D\u652F\u6301\u5220\u9664\u975E\u7A7A\u6587\u4EF6\u5939)"),c+="?",ve.value=[],ne.confirm(c,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",draggable:!0,callback:m=>{m==="confirm"&&(N.value.length>1?(hn.value=!0,N.value.forEach(w=>{f(w).then(()=>{ve.value.push({name:w.name,status:!0})}).catch(()=>{ve.value.push({name:w.name,status:!1})})})):f(mn.value).then(w=>{H.success("\u5220\u9664\u6210\u529F"),e()}))}});const f=m=>{let w={storageKey:St.value,path:Ze.value,name:m.name};return m.type==="FOLDER"?Va(w):Na(w)}},d=()=>{ve.value=[],e()},g=L(()=>Math.floor(ve.value.length/N.value.length*100));return{batchDownloadFile:t,rename:s,newFolder:r,moveTo:o,copyTo:l,batchDelete:i,batchDeleteResult:ve,batchDeleteDialogShow:hn,batchDeleteCloseAction:d,batchDeletePercentage:g}}Bt();let ir=Ne(),ie=Ce();const sr=Dt("Meta"),cr=Dt("Control"),ur=Dt("Shift");let dr=L(()=>sr.value||cr.value),{batchDelete:bn}=qn();const{skeletonLoading:yn,openRow:kt}=Kn(),{selectRows:nt,selectRow:wn,clearSelection:zt,toggleRowSelection:Xe,toggleAllSelection:fr}=st();window.addEventListener("keydown",function(e){var t;e.key==="Escape"&&Je()?zt():e.key==="a"&&(e.metaKey||e.ctrlKey)&&Je()?(e.preventDefault(),fr()):e.key==="Delete"&&Je()?bn&&((t=nt==null?void 0:nt.value)==null?void 0:t.length)>0&&(e.preventDefault(),bn()):e.key==="Backspace"&&Je()&&ie.fileList.length>0&&ie.fileList[0].type==="BACK"&&Rt(ie.fileList[0])},!1);const Je=()=>gr()&&Hn()===!1,gr=()=>document.querySelector(".zfile-index-body:hover"),Hn=()=>!!document.querySelector(".el-popup-parent--hidden"),Re=M(-1),De=M(-1),{pressed:pr}=Xn();$e(()=>pr.value,(e,t)=>{e===!1&&t===!0&&(Re.value=-1,De.value=-1)});let Rt;function Lr(){return Rt=(a,r)=>{var l;if(r===void 0){kt(a);return}let s=r.type==="selection";if(!s&&ir.globalConfig.fileClickMode==="click"){kt(a);return}if(yn.value)return;let o=nt.value.length===1&&((l=wn.value)==null?void 0:l.name)===a.name;if(ur.value){let i=ie.fileList.findIndex(d=>d.name===wn.value.name);if(i!==null){let d=ie.fileList.findIndex(p=>p.name===a.name),g=Math.min(d,i),c=Math.max(d,i);for(let p=g+1;p{yn.value||kt(a)},tableHoverRow:(a,r,s,o)=>{if(o.buttons===1&&Re.value!==-1){if(De.value===-1){zt();let c=ie.fileList[Re.value];Xe(c,!0)}let l=a.index,i=De.value>=0?De.value:l-1,d=Math.min(i,l),g=Math.max(i,l);for(let c=d;c<=g;c++){let p=ie.fileList[c];Xe(p,!0)}De.value=l}},tableLeaveRow:(a,r,s,o)=>{o.buttons===1&&Re.value===-1&&(Re.value=a.index)}}}let Le=Ce(),Pe=Ne(),Fe=M(!1),Sn=!1;const re=M(!1),xt=M(""),V=we([]),de=we([]),ee=new Map,fe=new Map;let hr=0;const Cn={error:1,uploading:2,waiting:3,finished:4};function Pr(){let{storageKey:e,currentPath:t}=Ue();const n=Pe.globalConfig.maxFileUploads,a=u=>{u=document.querySelector("body");const h=y=>{var I,U;if(x(),Fe.value=!1,Hn()||!e.value||re.value||!Pe.permission.upload)return;y.stopPropagation(),y.preventDefault();const F=wa.service({text:"\u6587\u4EF6\u8BFB\u53D6\u4E2D...",background:"rgba(0, 0, 0, .3)"}),T=((I=y.clipboardData)==null?void 0:I.items)||((U=y.dataTransfer)==null?void 0:U.items);b(T).then(O=>{if(at(()=>{F.close()}),O.length===0)return;let _=[];O.forEach((ce,ke)=>{ce.name===".DS_Store"&&_.push(ke)});const ut=()=>{re.value=!0,O.forEach(ce=>{o({file:ce})})};_.length>0?ne.confirm(`\u68C0\u6D4B\u5230\u6709 ${_.length} \u4E2A .DS_Store \u6587\u4EF6\uFF0C\u662F\u5426\u4E0A\u4F20\u65F6\u8DF3\u8FC7\u8FD9\u4E9B\u6587\u4EF6`,"\u63D0\u793A",{confirmButtonText:"\u8DF3\u8FC7\u8FD9\u4E9B\u6587\u4EF6",cancelButtonText:"\u4F9D\u65E7\u4E0A\u4F20",type:"success",callback:ce=>{if(ce==="confirm")for(let ke=_.length-1;ke>=0;ke--){let Wn=_[ke];O.splice(Wn,1)}ut()}}):O.length>100?ne.confirm(`\u6587\u4EF6\u6570\u91CF\u4E3A ${O.length} \u4E2A\uFF0C\u662F\u5426\u786E\u8BA4\u4E0A\u4F20\uFF1F`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:ce=>{ce==="confirm"&&ut()}}):ut()})};let v=null;u.addEventListener("dragenter",y=>{!e.value||re.value||!Pe.permission.upload||(v=y.target,C(),y.stopPropagation(),y.preventDefault(),Fe.value=!0)},!1),u.addEventListener("dragover",function(y){!e.value||re.value||!Pe.permission.upload||(y.stopPropagation(),y.preventDefault(),Fe.value=!0)},!1),u.addEventListener("dragleave",function(y){!e.value||re.value||!Pe.permission.upload||(v===y.target&&(x(),Fe.value=!1),y.stopPropagation(),y.preventDefault())},!1),u.addEventListener("drop",h,!1),u.addEventListener("paste",h,!1);const b=async y=>{let F=[],T=[];if(y){let I=new Array(...y);for(let U=0;U0)for(let U=0;U{u.classList.add("dragging-over")},x=()=>{u.classList.remove("dragging-over")};function B(y){return new Promise((F,T)=>{y.file(I=>{F(I)})})}function z(y){return new Promise((F,T)=>{y.readEntries(I=>{F(I)})})}function A(y,F){for(let T=0;T{re.value=!0,xt.value="file"},s=()=>{re.value=!0,xt.value="folder",at(()=>{document.getElementsByClassName("el-upload__input")[0].webkitdirectory=!0})},o=u=>{let h=Le.fileList.find(v=>{if(v.name===u.file.name)return v});if(h){Ra({zIndex:9999,title:"\u63D0\u793A",message:`\u5F53\u524D\u76EE\u5F55\u5DF2\u5B58\u5728\u6587\u4EF6 ${h.name}, \u8DF3\u8FC7\u4E0A\u4F20.`,type:"warning"});return}l(u.file)},l=u=>{const h=hr++;let v=t.value;if(u.webkitRelativePath||u.dropUploadPath){let x=u.webkitRelativePath||u.dropUploadPath;x.startsWith("/")||(x="/"+x);let B=x.split("/");B.forEach((z,A)=>{let G=A===0,y=B.length-1===A;G||y||z&&(v+="/"+z)})}let b={storageKey:e.value,path:rt(v),name:u.name,size:u.size};if(console.log("\u5F53\u524D\u4E0A\u4F20\u4FE1\u606F:",b,", \u5F53\u524D\u540C\u65F6\u4E0A\u4F20\u6587\u4EF6\u6570:",E.value.totalUploading,"\u9650\u5236\u540C\u65F6\u4E0A\u4F20\u6587\u4EF6\u6570:",n),E.value.totalUploading>=n){console.log(`\u4E0A\u4F20\u6587\u4EF6\u6570\u8D85\u51FA ${n}, \u7B49\u5F85\u4E0A\u4F20`),de.push({index:h,file:u});return}let C={name:u.name,size:u.size,speed:"-",progress:0,loaded:0,status:"uploading",startTime:Date.now(),file:u,index:h};V.push(C),ee.set(h,pe.CancelToken.source()),fe.set(h,V[V.length-1]),Ha(b).then(x=>{const{on:B}=$t(`cancel-upload-${h}`);B(()=>{let y=ee.get(h);y&&(y.cancel(),V.find((F,T)=>{let I=F.name===u.name;return I&&V.splice(T,1),I}))});let z=["local","webdav","ftp","sftp"],A=["s3","tencent","aliyun","qiniu","minio","huawei"],G=["sharepoint","sharepoint-china","onedrive","onedrive-china"];z.includes(Le.currentStorageSource.type.key)?i(u,x.data,h):A.includes(Le.currentStorageSource.type.key)?d(u,x.data,h):G.includes(Le.currentStorageSource.type.key)?g(u,x.data,h):Le.currentStorageSource.type.key==="upyun"&&c(u,x.data,h)})},i=(u,h,v)=>{let b=new FormData;b.append("file",u),pe.post(h,b,{cancelToken:ee.get(v).token,onUploadProgress:C=>{m(C,v,!0)}}).then(()=>{f(v)}).catch(C=>{p(v,C)})},d=(u,h,v)=>{pe.put(h,u,{withCredentials:!1,cancelToken:ee.get(v).token,onUploadProgress:b=>{m(b,v)}}).then(()=>{f(v)}).catch(b=>{p(v,b)})},g=(u,h,v)=>{let b=1,C=0,x=0,B=u.size;const z=104857599,A=()=>{C+z>=B?x=B:x=C+z,b>1&&ee.set(v,pe.CancelToken.source());let G=u.slice(C,x);pe.put(`${h}`,G,{cancelToken:ee.get(v).token,timeout:1e7,headers:{"Content-Type":"application/octet-stream","Content-Range":`bytes ${C}-${x-1}/${u.size}`},type:"sync",withCredentials:!1,onUploadProgress:y=>{if(y.lengthComputable){let F=fe.get(v);const T=y.loaded+C;F.size=B,F.loaded=T,F.progress=Math.round(T/B*100),F.speed=se.fileSizeFormat(Math.round(T/(Date.now()-F.startTime)*1e3))}}}).then(y=>{y.status===202?(C+=z,b+=1,A()):y.status===201&&f(v)}).catch(y=>{p(v,y)})};A()},c=(u,h,v)=>{let b=JSON.parse(h),C=new FormData;C.append("name",u.name),C.append("authorization",b.signature),C.append("policy",b.policy),C.append("file",u),pe.post(b.url,C,{withCredentials:!1,cancelToken:ee.get(v).token,onUploadProgress:x=>{m(x,v)}}).then(()=>{f(v)}).catch(x=>{p(v,x)})},p=(u,h)=>{var b;let v=fe.get(u);v.status="error",v.endTime=Date.now(),v.msg=((b=h==null?void 0:h.response)==null?void 0:b.data)||h},f=u=>{let h=fe.get(u);h.progress=100,h.status="finished",h.endTime=Date.now(),h.msg="\u4E0A\u4F20\u6210\u529F"},m=(u,h,v)=>{let b=fe.get(h);b.size=u.total,b.loaded=u.loaded,b.progress=Math.round(u.loaded/u.total*100),b.speed=se.fileSizeFormat(Math.round(u.loaded/(Date.now()-b.startTime)*1e3)),console.log("uploadFileInfo",b,v),v&&b.progress===100&&(b.msg="\u4E0A\u4F20\u5B8C\u6210, \u670D\u52A1\u5668\u4E2D\u8F6C\u4E2D...")},w=u=>{ne.confirm(`\u662F\u5426\u786E\u5B9A\u53D6\u6D88\u6587\u4EF6 ${u.name} \u4E0A\u4F20\uFF1F`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u8FD4\u56DE",type:"warning",callback:h=>{h==="confirm"&&$t(`cancel-upload-${u.index}`).emit()}})},E=L(()=>{let u=V.length,h=0,v=0;V.forEach(C=>{C.status==="uploading"?h++:C.status==="finished"&&v++});let b=h+de.length;return{totalSize:u,totalUploading:h,totalFinish:v,totalUploadingAndWaiting:b}}),P=L(()=>{let u=[];return u.push(...V),de.forEach(h=>{u.push({name:h.file.name,size:h.file.size,status:"waiting",msg:"\u6392\u961F\u4E2D...",index:h.index})}),u.sort((h,v)=>{let b=h.status,C=v.status;return b!==C?Cn[b]-Cn[C]:h.startTime!==v.startTime?h.startTime-v.startTime:h.endTime-v.endTime}),console.log("uploadProgressInfoSorted",u),u});Sn||($e(()=>E.value.totalUploading,u=>{if(u{if(u==null)return;let h=V.findIndex((v,b)=>{if(v.index===u)return V.splice(b,1),!0});h===-1&&(h=de.findIndex((v,b)=>{if(v.index===u)return de.splice(b,1),!0})),h!==-1&&(fe.delete(u),ee.delete(u))};return{visible:re,uploadMode:xt,openUploadDialog:r,openUploadFolderDialog:s,cancelUpload:w,dropState:Fe,listenDropFile:a,beforeUpload:o,uploadFile:l,uploadProgressInfoSorted:P,uploadProgressInfoStatistics:E,clearALlFinishedUploadFile:()=>{for(let u=V.length-1;u>=0;u--){let h=V[u];h.status==="finished"&&(V.splice(u,1),fe.delete(h.index),ee.delete(h.index))}},removeUploadFileByIndex:$,retryUpload:u=>{console.log("\u91CD\u65B0\u4E0A\u4F20\u6587\u4EF6",u),$(u.index),l(u.file)}}}export{Ba as a,Ne as b,st as c,Pr as d,Kn as e,Lr as f,qn as g,Go as h,_a as i,rt as j,kr as k,xr as l,vo as m,Cr as r,Ar as s,Ce as u}; diff --git a/src/main/resources/static/assets/useFileUpload.b18c246f.js b/src/main/resources/static/assets/useFileUpload.b18c246f.js deleted file mode 100644 index 66f8f9c..0000000 --- a/src/main/resources/static/assets/useFileUpload.b18c246f.js +++ /dev/null @@ -1,137 +0,0 @@ -import{u as jn,d as Nn,e as _,f as Un,g as Vn,E as j,h as Tt,i as Kn,j as Dt}from"./request.3708b2c4.js";import{d as hn,r as z,c as R,o as mn,ae as Mt,a as F,b as Se,e as qe,Q as Ae,R as Ee,p as M,n as oe,q as qn,k as W,t as Ft,i as Te,g as Hn,f as O,F as Wn,j as He,h as vn,T as bn,Y as bt,m as Gn,ao as It,ap as yn,M as ze,w as Ge,W as Pe,ad as yt,U as Yn,V as Zn,aq as Qn,u as J,S as Xn,ar as Jn,Z as Ye,a3 as ea,a4 as ta,$ as Lt,as as le}from"./index.552205f5.js";import{c as te}from"./common.0f75f163.js";import{E as G}from"./index.11692625.js";import{b as na,d as Me,E as aa,a8 as ra,u as oa,a7 as Ot,_ as la,R as ia,I as at,B as sa,H as ca,F as Bt,a9 as ua}from"./base.d698891e.js";import{v as _t,L as $t}from"./directive.e250a256.js";const da={install(e){e.directive("loading",_t),e.config.globalProperties.$loading=$t},directive:_t,service:$t},wn=["success","info","warning","error"],fa=na({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Me([String,Object]),default:""},id:{type:String,default:""},message:{type:Me([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Me(Function),default:()=>{}},onClose:{type:Me(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...wn,""],default:""},zIndex:{type:Number,default:0}}),ga={destroy:()=>!0},pa=hn({name:"ElNotification",components:{ElIcon:aa,...ra},props:fa,emits:ga,setup(e){const t=oa("notification"),n=z(!1);let a;const o=R(()=>{const f=e.type;return f&&Ot[e.type]?t.m(f):""}),s=R(()=>Ot[e.type]||e.icon||""),r=R(()=>e.position.endsWith("right")?"right":"left"),l=R(()=>e.position.startsWith("top")?"top":"bottom"),i=R(()=>({[l.value]:`${e.offset}px`,zIndex:e.zIndex}));function d(){e.duration>0&&({stop:a}=ia(()=>{n.value&&c()},e.duration))}function u(){a==null||a()}function c(){n.value=!1}function p({code:f}){f===at.delete||f===at.backspace?u():f===at.esc?n.value&&c():d()}return mn(()=>{d(),n.value=!0}),jn(document,"keydown",p),{ns:t,horizontalClass:r,typeClass:o,iconComponent:s,positionStyle:i,visible:n,close:c,clearTimer:u,startTimer:d}}}),ha=["id"],ma=["textContent"],va={key:0},ba=["innerHTML"];function ya(e,t,n,a,o,s){const r=Mt("el-icon"),l=Mt("close");return F(),Se(bn,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=i=>e.$emit("destroy")),persisted:""},{default:qe(()=>[Ae(M("div",{id:e.id,class:oe([e.ns.b(),e.customClass,e.horizontalClass]),style:Te(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...i)=>e.clearTimer&&e.clearTimer(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.startTimer&&e.startTimer(...i)),onClick:t[2]||(t[2]=(...i)=>e.onClick&&e.onClick(...i))},[e.iconComponent?(F(),Se(r,{key:0,class:oe([e.ns.e("icon"),e.typeClass])},{default:qe(()=>[(F(),Se(qn(e.iconComponent)))]),_:1},8,["class"])):W("v-if",!0),M("div",{class:oe(e.ns.e("group"))},[M("h2",{class:oe(e.ns.e("title")),textContent:Ft(e.title)},null,10,ma),Ae(M("div",{class:oe(e.ns.e("content")),style:Te(e.title?void 0:{margin:0})},[Hn(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(F(),O(Wn,{key:1},[W(" Caution here, message could've been compromized, nerver use user's input as message "),W(" eslint-disable-next-line "),M("p",{innerHTML:e.message},null,8,ba)],2112)):(F(),O("p",va,Ft(e.message),1))])],6),[[Ee,e.message]]),e.showClose?(F(),Se(r,{key:0,class:oe(e.ns.e("closeBtn")),onClick:He(e.close,["stop"])},{default:qe(()=>[vn(l)]),_:1},8,["class","onClick"])):W("v-if",!0)],2)],46,ha),[[Ee,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var wa=la(pa,[["render",ya],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Ze={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},wt=16;let Sa=1;const fe=function(e={},t=null){if(!sa)return{close:()=>{}};(typeof e=="string"||bt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;Ze[n].forEach(({vm:c})=>{var p;a+=(((p=c.el)==null?void 0:p.offsetHeight)||0)+wt}),a+=wt;const{nextZIndex:o}=ca(),s=`notification_${Sa++}`,r=e.onClose,l={zIndex:o(),offset:a,...e,id:s,onClose:()=>{Ca(s,n,r)}};let i=document.body;Bt(e.appendTo)?i=e.appendTo:Gn(e.appendTo)&&(i=document.querySelector(e.appendTo)),Bt(i)||(i=document.body);const d=document.createElement("div"),u=vn(wa,l,bt(l.message)?{default:()=>l.message}:null);return u.appContext=t!=null?t:fe._context,u.props.onDestroy=()=>{It(null,d)},It(u,d),Ze[n].push({vm:u}),i.appendChild(d.firstElementChild),{close:()=>{u.component.proxy.visible=!1}}};wn.forEach(e=>{fe[e]=(t={})=>((typeof t=="string"||bt(t))&&(t={message:t}),fe({...t,type:e}))});function Ca(e,t,n){const a=Ze[t],o=a.findIndex(({vm:d})=>{var u;return((u=d.component)==null?void 0:u.props.id)===e});if(o===-1)return;const{vm:s}=a[o];if(!s)return;n==null||n(s);const r=s.el.offsetHeight,l=t.split("-")[0];a.splice(o,1);const i=a.length;if(!(i<1))for(let d=o;d{t.component.proxy.visible=!1})}fe.closeAll=ka;fe._context=null;const xa=ua(fe,"$notify"),{width:jt,height:Aa}=Nn();function Ea(){const e=R(()=>jt.value<768),t=R(()=>jt.value>=768),n=r=>{if(a(r))return"";let l="",i=-1;for(let d=0;dr==null||r==="";return{isMobile:e,isNotMobile:t,height:Aa,encodeAllIgnoreSlashes:n,strIsEmpty:a,strIsNotEmpty:r=>!a(r),removeDuplicateSeparator:r=>{let l="";r.indexOf("http://")===0?l="http://":r.indexOf("https://")===0&&(l="https://");for(let i=l.length;iSn.proxy.$refs.fileTableRef);function et(e){e&&(Sn=e);const t=()=>{Fe.value.clearSelection()},n=(c,p)=>{(c==null?void 0:c.type)!=="BACK"&&Fe.value.toggleRowSelection(c,p)},a=()=>{Fe.value.toggleAllSelection()},o=c=>c.type==="FILE"||c.type==="FOLDER",s=R(()=>H.value.length>0?H.value[H.value.length-1]:null),r=R(()=>H.value.filter(c=>c.type==="FILE")),l=R(()=>H.value.filter(c=>c.type==="FOLDER")),i=c=>{H.value=c},d=({row:c,rowIndex:p})=>(c.index=p,H.value.indexOf(c)!==-1?"select-row":""),u=R(()=>{let c=H.value.length,p=r.value.length,f=l.value.length,h=c===1,g=c>1;return{isSingleSelect:h,isMultiSelect:g,isAllFile:p===c,isAllFolder:f===c}});return{checkSelectable:o,tableRowClassName:d,selectRowsChange:i,selectRow:s,selectRows:H,selectFiles:r,selectFolders:l,selectStatistics:u,tableRef:Fe,clearSelection:t,toggleRowSelection:n,toggleAllSelection:a}}let{selectStatistics:ae}=et();const De=yn("storageConfigStore",{state:()=>({globalConfig:{siteName:"",directLinkPrefix:"",infoEnable:!1,showLinkBtn:!1,recordDownloadLog:!1,showShortLink:!1,showPathLink:!1,tableSize:"small",rootShowStorage:!0,fileClickMode:"dbclick",showDocument:!1,debugMode:!1,domain:"",icp:"123",avatar:"",announcement:"",layout:"full",showAnnouncement:!1,searchEnable:!1,showLogin:!1},folderConfig:{readmeText:null,readmeDisplayMode:null,defaultSwitchToImgMode:!1,enableFileOperator:!1}}),getters:{permission:e=>({open:ae.value.isSingleSelect&&ae.value.isAllFolder,preview:ae.value.isAllFile&&ae.value.isSingleSelect,download:ae.value.isAllFile,link:ae.value.isAllFile&&e.globalConfig.showLinkBtn&&(e.globalConfig.showShortLink||e.globalConfig.showPathLink),rename:e.folderConfig.enableFileOperator&&ae.value.isSingleSelect,delete:e.folderConfig.enableFileOperator,newFolder:e.folderConfig.enableFileOperator,upload:e.folderConfig.enableFileOperator,pathLink:e.globalConfig.showPathLink,shortLink:e.globalConfig.showShortLink})},actions:{updateGlobalConfig(e){this.globalConfig=e},updateFolderConfig(e){this.folderConfig=e}}}),go=e=>_({url:"/api/site/reset-password",method:"get",data:e}),Ta=e=>_({url:"/api/storage/list",method:"get",data:e}),ge=yn("fileDataStore",{state:()=>({currentClickRow:{},currentRightClickRow:{},currentStorageSource:{id:null,type:{description:"",key:""}},imgMode:!1,newImgMode:!1,oldStorageKey:null,searchParam:"",fileListSource:[],audioArray:[],audioIndex:0}),getters:{filterFileByType:e=>t=>e.fileListSource.filter(function(n){if(n.type==="BACK")return!1;let a=n.name,o=a.substr(a.lastIndexOf(".")+1).toLowerCase();return te.constant.fileTypeMap[t].indexOf(o)!==-1}),fileList:e=>{let t=e.fileListSource;return t.forEach(n=>{if(n.icon||(n.icon=te.getFileIconName(n)),n.preview!==null){var a=te.getFileType(n.name);a?(n.fileType=a,n.preview=te.constant.previewFileType.indexOf(a)!==-1):n.preview=!1}}),t}},actions:{updateCurrentStorageSource(e){this.currentStorageSource=e},updateAudioIndex(e){this.audioIndex=e},updateAudioList(e){this.audioArray=e},updateCurrentClickRow(e){this.currentClickRow=e},updateCurrentRightClickRow(e){this.currentRightClickRow=e},updateFileList(e){this.fileListSource=e},updateOldStorageKey(e){this.oldStorageKey=e}}});let Nt=ge(),Ut=De(),{routerRef:rt,fullpath:La,storageKey:Ie}=ze(),Y=z([]),he=z(),Vt=!1;function Pa(){let e=Ut.globalConfig.rootShowStorage,t=()=>new Promise(l=>{Ta().then(i=>{if(Y.value=i.data,Y.value.length===0){G.confirm("\u5F53\u524D\u65E0\u53EF\u7528\u5B58\u50A8\u6E90\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u7BA1\u7406\u5458\u9875\u9762\u6DFB\u52A0\u5B58\u50A8\u6E90\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"info",callback:d=>{d==="confirm"&&rt.value.push("/login")}});return}n(e),l(i)})});const n=l=>{Ie.value?r(Ie.value)?he.value=Ie.value:s():l?(Nt.updateFileList(a.value),document.title=Ut.globalConfig.siteName+" | \u9996\u9875"):s(),o()},a=R(()=>{let l=[];return Y.value.forEach(i=>{l.push({name:i.name,path:i.key,size:0,time:"-",type:"ROOT"})}),l}),o=()=>{Y.value.some(l=>{l.key===he.value&&Nt.updateCurrentStorageSource(l)})};Vt||(Ge(()=>he.value,(l,i)=>{(l&&!La.value||i!==void 0)&&(rt.value.push("/"+l),o())}),Ge(()=>Ie.value,l=>{n(!0)}),Vt=!0);const s=()=>{if(Y.value.length>0){let l=Y.value[0].key;he.value=l,rt.value.push("/"+l)}},r=l=>Y.value.find(i=>{if(i.key==l)return i});return{loadStorageSourceList:t,storageList:Y,findStorageByKey:r,currentStorageKey:he,storageListAsFileList:a}}var Re={};Object.defineProperty(Re,"__esModule",{value:!0});var Qe=Re.removeDuplicateSlashes=Re.transform=void 0;const Ra=/(?!^)\/{2,}/g;function za(e){return e.map(t=>Cn(t))}Re.transform=za;function Cn(e){return e.replace(Ra,"/")}Qe=Re.removeDuplicateSlashes=Cn;const Da=e=>_({url:"/api/file/operator/mkdir",method:"post",data:e}),Ma=e=>_({url:"/api/file/operator/delete/file",method:"post",data:e}),Fa=e=>_({url:"/api/file/operator/delete/folder",method:"post",data:e}),Ia=e=>_({url:"/api/file/operator/rename/file",method:"post",data:e}),Oa=e=>_({url:"/api/file/operator/rename/folder",method:"post",data:e}),Ba=e=>_({url:"/api/file/operator/upload/file",method:"post",data:e});function U(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Kt(e,t){for(var n="",a=0,o=-1,s=0,r,l=0;l<=e.length;++l){if(l2){var i=n.lastIndexOf("/");if(i!==n.length-1){i===-1?(n="",a=0):(n=n.slice(0,i),a=n.length-1-n.lastIndexOf("/")),o=l,s=0;continue}}else if(n.length===2||n.length===1){n="",a=0,o=l,s=0;continue}}t&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),a=l-o-1;o=l,s=0}else r===46&&s!==-1?++s:s=-1}return n}function _a(e,t){var n=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+a:n+e+a:a}var de={resolve:function(){for(var t="",n=!1,a,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(a===void 0&&(a=process.cwd()),s=a),U(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=Kt(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(U(t),t.length===0)return".";var n=t.charCodeAt(0)===47,a=t.charCodeAt(t.length-1)===47;return t=Kt(t,!n),t.length===0&&!n&&(t="."),t.length>0&&a&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return U(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n0&&(t===void 0?t=a:t+="/"+a)}return t===void 0?".":de.normalize(t)},relative:function(t,n){if(U(t),U(n),t===n||(t=de.resolve(t),n=de.resolve(n),t===n))return"";for(var a=1;ad){if(n.charCodeAt(r+c)===47)return n.slice(r+c+1);if(c===0)return n.slice(r+c)}else s>d&&(t.charCodeAt(a+c)===47?u=c:c===0&&(u=0));break}var p=t.charCodeAt(a+c),f=n.charCodeAt(r+c);if(p!==f)break;p===47&&(u=c)}var h="";for(c=a+u+1;c<=o;++c)(c===o||t.charCodeAt(c)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+n.slice(r+u):(r+=u,n.charCodeAt(r)===47&&++r,n.slice(r))},_makeLong:function(t){return t},dirname:function(t){if(U(t),t.length===0)return".";for(var n=t.charCodeAt(0),a=n===47,o=-1,s=!0,r=t.length-1;r>=1;--r)if(n=t.charCodeAt(r),n===47){if(!s){o=r;break}}else s=!1;return o===-1?a?"/":".":a&&o===1?"//":t.slice(0,o)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');U(t);var a=0,o=-1,s=!0,r;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var l=n.length-1,i=-1;for(r=t.length-1;r>=0;--r){var d=t.charCodeAt(r);if(d===47){if(!s){a=r+1;break}}else i===-1&&(s=!1,i=r+1),l>=0&&(d===n.charCodeAt(l)?--l===-1&&(o=r):(l=-1,o=i))}return a===o?o=i:o===-1&&(o=t.length),t.slice(a,o)}else{for(r=t.length-1;r>=0;--r)if(t.charCodeAt(r)===47){if(!s){a=r+1;break}}else o===-1&&(s=!1,o=r+1);return o===-1?"":t.slice(a,o)}},extname:function(t){U(t);for(var n=-1,a=0,o=-1,s=!0,r=0,l=t.length-1;l>=0;--l){var i=t.charCodeAt(l);if(i===47){if(!s){a=l+1;break}continue}o===-1&&(s=!1,o=l+1),i===46?n===-1?n=l:r!==1&&(r=1):n!==-1&&(r=-1)}return n===-1||o===-1||r===0||r===1&&n===o-1&&n===a+1?"":t.slice(n,o)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return _a("/",t)},parse:function(t){U(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var a=t.charCodeAt(0),o=a===47,s;o?(n.root="/",s=1):s=0;for(var r=-1,l=0,i=-1,d=!0,u=t.length-1,c=0;u>=s;--u){if(a=t.charCodeAt(u),a===47){if(!d){l=u+1;break}continue}i===-1&&(d=!1,i=u+1),a===46?r===-1?r=u:c!==1&&(c=1):r!==-1&&(c=-1)}return r===-1||i===-1||c===0||c===1&&r===i-1&&r===l+1?i!==-1&&(l===0&&o?n.base=n.name=t.slice(1,i):n.base=n.name=t.slice(l,i)):(l===0&&o?(n.name=t.slice(1,r),n.base=t.slice(1,i)):(n.name=t.slice(l,r),n.base=t.slice(l,i)),n.ext=t.slice(r,i)),l>0?n.dir=t.slice(0,l-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};de.posix=de;var Oe=de;const $a=e=>_({url:"/api/storage/files",method:"post",data:e,config:{showDefaultMsg:!1}}),po=e=>_({url:"/api/storage/file/item",method:"post",data:e,config:{responseIntercept:!1,showDefaultMsg:!1}}),ho=()=>_({url:"/api/site/config/global",method:"get"}),ja=e=>_({url:"/api/site/config/storage",method:"post",data:e}),mo=e=>_({url:"/api/short-link",method:"get",data:e}),Na=typeof process=="object"&&process&&process.platform==="win32";var Ua=Na?{sep:"\\"}:{sep:"/"},Va=kn;function kn(e,t,n){e instanceof RegExp&&(e=qt(e,n)),t instanceof RegExp&&(t=qt(t,n));var a=xn(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function qt(e,t){var n=t.match(e);return n?n[0]:null}kn.range=xn;function xn(e,t,n){var a,o,s,r,l,i=n.indexOf(e),d=n.indexOf(t,i+1),u=i;if(i>=0&&d>0){if(e===t)return[i,d];for(a=[],s=n.length;u>=0&&!l;)u==i?(a.push(u),i=n.indexOf(e,u+1)):a.length==1?l=[a.pop(),d]:(o=a.pop(),o=0?i:d;a.length&&(l=[s,r])}return l}var An=Va,Ka=Wa,En="\0SLASH"+Math.random()+"\0",Tn="\0OPEN"+Math.random()+"\0",Pt="\0CLOSE"+Math.random()+"\0",Ln="\0COMMA"+Math.random()+"\0",Pn="\0PERIOD"+Math.random()+"\0";function ot(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function qa(e){return e.split("\\\\").join(En).split("\\{").join(Tn).split("\\}").join(Pt).split("\\,").join(Ln).split("\\.").join(Pn)}function Ha(e){return e.split(En).join("\\").split(Tn).join("{").split(Pt).join("}").split(Ln).join(",").split(Pn).join(".")}function Rn(e){if(!e)return[""];var t=[],n=An("{","}",e);if(!n)return e.split(",");var a=n.pre,o=n.body,s=n.post,r=a.split(",");r[r.length-1]+="{"+o+"}";var l=Rn(s);return s.length&&(r[r.length-1]+=l.shift(),r.push.apply(r,l)),t.push.apply(t,r),t}function Wa(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ce(qa(e),!0).map(Ha)):[]}function Ga(e){return"{"+e+"}"}function Ya(e){return/^-?0\d/.test(e)}function Za(e,t){return e<=t}function Qa(e,t){return e>=t}function Ce(e,t){var n=[],a=An("{","}",e);if(!a)return[e];var o=a.pre,s=a.post.length?Ce(a.post,!1):[""];if(/\$$/.test(a.pre))for(var r=0;r=0;if(!u&&!c)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Pt+a.post,Ce(e)):[e];var p;if(u)p=a.body.split(/\.\./);else if(p=Rn(a.body),p.length===1&&(p=Ce(p[0],!1).map(Ga),p.length===1))return s.map(function(k){return a.pre+p[0]+k});var f;if(u){var h=ot(p[0]),g=ot(p[1]),C=Math.max(p[0].length,p[1].length),b=p.length==3?Math.abs(ot(p[2])):1,S=Za,m=g0){var P=new Array(L+1).join("0");w<0?x="-"+P+x.slice(1):x=P+x}}f.push(x)}}else{f=[];for(var y=0;y(Xe(t),!n.nocomment&&t.charAt(0)==="#"?!1:new tt(t,n).match(e));var zn=B;const St=Ua;B.sep=St.sep;const N=Symbol("globstar **");B.GLOBSTAR=N;const Xa=Ka,Ht={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ct="[^/]",lt=Ct+"*?",Ja="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",er="(?:(?!(?:\\/|^)\\.).)*?",Dn=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),Wt=Dn("().*{}+?[]^$\\!"),tr=Dn("[.("),Gt=/\/+/;B.filter=(e,t={})=>(n,a,o)=>B(n,e,t);const Z=(e,t={})=>{const n={};return Object.keys(e).forEach(a=>n[a]=e[a]),Object.keys(t).forEach(a=>n[a]=t[a]),n};B.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return B;const t=B,n=(a,o,s)=>t(a,o,Z(e,s));return n.Minimatch=class extends t.Minimatch{constructor(o,s){super(o,Z(e,s))}},n.Minimatch.defaults=a=>t.defaults(Z(e,a)).Minimatch,n.filter=(a,o)=>t.filter(a,Z(e,o)),n.defaults=a=>t.defaults(Z(e,a)),n.makeRe=(a,o)=>t.makeRe(a,Z(e,o)),n.braceExpand=(a,o)=>t.braceExpand(a,Z(e,o)),n.match=(a,o,s)=>t.match(a,o,Z(e,s)),n};B.braceExpand=(e,t)=>Mn(e,t);const Mn=(e,t={})=>(Xe(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Xa(e)),nr=1024*64,Xe=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>nr)throw new TypeError("pattern is too long")},Be=Symbol("subparse");B.makeRe=(e,t)=>new tt(e,t||{}).makeRe();B.match=(e,t,n={})=>{const a=new tt(t,n);return e=e.filter(o=>a.match(o)),a.options.nonull&&!e.length&&e.push(t),e};const ar=e=>e.replace(/\\(.)/g,"$1"),rr=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class tt{constructor(t,n){Xe(t),n||(n={}),this.options=n,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();n.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,a),a=this.globParts=a.map(o=>o.split(Gt)),this.debug(this.pattern,a),a=a.map((o,s,r)=>o.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(o=>o.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let n=!1,a=0;for(let o=0;o>> no match, partial?`,t,c,n,p),c===l))}var h;if(typeof d=="string"?(h=u===d,this.debug("string match",d,u,h)):(h=u.match(d),this.debug("pattern match",d,u,h)),!h)return!1}if(s===l&&r===i)return!0;if(s===l)return a;if(r===i)return s===l-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return Mn(this.pattern,this.options)}parse(t,n){Xe(t);const a=this.options;if(t==="**")if(a.noglobstar)t="*";else return N;if(t==="")return"";let o="",s=!!a.nocase,r=!1;const l=[],i=[];let d,u=!1,c=-1,p=-1,f,h,g;const C=t.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=()=>{if(d){switch(d){case"*":o+=lt,s=!0;break;case"?":o+=Ct,s=!0;break;default:o+="\\"+d;break}this.debug("clearStateChar %j %j",d,o),d=!1}};for(let v=0,w;v(P||(P="\\"),L+L+P+"|")),this.debug(`tail=%j - %s`,v,v,h,o);const w=h.type==="*"?lt:h.type==="?"?Ct:"\\"+h.type;s=!0,o=o.slice(0,h.reStart)+w+"\\("+v}b(),r&&(o+="\\\\");const S=tr[o.charAt(0)];for(let v=i.length-1;v>-1;v--){const w=i[v],x=o.slice(0,w.reStart),L=o.slice(w.reStart,w.reEnd-8);let P=o.slice(w.reEnd);const y=o.slice(w.reEnd-8,w.reEnd)+P,k=x.split("(").length-1;let A=P;for(let E=0;E(r=r.map(l=>typeof l=="string"?rr(l):l===N?N:l._src).reduce((l,i)=>(l[l.length-1]===N&&i===N||l.push(i),l),[]),r.forEach((l,i)=>{l!==N||r[i-1]===N||(i===0?r.length>1?r[i+1]="(?:\\/|"+a+"\\/)?"+r[i+1]:r[i]=a:i===r.length-1?r[i-1]+="(?:\\/|"+a+")?":(r[i-1]+="(?:\\/|\\/"+a+"\\/)"+r[i+1],r[i+1]=N))}),r.filter(l=>l!==N).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,o)}catch{this.regexp=!1}return this.regexp}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;const a=this.options;St.sep!=="/"&&(t=t.split(St.sep).join("/")),t=t.split(Gt),this.debug(this.pattern,"split",t);const o=this.set;this.debug(this.pattern,"set",o);let s;for(let r=t.length-1;r>=0&&(s=t[r],!s);r--);for(let r=0;r{n&&(ie.value[_e.value]||(ie.value[_e.value]={}),ie.value[_e.value][n]=a)},getPathPwd:()=>{for(let n of Object.keys(ie.value))if(n===_e.value){for(let a of Object.keys(ie.value[n]))if(or(lr.value,a))return ie.value[n][a]}return""}}}const Rt=typeof window!="undefined",it=()=>{};function sr(e,t=200,n={}){return function(a,o){return function(...s){a(()=>o.apply(this,s),{fn:o,thisArg:this,args:s})}}(function(a,o={}){let s,r;return l=>{const i=J(a),d=J(o.maxWait);if(s&&clearTimeout(s),i<=0||d!==void 0&&d<=0)return r&&(clearTimeout(r),r=null),l();d&&!r&&(r=setTimeout(()=>{s&&clearTimeout(s),r=null,l()},d)),s=setTimeout(()=>{r&&clearTimeout(r),r=null,l()},i)}}(t,n),e)}var cr=Object.defineProperty,ur=Object.defineProperties,dr=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,Zt=(e,t,n)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pr=(e,t)=>{for(var n in t||(t={}))fr.call(t,n)&&Zt(e,n,t[n]);if(Yt)for(var n of Yt(t))gr.call(t,n)&&Zt(e,n,t[n]);return e};const zt=Rt?window:void 0;function Le(...e){let t,n,a,o;if(typeof e[0]=="string"?([n,a,o]=e,t=zt):[t,n,a,o]=e,!t)return it;let s=it;const r=Ge(()=>function(d){var u;const c=J(d);return(u=c==null?void 0:c.$el)!=null?u:c}(t),d=>{s(),d&&(d.addEventListener(n,a,o),s=()=>{d.removeEventListener(n,a,o),s=it})},{immediate:!0,flush:"post"}),l=()=>{r(),s()};var i;return i=l,ea()&&ta(i),l}function hr(e,t,n={}){const{target:a=zt,eventName:o="keydown",passive:s=!1}=n,r=typeof(l=e)=="function"?l:typeof l=="string"?i=>i.key===l:Array.isArray(l)?i=>l.includes(i.key):l?()=>!0:()=>!1;var l;return Le(a,o,i=>{r(i)&&t(i)},s)}const st=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ct="__vueuse_ssr_handlers__";st[ct]=st[ct]||{},st[ct];var Qt,Xt,mr=Object.defineProperty,vr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Sr(e,t={}){var n,a;const o=(n=t.draggingElement)!=null?n:zt,s=z((a=t.initialValue)!=null?a:{x:0,y:0}),r=z(),l=f=>!t.pointerTypes||t.pointerTypes.includes(f.pointerType),i=f=>{J(t.preventDefault)&&f.preventDefault(),J(t.stopPropagation)&&f.stopPropagation()},d=f=>{var h;l(f)&&r.value&&(s.value={x:f.pageX-r.value.x,y:f.pageY-r.value.y},(h=t.onMove)==null||h.call(t,s.value,f),i(f))},u=f=>{var h;l(f)&&r.value&&(r.value=void 0,(h=t.onEnd)==null||h.call(t,s.value,f),i(f))};return Rt&&(Le(e,"pointerdown",f=>{var h;if(!l(f)||J(t.exact)&&f.target!==J(e))return;const g=J(e).getBoundingClientRect(),C={x:f.pageX-g.left,y:f.pageY-g.top};((h=t.onStart)==null?void 0:h.call(t,C,f))!==!1&&(r.value=C,i(f))},!0),Le(o,"pointermove",d,!0),Le(o,"pointerup",u,!0)),c=((f,h)=>{for(var g in h||(h={}))yr.call(h,g)&&en(f,g,h[g]);if(Jt)for(var g of Jt(h))wr.call(h,g)&&en(f,g,h[g]);return f})({},function(f){if(!Xn(f))return yt(f);const h=Array.isArray(f.value)?new Array(f.value.length):{};for(const g in f.value)h[g]=Jn(()=>({get:()=>f.value[g],set(C){if(Array.isArray(f.value)){const S=[...f.value];S[g]=C,f.value=S}else f.value=(b=pr({},f.value),ur(b,dr({[g]:C})));var b}}));return h}(s)),p={position:s,isDragging:R(()=>!!r.value),style:R(()=>`left:${s.value.x}px;top:${s.value.y}px;`)},vr(c,br(p));var c,p}Rt&&(window==null?void 0:window.navigator)&&((Qt=window==null?void 0:window.navigator)==null?void 0:Qt.platform)&&/iP(ad|hone|od)/.test((Xt=window==null?void 0:window.navigator)==null?void 0:Xt.platform);const Cr=["a","s","d","w","q","e","A","S","D","W","Q","E","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Escape"," "];var Je=hn({name:"V3ImgPreview",props:{showToolbar:{type:Boolean,default:!0},showArrowBtn:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},url:{type:String,default:void 0},escClose:{type:Boolean,default:!0},images:{type:Array,default:()=>[]},showCloseBtn:{type:Boolean,default:!0},index:{type:Number,default:0},on_unmount_v3_ima_preview_app:{type:Function}},setup(e,t){let{emit:n}=t;const a=z(null),o=z(null),{style:s}=Sr(o),r=Pe({visible:!0,imgState:"loading",src:"",imgIndex:e.index}),l=R(()=>{var m;return((m=e.images)===null||m===void 0?void 0:m.length)>1&&e.showArrowBtn}),i=Pe({imgScale:1,imgRotate:0}),d=R(()=>{var m;return((m=e.images)===null||m===void 0?void 0:m.length)>1}),u=sr(m=>{if(!e.keyboard)return!1;m.preventDefault();const{key:v}=m;return["s","S","ArrowDown"].includes(v)?f(-.1,!1):["w","W","ArrowUp"].includes(v)?f(.1,!1):v===" "?c():v==="Escape"&&e.escClose?b():["E","e"].includes(v)?p(!0):["Q","q"].includes(v)?p(!1):["a","A","ArrowLeft"].includes(v)?S(!1):["d","D","ArrowRight"].includes(v)?S(!0):void 0},200);hr(Cr,u);const c=()=>{i.imgScale=1,i.imgRotate=0,o.value.style.top="0",o.value.style.left="0"};function p(m){i.imgRotate+=90*(m?1:-1)}function f(m){let v=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.imgScale<=.2&&m<0||(v?i.imgScale=m:i.imgScale+=m)}function h(m){m.preventDefault(),f(m.deltaY<0?.05:-.05)}function g(m){r.imgState="loading",(v=>{const w=new Image;return w.src=v,new Promise((x,L)=>{w.onload=()=>{x(v)},w.onerror=()=>{L(v)}})})(m).then(()=>{r.imgState="success",r.src=m,c()}).catch(()=>{r.imgState="error"})}function C(){Ye(()=>{Le(a.value,"mousewheel",h,!1),c(),Ye(()=>e.url!==void 0?g(e.url):Array.isArray(e.images)&&e.images.length>0?g(e.images[r.imgIndex]):console.error("images is not Array or Array length is 0"))})}function b(){var m;r.visible=!1,n("close"),(m=e.on_unmount_v3_ima_preview_app)===null||m===void 0||m.call(e)}function S(m){d.value&&(m?(r.imgIndex++,r.imgIndex>e.images.length-1&&(r.imgIndex=0)):(r.imgIndex--,r.imgIndex<0&&(r.imgIndex=e.images.length-1)),g(e.images[r.imgIndex]))}return mn(()=>{window.__V3__IMG__PREVIEW__LOAD__ICON__SVG__||function(m){m.__V3__IMG__PREVIEW__LOAD__ICON__SVG__=!0;var v,w,x,L,P,y='',k=(k=document.getElementsByTagName("script"))[k.length-1].getAttribute("data-injectcss");if(k&&!m.__iconfont__svg__cssinject__){m.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(T){console&&console.log(T)}}function A(){P||(P=!0,x())}v=function(){var T,E=document.createElement("div");E.innerHTML=y,y=null,(E=E.getElementsByTagName("svg")[0])&&(E.setAttribute("aria-hidden","true"),E.style.position="absolute",E.style.width=0,E.style.height=0,E.style.overflow="hidden",E=E,(T=document.body).firstChild?function(D,I){I.parentNode.insertBefore(D,I)}(E,T.firstChild):T.appendChild(E))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(w=function(){document.removeEventListener("DOMContentLoaded",w,!1),v()},document.addEventListener("DOMContentLoaded",w,!1)):document.attachEvent&&(x=v,L=m.document,P=!1,function T(){try{L.documentElement.doScroll("left")}catch{return void setTimeout(T,50)}A()}(),L.onreadystatechange=function(){L.readyState=="complete"&&(L.onreadystatechange=null,A())})}(typeof window!="undefined"?window:global),C()}),Object.assign(Object.assign(Object.assign({vImagesWrap:a,imgContainer:o},yt(r)),yt(i)),{handleClose:b,toggleImg:S,initImgSize:c,dragStyle:s,handleScale:f,handleRotate:p,visibleArrowBtn:l,isMultiple:d})}});const q=e=>(Yn("data-v-15ccadb3"),e=e(),Zn(),e),kr={key:0,class:"v-images-wrap",ref:"vImagesWrap"},xr={class:"icon img-loading rotate-animation","aria-hidden":"true"},Ar=[q(()=>M("use",{"xlink:href":"#v3-img-loading"},null,-1))],Er=["src"],Tr=[q(()=>M("use",{"xlink:href":"#v3-img-img-error"},null,-1))],Lr=[q(()=>M("use",{"xlink:href":"#v3-img-close"},null,-1))],Pr=[q(()=>M("svg",{class:"icon","aria-hidden":"true"},[M("use",{"xlink:href":"#v3-img-left"})],-1))],Rr=[q(()=>M("svg",{class:"icon","aria-hidden":"true"},[M("use",{"xlink:href":"#v3-img-right"})],-1))],zr={key:3,class:"v3-img-preview-toolbar"},Dr=[q(()=>M("use",{"xlink:href":"#v3-img-zoom-out"},null,-1))],Mr=[q(()=>M("use",{"xlink:href":"#v3-img-zoom-big"},null,-1))],Fr=[q(()=>M("use",{"xlink:href":"#v3-img-antetype"},null,-1))],Ir=[q(()=>M("use",{"xlink:href":"#v3-img-rotate-left"},null,-1))],Or=[q(()=>M("use",{"xlink:href":"#v3-img-rotate-right"},null,-1))];(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document!="undefined"){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})(`.icon[data-v-15ccadb3] { - width: 1em; - height: 1em; - vertical-align: -0.15em; - fill: currentColor; - overflow: hidden; -} -.v-images-wrap[data-v-15ccadb3] { - z-index: 200; - user-select: none; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - overflow: hidden; - background: rgba(0, 0, 0, 0.3); - backdrop-filter: blur(3px); - color: #fff; -} -.v-images-wrap[data-v-15ccadb3] .img-loading[data-v-15ccadb3], -.v-images-wrap[data-v-15ccadb3] .img-content[data-v-15ccadb3] { - font-size: 50px; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - margin: auto; - transition: all 0.2s; -} -.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] { - z-index: 201; - position: absolute; - height: 100vh; - width: 100vw; - top: 0; - left: 0; - text-align: center; -} -.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] .img-content[data-v-15ccadb3] { - max-width: 100%; - max-height: 100%; -} -.v-images-wrap[data-v-15ccadb3] .img-container[data-v-15ccadb3] .img-error[data-v-15ccadb3] { - font-size: 300px; - color: #d8d8d8; -} -.v-images-wrap[data-v-15ccadb3] .rotate-animation[data-v-15ccadb3] { - animation: rotate-15ccadb3 1.5s linear infinite; -} -.v-images-wrap[data-v-15ccadb3] .arrow[data-v-15ccadb3] { - width: 42px; - height: 42px; - text-align: center; - line-height: 42px; - position: absolute; - top: 50%; - border-radius: 50%; - transform: translateY(-50%); - -ms-transform: translateY(-50%); - font-size: 24px; - cursor: pointer; - transition: all 0.2s; - z-index: 280; - background: rgba(0, 0, 0, 0.3); -} -.v-images-wrap[data-v-15ccadb3] .arrow[data-v-15ccadb3][data-v-15ccadb3]:hover { - opacity: 0.8; - transform: translateY(-50%) scale(1.2); -} -.v-images-wrap[data-v-15ccadb3] .arrow-left[data-v-15ccadb3] { - left: 50px; -} -.v-images-wrap[data-v-15ccadb3] .arrow-right[data-v-15ccadb3] { - right: 50px; -} -.v-images-wrap[data-v-15ccadb3] .close-btn[data-v-15ccadb3] { - z-index: 205; - position: absolute; - right: 50px; - top: 50px; - width: 36px; - height: 36px; - font-size: 22px; - line-height: 36px; - text-align: center; - border-radius: 50%; - cursor: pointer; - transition: all 0.2s; - color: #e7e5e5; - background: rgba(0, 0, 0, 0.3); -} -.v-images-wrap[data-v-15ccadb3] .close-btn[data-v-15ccadb3][data-v-15ccadb3]:hover { - opacity: 0.8; - transform: scale(1.2); -} -.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] { - z-index: 205; - position: absolute; - bottom: 10%; - font-size: 26px; - width: 100%; - display: flex; - justify-content: center; - cursor: pointer; -} -.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] { - height: 44px; - bottom: 10%; - padding: 0 22px; - display: flex; - align-items: center; - border-radius: 22px; - background: rgba(0, 0, 0, 0.3); - color: #c3c3c3; -} -.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] svg[data-v-15ccadb3] { - box-sizing: content-box; - padding: 0 10px; - transition: all 0.2s; -} -.v-images-wrap[data-v-15ccadb3] .v3-img-preview-toolbar[data-v-15ccadb3] section[data-v-15ccadb3] svg[data-v-15ccadb3][data-v-15ccadb3]:hover { - transform: scale(1.2); -} -@keyframes rotate-15ccadb3 { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} -`),Je.render=function(e,t,n,a,o,s){return F(),Se(bn,{name:"fade"},{default:qe(()=>[e.visible?(F(),O("div",kr,[Ae((F(),O("svg",xr,Ar,512)),[[Ee,e.imgState==="loading"]]),M("div",{ref:"imgContainer",style:Te(e.dragStyle),class:"img-container"},[Ae(M("img",{class:"img-content",onDragstart:t[0]||(t[0]=He(()=>{},["prevent"])),src:e.src,style:Te(`transform: scale(${e.imgScale}) rotate(${e.imgRotate}deg);`),alt:""},null,44,Er),[[Ee,e.imgState==="success"]]),Ae((F(),O("svg",{class:"icon img-content img-error",onDragstart:t[1]||(t[1]=He(()=>{},["prevent"])),"aria-hidden":"true",style:Te(`transform: scale(${e.imgScale}) rotate(${e.imgRotate}deg);`)},Tr,36)),[[Ee,e.imgState==="error"]])],4),e.showCloseBtn?(F(),O("svg",{key:0,class:"icon close-btn","aria-hidden":"true",onClick:t[2]||(t[2]=He(function(){return e.handleClose&&e.handleClose(...arguments)},["stop"]))},Lr)):W("",!0),e.visibleArrowBtn?(F(),O("div",{key:1,class:"arrow arrow-left",onClick:t[3]||(t[3]=r=>e.toggleImg(!1))},Pr)):W("",!0),e.visibleArrowBtn?(F(),O("div",{key:2,class:"arrow arrow-right",onClick:t[4]||(t[4]=r=>e.toggleImg(!0))},Rr)):W("",!0),e.showToolbar?(F(),O("div",zr,[M("section",null,[(F(),O("svg",{class:"icon","aria-hidden":"true",onClick:t[5]||(t[5]=r=>e.handleScale(-.1,!1))},Dr)),(F(),O("svg",{class:"icon","aria-hidden":"true",onClick:t[6]||(t[6]=r=>e.handleScale(.1,!1))},Mr)),(F(),O("svg",{class:"icon","aria-hidden":"true",onClick:t[7]||(t[7]=function(){return e.initImgSize&&e.initImgSize(...arguments)})},Fr)),(F(),O("svg",{class:"icon","aria-hidden":"true",onClick:t[8]||(t[8]=r=>e.handleRotate(!1))},Ir)),(F(),O("svg",{class:"icon","aria-hidden":"true",onClick:t[9]||(t[9]=r=>e.handleRotate(!0))},Or))])])):W("",!0)],512)):W("",!0)]),_:1})},Je.__scopeId="data-v-15ccadb3";let Fn={};const tn="v3-img-preview-container-id";let me={};function In(e){if(me._instance)return!1;Array.isArray(e)&&(e={images:e}),typeof e=="string"&&(e={url:e}),e=Object.assign(Object.assign({},Fn),e);let t=document.getElementById(tn);return t||(t=document.createElement("div"),t.id=tn,document.body.appendChild(t)),me=Qn(Je,Object.assign(Object.assign({},e),{on_unmount_v3_ima_preview_app:()=>me.unmount()})),me.mount(t),me}(()=>{const e=Je;return e.install=(t,n)=>{Fn=n,t.config.globalProperties.$v3ImgPreviewFn=In},e})();let nn=Lt(),ut=ge(),an=z(!1),rn=z(!1),Br=z(!1),on=z(!1);function _r(){return{openVideo:()=>{an.value=!0},dialogVideoVisible:an,openText:()=>{rn.value=!0},dialogTextVisible:rn,openOffice:r=>{let l=nn.zfileConfig.officePreview.previewUrl(r.url);window.open(l)},dialogOfficeVisible:Br,openImage:r=>{let l=[],i=0;nn.zfileConfig.imagePreview.mode==="only"?l.push(r.url):ut.filterFileByType("image").forEach((u,c)=>{r.name===u.name&&(i=c),l.push(u.url)}),In({images:l,index:i})},openAudio:()=>{ut.updateAudioList(ut.filterFileByType("audio"))},openPdf:()=>{on.value=!0},dialogPdfVisible:on}}const{encodeAllIgnoreSlashes:ln}=Ea();let{routerRef:ve,fullpath:dt,storageKey:V,currentPath:$e}=ze(),{getPathPwd:$r,putPathPwd:jr}=ir();const{storageListAsFileList:Nr}=Pa();let be=ge(),ue=De();const ft=Vn(ue.globalConfig.siteName);let kt=Lt();const{openAudio:Ur,openImage:Vr,openOffice:bo,openPdf:Kr,openText:qr,openVideo:Hr}=_r(),se=z(!1),sn=z(!1);let xt=Pe([]);if(xt.length===0)for(let e=0;e{K.orderBy=l,K.orderDirection=i==="descending"?"desc":"asc",t()},t=l=>{if(!V.value)return;se.value=!0,K.path=$e.value;let i=l||{};i.storageKey=V.value,i.path=$e.value,i.password=i.password||$r(),i.orderBy=K.orderBy,i.orderDirection=K.orderDirection;let d=V.value;$a(i).then(u=>{let c=u.data.passwordPattern;if(jr(c,i.password),d!==V.value)return;let p=u.data.files,f=K.path;if(f!==""&&f!=="/"){let h=Oe.basename(Oe.resolve($e.value,"../"));p.unshift({name:h||"/",path:Oe.resolve(f,"../"),type:"BACK"})}be.updateFileList(p),se.value=!1,sn.value=!0,Wr.value=[],dt.value?ft.value=ue.globalConfig.siteName+" | "+dt.value[dt.value.length-1]:ft.value=ue.globalConfig.siteName+" | \u9996\u9875"}).catch(u=>{let c=u.response.data;c.code===te.responseCode.INVALID_PASSWORD?(j.warning("\u5BC6\u7801\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\uFF01"),r()):c.code===te.responseCode.REQUIRED_PASSWORD?(j.warning("\u6B64\u6587\u4EF6\u5939\u9700\u8981\u5BC6\u7801\uFF0C\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"),r()):j.error(c.msg)})},n=()=>{let l={storageKey:V.value,path:$e.value};ja(l).then(i=>{ue.updateFolderConfig(i.data),V.value!==be.oldStorageKey&&be.updateOldStorageKey(V.value)}).finally(()=>{cn.value=!0})},a=l=>{if(!!l.name)if(be.updateCurrentClickRow(l),l.type==="FILE"){const{batchDownloadFile:i}=Bn();switch(l.fileType){case"video":Hr();break;case"image":Vr(l);break;case"text":qr();break;case"audio":Ur(l);break;case"pdf":Kr(l);break;default:i(l)}Gr()}else if(l.type==="ROOT")ve.value.push(l.path);else if(l.type==="BACK"){let i=Qe("/"+V.value+"/"+l.path);i=ln(i),ve.value.push(i)}else{let i=Qe("/"+V.value+"/"+l.path+"/"+l.name);i=ln(i),ve.value.push(i)}};let o=R(()=>{let l=kt.zfileConfig.skeleton.enable,i=kt.zfileConfig.skeleton.show;return l?i==="always"?se.value:sn.value?!1:se.value:!1}),s=R(()=>o.value?!1:se.value),r=()=>{G.prompt("\u6B64\u6587\u4EF6\u5939\u5DF2\u52A0\u5BC6\uFF0C\u8BF7\u8F93\u5165\u5BC6\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputType:"password",inputValidator(l){return!!l},inputErrorMessage:"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:l})=>{t({password:l})}).catch(()=>{if((K.path==="/"||K.path==="")&&ue.globalConfig.rootShowStorage===!0)be.updateFileList(Nr.value),ve.value.push("/"),ft.value=ue.globalConfig.siteName+" | \u9996\u9875",se.value=!1;else{let l=Oe.resolve(K.path,"../");ve.value.push("/"+V.value+l)}})};return{loadFile:t,openRow:a,searchParam:K,sortChangeMethod:e,skeletonLoading:o,skeletonData:xt,basicLoading:s,initStorageConfig:cn,loadFileConfig:n}}let Yr=ge(),Zr=De(),{storageKey:gt,currentPath:je}=ze();const ce=z([]),un=z(!1);let{selectRows:$,selectRow:dn,selectFolders:Ne,selectFiles:pt}=et();function Bn(){const{loadFile:e}=On(),t=u=>{if(!$.value&&$.value.length===0){j.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6587\u4EF6");return}let c;u.name?c=`\u662F\u5426\u786E\u8BA4\u4E0B\u8F7D\u6587\u4EF6 ${u.name}\uFF1F`:$.value.length===1?c=`\u662F\u5426\u786E\u8BA4\u4E0B\u8F7D\u6587\u4EF6 ${$.value[0].name}\uFF1F`:$.value.length>1&&(c=`\u662F\u5426\u786E\u8BA4\u6279\u91CF\u4E0B\u8F7D ${$.value.length} \u4E2A\u6587\u4EF6\uFF1F`),G.confirm(c,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"info",callback:p=>{p==="confirm"&&(u.name?n(u.url):$.value.forEach(f=>{f.type==="FILE"&&n(f.url)}))}})},n=u=>{const c=document.createElement("iframe");c.style.display="none",c.style.height=0,c.src=u,document.body.appendChild(c),setTimeout(()=>{c.remove()},5*60*1e3)},a=()=>{G.prompt(`\u5728 ${je.value} \u4E0B\u521B\u5EFA\u6587\u4EF6\u5939\uFF0C\u8BF7\u8F93\u5165\u8981\u521B\u5EFA\u7684\u6587\u4EF6\u5939\u540D\u79F0`,"\u63D0\u793A",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",draggable:!0,inputValidator(u){return u?u.includes("/")?"\u6587\u4EF6\u5939\u540D\u79F0\u4E0D\u80FD\u5305\u542B /":!0:"\u6587\u4EF6\u5939\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}}).then(({value:u})=>{let c={storageKey:gt.value,path:je.value,name:u};Da(c).then(()=>{j.success("\u521B\u5EFA\u6210\u529F")}).finally(()=>{e()})})},o=()=>{let u=dn.value;if(u===null){j.warning("\u8BF7\u5148\u9009\u4E2D\u4E00\u4E2A\u6587\u4EF6\u6216\u6587\u4EF6\u5939\uFF01");return}G.prompt(`\u5C06 ${u.name} \u4FEE\u6539\u4E3A\uFF1A`,"\u63D0\u793A",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputValue:u.name,inputValidator(c){return!!c},inputErrorMessage:"\u6A21\u677F\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A."}).then(({value:c})=>{let p={storageKey:gt.value,path:je.value,name:u.name,newName:c},f;u.type==="FILE"?f=Ia:u.type==="FOLDER"&&(f=Oa),f(p).then(()=>{j.success("\u91CD\u547D\u540D\u6210\u529F")}).finally(()=>{e()})})},s=()=>{j.warning("\u6682\u672A\u5B9E\u73B0")},r=()=>{j.warning("\u6682\u672A\u5B9E\u73B0")},l=()=>{if(!Zr.permission.delete)return;if($.value.length===0){j.warning("\u8BF7\u5148\u81F3\u5C11\u9009\u4E2D\u4E00\u4E2A\u6587\u4EF6\u6216\u6587\u4EF6\u5939\uFF01");return}let u=$.value.length===1?"\u662F\u5426\u786E\u8BA4\u5220\u9664 ":"\u662F\u5426\u786E\u8BA4\u6279\u91CF\u5220\u9664 ",c=["s3","tencent","aliyun","qiniu","minio","huawei","upyun"];Ne.value.length>0&&(u+=" "+Ne.value.length+" \u4E2A\u6587\u4EF6\u5939"),Ne.value.length>0&&pt.value.length>0&&(u+="\uFF0C"),pt.value.length>0&&(u+=pt.value.length+" \u4E2A\u6587\u4EF6"),Ne.value.length>0&&c.includes(Yr.currentStorageSource.type.key)&&(u+=" (\u4E0D\u652F\u6301\u5220\u9664\u975E\u7A7A\u6587\u4EF6\u5939)"),u+="?",ce.value=[],G.confirm(u,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",draggable:!0,callback:f=>{f==="confirm"&&($.value.length>1?(un.value=!0,$.value.forEach(h=>{p(h).then(()=>{ce.value.push({name:h.name,status:!0})}).catch(()=>{ce.value.push({name:h.name,status:!1})})})):p(dn.value).then(h=>{j.success("\u5220\u9664\u6210\u529F"),e()}))}});const p=f=>{let h={storageKey:gt.value,path:je.value,name:f.name};return f.type==="FOLDER"?Fa(h):Ma(h)}},i=()=>{ce.value=[],e()},d=R(()=>Math.floor(ce.value.length/$.value.length*100));return{batchDownloadFile:t,rename:o,newFolder:a,moveTo:s,copyTo:r,batchDelete:l,batchDeleteResult:ce,batchDeleteDialogShow:un,batchDeleteCloseAction:i,batchDeletePercentage:d}}Lt();let Qr=De(),ee=ge();const Xr=Tt("Meta"),Jr=Tt("Control"),eo=Tt("Shift");let to=R(()=>Xr.value||Jr.value),{batchDelete:fn}=Bn();const{skeletonLoading:gn,openRow:ht}=On(),{selectRows:We,selectRow:pn,clearSelection:At,toggleRowSelection:Ue,toggleAllSelection:no}=et();window.addEventListener("keydown",function(e){var t;e.key==="Escape"&&Ve()?At():e.key==="a"&&(e.metaKey||e.ctrlKey)&&Ve()?(e.preventDefault(),no()):e.key==="Delete"&&Ve()?fn&&((t=We==null?void 0:We.value)==null?void 0:t.length)>0&&(e.preventDefault(),fn()):e.key==="Backspace"&&Ve()&&ee.fileList.length>0&&ee.fileList[0].type==="BACK"&&Et(ee.fileList[0])},!1);const Ve=()=>ao()&&_n()===!1,ao=()=>document.querySelector(".zfile-index-body:hover"),_n=()=>!!document.querySelector(".el-popup-parent--hidden"),ke=z(-1),xe=z(-1),{pressed:ro}=Kn();Ge(()=>ro.value,(e,t)=>{e===!1&&t===!0&&(ke.value=-1,xe.value=-1)});let Et;function yo(){return Et=(a,o)=>{var l;if(o===void 0){ht(a);return}let s=o.type==="selection";if(!s&&Qr.globalConfig.fileClickMode==="click"){ht(a);return}if(gn.value)return;let r=We.value.length===1&&((l=pn.value)==null?void 0:l.name)===a.name;if(eo.value){let i=ee.fileList.findIndex(d=>d.name===pn.value.name);if(i!==null){let d=ee.fileList.findIndex(p=>p.name===a.name),u=Math.min(d,i),c=Math.max(d,i);for(let p=u+1;p{gn.value||ht(a)},tableHoverRow:(a,o,s,r)=>{if(r.buttons===1&&ke.value!==-1){if(xe.value===-1){At();let c=ee.fileList[ke.value];Ue(c,!0)}let l=a.index,i=xe.value>=0?xe.value:l-1,d=Math.min(i,l),u=Math.max(i,l);for(let c=d;c<=u;c++){let p=ee.fileList[c];Ue(p,!0)}xe.value=l}},tableLeaveRow:(a,o,s,r)=>{r.buttons===1&&ke.value===-1&&(ke.value=a.index)}}}const Q=z(!1),mt=z(""),X=Pe([]),re=new Map,vt=new Map;let oo=0,ye=ge(),Ke=De(),we=z(!1);function wo(){let{storageKey:e,currentPath:t}=ze();const n=g=>{g=document.querySelector("body");const C=y=>{var T,E;if(v(),we.value=!1,_n()||!e.value||Q.value||!Ke.permission.upload)return;y.stopPropagation(),y.preventDefault();const k=da.service({text:"\u6587\u4EF6\u8BFB\u53D6\u4E2D...",background:"rgba(0, 0, 0, .3)"}),A=((T=y.clipboardData)==null?void 0:T.items)||((E=y.dataTransfer)==null?void 0:E.items);S(A).then(D=>{if(Ye(()=>{k.close()}),D.length===0)return;let I=[];D.forEach((ne,pe)=>{ne.name===".DS_Store"&&I.push(pe)});const nt=()=>{Q.value=!0,D.forEach(ne=>{f({file:ne})})};I.length>0?G.confirm(`\u68C0\u6D4B\u5230\u6709 ${I.length} \u4E2A .DS_Store \u6587\u4EF6\uFF0C\u662F\u5426\u4E0A\u4F20\u65F6\u8DF3\u8FC7\u8FD9\u4E9B\u6587\u4EF6`,"\u63D0\u793A",{confirmButtonText:"\u8DF3\u8FC7\u8FD9\u4E9B\u6587\u4EF6",cancelButtonText:"\u4F9D\u65E7\u4E0A\u4F20",type:"success",callback:ne=>{if(ne==="confirm")for(let pe=I.length-1;pe>=0;pe--){let $n=I[pe];D.splice($n,1)}nt()}}):D.length>100?G.confirm(`\u6587\u4EF6\u6570\u91CF\u4E3A ${D.length} \u4E2A\uFF0C\u662F\u5426\u786E\u8BA4\u4E0A\u4F20\uFF1F`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"success",callback:ne=>{ne==="confirm"&&nt()}}):nt()})};let b=null;g.addEventListener("dragenter",y=>{!e.value||Q.value||!Ke.permission.upload||(b=y.target,m(),y.stopPropagation(),y.preventDefault(),we.value=!0)},!1),g.addEventListener("dragover",function(y){!e.value||Q.value||!Ke.permission.upload||(y.stopPropagation(),y.preventDefault(),we.value=!0)},!1),g.addEventListener("dragleave",function(y){!e.value||Q.value||!Ke.permission.upload||(b===y.target&&(v(),we.value=!1),y.stopPropagation(),y.preventDefault())},!1),g.addEventListener("drop",C,!1),g.addEventListener("paste",C,!1);const S=async y=>{let k=[],A=[];if(y){let T=new Array(...y);for(let E=0;E0)for(let E=0;E{g.classList.add("dragging-over")},v=()=>{g.classList.remove("dragging-over")};function w(y){return new Promise((k,A)=>{y.file(T=>{k(T)})})}function x(y){return new Promise((k,A)=>{y.readEntries(T=>{k(T)})})}function L(y,k){for(let A=0;A{Q.value=!0,mt.value="file"},o=()=>{Q.value=!0,mt.value="folder",Ye(()=>{document.getElementsByClassName("el-upload__input")[0].webkitdirectory=!0})},s=g=>{let C=t.value;if(g.webkitRelativePath||g.dropUploadPath){let S=(g.webkitRelativePath||g.dropUploadPath).split("/");S.forEach((m,v)=>{let w=v===0,x=S.length-1===v;w||x||m&&(C+="/"+m)})}let b={storageKey:e.value,path:Qe(C),name:g.name,size:g.size};Ba(b).then(S=>{const m=oo++;let v={name:g.name,size:g.size,speed:"-",progress:0,loaded:0,status:"uploading",startTime:Date.now(),index:m};X.push(v),re.set(m,le.CancelToken.source()),vt.set(m,X[X.length-1]);const{on:w}=Dt(`cancel-upload-${m}`);w(()=>{let y=re.get(m);y&&(y.cancel(),X.find((k,A)=>{let T=k.name===g.name;return T&&X.splice(A,1),T}))});let x=["local","webdav","ftp","sftp"],L=["s3","tencent","aliyun","qiniu","minio","huawei"],P=["sharepoint","sharepoint-china","onedrive","onedrive-china"];x.includes(ye.currentStorageSource.type.key)?r(g,S.data,m):L.includes(ye.currentStorageSource.type.key)?l(g,S.data,m):P.includes(ye.currentStorageSource.type.key)?d(g,S.data,m):ye.currentStorageSource.type.key==="upyun"&&u(g,S.data,m)})},r=(g,C,b)=>{let S=new FormData;S.append("file",g),le.post(C,S,{cancelToken:re.get(b).token,onUploadProgress:m=>{i(m,b)}})},l=(g,C,b)=>{le.put(C,g,{withCredentials:!1,cancelToken:re.get(b).token,onUploadProgress:S=>{i(S,b)}})},i=(g,C)=>{let b=vt.get(C);b.size=g.total,b.loaded=g.loaded,b.progress=Math.round(g.loaded/g.total*100),b.speed=te.fileSizeFormat(Math.round(g.loaded/(Date.now()-b.startTime)*1e3)),b.progress===100&&(b.status="finished",b.endTime=Date.now())},d=(g,C,b)=>{let S=1,m=0,v=0,w=g.size;const x=104857599,L=()=>{m+x>=w?v=w:v=m+x,S>1&&re.set(b,le.CancelToken.source());let P=g.slice(m,v);le.put(`${C}`,P,{cancelToken:re.get(b).token,timeout:1e7,headers:{"Content-Type":"application/octet-stream","Content-Range":`bytes ${m}-${v-1}/${g.size}`},type:"sync",withCredentials:!1,onUploadProgress:y=>{if(y.lengthComputable){let k=vt.get(b);const A=y.loaded+m;k.size=w,k.loaded=A,k.progress=Math.round(A/w*100),k.speed=te.fileSizeFormat(Math.round(A/(Date.now()-k.startTime)*1e3)),k.progress===100&&(k.status="finished",k.endTime=Date.now())}}}).then(y=>{y.status===202?(m+=x,S+=1,L()):y.status}).catch(y=>{})};L()},u=(g,C,b)=>{let S=JSON.parse(C),m=new FormData;m.append("name",g.name),m.append("authorization",S.signature),m.append("policy",S.policy),m.append("file",g),le.post(S.url,m,{withCredentials:!1,cancelToken:re.get(b).token,onUploadProgress:v=>{i(v,b)}})},c=R(()=>{let g=X.length,C=0,b=0;return X.forEach(S=>{S.status==="uploading"?C++:S.status==="finished"&&b++}),{totalSize:g,totalUploading:C,totalFinish:b}}),p=R(()=>X.sort((g,C)=>{let b=g.status==="uploading",S=C.status==="uploading";if(!b&&!S)return g.startTime-C.startTime;if(b&&!S)return-1;if(!b&&S)return 1;if(b&&S)return g.endTime-C.endTime})),f=g=>{let C=ye.fileList.find(b=>{if(b.name===g.file.name)return b});if(C){xa({zIndex:9999,title:"\u63D0\u793A",message:`\u5F53\u524D\u76EE\u5F55\u5DF2\u5B58\u5728\u6587\u4EF6 ${C.name}, \u8DF3\u8FC7\u4E0A\u4F20.`,type:"warning"});return}s(g.file)};return{visible:Q,uploadMode:mt,openUploadDialog:a,openUploadFolderDialog:o,cancelUpload:g=>{G.confirm(`\u662F\u5426\u786E\u5B9A\u53D6\u6D88\u6587\u4EF6 ${g.name} \u4E0A\u4F20\uFF1F`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u8FD4\u56DE",type:"warning",callback:C=>{C==="confirm"&&Dt(`cancel-upload-${g.index}`).emit()}})},dropState:we,listenDropFile:n,beforeUpload:f,uploadFile:s,uploadProgressInfoSorted:p,uploadProgressInfoStatistics:c}}export{Ea as a,De as b,et as c,wo as d,On as e,yo as f,Bn as g,_r as h,Pa as i,Qe as j,po as k,ho as l,ir as m,go as r,mo as s,ge as u}; diff --git a/src/main/resources/static/assets/useLinkSetting.49293b3b.js b/src/main/resources/static/assets/useLinkSetting.acb89768.js similarity index 53% rename from src/main/resources/static/assets/useLinkSetting.49293b3b.js rename to src/main/resources/static/assets/useLinkSetting.acb89768.js index 77488f6..b914087 100644 --- a/src/main/resources/static/assets/useLinkSetting.49293b3b.js +++ b/src/main/resources/static/assets/useLinkSetting.acb89768.js @@ -1 +1 @@ -import{l as u,c as i}from"./admin-setting.158855e4.js";import{az as e}from"./index.552205f5.js";import{E as d}from"./request.3708b2c4.js";function f(){const{data:a,loading:t,reload:s}=e(u,{formatResult:r=>r.data}),{loading:o,run:n}=e(i,{manual:!0,onSuccess(){d({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}});return{data:a,dataLoading:t,reload:s,saveData:()=>{n(a.value)},saveLoading:o}}export{f as u}; +import{l as u,c as i}from"./admin-setting.28847312.js";import{aA as e}from"./index.43b3cbf5.js";import{E as d}from"./request.e2daed10.js";function f(){const{data:a,loading:t,reload:s}=e(u,{formatResult:r=>r.data}),{loading:o,run:n}=e(i,{manual:!0,onSuccess(){d({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}});return{data:a,dataLoading:t,reload:s,saveData:()=>{n(a.value)},saveLoading:o}}export{f as u}; diff --git a/src/main/resources/static/assets/validator.6f3b33db.js b/src/main/resources/static/assets/validator.6f3b33db.js deleted file mode 100644 index 5130fb6..0000000 --- a/src/main/resources/static/assets/validator.6f3b33db.js +++ /dev/null @@ -1 +0,0 @@ -import{ah as i}from"./base.d698891e.js";const n=o=>["",...i].includes(o);export{n as i}; diff --git a/src/main/resources/static/assets/validator.b1ae6965.js b/src/main/resources/static/assets/validator.b1ae6965.js new file mode 100644 index 0000000..bfd9216 --- /dev/null +++ b/src/main/resources/static/assets/validator.b1ae6965.js @@ -0,0 +1 @@ +import{ah as i}from"./base.4ef7f45b.js";const n=o=>["",...i].includes(o);export{n as i}; diff --git a/src/main/resources/static/assets/view-setting.2b05bf6c.js b/src/main/resources/static/assets/view-setting.2b05bf6c.js deleted file mode 100644 index 26b867d..0000000 --- a/src/main/resources/static/assets/view-setting.2b05bf6c.js +++ /dev/null @@ -1 +0,0 @@ -import{az as x,_ as C,a2 as f,a as g,f as I,u as e,Q as U,b as M,e as l,h as a,k as A,J as u,U as D,V as L,p as b}from"./index.552205f5.js";import{r as R}from"./base.d698891e.js";/* empty css */import{Z as P,a as z}from"./ZFormItem.7a4b4758.js";/* empty css */import"./tooltip.f118fcb0.js";import{E as J}from"./popper.14a92806.js";/* empty css */import{E as B}from"./switch.2393edfd.js";import{E as O}from"./radio.427cda7a.js";import{l as j,b as N}from"./admin-setting.158855e4.js";import{c as p}from"./common.0f75f163.js";import{E as q}from"./request.3708b2c4.js";import{b as w}from"./route-block.9b0645f8.js";import{_ as Z}from"./plugin-vue_export-helper.21dcd24c.js";import{r as F}from"./BadgeCheckIcon.09c2c42b.js";import{E as H}from"./index.4ab44dc8.js";import{v as Q}from"./directive.e250a256.js";import"./index.c92ded65.js";import"./focus-trap.58847c97.js";import"./event.3ec63147.js";import"./validator.6f3b33db.js";import"./event.776e7e11.js";function G(){const{data:m,loading:_,reload:o}=x(j,{formatResult:t=>{let i=t.data;return i.customVideoSuffix||(i.customVideoSuffix=p.constant.fileTypeMap.video.join(",")),i.customImageSuffix||(i.customImageSuffix=p.constant.fileTypeMap.image.join(",")),i.customAudioSuffix||(i.customAudioSuffix=p.constant.fileTypeMap.audio.join(",")),i.customTextSuffix||(i.customTextSuffix=p.constant.fileTypeMap.text.join(",")),i.announcement||(i.announcement=""),i}}),{loading:c,run:V}=x(N,{manual:!0,onSuccess(){q({message:"\u4FDD\u5B58\u6210\u529F",type:"success"})}});return{data:m,dataLoading:_,reload:o,saveData:()=>{V(m.value)},saveLoading:c}}const E=m=>(D("data-v-17123c46"),m=m(),L(),m),K=u(" \u663E\u793A\u4FE1\u606F "),W=u(" \u6B64\u9875\u9762\u663E\u793A\u7F51\u7AD9\u524D\u53F0\u7684\u663E\u793A\u76F8\u5173\u7684\u4FE1\u606F "),X=u("\u5168\u5C4F"),Y=u("\u5C45\u4E2D"),$=u(" \u6839\u76EE\u5F55\u662F\u5426\u663E\u793A\u6240\u6709\u5B58\u50A8\u6E90, \u5982\u679C\u4E3A true, \u5219\u6839\u76EE\u5F55\u663E\u793A\u6240\u6709\u5B58\u50A8\u6E90\u5217\u8868, \u5982\u679C\u4E3A false, \u5219\u4F1A\u81EA\u52A8\u8DF3\u8F6C\u5230\u7B2C\u4E00\u4E2A\u5B58\u50A8\u6E90. "),ee=u("\u5355\u51FB\u8FDB\u5165"),oe=u("\u53CC\u51FB\u8FDB\u5165"),te=u(" \u63A7\u5236\u6587\u4EF6\u548C\u6587\u4EF6\u5939\u7684\u70B9\u51FB\u4E60\u60EF, \u5355\u51FB/\u53CC\u51FB\u6253\u5F00\u6587\u4EF6\u5939\u6216\u9884\u89C8\u6587\u4EF6 "),le=u(" \u81EA\u5B9A\u4E49\u8BC6\u522B\u4E3A\u89C6\u9891\u683C\u5F0F\u7684\u6587\u4EF6\u540E\u7F00\uFF0C\u591A\u4E2A\u7528\u9017\u53F7\u5206\u5F00\uFF0C\u5982 'mp4,avi,mkv', \u5728\u6B64\u5217\u8868\u4E2D\u7684\u5C06\u8C03\u7528\u64AD\u653E\u5668\u6253\u5F00\uFF08\u80FD\u5426\u64AD\u653E\u8981\u53D6\u51B3\u4E8E\u6D4F\u89C8\u5668\u662F\u5426\u652F\u6301\uFF0C\u73B0\u4EE3\u6D4F\u89C8\u5668\u4E00\u822C\u53EA\u652F\u6301\u5C01\u88C5\u683C\u5F0F\u4E3A h.264 (mp4) \u7684\u7F16\u7801\u683C\u5F0F\uFF09 "),ae=u(" \u5728\u6587\u4EF6\u5217\u8868\u4E0B\uFF0C\u663E\u793A\u5F53\u524D\u6587\u4EF6\u5939\u7684\u76EE\u5F55\u6587\u6863 "),ne=E(()=>b("i",{class:"el-icon-info zfile-info-tooltip"},null,-1)),ie=u(" \u7F51\u7AD9\u9876\u90E8\uFF0C\u663E\u793A\u516C\u544A\u5185\u5BB9\uFF0C\u652F\u6301 HTML \u8BED\u6CD5 "),ue=E(()=>b("i",{class:"el-icon-info zfile-info-tooltip"},null,-1)),se=u(" \u652F\u6301 Markdown \u8BED\u6CD5, \u5DE6\u53F3\u5206\u680F, \u6240\u89C1\u5373\u6240\u5F97, \u53EF\u4EE5\u4F7F\u7528 HTML \u8BED\u6CD5 "),de=u(" \u81EA\u5B9A\u4E49 CSS \u5185\u5BB9, \u65E0\u987B\u5199 \u6807\u7B7E "),me=u(" \u81EA\u5B9A\u4E49 JS \u811A\u672C, \u65E0\u987B\u5199 - - + + diff --git a/src/main/resources/static/zfile.config.json b/src/main/resources/static/zfile.config.json index 7f46735..b7379e5 100644 --- a/src/main/resources/static/zfile.config.json +++ b/src/main/resources/static/zfile.config.json @@ -1,10 +1,5 @@ { "baseUrl": "", - "fileList": { - "backHandler": "click", - "defaultSize": "small", - "emptyText": "数据为空,请先上传或添加文件" - }, "router": { "mode": "history" }, @@ -14,16 +9,18 @@ "size": 20 }, "gallery": { + "mobileColumn": 1, "column": 3, "columnSpacing": 50, - "gutter": 50, + "rowSpacing": 10, "showInfo": true, - "showInfoMode": "hover" + "showInfoMode": "hover", + "roundedBorder": true, + "showBackTop": true }, "imagePreview": { - "mode": "full" + "mode": "full", + "gallery": true }, - "officePreview": { - - } + "officePreview": {} } \ No newline at end of file